This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)

BeagleBoard-xM 开发板,使用PSP中提供的u-boot-2010.06,可以正确地启动开发板。但是我用了最新版的u-boot-2012.10,在kernel启动到最后挂载根文件系统的时候,却失败了,提示: Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)。

这个问题困扰我好几周了,希望高手给个提示。多谢!

以下是从串口输出的全部内容。

x-loader 2.0 (Nov 13 2012 22:58:58)
FAT32, fat_length: 1112
Rootdir begins at sector: 2256, offset: 0x0011A000, size: 1
Data begins at: 2254
Cluster size: 1
RootName: u-boot.bin, start: 0x0001AEDC, size: 349656
Starting u-boot...


U-Boot 2012.10 (Nov 17 2012 - 19:32:43)

OMAP36XX/37XX-GP ES1.2, CPU-OPP2, L3-165MHz, Max CPU Clock 1 Ghz
OMAP3 Beagle board + LPDDR/NAND
I2C:   ready
DRAM:  512 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
*** Warning - readenv() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Beagle xM Rev C
No EEPROM on expansion board
Die ID #319000029ff800000168300f04026007
Net:   Net Initialization Skipped
No ethernet found.
Hit any key to stop autoboot:  3 0
OMAP3 beagleboard.org # printenv
baudrate=115200
beaglerev=xMC
bootcmd=if mmc rescan ${mmcdev}; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then run importbootenv;fi;if run loaduimage; then run mmcboot;fi;fi;
bootdelay=3
bootenv=uEnv.txt
buddy=none
camera=none
console=ttyO2,115200n8
defaultdisplay=dvi
dieid#=319000029ff800000168300f04026007
dvimode=640x480MR-16@60
importbootenv=echo Importing environment from ${bootenv} ...; env import -t $loadaddr $filesize
loadaddr=0x80200000
loadbootenv=fatload mmc ${mmcdev} ${loadaddr} ${bootenv}
loaduimage=ext2load mmc ${mmcdev}:2 ${loadaddr} /boot/uImage
loaduimagefat=fatload mmc ${mmcdev} ${loadaddr} uImage
mem=80M@0x80000000
mmcargs=setenv bootargs console=${console} mem=${mem} root=${mmcroot} rootfstype=${mmcrootfstype}
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
mmcdev=0
mmcroot=/dev/mmcblk0p2
mmcrootfstype=ext3 rw rootwait
mpurate=500
rdaddr=0x81000000
usbtty=cdc_acm
vram=12M

Environment size: 995/131068 bytes
OMAP3 beagleboard.org # boot
SD/MMC found on device 0
reading uEnv.txt

0 bytes read
Importing environment from uEnv.txt ...
Loading file "/boot/uImage" from mmc device 0:2
2533164 bytes read
Booting from mmc ...
## Booting kernel from Legacy Image at 80200000 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2533100 Bytes = 2.4 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.37 (root@Fangxm) (gcc version 4.4.3 (GCC) ) #3 Fri Nov 16 09:00:42 CST 2012
CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: OMAP3 Beagle Board
Memory policy: ECC disabled, Data cache writeback
OMAP3630 ES1.2 (l2cache iva sgx neon isp 192mhz_clk )
SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 20320
Kernel command line: console=ttyO2,115200n8 mem=80M@0x80000000 root=/dev/mmcblk0p2 rootfstype=ext3 rw rootwait
PID hash table entries: 512 (order: -1, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 80MB = 80MB total
Memory: 75548k/75548k available, 6372k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xc5800000 - 0xf8000000   ( 808 MB)
    lowmem  : 0xc0000000 - 0xc5000000   (  80 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc0030000   ( 160 kB)
      .text : 0xc0030000 - 0xc04f0a98   (4867 kB)
      .data : 0xc04f2000 - 0xc0540be0   ( 315 kB)
SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:402
Clocking rate (Crystal/Core/MPU): 26.0/200/600 MHz
Reprogramming SDRC clock to 200000000 Hz
dpll3_m2_clk rate change failed: -22
GPMC revision 5.0
IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
Total of 96 interrupts on 1 active controller
Could not get gpios_ick
Could not get gpios_fck
OMAP GPIO hardware version 2.5
OMAP clockevent source: GPTIMER12 at 32768 Hz
Console: colour dummy device 80x30
Calibrating delay loop... 509.42 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
regulator: core version 0.5
regulator: dummy:
NET: Registered protocol family 16
OMAP3 Beagle Rev: unknown 2
Found NAND on CS0
Registering NAND on CS0
Unable to get DVI reset GPIO
OMAP DMA hardware revision 5.0
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
i2c_omap i2c_omap.1: bus 1 rev4.0 at 2600 kHz
twl4030: PIH (irq 7) chaining IRQs 368..375
twl4030: power (irq 373) chaining IRQs 376..383
twl4030: gpio (irq 368) chaining IRQs 384..401
regulator: VUSB1V5: 1500 mV normal standby
regulator: VUSB1V8: 1800 mV normal standby
regulator: VUSB3V1: 3100 mV normal standby
twl4030_usb twl4030_usb: Initialized TWL4030 USB module
regulator: VMMC1: 1850 <--> 3150 mV at 3150 mV normal standby
regulator: VDAC: 1800 mV normal standby
regulator: VDVI: 1800 mV normal standby
regulator: VSIM: 1800 <--> 3000 mV at 1800 mV normal standby
i2c_omap i2c_omap.3: bus 3 rev4.0 at 100 kHz
Advanced Linux Sound Architecture Driver Version 1.0.23.
Switching to clocksource 32k_counter
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
omap2_mbox_probe: platform not supported
msgmni has been set to 147
io scheduler noop registered
io scheduler cfq registered (default)
OMAP DSS rev 2.0
OMAP DISPC rev 3.0
OMAP VENC rev 2
OMAP DSI rev 1.0
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
omap-hsuart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
omap-hsuart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
omap-hsuart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
console [ttyO2] enabled
omap-hsuart.3: ttyO3 at MMIO 0x49042000 (irq = 80) is a OMAP UART3
loop: module loaded
usbcore: registered new interface driver cdc_ether
usbcore: registered new interface driver smsc95xx
usbcore: registered new interface driver cdc_subset
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-omap.0 supply hsusb0 not found, using dummy regulator
ehci-omap.0 supply hsusb1 not found, using dummy regulator
ehci-omap ehci-omap.0: OMAP-EHCI Host Controller
ehci-omap ehci-omap.0: new USB bus registered, assigned bus number 1
ehci-omap ehci-omap.0: irq 77, io mem 0x48064800
ehci-omap ehci-omap.0: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: OMAP-EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.37 ehci_hcd
usb usb1: SerialNumber: ehci-omap.0
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 3 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
input: twl4030_pwrbutton as /devices/platform/i2c_omap.1/i2c-1/1-0049/twl4030_pwrbutton/input/input0
i2c /dev entries driver
Linux video capture interface: v2.00
gspca: v2.10.0 registered
usbcore: registered new interface driver sonixj
usbcore: registered new interface driver uvcvideo
USB Video Class driver (v1.0.0)
omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
omap_device: omap_wdt.-1: new worst case deactivate latency 0: 30517
twl4030_wdt twl4030_wdt: Failed to register misc device
twl4030_wdt: probe of twl4030_wdt failed with error -16
cpuidle: using governor ladder
omap_sham_mod_init: loading omap-sham driver
omap_sham_mod_init: Unsupported cpu
omap_aes_mod_init: loading omap-aes driver
omap_aes_mod_init: Unsupported cpu
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Cirrus Logic CS4270 ALSA SoC Codec Driver
OMAP3 Beagle/Devkit8000 SoC init
asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok
ALSA device list:
  #0: omap3beagle
TCP cubic registered
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
Power Management for TI OMAP3.
clock: disabling unused clocks to save power
omapfb omapfb: failed to allocate framebuffer
omapfb omapfb: failed to allocate fbmem
omapfb omapfb: failed to setup omapfb
omapfb: probe of omapfb failed with error -12
regulator_init_complete: incomplete constraints, leaving VDVI on
regulator_init_complete: incomplete constraints, leaving VDAC on
omap_vout omap_vout: probed for an unknown device
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SD card at address b368
mmcblk0: mmc0:b368 UD    486 MiB (ro)
 mmcblk0: p1 p2
[DEBUG] name:[/dev/root] p:[ext3] flags:[32768] err:[-30]
VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
Please append a correct "root=" boot option; here are the available partitions:
b300          498176 mmcblk0  driver: mmcblk
  b301           72261 mmcblk0p1 00000000-0000-0000-0000-000000000000mmcblk0p1
  b302          425722 mmcblk0p2 00000000-0000-0000-0000-000000000000mmcblk0p2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
[<c004078c>] (unwind_backtrace+0x0/0xf0) from [<c0345ba4>] (panic+0x54/0x16c)
[<c0345ba4>] (panic+0x54/0x16c) from [<c0008d58>] (mount_block_root+0x1f0/0x238)
[<c0008d58>] (mount_block_root+0x1f0/0x238) from [<c0008e40>] (mount_root+0xa0/0xc0)
[<c0008e40>] (mount_root+0xa0/0xc0) from [<c0008f7c>] (prepare_namespace+0x11c/0x174)
[<c0008f7c>] (prepare_namespace+0x11c/0x174) from [<c0008440>] (kernel_init+0x10c/0x14c)
[<c0008440>] (kernel_init+0x10c/0x14c) from [<c003c1c8>] (kernel_thread_exit+0x0/0x8)

x 出现错误。请重试或与管理员联系。