首先需要配置内核Boot options
luther@gliethttp:/vobs/works/linux-2.6.30.4$ make menuconfig
Boot options ==> Default kernel command string定义为
console=ttyAM0,115200 root=/dev/nfs nfsroot=192.168.1.101:/vobs/nfs ip=192.168.1.150:192.168.1.101:192.168.1.1:255.255.255.0
之后在ubuntu 8.10上安装nfs
《ubuntu 8.10下为arm开发板配置nfs文件系统》,启动即可正常mount上ubuntu 8.10上的nfs目录了.[luther.gliethttp]
浅析blob到kernel传递tags参数和cmdline处理流程r0 = 0
r1=mach_type_id
r2=BOOT_PARAMS
RedBoot> load -v -r -b 0x800000 zImage
Raw file loaded 0x00800000-0x0099429f, assumed entry at 0x00800000
RedBoot> exec -r 0x800000 -s 0x600000
Using base address 0x00800000 and length 0x001942a0
Uncompressing Linux.................................................................................
......................... done, booting the kernel.
Linux version 2.6.30.4 (luther@gliethttp) (gcc version 3.4.1) #8 Tue Aug 4 00:10:32 CST 2009
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: Cirrus Logic EDB9312 Evaluation Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16192
Kernel command line: console=ttyAM0,115200 root=/dev/nfs nfsroot=192.168.1.101:/vobs/nfs ip=192.168.
1.150:192.168.1.101:192.168.1.1:255.255.255.0
NR_IRQS:120
PID hash table entries: 256 (order: 8, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB 32MB = 64MB total
Memory: 61520KB available (3052K code, 203K data, 96K init, 0K highmem)
Calibrating delay loop... 99.73 BogoMIPS (lpj=498688)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 760 bytes
NET: Registered protocol family 16
ep93xx: PLL1 running at 400 MHz, PLL2 at 384 MHz
ep93xx: FCLK 200 MHz, HCLK 100 MHz, PCLK 50 MHz
M2P DMA subsystem initialized
bio: create slab
at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 3, 40960 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND)
阅读(1380) | 评论(0) | 转发(0) |