-
Creating 3 MTD partitions on "NAND 64MiB 3,3V 8-bit":
-
0x000000000000-0x000000100000 : "Boot"
-
0x000000120000-0x000000520000 : "Kernel"
-
0x000000520000-0x000004000000 : "yaffs2"
-
……
-
……
-
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
-
Root-NFS: No NFS server available, giving up.
-
VFS: Unable to mount root fs via NFS, trying floppy.
-
VFS: Cannot open root device "hda1" or unknown-block(2,0)
-
Please append a correct "root=" boot option; here are the available partitions:
-
1f00 1024 mtdblock0 (driver?)
-
1f01 4096 mtdblock1 (driver?)
-
1f02 60288 mtdblock2 (driver?)
-
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
-
[] (unwind_backtrace+0x0/0xdc) from [] (panic+0x40/0x110)
-
[] (panic+0x40/0x110) from [] (mount_block_root+0x1d0/0x210)
-
[] (mount_block_root+0x1d0/0x210) from [] (prepare_namespac)
-
[] (prepare_namespace+0x164/0x1bc) from [] (kernel_init+0xd)
-
[] (kernel_init+0xd4/0x108) from [] (kernel_thread_exit+0x0)
是uboot版本问题。
从NAND启动参数
setenv bootargs noinitrd root=/dev/mtdblock3 init=/linuxrc
console=ttySAC0
<设置root的存储设备>
setenv bootcmd "nand read 0x30000000 0x60000 0x2300000; bootm
0x30000000" <设置kernel的起始地址>
设置YAFFS启动,引导参数:
setenv bootargs noinitrd root=/dev/mtdblock2 init=/linuxrc
console=ttySAC0
设置NFS启动,引导参数:
setenv bootargs console=ttySAC0 root=/dev/nfs
nfsroot=192.168.1.201:/home/root/root_fs/fs_mini
ip=192.168.1.227:192.168.1.201:192.168.1.201:255.255.255.0:sbc2440.arm9.net:eth0:off