本帖最后由 STC89C55 于 2015-11-9 22:59 编辑
初识2440,是在一个深秋的夜晚,月黑风高,寒风嗖嗖的,在远处仔细观摩,还是不知道怎么去了解她!经过一个月的不懈努力,终于有些进步了!现在将编译好的kernel和制作的rootfs烧到2440的nand里面,但是kernel就是无法引导rootfs起来,一直查不到是什么原因,希望有高手指点一二,谢谢! 2440通过nor启动后,进入命令行,输入boot_zImage,就可以引导kernel起来了,但是出现如下打印:
asoc: UDA134X <-> s3c24xx-i2s mapping ok
ALSA device list:
#0: S3C24XX_UDA134X (UDA134X)
TCP cubic registered
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
lib80211: common rou
tines for IEEE802.11 drivers
s3c2410-rtc s3c2410-rtc: hctosys: invalid date/time
yaffs: dev is 32505858 name is "mtdblock2"
yaffs: passed flags ""
yaffs: Attempting MTD mount on 31.2, "mtdblock2"
yaffs: auto selecting yaffs2
block 1144 is bad
block 1551 is bad
yaffs_read_super: isCheckpointed 0
VFS: Mounted root (yaffs filesystem) on device 31:2.
Freeing init memory: 188K
Warning: unable to open an initial console.
Failed to execute /sbin/init. Attempting defaults...
Kernel panic - not syncing: No init found. Try passing init= option to kernel.
Backtrace:
[<c003b904>] (dump_backtrace+0x0/0x12c) from [<c003ba48>] (dump_stack+0x18/0x1c)
r7:00000000 r6:c001f37c r5:c04a677c r4:c04a6134
[<c003ba30>] (dump_stack+0x0/0x1c) from [<c0048988>] (panic+0x40/0x118)
[<c0048948>] (panic+0x0/0x118) from [<c00374dc>] (init_post+0xac/0x11c)
r3:c381dee8 r2:00000000 r1:c054cfc0 r0:c03fb380
[<c0037430>] (init_post+0x0/0x11c) from [<c0008a2c>] (kernel_init+0xcc/0xf4)
r4:c04a6138
[<c0008960>] (kernel_init+0x0/0xf4) from [<c004af5c>] (do_exit+0x0/0x630)
r6:00000000 r5:00000000 r4:00000000
一直卡在这里,明显是没有引导rootfs起来,但是不知道为什么,下面是板子的环境变量设置:
EmbedSky> print
bootcmd=boot_zImage
bootdelay=0
baudrate=115200
netmask=255.255.255.0
mtdids=nand0=nandflash0
mtdparts=mtdparts=nandflash0:256k@0(bios),128k(params),128k(toc),512k(eboot),1024k(logo),3m(kernel),-(root)
ipaddr=192.168.1.60
ethaddr=00:c0:29:5b:f0:c9
serverip=192.168.1.70
stdin=serial
stdout=serial
stderr=serial
partition=nand0,0
mtddevnum=0
mtddevname=bios
bootargs=noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
Environment size: 425/131068 bytes
请帮忙看看哪里设置有问题?谢谢!
一周热门 更多>