hi all,
可能这个问题不应该在这个邮件列表中问,实在没办法弄了快两天了,还是没解决。
有谁遇到过相同的问题,请指点一下。
介绍一下背景:uboot用的厂商已经移植好的,我所做的是移植内核Linux2.6.32,
制作根文件系统(yaffs2) 基于s3c6410。
uboot参数:
bootargs=noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 rw console=ttySAC0,115200 init=/linuxrc
串口打印信息:
.......................
.......................
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Creating 4 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000400000 : "kernel"
0x000000400000-0x000005400000 : "rootfs"
0x000005400000-0x000010000000 : "file system"
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
TCP cubic registered
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 (yaffs2 filesystem) on device 31:2.
Freeing init memory: 108K
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.
[<c0029974>] (unwind_backtrace+0x0/0xd8) from [<c026e400>] (panic+0x40/0x10c)
[<c026e400>] (panic+0x40/0x10c) from [<c00235d0>] (init_post+0xec/0x120)
[<c00235d0>] (init_post+0xec/0x120) from [<c00085bc>] (kernel_init+0xdc/0x10c)
[<c00085bc>] (kernel_init+0xdc/0x10c) from [<c0024e34>] (kernel_thread_exit+0x0/0x8)
我以前在移植s3c2440的时候也遇到过相同的问题,那时是mkyaffs2image工具的问题。到网上搜很多,
得到的答案是 根文件/dev中少了 console、null。网上提到解决方法都试过了,仍然没有解决, ― ―|||
还有很奇怪的是为什么最后会出现[<c026e400>] (panic+0x40/0x10c).....这样的信息。
请指点下,我该从什么方面去解决这个问题。
thanks all
liaoye
2011-05-27
cjok
_______________________________________________
Linux 内核开发中文邮件列表
Linux-...@zh-kernel.orghttp://zh-kernel.org/mailman/listinfo/linux-kernelLinux 内核开发中文社区:
http://zh-kernel.org