关于启动时mount 文件系统的问题

yjpcn 2009-05-16 07:50:44
最近移植petalinux的,总是在挂载文件系统时死掉,下面是串口打印,

Linux version 2.6.20-uc0 (jinpeng@localhost.localdomain) (gcc version 4.1.1) #67
Sat May 16 16:38:18 CST 2009
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support in CPU. Using static compile-time info
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x4000
setup_memory: min_low_pfn: 0x8c123
setup_memory: max_low_pfn: 0x90000
On node 0 totalpages: 16384
DMA zone: 128 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 16256 pages, LIFO batch:3
Normal zone: 0 pages used for memmap
Built 1 zonelists. Total pages: 16256
Kernel command line:
xps_intc_0_1.00.a INTC at 0x81800000 mapped to 0xFDFFF000
PID hash table entries: 256 (order: 8, 1024 bytes)
xps_timer_1_1.00.a TIMER at 0x83C00000 mapped to 0xFDFFE000
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 63744k/65536k available
Calibrating delay loop... 49.45 BogoMIPS (lpj=247296)
Mount-cache hash table entries: 512
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
xgpio0 #0 at 0x81400000 mapped to 0xC4020000 device: 10,185 not using IRQ
uartlite.0: ttyS0 at MMIO 0x84000000 (irq = 2) is a uartlite
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
jinpeng :mount_root
jinpeng fs_name = ext2
jinpeng:do_mount_root err = -6
VFS: Cannot open root device "<NULL>" or unknown-block(0,0)
Please append a correct "root=" boot option
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
<0>Rebooting in 120 seconds..Machine restart...

在uboot里设定的bootargs是/dev/ram(不知道为什么,),可是kernel启动时打印的“Kernel command line:”为空,
我的image和fs都是通过tftp先down到ram里,然后通过bootm运行,
对启动时挂载文件系统这一块一直都很迷惑,网上也没搜到很符合的东东,哪位大侠指导一下啊??
谢了!!
...全文
615 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
爱吃芋头 2009-07-08
  • 打赏
  • 举报
回复
大侠,我最近也在用petalinux ,我的2.6内核可以挂在文件系统,可是2.4老是报错VFS: Cannot open root device "" or 00:00
Please append a correct "root=" boot option
Kernel panic: VFS: Unable to mount root fs on 00:00

你是怎么设置的能详细点吗
yjpcn 2009-05-20
  • 打赏
  • 举报
回复

总算搞定了,用了initramfs,在make menuconfig里设置了rootfs的路径后,编译的时候才会把文件系统链接进image,
其他的格式还是不没搞通!!哎!!
yjpcn 2009-05-17
  • 打赏
  • 举报
回复

没有找到那个选项,不过找到了default kernel commad string,设置了以后,启动时command line有内容了,
不过还是挂载文件系统挂不上,目前的bootargs 为root=/dev/ram,(root=/dev/ram0也试过了,不行)。

当我把文件系统download到ram中,bootargs应该怎么设置啊??

总感觉这不是一个难题,可是就是搞不定,痛苦啊!!!
rainbowwyl 2009-05-16
  • 打赏
  • 举报
回复
可以在配置内核的时候,添加与kernel command line.
在make menuconfig时候,就能看得到的
yjpcn 2009-05-16
  • 打赏
  • 举报
回复

在网上找了个链接,感觉讲的比较实用!
http://blog.chinaunix.net/u2/70445/showart_1904639.html
明天试试,看能不能解决问题!

23,125

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧