FAT: unable to read boot sector
VFS: Cannot open root device "mtdblock2"or unknown-block(31,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00 192 mtdblock0 (driver?)
1f01 2048 mtdblock1 (driver?)
1f02 63152 mtdblock2 (driver?)
Kernel panic -not syncing: VFS: Unable to mount root fs on unknown-block(31,2) [<c002c700>](unwind_backtrace+0x0/0xdc) from [<c02a7d2c>](panic+0x40/0x110) [<c02a7d2c>](panic+0x40/0x110) from [<c0008fcc>](mount_block_root+0x1d0/0x210) [<c0008fcc>](mount_block_root+0x1d0/0x210) from [<c0009264>](prepare_namespac) [<c0009264>](prepare_namespace+0x164/0x1bc) from [<c0008598>](kernel_init+0xb) [<c0008598>](kernel_init+0xb4/0xe0) from [<c004812c>](do_exit+0x0/0x578) [<c004812c>](do_exit+0x0/0x578) from [<00000001>](0x1)
七、加入对yaffs2文件系统的支持 1)回到上级目录 # cd ..
2)解压yaffs2文件系统源码包 # tar zxvf cvs-root.tar.gz
3)进入yaffs2源码目录 # cd cvs/yaffs2
4)打补丁 # ./patch-ker.sh c ../../linux-2.6.30.4 Updating ../../linux-2.6.30.4/fs/Kconfig Updating ../../linux-2.6.30.4/fs/Makefile
5)回到内核目录 # cd ../../linux-2.6.30.4
6)重新配置 # make menuconfig 选上以下一项:
File systems --->[*] Miscellaneous filesystems ---><*> YAFFS2 file system support
7)重新编译内核 # make zImage
八、重新下载、烧写内核镜像
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2,"mtdblock2"
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 120K
mount: mounting /dev/sda2 on /opt failed: No such file or directory
mkdir: cannot create directory '/udisk': File exists
mount: mounting /dev/sda1 on /udisk failed: No such file or directory
Please press Enter to activate this console. [root@jjx /]#