QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 2720|回复: 4

求助:UCLINUX到4510启动时文件系统挂接失败的问题

[复制链接]
发表于 2006-8-18 11:13:31 | 显示全部楼层 |阅读模式
下面是我的启动信息:
ncompressing Linux...................................................... done, booting the kernel.

Linux version 2.4.22-uc0 ([email protected]) (gcc version 2.95.3 20010315 (release)(ColdFire patches - 20010318 from http://fiddes.net/coldfire/)(uClinux XIP and shared lib patches from http://www.snapgear.com/)) #20 三 8月 16 18:43:44 CST 2006

Processor: Samsung S3C4510B revision 6

Architecture: SNDS100

On node 0 totalpages: 2048

zone(0): 0 pages.

zone(1): 2048 pages.

zone(2): 0 pages.

Kernel command line: root=/dev/rom0

Calibrating delay loop... 6.96 BogoMIPS

Memory: 8MB = 8MB total

Memory: 6300KB available (1557K code, 159K data, 40K init)

Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)

Inode cache hash table entries: 512 (order: 0, 4096 bytes)

Mount-cache hash table entries: 512 (order: 0, 4096 bytes)

Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)

Page-cache hash table entries: 2048 (order: 1, 8192 bytes)

POSIX conformance testing by UNIFIX

Linux NET4.0 for Linux 2.4

Based upon Swansea University Computer Society NET3.039

Initializing RT netlink socket

Starting kswapd

Samsung S3C4510 Serial driver version 0.9 (2001-12-27) with no serial options enabled

ttyS00 at 0x3ffd000 (irq = 5) is a S3C4510B

ttyS01 at 0x3ffe000 (irq = 7) is a S3C4510B

RAMDISK driver initialized: 16 RAM disks of 1024K size 1024 blocksize

Samsung S3C4510 Ethernet driver version 0.1 (2002-02-20) <[email protected]>

eth0: 00:40:95:36:35:34

init_mtdchar: allocated major number 90.

init_mtdblock: allocated major number 31.

NET4: Linux TCP/IP 1.0 for NET4.0

IP Protocols: ICMP, UDP, TCP

IP: routing cache hash table of 512 buckets, 4Kbytes

TCP: Hash tables configured (established 512 bind 512)

VFS: Cannot open root device "rom0" or 00:00

Please append a correct "root=" boot option

Kernel panic: VFS: Unable to mount root fs on 00:00

不知道是什么原因,请高手指点指点!
发表于 2006-8-21 22:42:21 | 显示全部楼层
这个应该是常见问题了,就是 root fs 没有找到。
重点留意一下你用的 lds 链接脚本,看看和 romfs_data 相关的部分是否正确设置了?
回复

使用道具 举报

 楼主| 发表于 2006-8-29 09:29:24 | 显示全部楼层
谢谢版主的答复,这个问题我已经解决了,解决的办法是在MAKE MENUCONFIG 时选上RAMDISK 相关的选项,同时加上BLEMEM的一些选项,文件系统中加上支持ROMFS,编译就OK了。
回复

使用道具 举报

发表于 2006-9-8 09:31:58 | 显示全部楼层

挂载文件系统的lds文件在哪里呢?

我想了解挂载文件系统的lds文件在哪里?

uClinux是怎么知道文件系统在FLASH中的位置?

多谢!
回复

使用道具 举报

 楼主| 发表于 2006-9-8 13:38:27 | 显示全部楼层
用的lds 是uClinux-dist/linux-2.4.x/arch/armnommu/vmlinux.lds
在编译内核时将文件系统一起联结到内核IMAGE的末尾,同时定义一些标签指示文件系统所在的位置,再在../linux-2.4.x /drivers/block/blkmem.c中修改相应项,让内核知道文件系统所在的位置
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-20 08:37 , Processed in 0.058760 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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