谢谢关注。
我做的事情:对光盘提供的内核linux-2.6.32.2-mini2440-20110413.tar进行移植,因为大部分工作都做好了,就只给内核打上补丁#./patch-ker.sh c /../linux-2.6.32.2,在make menuconfig选中对yaffs2的支持,然后生成内核make zImage,转成uImage下载运行。
以下是打印信息
block 1378 is bad
block 1379 is bad
block 1380 is bad
block 1381 is bad
block 1382 is bad
block 1383 is bad
block 1384 is bad
block 1385 is bad
block 1436 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:3.
Freeing init memory: 160K
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:
[<c0035270>] (dump_backtrace+0x0/0x10c) from [<c033a844>] (dump_stack+0x18/0x1c)
r7:00000000 r6:c04920b0 r5:c0491840 r4:c04581a0
[<c033a82c>] (dump_stack+0x0/0x1c) from [<c033a894>] (panic+0x4c/0x134)
[<c033a848>] (panic+0x0/0x134) from [<c00305a4>] (init_post+0xec/0x178)
r3:00000000 r2:00000000 r1:c04c7000 r0:c03ea8fc
[<c00304b8>] (init_post+0x0/0x178) from [<c00084c4>] (kernel_init+0xf4/0x124)
r5:c0020380 r4:c0020380
[<c00083d0>] (kernel_init+0x0/0x124) from [<c004d1a4>] (do_exit+0x0/0x62c)
r7:00000000 r6:00000000 r5:00000000 r4:00000000