当前位置: 技术问答>linux和unix
关于启动时mount 文件系统的问题
来源: 互联网 发布时间:2016-06-15
本文导语: 最近移植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 CP...
最近移植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 "" 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)
Rebooting in 120 seconds..Machine restart...
在uboot里设定的bootargs是/dev/ram(不知道为什么,),可是kernel启动时打印的“Kernel command line:”为空,
我的image和fs都是通过tftp先down到ram里,然后通过bootm运行,
对启动时挂载文件系统这一块一直都很迷惑,网上也没搜到很符合的东东,哪位大侠指导一下啊??
谢了!!
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 "" 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)
Rebooting in 120 seconds..Machine restart...
在uboot里设定的bootargs是/dev/ram(不知道为什么,),可是kernel启动时打印的“Kernel command line:”为空,
我的image和fs都是通过tftp先down到ram里,然后通过bootm运行,
对启动时挂载文件系统这一块一直都很迷惑,网上也没搜到很符合的东东,哪位大侠指导一下啊??
谢了!!
|
可以在配置内核的时候,添加与kernel command line.
在make menuconfig时候,就能看得到的
在make menuconfig时候,就能看得到的