情况说明:在tiny6410上进行文件系统移植,移植的是linux的文件系统,yaffs2
1.现象
/init: line 103: can't open /r/dev/console: no such file
Kernel panic - not syncing: Attempted to kill init!
[<c0177c44>] (unwind_backtrace+0x0/0xe4) from [<c05148e4>] (panic+0x58/0x174)
[<c05148e4>] (panic+0x58/0x174) from [<c0189eb0>] (do_exit+0x68/0x5e4)
[<c0189eb0>] (do_exit+0x68/0x5e4) from [<c018a6f0>] (do_group_exit+0x90/0xc4)
[<c018a6f0>] (do_group_exit+0x90/0xc4) from [<c018a734>] (sys_exit_group+0x10/0x18)
one_wire_status: 2
[<c018a734>] (sys_exit_group+0x10/0x18) from [<c01725e0>] (ret_fast_syscall+0x0/0x30)
one_wire_status: 4
2.到内核目录下找到Initial RAM filesystem and RAM disk (initramfs/initrd) support 那个选项,scripts/FriendlyARM.cpio部分置空,这个错误就没有了
3.又出现了新的错误,是因为我使用的yaffs工具的问题,我用的是mkyaffs2image,应该用mkyaffs2image-128M,这个是针对128M以上的文件系统
Failed to execute /linuxrc.
Kernel panic - not syncing: No init found.
[<c0036360>] (unwind_backtrace+0x0/0xf8) from [<c022b6b0>] (panic+0x58/0x19c)
[<c022b6b0>] (panic+0x58/0x19c) from [<c0024588>] (init_post+0xc0/0x138)
[<c0024588>] (init_post+0xc0/0x138) from [<c0008434>] (kernel_init+0xe8/0x124)
[<c0008434>] (kernel_init+0xe8/0x124) from [<c0031e78>] (kernel_thread_exit+0x0/0x8)
参考http://blog.youkuaiyun.com/zenntidy/article/details/21040947这个地址解决的