QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1778|回复: 0

嵌入式2.6.19内核移植问题

[复制链接]
发表于 2008-12-23 14:08:40 | 显示全部楼层 |阅读模式
本人在i.MX21平台上进行linux2.6.19内核的移植的时候,系统跑到挂载文件系统的时候出现了问题。如下:
[   52.310000]  Intel/Sharp Extended Query Table at 0x0031
U[   54.310000] Using buffer write method
53.320000] cfi_cmdset_0001: Erase suspend on write enabled
53.330000] RedBoot partition parsing not available
U[   53.330000] Creating 3 MTD partitions on "mxc_nor_flash.0":
U[   53.340000] 0x00000000-0x00100000 : "bootloader"
U[   53.340000] ftl_cs: FTL header not found.
U[   53.350000] 0x00100000-0x00300000 : "kernel"
U[   53.360000] ftl_cs: FTL header not found.
U[   53.360000] 0x00300000-0x02000000 : "file system"
U[   53.370000] ftl_cs: FTL header not found.
U[   54.380000] mice: PS/2 mouse device common for all mice
U[   54.390000] i2c /dev entries driver
U[   54.390000] TCP cubic registered
U[   54.400000] NET: Registered protocol family 1
U[   54.400000] NET: Registered protocol family 17
U[   54.420000] Time: mx27_hrt clocksource has been installed.
U[   52.440000] VFS: Mounted root (cramfs filesystem) readonly.
U[   54.450000] Freeing init memory: 92K
U[   52.450000] Warning: unable to open an initial console.
[   52.480000] Failed to execute /linuxrc.  Attempting defaults...
[   48.490000] Kernel panic - not syncing: No init found.  Try passing init= option to kernel.
[   52.500000]

听说2.6内核在做文件系统的时候要在/dev/目录来创建:
sudo mknod console c 5 1
sudo mknod null c 1 3
但烧进内核后,出现:
......
[   54.390000] TCP cubic registered
[   54.400000] NET: Registered protocol family 1
[   54.400000] NET: Registered protocol family 17
[   54.420000] Time: mx27_hrt clocksource has been installed.
romfsU0U0000] No filesystem could mount root, tried: U
[   48.570000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31,2)
[   52.580000]

不知是文件系统的问题,用在linux2.4.20下移植成功的cramfs文件系统后出现:
......
c02aa3b0 U000] bf60: U
c00764e8 U000] bf80: U
c003aa34 U000] bfa0: U
00000000 U000] bfc0: U
ffffffff U000] bfe0: U
[   52.470000] Backtrace: U
(tty_open+0x124/0x2e9b4>] U
(chrdev_open+0x114/0x14>] U
(__dentry_open+0xd0/0x1ac)] U
r4 = C2C4D2A0 Ur7 = C2C0C2A0 U
(nameidata_to_filp+0x34/0x4
(do_filp_open+0x44/0x4c)x4 U
[   52.470000]  r4 = 00000002 U
(do_sys_open+0x54/0xe0) U>] U
r4 = 00000002 Ur5 = 00000000 U
(sys_open+0x24/0x20) U8>] U
r5 = C001C364 Ur8 = 00000000 U
[   52.470000]  r4 = C02AA3B0 U
(init+0x18c/0x27U U65cc>] U
(do_exit+0x0/0x780)01f02c>] U
r4 = 00000000 Ur7 = 00000000 U
(e59030a0) U0] Code: U
<0>Kernel panic - not syncing: Attempted to kill init!
[   52.880000]
出现以上情况不知道是串口问题还是自己做的根文件系统问题或其他问题?望高手指点,谢谢......
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-12-4 01:28 , Processed in 0.055547 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表