当前位置: 技术问答>linux和unix
yaffs2文件系统挂载出错
来源: 互联网 发布时间:2017-05-19
本文导语: 如果用nfs挂载到服务器上的根文件系统,是可以正常工作的。但是当我将yaffs2根文件系统烧写到dm6467的flash中时,却出现了下面的错误: yaffs: dev is 32505859 name is "mtdblock3" yaffs: passed flags "" yaffs: Attempting MTD moun...
如果用nfs挂载到服务器上的根文件系统,是可以正常工作的。但是当我将yaffs2根文件系统烧写到dm6467的flash中时,却出现了下面的错误:
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Backtrace:
[] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
r6:00000000 r5:c002560c r4:c0409450
[] (dump_stack+0x0/0x1c) from [] (panic+0x54/0x124)
[] (panic+0x0/0x124) from [] (init_post+0xd4/0xfc)
r3:c6101f00 r2:c03e4520 r1:000000c0 r0:c03838ec
[] (init_post+0x0/0xfc) from [] (kernel_init+0xe0/0x110)
r4:c0408d00
[] (kernel_init+0x0/0x110) from [] (do_exit+0x0/0x654)
r5:00000000 r4:00000000
我烧写内核及根文件系统的命令如下所示:
内核:
tftp 0x80700000 uImage
nand erase 500000 220000
nand write 0x80700000 500000 220000
setenv bootcmd 'nand read 0x80700000 0x500000 220000;bootm 0x80700000'
saveenv
根文件系统:
tftp 0x60000000 yaffs2.img
nand erase 900000 0x3700000
nand write 0x60000000 900000 2f20000
setenv bootargs 'noinitrd root=/dev/mtdblock3 rw rootfstype=yaffs2 init=/linuxrc console=ttyS0,115200'
saveenv
自己刚刚接触这方面的东西不久,还请各位帮帮忙。谢谢!
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
yaffs: auto selecting yaffs1
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs2 filesystem) on device 31:3.
Freeing init memory: 136K
Warning: unable to open an initial console.
Failed to execute /linuxrc. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Backtrace:
[] (dump_backtrace+0x0/0x110) from [] (dump_stack+0x18/0x1c)
r6:00000000 r5:c002560c r4:c0409450
[] (dump_stack+0x0/0x1c) from [] (panic+0x54/0x124)
[] (panic+0x0/0x124) from [] (init_post+0xd4/0xfc)
r3:c6101f00 r2:c03e4520 r1:000000c0 r0:c03838ec
[] (init_post+0x0/0xfc) from [] (kernel_init+0xe0/0x110)
r4:c0408d00
[] (kernel_init+0x0/0x110) from [] (do_exit+0x0/0x654)
r5:00000000 r4:00000000
我烧写内核及根文件系统的命令如下所示:
内核:
tftp 0x80700000 uImage
nand erase 500000 220000
nand write 0x80700000 500000 220000
setenv bootcmd 'nand read 0x80700000 0x500000 220000;bootm 0x80700000'
saveenv
根文件系统:
tftp 0x60000000 yaffs2.img
nand erase 900000 0x3700000
nand write 0x60000000 900000 2f20000
setenv bootargs 'noinitrd root=/dev/mtdblock3 rw rootfstype=yaffs2 init=/linuxrc console=ttyS0,115200'
saveenv
自己刚刚接触这方面的东西不久,还请各位帮帮忙。谢谢!
|
nand write.yaffs 0x60000000 900000 $(filesize)
http://bbs.21ic.com/blog-584104-60279.html
可能写 rootfs 的指令有错
http://bbs.21ic.com/blog-584104-60279.html
可能写 rootfs 的指令有错