Linux 内核移植 VFS: Unable to mount root fs on unknown-block(0,0)错误

ClassOps 2012-10-19 05:57:46
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
List of all partitions:
No filesystem could mount root, tried:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

大家帮忙看看这个错误
...全文
3227 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
天行华瑞 2013-03-20
  • 打赏
  • 举报
回复
哪位 大侠 解决 linux问题呢?
ClassOps 2012-10-25
  • 打赏
  • 举报
回复
嗯嗯,的确,我确认了下,我在网上找到相同的实例,发现我 yaffs2 文件系统是以 M 的方式
编译的。我把它改为 * ,则成功。
yong61 2012-10-24
  • 打赏
  • 举报
回复
根文件系统没挂接上
ClassOps 2012-10-20
  • 打赏
  • 举报
回复
我用的是 yaffs2 ,2440的开发板 ,启动参数也设置了。

Enter your selection: load Image of Linux...

Uncompressing Linux................................................................................................ done, booting the kernel.
Linux version 2.6.29 (root@localhost.localdomain) (gcc version 4.3.2 (Sourcery G++ Lite 2008q3-72) ) #18 Fri Oct 19 20:33:58 CST 2012
CPU: ARM920T [41129200] revision 0 (ARMv4T), cr=c0007177
CPU: VIVT data cache, VIVT instruction cache
Machine: SMDK2440
ATAG_INITRD is deprecated; please update your bootloader.
Memory policy: ECC disabled, Data cache writeback
CPU S3C2440A (id 0x32440001)
S3C24XX Clocks, (c) 2004 Simtec Electronics
S3C244X: core 405.000 MHz, memory 101.250 MHz, peripheral 50.625 MHz
CLOCK: Slow mode (1.500 MHz), fast, MPLL on, UPLL on
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
Kernel command line: noinitrd root=/dev/mtdblock2 init=/linuxrc console=ttySAC0
irq: clearing subpending status 00000002
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
console [ttySAC0] enabled
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 61724KB available (2724K code, 311K data, 112K init)
SLUB: Genslabs=12, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Calibrating delay loop... 201.93 BogoMIPS (lpj=504832)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
khelper used greatest stack depth: 6708 bytes left
net_namespace: 324 bytes
NET: Registered protocol family 16
S3C2440: Initialising architecture
S3C2440: IRQ Support
S3C24XX DMA Driver, (c) 2003-2004,2006 Simtec Electronics
DMA channel 0 at c4808000, irq 33
DMA channel 1 at c4808040, irq 34
DMA channel 2 at c4808080, irq 35
DMA channel 3 at c48080c0, irq 36
S3C244X: Clock Support, DVS off
khelper used greatest stack depth: 6588 bytes left
khelper used greatest stack depth: 6332 bytes left
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 3, 40960 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
NET: Registered protocol family 1
fuse init (API version 7.11)
msgmni has been set to 120
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
s3c2440-uart.0: s3c2410_serial0 at MMIO 0x50000000 (irq = 70) is a S3C2440
s3c2440-uart.1: s3c2410_serial1 at MMIO 0x50004000 (irq = 73) is a S3C2440
s3c2440-uart.2: s3c2410_serial2 at MMIO 0x50008000 (irq = 76) is a S3C2440
dm9000 Ethernet Driver, V1.31
mice: PS/2 mouse device common for all mice
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Cannot open root device "mtdblock2" or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)


具体就是这了
盘股之 2012-10-19
  • 打赏
  • 举报
回复
假设你有ramdisk,那么检查该ramdisk的启动地址,格式等等。再有这些没错误的话,建议检查下你的内核大小,解压后的地址是否覆盖了ramdisk的地址,如果是这样,在linux启动的时候,会在最开始报一个地址重叠的警告,虽然不会影响内核后续的启动,但是会影响到后来ramdisk及filesystem的加载。
另外,建议把全部的内核打印信息贴出来,以便大家帮你分析。

21,597

社区成员

发帖
与我相关
我的任务
社区描述
硬件/嵌入开发 驱动开发/核心开发
社区管理员
  • 驱动开发/核心开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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