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: VFS: Cannot open root device "mmcblk0p2" or unknown-block(2,0)

Other Parts Discussed in Thread: OMAP-L138, DA8XX

Hi

     I work at DVSDK 4.01.

     While kernel loading, error found:

omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
VFS: Cannot open root device "mmcblk0p2" or unknown-block(2,0)
Please append a correct "root=" boot option; here are the available partitions:
1f00 256 mtdblock0 (driver?)
1f01 64 mtdblock1 (driver?)
1f02 7808 mtdblock2 (driver?)
1f03 64 mtdblock3 (driver?)
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Backtrace:
[<c002f6f4>] (dump_backtrace+0x0/0x114) from [<c02da210>] (dump_stack+0x18/0x1c)
r7:c0025a08 r6:00008000 r5:c3812000 r4:c03e91b8
[<c02da1f8>] (dump_stack+0x0/0x1c) from [<c02da278>] (panic+0x64/0x134)
[<c02da214>] (panic+0x0/0x134) from [<c0008f98>] (mount_block_root+0x25c/0x2ac)
r3:00000000 r2:00000001 r1:c3823f60 r0:c03642b6
[<c0008d3c>] (mount_block_root+0x0/0x2ac) from [<c000903c>] (mount_root+0x54/0x6c)
[<c0008fe8>] (mount_root+0x0/0x6c) from [<c00091c0>] (prepare_namespace+0x16c/0x1c4)
r5:c0025a1d r4:c03e8ca0
[<c0009054>] (prepare_namespace+0x0/0x1c4) from [<c00084c0>] (kernel_init+0xf0/0x12c)
r5:c0024484 r4:c03e8a60
[<c00083d0>] (kernel_init+0x0/0x12c) from [<c0043624>] (do_exit+0x0/0x6bc)
r5:00000000 r4:00000000

      Why? What should I do?

     Thanks very much!

  • Hi,

    VFS: Cannot open root device "mmcblk0p2" or unknown-block(2,0)
    Please append a correct "root=" boot option; here are the available partitions:


    This args says that need to mount filesystem on SD card,

    Could you please provide your boot args which is used at u-boot.

    1) Do you have filesystem on micro SD card or SD card?

  • Hi  :

         Thanks very much!

        1 boot args:

                setenv bootargs 'console=tty2,115200n8 noinitrd rw root=/dev/mmcblk0p2 mem=64M

         2  I had filesystem on my Micro SD card.I make it EXT3 types. And I can mount it to Ubuntu ok.

         What's problem? 

     

  • Hi,

                setenv bootargs 'console=tty2,115200n8 noinitrd rw root=/dev/mmcblk0p2 mem=64M

    Try this "setenv bootargs 'console=tty2,115200n8 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 rootwait mem=64M"

    /dev/mmcblk0p2


    I think that you have created filesystem on 2nd partition (cross check)

    Have you enabled "ext3" support in kernel configuration.

    make menuconfig ARCH=arm CROSS_COMPILE=arm-arago-linux-gnueabi-

    File systems  --->

    <*> Ext3 journalling file system support

  • Hi Titusrathinaraj Stalin:

         Yes. I had enable it:

        Is other to config?

        Thanks very much!

  • Hi,

         2  I had filesystem on my Micro SD card.I make it EXT3 types. And I can mount it to Ubuntu ok.

    Do you have a filesystem on SD card's 2nd partition?


    Try this "setenv bootargs 'console=tty2,115200n8 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 rootwait mem=64M"

    What about the results?

    Are you facing same issue or different now?

    Please let me know the results.

  • Hi Titusrathinaraj:

        Thanks.

        Yes. I created 2 partitions on my SD card.

      What's wrong?

  • Hi,

    Please refer the following thread to boot and mount filesystem from SD card.

    http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/327050.aspx

    I hope it helps.

  • Hi Titusrathinaraj :

         Thanks very much!

         But according that, the problem exist yet.

         Can you help me to do it?

     

         Thanks.

  • Hi,

    Can you please share your complete bootup logs, stpes & procedures what you have followed?

    Please attach the logs and not a simple text paste on the thread,

    Thanks for your understanding.

  • Hi Titusrathinaraj:

       Thanks.

       all log is:

    Loading from NAND 256MiB 3,3V 8-bit, offset 0x300000
    Image Name: Linux-2.6.33-rc4
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2124584 Bytes = 2 MB
    Load Address: c0008000
    Entry Point: c0008000
    ## Booting kernel from Legacy Image at c0700000 ...
    Image Name: Linux-2.6.33-rc4
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 2124584 Bytes = 2 MB
    Load Address: c0008000
    Entry Point: c0008000
    Verifying Checksum ... OK
    Loading Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.33-rc4 (root@ubuntu) (gcc version 4.4.3 (ctng-1.6.1) ) #8 PREEMPT Mon Mar 17 09:59:50 HKT 2014
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138/am18xx variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
    Kernel command line: console=tty2,115200n8 noinitrd rw root=/dev/mmcblk0p2 mem=64M
    PID hash table entries: 256 (order: -2, 1024 bytes)
    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: 60420KB available (3988K code, 312K data, 148K init, 0K highmem)
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    NET: Registered protocol family 16
    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
    pca953x 1-0020: failed reading register
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    vpif vpif: vpif probe success
    Switching to clocksource timer0_1
    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
    Waiting for USB PHY clock good...
    musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    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: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    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.
    EMAC: MII PHY configured, RMII PHY will not be functional
    JFFS2 version 2.2. (NAND) 漏 2001-2006 Red Hat, Inc.
    msgmni has been set to 118
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
    Console: switching to colour frame buffer device 60x34
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
    console [ttyS2] enabled
    brd: module loaded
    spi_davinci spi_davinci.1: DaVinci SPI driver in EDMA mode
    Using RX channel = 18 , TX channel = 19 and event queue = 1
    m25p80 spi1.0: non-JEDEC variant of m25p64
    m25p80 spi1.0: m25p64 (8192 Kbytes)
    Creating 4 MTD partitions on "m25p80":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000050000 : "U-Boot Environment"
    0x000000050000-0x0000007f0000 : "Linux"
    0x0000007f0000-0x000000800000 : "MAC Address"
    spi_davinci spi_davinci.1: Controller at 0xfef0e000
    console [netcon0] enabled
    netconsole: network logging started
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 2
    ohci ohci.0: irq 59, io mem 0x01e25000
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    Linux video capture interface: v2.00
    adv7343 1-002a: chip found @ 0x54 (i2c-gpio1)
    adv7343 1-002a: Error initializing
    vpif_display vpif_display: Error registering v4l2 subdevice
    vpif_display vpif_display: VPIF IRQ request failed
    vpif_capture vpif_capture: Error registering v4l2 subdevice
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v0.1.0)
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    usbcore: registered new interface driver snd-usb-audio
    No device for DAI tlv320aic3x
    asoc: tlv320aic3x <-> davinci-i2s mapping ok
    ALSA device list:
    #0: DA850/OMAP-L138 EVM (tlv320aic3x)
    TCP cubic registered
    NET: Registered protocol family 17
    Clocks: disable unused i2c1
    Clocks: disable unused emac
    Clocks: disable unused aemif
    Clocks: disable unused spi0
    Clocks: disable unused mcbsp0
    Clocks: disable unused mcbsp1
    davinci_emac_probe: using random MAC addr: f2:50:ec:3c:64:7b
    emac-mii: probed
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    Root-NFS: No NFS server available, giving up.
    VFS: Unable to mount root fs via NFS, trying floppy.
    VFS: Cannot open root device "mmcblk0p2" or unknown-block(2,0)
    Please append a correct "root=" boot option; here are the available partitions:
    1f00 256 mtdblock0 (driver?)
    1f01 64 mtdblock1 (driver?)
    1f02 7808 mtdblock2 (driver?)
    1f03 64 mtdblock3 (driver?)
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    Backtrace:
    [<c00316f4>] (dump_backtrace+0x0/0x114) from [<c031eaf8>] (dump_stack+0x18/0x1c)
    r7:c03b1ebf r6:00008000 r5:c3812000 r4:c0441498
    [<c031eae0>] (dump_stack+0x0/0x1c) from [<c031eb60>] (panic+0x64/0x134)
    [<c031eafc>] (panic+0x0/0x134) from [<c0008fd4>] (mount_block_root+0x1d8/0x218)
    r3:00000000 r2:00000001 r1:c3823f60 r0:c03b1f66
    [<c0008dfc>] (mount_block_root+0x0/0x218) from [<c00090d8>] (mount_root+0xc4/0xfc)
    [<c0009014>] (mount_root+0x0/0xfc) from [<c000927c>] (prepare_namespace+0x16c/0x1c4)
    r5:c0026a1d r4:c0440f80
    [<c0009110>] (prepare_namespace+0x0/0x1c4) from [<c00084c0>] (kernel_init+0xf0/0x12c)
    r5:c00251d0 r4:c0440d40
    [<c00083d0>] (kernel_init+0x0/0x12c) from [<c0045624>] (do_exit+0x0/0x6bc)
    r5:00000000 r4:00000000

  • Hi Li

    Titus Says said:

    Please attach the logs and not a simple text paste on the thread,

    I told you that do not put logs on thread directly, instead attach the logs,

    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138/am18xx variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
    Kernel command line: console=tty2,115200n8 noinitrd rw root=/dev/mmcblk0p2 mem=64M
    PID hash table entries: 256 (order: -2, 1024 bytes)
    Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)


    I told you to change the below u-boot bootargs,

    setenv bootargs 'console=tty2,115200n8 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 rootwait mem=64M

    That also not happened :(

    Please change the above bootargs in u-boot shell.

    If you dont know how to change it then please revert back.

  • Hi Titus :

        Sorry!

        After run at:

    setenv bootargs 'console=tty2,115200n8 noinitrd rw rootfstype=ext3 root=/dev/mmcblk0p2 rootwait mem=64M

       error exist yet.

     Stop at:

    Waiting for root device /dev/mmcblk0p2...

     All log see at:

    Uncompressing Linux... done, booting the kernel.
    Linux version 2.6.33-rc4 (root@ubuntu) (gcc version 4.4.3 (ctng-1.6.1) ) #8 PREEMPT Mon Mar 17 09:59:50 HKT 2014
    CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
    CPU: VIVT data cache, VIVT instruction cache
    Machine: DaVinci DA850/OMAP-L138/AM18xx EVM
    Memory policy: ECC disabled, Data cache writeback
    DaVinci da850/omap-l138/am18xx variant 0x1
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
    Kernel command line: console=tty2,115200n8 noinitrd rw rootfstype=ext2 root=/dev/mmcblk0p2 rootwait mem=64M
    PID hash table entries: 256 (order: -2, 1024 bytes)
    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: 60420KB available (3988K code, 312K data, 148K init, 0K highmem)
    SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    Hierarchical RCU implementation.
    NR_IRQS:245
    Console: colour dummy device 80x30
    Calibrating delay loop... 149.50 BogoMIPS (lpj=747520)
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    DaVinci: 144 gpio irqs
    NET: Registered protocol family 16
    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
    pca953x 1-0020: failed reading register
    i2c-gpio i2c-gpio.1: using pins 20 (SDA) and 21 (SCL)
    vpif vpif: vpif probe success
    Switching to clocksource timer0_1
    musb_hdrc: version 6.0, cppi4.1-dma, host, debug=0
    Waiting for USB PHY clock good...
    musb_hdrc: USB Host mode controller at fee00000 using DMA, IRQ 58
    musb_hdrc musb_hdrc: MUSB HDRC host driver
    musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 1 port detected
    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: 1, 8192 bytes)
    TCP: Hash tables configured (established 2048 bind 2048)
    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.
    EMAC: MII PHY configured, RMII PHY will not be functional
    JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
    msgmni has been set to 118
    io scheduler noop registered (default)
    da8xx_lcdc da8xx_lcdc.0: GLCD: Found Sharp_LK043T1DG01 panel
    Console: switching to colour frame buffer device 60x34
    Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
    serial8250.0: ttyS0 at MMIO 0x1c42000 (irq = 25) is a 16550A
    serial8250.0: ttyS1 at MMIO 0x1d0c000 (irq = 53) is a 16550A
    serial8250.0: ttyS2 at MMIO 0x1d0d000 (irq = 61) is a 16550A
    console [ttyS2] enabled
    brd: module loaded
    spi_davinci spi_davinci.1: DaVinci SPI driver in EDMA mode
    Using RX channel = 18 , TX channel = 19 and event queue = 1
    m25p80 spi1.0: non-JEDEC variant of m25p64
    m25p80 spi1.0: m25p64 (8192 Kbytes)
    Creating 4 MTD partitions on "m25p80":
    0x000000000000-0x000000040000 : "U-Boot"
    0x000000040000-0x000000050000 : "U-Boot Environment"
    0x000000050000-0x0000007f0000 : "Linux"
    0x0000007f0000-0x000000800000 : "MAC Address"
    spi_davinci spi_davinci.1: Controller at 0xfef0e000 
    console [netcon0] enabled
    netconsole: network logging started
    ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    ohci ohci.0: DA8xx OHCI
    ohci ohci.0: new USB bus registered, assigned bus number 2
    ohci ohci.0: irq 59, io mem 0x01e25000
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    omap_rtc: RTC power up reset detected
    i2c /dev entries driver
    Linux video capture interface: v2.00
    adv7343 1-002a: chip found @ 0x54 (i2c-gpio1)
    adv7343 1-002a: Error initializing
    vpif_display vpif_display: Error registering v4l2 subdevice
    vpif_display vpif_display: VPIF IRQ request failed
    vpif_capture vpif_capture: Error registering v4l2 subdevice
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v0.1.0)
    watchdog watchdog: heartbeat 60 sec
    cpuidle: using governor ladder
    cpuidle: using governor menu
    davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    Advanced Linux Sound Architecture Driver Version 1.0.21.
    usbcore: registered new interface driver snd-usb-audio
    No device for DAI tlv320aic3x
    asoc: tlv320aic3x <-> davinci-i2s mapping ok
    ALSA device list:
      #0: DA850/OMAP-L138 EVM (tlv320aic3x)
    TCP cubic registered
    NET: Registered protocol family 17
    Clocks: disable unused i2c1
    Clocks: disable unused emac
    Clocks: disable unused aemif
    Clocks: disable unused spi0
    Clocks: disable unused mcbsp0
    Clocks: disable unused mcbsp1
    davinci_emac_probe: using random MAC addr: 0a:ae:c4:a5:cd:b7
    emac-mii: probed
    omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    Waiting for root device /dev/mmcblk0p2...

    Thanks very much!

     

  • Hi,

    Thanks for your understanding,

    Kernel command line: console=tty2,115200n8 noinitrd rw rootfstype=ext2 root=/dev/mmcblk0p2 rootwait mem=64M

    From the attached logs,

    Have you formatted your SD card's 2nd partition as a ext2 ?

  • Hi,

    Please ensure that you have enabled the "ext2" support in booted kernel.