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.

Getting error "VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)" while booting from SD card, DVSDK 4.X, platform: DM36X

Other Parts Discussed in Thread: PCA9543A, TSC2004, THS7303, TVP5146, TVP7002, THS7353, TPS65910, DA8XX, AM3517, TCA6416, TLV320AIC23

Champs,

           I am getting below error while booting from SD card, I am using the DVSDK 04.02.00.06, platform: DM365 and SD card boot mode.

          This was working for last couple of months, suddenly it starts giving this problem consistently. Regardless of i change many SD card and prepare the SD card as a fresh using the steps in Software Developers Guide, i get the same problem.

           Wondering if my Ubunto machine is corrupted in preparing the SD card, Also wondering if there a solution without reinstalling my ubunto machine.

           Also thinking if my EVM gone bad, but why it would give problem for only mounting file system partition from SD card, at the same time the trace also shows the partition is mmcblk0p2 is valid one.

============================================================================

DM36x initialization passed!
TI UBL Version: 1.50
Booting Catalog Boot Loader
BootMode = SD/MMC
Starting SDMMC Copy...
   DONE
Jumping to entry point at 0x81080000.


U-Boot 2010.12-rc2 (Mar 24 2011 - 19:27:17)

Cores: ARM 297 MHz
DDR:   243 MHz
I2C:   ready
DRAM:  128 MiB
NAND:  2048 MiB
MMC:   davinci: 0, davinci: 1
Bad block table found at page 524224, version 0x01
Bad block table found at page 1048512, version 0x01
Bad block table found at page 524160, version 0x01
Bad block table found at page 1048448, version 0x01
nand_read_bbt: Bad block at 0x000009240000
nand_read_bbt: Bad block at 0x000009980000
nand_read_bbt: Bad block at 0x00001ff00000
nand_read_bbt: Bad block at 0x000020ba0000
nand_read_bbt: Bad block at 0x00002a220000
nand_read_bbt: Bad block at 0x000031b00000
nand_read_bbt: Bad block at 0x000031fe0000
nand_read_bbt: Bad block at 0x00003c180000
nand_read_bbt: Bad block at 0x000045ce0000
nand_read_bbt: Bad block at 0x0000467a0000
nand_read_bbt: Bad block at 0x000050b60000
nand_read_bbt: Bad block at 0x000053b60000
nand_read_bbt: Bad block at 0x000054500000
nand_read_bbt: Bad block at 0x000073980000
nand_read_bbt: Bad block at 0x0000748c0000
nand_read_bbt: Bad block at 0x0000754e0000
nand_read_bbt: Bad block at 0x00007cfa0000
nand_read_bbt: Bad block at 0x00007fea0000
*** Warning - bad CRC, using default environment

Net:   Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot:  0
reading boot.scr

432 bytes read
## Executing script at 80600000
reading uImage

2148124 bytes read
## Booting kernel from Legacy Image at 80700000 ...
   Image Name:   Arago/2.6.32.17-psp03.01.01.39/d
   Created:      2011-03-25   0:30:27 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2148060 Bytes = 2 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.32.17-davinci1 (sdk@nemo) (gcc version 4.3.3 (Sourcery G++ Lit
e 2009q1-203) ) #1 PREEMPT Thu Mar 24 19:30:24 CDT 2011
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: DaVinci DM36x EVM
Memory policy: ECC disabled, Data cache writeback
DaVinci dm365_rev1.1 variant 0x0
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 13716
Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p2 rw ip=off mem=54
M video=davincifb:vid0=OFF:vid1=OFF:osd0=720x576x16,4050K dm365_imp.oper_mode=0
davinci_capture.device_type=4 vpfe_capture.cont_bufsize=6291456 davinci_enc_mngr
.ch0_output=COMPONENT davinci_enc_mngr.ch0_mode=480P-60 rootwait
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: 54MB = 54MB total
Memory: 50076KB available (4024K code, 393K data, 144K 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... 147.86 BogoMIPS (lpj=739328)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
DaVinci: 8 gpio irqs
NET: Registered protocol family 16
davinci_serial_init:97: failed to get UART2 clock
EVM: HD imager video input
bio: create slab <bio-0> at 0
DM365 IPIPE initialized in Continuous mode
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pca9543a_probe
vpss vpss: dm365_vpss vpss probed
vpss vpss: dm365_vpss vpss probe success
dm365_afew_hw_init
ch0 default output "COMPONENT", mode "480P-60"
VPBE Encoder Initialized
cfg80211: Using static regulatory domain info
cfg80211: Regulatory domain: US
        (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
        (2402000 KHz - 2472000 KHz @ 40000 KHz), (600 mBi, 2700 mBm)
        (5170000 KHz - 5190000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5190000 KHz - 5210000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5210000 KHz - 5230000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5230000 KHz - 5330000 KHz @ 40000 KHz), (600 mBi, 2300 mBm)
        (5735000 KHz - 5835000 KHz @ 40000 KHz), (600 mBi, 3000 mBm)
cfg80211: Calling CRDA for country: US
LogicPD encoder initialized
Switching to clocksource timer0_1
musb_hdrc: version 6.0, cppi-dma, host, debug=0
musb_hdrc: USB Host mode controller at fec64000 using DMA, IRQ 12
musb_hdrc musb_hdrc: MUSB HDRC host driver
musb_hdrc musb_hdrc: new USB bus registered, assigned bus number 1
usb usb1: configuration #1 chosen from 1 choice
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
NET: Registered protocol family 1
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 97
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered (default)
davincifb davincifb.0: dm_osd0_fb: Initial window configuration is invalid.
Console: switching to colour frame buffer device 90x36
davincifb davincifb.0: dm_osd0_fb: 720x576x16@0,0 with framebuffer size 4050KB
davincifb davincifb.0: dm_vid0_fb: 0x0x16@0,0 with framebuffer size 1020KB
davincifb davincifb.0: dm_osd1_fb: 720x480x4@0,0 with framebuffer size 675KB
davincifb davincifb.0: dm_vid1_fb: 0x0x16@0,0 with framebuffer size 1020KB
usb 1-1: new low speed USB device using musb_hdrc and address 2
usb 1-1: configuration #1 chosen from 1 choice
DM365 IPIPEIF probed
imp serializer initialized
davinci_previewer initialized
davinci_resizer initialized
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x1c20000 (irq = 40) is a 16550A
console [ttyS0] enabled
brd: module loaded
at24 1-0050: 32768 byte 24c256 EEPROM (writable)
Read MAC addr from EEPROM: 00:0e:99:02:c7:b2
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xd3 (Micron NAND 1GiB 3,3V 8-bit)
2 NAND chips detected
Creating 5 MTD partitions on "davinci_nand.0":
0x000000000000-0x000000f00000 : "bootloader"
0x000000f00000-0x000001000000 : "params"
0x000001000000-0x000001400000 : "kernel"
0x000001400000-0x000021400000 : "filesystem1"
0x000021400000-0x000080000000 : "filesystem2"
davinci_nand davinci_nand.0: controller rev. 2.3
spi_davinci spi_davinci.0: DaVinci SPI driver in EDMA mode
Using RX channel = 17 , TX channel = 16 and event queue = 3
at25 spi0.0: 8 KByte at25640 eeprom, pagesize 32
spi_davinci spi_davinci.0: Controller at 0xfec66000
console [netcon0] enabled
netconsole: network logging started
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usbtest
mice: PS/2 mouse device common for all mice
tsc2004: probe of 1-0049 failed with error -121
input: DM365 EVM Controls as /devices/platform/i2c_davinci.1/i2c-1/1-0025/input/
input0
i2c /dev entries driver
Linux video capture interface: v2.00
ths7303 1-002c: chip found @ 0x58 (DaVinci I2C adapter)
vpfe_init
vpfe-capture: vpss clock vpss_master enabled
vpfe-capture vpfe-capture: v4l2 device registered
vpfe-capture vpfe-capture: video device registered
EVM: switch to tvp5146 SD video input
tvp514x 1-005d: tvp514x 1-005d decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
EVM: switch to tvp7002 HD video input
tvp7002 1-005c: tvp7002 1-005c decoder driver registered !!
vpfe-capture vpfe-capture: v4l2 sub device tvp7002 registered
EVM: switch to tvp7002 HD video input
ths7353 1-002e: chip found @ 0x5c (DaVinci I2C adapter)
ths7353 1-002e: No platform data!!
vpfe-capture vpfe-capture: v4l2 sub device ths7353 registered
vpfe_register_ccdc_device: DM365 ISIF
DM365 ISIF is registered with vpfe.
af major#: 252, minor# 0
AF Driver initialized
aew major#: 251, minor# 0
AEW Driver initialized
Trying to register davinci display video device.
layer=c20bf800,layer->video_dev=c20bf970
Trying to register davinci display video device.
layer=c20bfc00,layer->video_dev=c20bfd70
davinci_init:DaVinci V4L2 Display Driver V1.0 loaded
watchdog watchdog: heartbeat 60 sec
davinci_mmc davinci_mmc.0: Using DMA, 4-bit mode
input: Dell Dell USB Mouse as /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input
/input1
generic-usb 0003:413C:3200.0001: input: USB HID v1.10 Mouse [Dell Dell USB Mouse
] on usb-musb_hdrc-1/input0
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.21.
No device for DAI tlv320aic3x
No device for DAI davinci-i2s
asoc: tlv320aic3x <-> davinci-i2s mapping ok
ALSA device list:
  #0: DaVinci EVM (tlv320aic3x)
TCP cubic registered
NET: Registered protocol family 17
lib80211: common routines for IEEE802.11 drivers
Clocks: disable unused mmcsd1
Clocks: disable unused spi1
Clocks: disable unused spi2
Clocks: disable unused spi3
Clocks: disable unused spi4
Clocks: disable unused pwm0
Clocks: disable unused pwm1
Clocks: disable unused pwm2
Clocks: disable unused pwm3
Clocks: disable unused timer1
Clocks: disable unused timer3
Clocks: disable unused emac
Clocks: disable unused voice_codec
Clocks: disable unused rto
Clocks: disable unused mjcp
mmc0: new SDHC card at address e624
mmcblk0: mmc0:e624 SD08G 7.40 GiB (ro)
 mmcblk0: p1 p2
emac-mii: probed
VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
Please append a correct "root=" boot option; here are the available partitions:
1f00           15360 mtdblock0 (driver?)
1f01            1024 mtdblock1 (driver?)
1f02            4096 mtdblock2 (driver?)
1f03          524288 mtdblock3 (driver?)
1f04         1552384 mtdblock4 (driver?)
b300         7761920 mmcblk0 driver: mmcblk
  b301           80325 mmcblk0p1
  b302         7518420 mmcblk0p2
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
Backtrace:
[<c00305f4>] (dump_backtrace+0x0/0x114) from [<c031b154>] (dump_stack+0x18/0x1c)
 r7:00008000 r6:c2015000 r5:c0025808 r4:c044b9b0
[<c031b13c>] (dump_stack+0x0/0x1c) from [<c031b1ac>] (panic+0x54/0x12c)
[<c031b158>] (panic+0x0/0x12c) from [<c0008fbc>] (mount_block_root+0x1e0/0x220)
 r3:00000001 r2:c2027e98 r1:c2027f60 r0:c03b4166
[<c0008ddc>] (mount_block_root+0x0/0x220) from [<c00090c0>] (mount_root+0xc4/0xf
c)
 r8:00000000 r7:00000000 r6:00000000 r5:c0025808 r4:0b300002
[<c0008ffc>] (mount_root+0x0/0xfc) from [<c0009268>] (prepare_namespace+0x170/0x
1c8)
 r5:c0025808 r4:c044b4c0
[<c00090f8>] (prepare_namespace+0x0/0x1c8) from [<c00084bc>] (kernel_init+0xe4/0
x118)
 r5:00000000 r4:c044b280
[<c00083d8>] (kernel_init+0x0/0x118) from [<c0045170>] (do_exit+0x0/0x668)
 r5:00000000 r4:00000000
============================================================================

Thanks & Regards

Velan

  • It does seem odd that u-boot, boot.scr and the linux kernel can be read from parition 1 but filesystem cannot be read from partition 2. Eveyrthing looks to be okay except for the "(ro)" part of the line

    mmcblk0: mmc0:e624 SD08G 7.40 GiB (ro)

    I think that means the driver thinks the card is read-only. The root file system needs to writeable. Check the lock switch on the card. You might have to trace the Write Protect signal from the socket to the processor. I am not familiar with the DM365 EVM. Maybe you need to reseat some boards. Maybe something got enabled in the kernel that is taking over that pin.

  • Hi Wong,

         Thanks for you reply.

         I do realize that the ro mark during boot is not correct, I confirmed this by looking at older traces i archived. But Regardless of what ever the switch setting be now i always see SD card be recognized as ro.

        It is the same old kernel iam using.

         It sounds like my EVM is dead exactly at write protect pin,

    Thanks & Regards

    Velan

  • Hi Velan,

        Please let me know if you had any solution on this.

    Regards,

    Amit

  • Amit,

            Finally i had to change the EVM, On the different EVM it works fine. It is strange that the EVM i had faced problem gone bad exactly at the write-protect pin of the SD card.

    Thanks & Regards,

    Velan

  • Hello there,
    looks like I have the same problem here. Suddenly, the am335x evm couldn't open mmcb1k0p anymore. First I thought that something went wrong with my kernel configuration. I had the unfortunate coincidence that when I switched back to previous uImage it worked once more. But afterwards it failed every time.
    I have to assume that my board is broke too? I got the same mmcblk0: mmc0:1234 SA04G 3.63 GiB (ro) message.
    Is the only possibility to fix this to exchange the board?
    Below the start up trace:
    U-Boot SPL 2011.09 (Feb 09 2012 - 15:38:59)
    Texas Instruments Revision detection unimplemented
    OMAP SD/MMC: 0
    reading u-boot.img
    reading u-boot.img


    U-Boot 2011.09 (Feb 09 2012 - 15:11:31)

    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    Found a daughter card connected
    NAND:  HW ECC Hamming Code selected
    nand_get_flash_type: unknown NAND device: Manufacturer ID: 0x07, Chip ID: 0x07
    No NAND device found!!!
    0 MiB
    MMC:   OMAP SD/MMC: 0
    *** Warning - readenv() failed, using default environment

    Net:   cpsw
    Hit any key to stop autoboot:  0
    SD/MMC found on device 0
    reading uEnv.txt

    ** Unable to read "uEnv.txt" from mmc 0:1 **
    reading uImage

    3397392 bytes read
    ## Booting kernel from Legacy Image at 80007fc0 ...
       Image Name:   Linux-3.2.0-r3
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3397328 Bytes = 3.2 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       XIP Kernel Image ... OK
    OK

    Starting kernel ...

    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0-r3 (one@dev) (gcc version 4.5.1 (Sourcery G++ Lite 2010.09-50) ) #1 Wed Jun 6 10:17:52 CEST 2012
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait ip=none
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 253060k/253060k available, 9084k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05dc000   (5968 kB)
    [    0.000000]       .init : 0xc05dc000 - 0xc0618000   ( 240 kB)
    [    0.000000]       .data : 0xc0618000 - 0xc0675e30   ( 376 kB)
    [    0.000000]        .bss : 0xc0675e54 - 0xc06a2c08   ( 180 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000190] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.057155] pid_max: default: 32768 minimum: 301
    [    0.057280] Security Framework initialized
    [    0.057381] Mount-cache hash table entries: 512
    [    0.057767] CPU: Testing write buffer coherency: ok
    [    0.077720] omap_hwmod: gfx: failed to hardreset
    [    0.093943] omap_hwmod: pruss: failed to hardreset
    [    0.095078] print_constraints: dummy:
    [    0.095452] NET: Registered protocol family 16
    [    0.097695] OMAP GPIO hardware version 0.1
    [    0.100341] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.102591]  omap_i2c.1: alias fck already exists
    [    0.103501]  omap2_mcspi.1: alias fck already exists
    [    0.103724]  omap2_mcspi.2: alias fck already exists
    [    0.103985]  edma.0: alias fck already exists
    [    0.104007]  edma.0: alias fck already exists
    [    0.104027]  edma.0: alias fck already exists
    [    0.129254] bio: create slab <bio-0> at 0
    [    0.131481] SCSI subsystem initialized
    [    0.133171] usbcore: registered new interface driver usbfs
    [    0.133496] usbcore: registered new interface driver hub
    [    0.133706] usbcore: registered new device driver usb
    [    0.134021] registerd cppi-dma Intr @ IRQ 17
    [    0.134034] Cppi41 Init Done Qmgr-base(d083a000) dma-base(d0838000)
    [    0.134044] Cppi41 Init Done
    [    0.134078] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.134382] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.147221] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.149117] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.151528] print_constraints: VRTC:
    [    0.153003] print_constraints: VIO: at 1800 mV
    [    0.155319] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal
    [    0.157627] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.158641] print_constraints: VDD3: 5000 mV
    [    0.160063] print_constraints: VDIG1: at 1800 mV
    [    0.161502] print_constraints: VDIG2: at 1800 mV
    [    0.162924] print_constraints: VPLL: at 1800 mV
    [    0.164352] print_constraints: VDAC: at 1800 mV
    [    0.165786] print_constraints: VAUX1: at 1800 mV
    [    0.167223] print_constraints: VAUX2: at 3300 mV
    [    0.168653] print_constraints: VAUX33: at 3300 mV
    [    0.170097] print_constraints: VMMC: at 3300 mV
    [    0.170613] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.171548] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.172720] Switching to clocksource gp timer
    [    0.188530] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.188714] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.189907] musb-hdrc musb-hdrc.0: USB OTG mode controller at d081c000 using DMA, IRQ 18
    [    0.190080] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.190792] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.190895] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.191035] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.191051] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.191065] usb usb1: Product: MUSB HDRC host driver
    [    0.191076] usb usb1: Manufacturer: Linux 3.2.0-r3 musb-hcd
    [    0.191087] usb usb1: SerialNumber: musb-hdrc.1
    [    0.191868] hub 1-0:1.0: USB hub found
    [    0.191900] hub 1-0:1.0: 1 port detected
    [    0.192440] musb-hdrc musb-hdrc.1: USB Host mode controller at d081e800 using DMA, IRQ 19
    [    0.192959] NET: Registered protocol family 2
    [    0.193158] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.193463] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.193624] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.193720] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.193732] TCP reno registered
    [    0.193745] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.193769] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.193951] NET: Registered protocol family 1
    [    0.194202] RPC: Registered named UNIX socket transport module.
    [    0.194216] RPC: Registered udp transport module.
    [    0.194225] RPC: Registered tcp transport module.
    [    0.194234] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.194492] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.206700] VFS: Disk quotas dquot_6.5.2
    [    0.206771] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.207330] msgmni has been set to 494
    [    0.208068] io scheduler noop registered
    [    0.208081] io scheduler deadline registered
    [    0.208142] io scheduler cfq registered (default)
    [    0.211991] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.844967] console [ttyO0] enabled
    [    0.849270] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.857138] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.864937] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.872707] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.880497] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.897808] brd: module loaded
    [    0.906098] loop: module loaded
    [    0.909560] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.916043] i2c-core: driver [tsl2550] using legacy resume method
    [    0.922458] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.936376] Detected a daughter card on AM335x EVM..
    [    0.941370] Unknown CPLD version found, falling back to 1.0A
    [    0.947502] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.962668] Board name: A33515BB
    [    0.966044] Board version: 1.1A
    [    0.969313] SKU: SKU#01
    [    0.972390] The board is general purpose EVM in profile 0
    [    0.978543]  da8xx_lcdc.0: alias fck already exists
    [    0.984205] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.007609] Console: switching to colour frame buffer device 100x30
    [    1.022726] TSC connected to beta GP EVM
    [    1.028235] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.033288] Registering NAND on CS0
    [    1.037647]  omap_i2c.2: alias fck already exists
    [    1.062821] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.069533] tsl2550 2-0039: standard operating mode
    [    1.074808] tsl2550: probe of 2-0039 failed with error -121
    [    1.081044]  davinci-mcasp.1: alias fck already exists
    [    1.086925]  omap_hsmmc.0: alias fck already exists
    [    1.092323]  omap_hsmmc.2: alias fck already exists
    [    1.097721] Configure Bluetooth Enable pin...
    [    1.103547] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.111146] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.139299] lis3lv02d: unknown sensor type 0x87
    [    1.144111] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    1.152017] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.159348] omap2-nand driver initializing
    [    1.164034] No NAND device found
    [    1.167655] No NAND device found
    [    1.171208] OneNAND driver initializing
    [    1.176569] CAN device driver interface
    [    1.180569] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.232775] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.239225] davinci_mdio davinci_mdio.0: detected phy mask fffffffe
    [    1.246428] davinci_mdio.0: probed
    [    1.249986] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver unknown
    [    1.257703] usbcore: registered new interface driver zd1201
    [    1.263737] usbcore: registered new interface driver cdc_ether
    [    1.269985] usbcore: registered new interface driver cdc_eem
    [    1.276056] usbcore: registered new interface driver dm9601
    [    1.281910] cdc_ncm: 04-Aug-2011
    [    1.285461] usbcore: registered new interface driver cdc_ncm
    [    1.291361] Initializing USB Mass Storage driver...
    [    1.296686] usbcore: registered new interface driver usb-storage
    [    1.302968] USB Mass Storage support registered.
    [    1.308237] mousedev: PS/2 mouse device common for all mice
    [    1.314797] input: matrix-keypad as /devices/platform/matrix-keypad/input/input0
    [    1.324021] input: ti-tsc-adcc as /devices/platform/omap/tsc/input/input1
    [    1.332507] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    1.339383] i2c /dev entries driver
    [    1.343692] Linux video capture interface: v2.00
    [    1.348860] usbcore: registered new interface driver uvcvideo
    [    1.354877] USB Video Class driver (1.1.1)
    [    1.359427] lm75: probe of 2-0048 failed with error -121
    [    1.367903] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.376473] cpuidle: using governor ladder
    [    1.381256] cpuidle: using governor menu
    [    1.391146] usbcore: registered new interface driver usbhid
    [    1.397020] usbhid: USB HID core driver
    [    1.401706] usbcore: registered new interface driver snd-usb-audio
    [    1.410367] _regulator_get: 2-001b supply IOVDD not found, using dummy regulator
    [    1.418196] _regulator_get: 2-001b supply DVDD not found, using dummy regulator
    [    1.425884] _regulator_get: 2-001b supply AVDD not found, using dummy regulator
    [    1.433555] _regulator_get: 2-001b supply DRVDD not found, using dummy regulator
    [    1.444270] asoc: tlv320aic3x-hifi <-> davinci-mcasp.1 mapping ok
    [    1.452054] ALSA device list:
    [    1.455231]   #0: AM335X EVM
    [    1.458229] oprofile: hardware counters not available
    [    1.463505] oprofile: using timer interrupt.
    [    1.467990] nf_conntrack version 0.5.0 (3954 buckets, 15816 max)
    [    1.474768] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.480442] TCP cubic registered
    [    1.483842] NET: Registered protocol family 17
    [    1.488592] Bridge firewalling registered
    [    1.492801] can: controller area network core (rev 20090105 abi 8)
    [    1.499319] NET: Registered protocol family 29
    [    1.503966] can: raw protocol (rev 20090105)
    [    1.508414] can: broadcast manager protocol (rev 20090105 t)
    [    1.514372] Registering the dns_resolver key type
    [    1.519314] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.527326] ThumbEE CPU extension supported.
    [    1.531840] mux: Failed to setup hwmod io irq -22
    [    1.537419] Power Management for AM33XX family
    [    1.542264] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.548943] Copied the M3 firmware to UMEM
    [    1.553243] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    1.570601] clock: disabling unused clocks to save power
    [    1.578392] Detected MACID=d4:94:a1:53:48:ec
    [    1.588228] input: gpio-keys as /devices/platform/gpio-keys/input/input2
    [    1.596041] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    1.605247] Waiting for root device /dev/mmcblk0p2...
    [    1.625793] mmc0: new high speed SDHC card at address 1234
    [    1.632203] mmcblk0: mmc0:1234 SA04G 3.63 GiB (ro)
    [    1.639635]  mmcblk0: p1 p2 p3
    [    1.714403] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
    [    1.721764] Please append a correct "root=" boot option; here are the available partitions:
    [    1.730516] b300         3813376 mmcblk0  driver: mmcblk
    [    1.736089]   b301           72261 mmcblk0p1 00000000-0000-0000-0000-000000000mmcblk0p1
    [    1.744463]   b302          923737 mmcblk0p2 00000000-0000-0000-0000-000000000mmcblk0p2
    [    1.752824]   b303         2795310 mmcblk0p3 00000000-0000-0000-0000-000000000mmcblk0p3
    [    1.761175] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,2)
    [    1.769979] Backtrace:
    [    1.772563] [<c00186b4>] (dump_backtrace+0x0/0x110) from [<c046e210>] (dump_stack+0x18/0x1c)
    [    1.781369]  r6:cf98e000 r5:c0609dac r4:c0676e08 r3:c0639448
    [    1.787303] [<c046e1f8>] (dump_stack+0x0/0x1c) from [<c046e280>] (panic+0x6c/0x1a0)
    [    1.795311] [<c046e214>] (panic+0x0/0x1a0) from [<c05dccb0>] (mount_block_root+0x184/0x228)
    [    1.804026]  r3:c0639448 r2:00000000 r1:cf81df58 r0:c05443c0
    [    1.809938]  r7:00008000
    [    1.812583] [<c05dcb2c>] (mount_block_root+0x0/0x228) from [<c05dcf18>] (mount_root+0xd8/0xe0)
    [    1.821577] [<c05dce40>] (mount_root+0x0/0xe0) from [<c05dd0b8>] (prepare_namespace+0x198/0x1d4)
    [    1.830743]  r4:c0675ee0
    [    1.833400] [<c05dcf20>] (prepare_namespace+0x0/0x1d4) from [<c05dc908>] (kernel_init+0x120/0x12c)
    [    1.842738]  r5:c0616f68 r4:c0616f68
    [    1.846496] [<c05dc7e8>] (kernel_init+0x0/0x12c) from [<c0044770>] (do_exit+0x0/0x664)
    [    1.854758]  r5:c05dc7e8 r4:00000000

  • You might be able to configure the MMC driver to ignore the CD and WP pins. You would need to change some initializers in your board.c file from

       .gpio_cd = GPIO_TO_PIN(0, 6),
       .gpio_wp = GPIO_TO_PIN(3, 18),
    to
       .nonremovable = true;
       .gpio_cd = -EINVAL;
       .gpio_wp = -EINVAL;

    Ideally the root cause should be found. Always the possibiliy that it a symptom of more serious problems,

  • having the same problem too.

    it's like this issue comes up from nowhere.

  • Just experienced this same problem.

    I had dd'd an existing SD-Card that was working perfectly; it was a Micro SD-Card with an adaptor.

    The new SD-Card (again, Micro with adaptor) exhibited the issue.

    Tried re-imaging with dd a few times to no avail.

    After reading threads on the issue, checked the write-protect slider on the adaptor and it all seemed okay; then swapped the Micro SD into the original adaptor, and it worked.

    It turned out that the write-protect slider on the SD Card pushes a tiny pin onto another tiny metal flap on the am335x EVM board and that closes a circuit.  If the write-protect slider is not "thick" enough, it wasn't pushing the pin far enough to make connection.

    By gently bending the flap down a little (on the am335x) this solved the problem.

    HTH.

  • Hi all,

    I'm experiencing the same problem.But i'm not getting ro message error.Here is my log.

    Please help.

    ø

    Texas Instruments X-Loader 1.46 (May 11 2011 - 19:45:24)


    U-Boot 2009.11 (May 30 2011 - 22:50:27)

    OMAP34xx/35xx-GP ES1.0, CPU-OPP2 L3-165MHz
    VAR-SOM-AM35xx Board + LPDDR/NAND
    I2C:   ready
    DRAM:  256 MB
    NAND:  256 MiB
    In:    serial
    Out:   serial
    Err:   serial
    Die ID #0f840001000000000146876c1500400c
    Net:   davinci_emac_initialize
    Ethernet PHY: GENERIC @ 0x00
    DaVinci EMAC
    VAR-SOM-AM35 # mmc i it
    mmc - MMC sub-system

    Usage:
    mmc init [dev] - init MMC sub system
    mmc device [dev] - show or set current device
    VAR-SOM-AM35 # mmc init
    mmc1 is available
    VAR-SOM-AM35 # fatload mmc 0 0x82000000 boot,scr .scr
    reading boot.scr

    461 bytes read
    VAR-SOM-AM35 # source 0x82000000
    ## Executing script at 82000000
    reading uImage

    3047956 bytes read
    ***** Kernel: /dev/mmcblk0p1/uImage *****
    ***** RootFS: /dev/mmcblk0p2 *****
    ## Booting kernel from Legacy Image at 82000000 ...
       Image Name:   Linux-2.6.37-g06ebbba
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3047892 Bytes =  2.9 MB
       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-g06ebbba (a0131746@swubn01) (gcc version 4.4.3 (GCC) ) #1 Fri Jul 8 02:47:41 IST 2011
    CPU: ARMv7 Processor [411fc087] revision 7 (ARMv7), cr=10c53c7f
    CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
    Machine: OMAP3517/AM3517 EVM
    Reserving 8388608 bytes SDRAM for VRAM
    Memory policy: ECC disabled, Data cache writeback
    AM3517 ES1.1 (l2cache sgx neon isp )
    SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x10000
    Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 62976
    Kernel command line: console=ttyO2,115200n8 androidboot.console=ttyO2
    mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext3 rootdelay=1 init=/init
    ip=off omap_vout.vid1_static_vrfb_alloc=y vram=8M omapfb.vram=0:8M
    PID hash table entries: 1024 (order: 0, 4096 bytes)
    Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    Memory: 248MB = 248MB total
    Memory: 244708k/244708k available, 17436k reserved, 0K highmem
    Virtual kernel memory layout:
        vector  : 0xffff0000 - 0xffff1000   (   4 kB)
        fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
        DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
        vmalloc : 0xd0800000 - 0xf8000000   ( 632 MB)
        lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
        modules : 0xbf000000 - 0xc0000000   (  16 MB)
          .init : 0xc0008000 - 0xc003d000   ( 212 kB)
          .text : 0xc003d000 - 0xc05bf000   (5640 kB)
          .data : 0xc05c0000 - 0xc0603940   ( 271 kB)
    NR_IRQS:375
    Clocking rate (Crystal/Core/MPU): 26.0/332/600 MHz
    Reprogramming SDRC clock to 332000000 Hz
    dpll3_m2_clk rate change failed: -22
    IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
    Total of 96 interrupts on 1 active controller
    GPMC revision 5.0
    Trying to install interrupt handler for IRQ368
    Trying to install interrupt handler for IRQ369
    Trying to install interrupt handler for IRQ370
    Trying to install interrupt handler for IRQ371
    Trying to install interrupt handler for IRQ372
    Trying to install interrupt handler for IRQ373
    Trying to install interrupt handler for IRQ374
    Trying to install type control for IRQ375
    Trying to set irq flags for IRQ375
    OMAP clockevent source: GPTIMER1 at 32768 Hz
    Console: colour dummy device 80x30
    Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
    pid_max: default: 32768 minimum: 301
    Security Framework initialized
    Mount-cache hash table entries: 512
    CPU: Testing write buffer coherency: ok
    regulator: core version 0.5
    regulator: dummy:
    NET: Registered protocol family 16
    OMAP GPIO hardware version 2.5
    OMAP GPIO hardware version 2.5
    OMAP GPIO hardware version 2.5
    OMAP GPIO hardware version 2.5
    OMAP GPIO hardware version 2.5
    OMAP GPIO hardware version 2.5
    omap_mux_init: Add partition: #1: core, flags: 0
    Display initialized successfully
    _omap_mux_init_gpio: Multiple gpio paths (2) for gpio126
    Found NOR on CS1
    Registering NOR on CS1
    hw-breakpoint: debug architecture 0x4 unsupported.
    OMAP DMA hardware revision 4.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
    omap_device: omap_i2c.1: new worst case activate latency 0: 30517
    omap_i2c omap_i2c.1: bus 1 rev3.12 at 400 kHz
    omap_device: omap_i2c.1: new worst case deactivate latency 0: 30517
    omap_i2c omap_i2c.2: bus 2 rev3.12 at 400 kHz
    pca953x 2-0021: failed reading register
    pca953x: probe of 2-0021 failed with error -121
    omap_i2c omap_i2c.3: bus 3 rev3.12 at 400 kHz
    tca6416-keypad 3-0020: tca6416_read_reg failed, reg: 1, error: -121
    tca6416-keypad: probe of 3-0020 failed with error -121
    pca953x 3-0021: failed reading register
    pca953x: probe of 3-0021 failed with error -121
    Advanced Linux Sound Architecture Driver Version 1.0.23.
    Switching to clocksource 32k_counter
    musb-hdrc: version 6.0, otg (peripheral+host), debug=0
    musb-hdrc musb-hdrc.0: dma type: pio
    <6>Waiting for PHY clock good...
    musb-hdrc musb-hdrc.0: USB OTG mode controller at d0810000 using PIO, IRQ 71
    NET: Registered protocol family 2
    IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    TCP: Hash tables configured (established 8192 bind 8192)
    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)
    omap_init_opp_table: no hwmod or odev for iva, [9] cannot add OPPs.
    AM3517  Linux PSP version 04.02.00.07 (AM3517EVM)
    ashmem: initialized
    VFS: Disk quotas dquot_6.5.2
    Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    msgmni has been set to 477
    io scheduler noop registered
    io scheduler deadline registered
    io scheduler cfq registered (default)
    OMAP DSS rev 2.0
    omapdss supply vdds_dsi not found, using dummy regulator
    OMAP DISPC rev 3.0
    omapdss supply vdda_dac not found, using dummy regulator
    OMAP VENC rev 2
    OMAP DSI rev 1.0
    Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0
    omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1
    omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2
    console [ttyO2] enabled
    brd: module loaded
    loop: module loaded
    mtdoops: mtd device (mtddev=name/number) must be supplied
    physmap platform flash device: 08000000 at 08000000
    physmap-flash physmap-flash.0: map_probe failed
    omap2-nand driver initializing
    NAND device: Manufacturer ID: 0x2c, Chip ID: 0xca (Micron )
    Creating 5 MTD partitions on "omap2-nand.0":
    0x000000000000-0x000000080000 : "xloader-nand"
    0x000000080000-0x000000240000 : "uboot-nand"
    0x000000240000-0x000000280000 : "params-nand"
    0x000000280000-0x000000780000 : "linux-nand"
    0x000000780000-0x000010000000 : "jffs2-nand"
    davinci_mdio davinci_mdio: davinci mdio revision 1.5
    davinci_mdio davinci_mdio: detected phy mask fffffffc
    davinci_mdio: probed
    davinci_mdio davinci_mdio: phy[0]: device ffffffff:00, driver unknown
    davinci_mdio davinci_mdio: phy[1]: device ffffffff:01, driver unknown
    usbcore: registered new interface driver cdc_ether
    usbcore: registered new interface driver dm9601
    ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    ehci-omap.0 supply hsusb0 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-g06ebbba ehci_hcd
    usb usb1: SerialNumber: ehci-omap.0
    hub 1-0:1.0: USB hub found
    hub 1-0:1.0: 3 ports detected
    Initializing USB Mass Storage driver...
    usbcore: registered new interface driver usb-storage
    USB Mass Storage support registered.
    usbcore: registered new interface driver usbtest
    android init
    android_probe pdata: c05d01bc
    android_bind
    android_usb gadget: android_usb ready
    musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    usb usb2: Product: MUSB HDRC host driver
    usb usb2: Manufacturer: Linux 2.6.37-g06ebbba musb-hcd
    usb usb2: SerialNumber: musb-hdrc.0
    hub 2-0:1.0: USB hub found
    hub 2-0:1.0: 1 port detected
    f_acm init
    android_register_function acm
    f_adb init
    android_register_function adb
    adb_bind_config
    f_mass_storage init
    android_register_function usb_mass_storage
    f_mtp init
    android_register_function mtp
    mice: PS/2 mouse device common for all mice
    tsc2004: probe of 1-004b failed with error -121
    rtc-s35390a 1-0030: error resetting chip
    rtc-s35390a: probe of 1-0030 failed with error -5
    i2c /dev entries driver
    Linux video capture interface: v2.00
    usbcore: registered new interface driver uvcvideo
    USB Video Class driver (v1.0.0)
    vpfe_init
    vpfe-capture vpfe-capture: v4l2 device registered
    vpfe-capture vpfe-capture: video device registered
    tvp514x 3-005c: tvp514x 3-005c decoder driver registered !!
    tvp514x 3-005c: Write: retry ... 0
    tvp514x 3-005c: Write: retry ... 1
    tvp514x 3-005c: Write: retry ... 2
    tvp514x 3-005c: Write: retry ... 3
    tvp514x 3-005c: Write: retry ... 4
    tvp514x 3-005c: Write: retry ... 5
    tvp514x 3-005c: Write failed. Err[-121]
    tvp514x 3-005c: Unable to turn on decoder
    tvp514x 3-005c: Read: retry ... 0
    tvp514x 3-005c: Read: retry ... 1
    tvp514x 3-005c: Read: retry ... 2
    tvp514x 3-005c: Read: retry ... 3
    tvp514x 3-005c: Read: retry ... 4
    tvp514x 3-005c: Read: retry ... 5
    tvp514x 3-005c: Unable to query std
    vpfe-capture vpfe-capture: v4l2 sub device tvp5146 registered
    vpfe_register_ccdc_device: DM6446 CCDC
    DM6446 CCDC is registered with vpfe.
    omap_device: omap_wdt.-1: new worst case activate latency 0: 30517
    OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
    device-mapper: uevent: version 1.0.3
    device-mapper: ioctl: 4.18.0-ioctl (2010-06-29) initialised: dm-devel@redhat.com
    usbcore: registered new interface driver usbhid
    usbhid: USB HID core driver
    logger: created 64K log 'log_main'
    logger: created 256K log 'log_events'
    logger: created 64K log 'log_radio'
    logger: created 64K log 'log_system'
    usbcore: registered new interface driver snd-usb-audio
    OMAP3517 / AM3517 EVM SoC init
    AIC23 Audio Codec 0.1
    tlv320aic23_write cannot write 000 to register R15
    tlv320aic23_write cannot write 047 to register R6
    tlv320aic23_write cannot write 004 to register R5
    tlv320aic23_write cannot write 117 to register R0
    tlv320aic23_write cannot write 117 to register R1
    tlv320aic23_write cannot write 010 to register R4
    tlv320aic23_write cannot write 070 to register R2
    tlv320aic23_write cannot write 070 to register R3
    tlv320aic23_write cannot write 001 to register R9
    asoc: tlv320aic23-hifi <-> omap-mcbsp-dai.0 mapping ok
    ALSA device list:
      #0: am3517evm
    oprofile: hardware counters not available
    oprofile: using timer interrupt.
    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 1
    ThumbEE CPU extension supported.
    Power Management for TI OMAP3.
    clock: disabling unused clocks to save power
    drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
    omap_vout omap_vout: Buffer Size = 3686400
    omap_vout omap_vout: : registered and initialized video device 1
    omap_vout omap_vout: Buffer Size = 3686400
    omap_vout omap_vout: : registered and initialized video device 2
    Waiting 1sec before mounting root device...
    Root-NFS: no NFS server address
    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             512 mtdblock0  (driver?)
    1f01            1792 mtdblock1  (driver?)
    1f02             256 mtdblock2  (driver?)
    1f03            5120 mtdblock3  (driver?)
    1f04          254464 mtdblock4  (driver?)
    Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)
    Backtrace:
    [<c004c65c>] (dump_backtrace+0x0/0x110) from [<c04611c4>] (dump_stack+0x18/0x1c)
     r7:c05337b5 r6:00008000 r5:c06049a8 r4:c06049a8
    [<c04611ac>] (dump_stack+0x0/0x1c) from [<c046122c>] (panic+0x64/0x180)
    [<c04611c8>] (panic+0x0/0x180) from [<c0008f90>] (mount_block_root+0x1dc/0x21c)
     r3:00000000 r2:00000000 r1:cf01bf50 r0:c053385c
    [<c0008db4>] (mount_block_root+0x0/0x21c) from [<c000907c>] (mount_root+0xac/0xcc)
    [<c0008fd0>] (mount_root+0x0/0xcc) from [<c0009208>] (prepare_namespace+0x16c/0x1c4)
     r4:c06039a4
    [<c000909c>] (prepare_namespace+0x0/0x1c4) from [<c00084bc>] (kernel_init+0x114/0x154)
     r5:c0030d54 r4:c0603940
    [<c00083a8>] (kernel_init+0x0/0x154) from [<c0075a9c>] (do_exit+0x0/0x638)
     r5:c00083a8 r4:00000000

  • Try "rootwait" instead of "rootdelay=1" in your bootargs.

  • Hi wong,

    I tried using rootwait instead of rootdelay.Now booting stops at "Waiting for root device /dev/mmcblk0p2".

    I tried increasing the rootdelay to 10 so that it may find /dev/mmcblk0p2.But it is not.

    Any other ideas?

    Regards,

    Hemanth Kumar RV

  • I would suggest to keep using rootwait. Your boot log does not show any mmc driver messages. Double check that you enabled the MMC driver in the kernel config.

  • Hi Wong,

    I will check in config file.I was using pre-built images.

    Since bootloader and uImage is getting executed from SD-Card  i believe MMC driver should be  enabled.

    Regards,

    Hemanth Kumar

  • Looks like that kernel has a MMC driver that does not print anything on boot. Other threads with that processor would suggest that 2.6.37 kernel for that processor might not support  MMC.

    It can happen that u-boot supports MMC and Linux doesn't. U-boot doesn't check the card detect pin. If you card detect pin is disconnected or flaky, u-boot will succeed to read the MMC but linux will fail.

  • Hai Wong

    If the MMC driver doesn't loads,then how it boots the uboot,uImage from mmcblk0p0????

  • The ROM Bootloader, u-boot and Linux do not use any common code. They have separate MMC drivers. The hardware signals Card Detect and Write Protect are usually just GPIOs. It is up to each driver to handle or not handle them. As far as I know, the RBL and u-boot drivers do not check the CD and WP pins. Their code just assumes that the card is there and it is writeable. The Linux does check the CD unless the kernel is configured otherwise.

  • Hi sekra,

    If you build your own file system for omap board you need to edit file etc/fstab in your FS  as followed by below .For me i solved like this only now my board is working fine .

    # stock fstab - you probably want to override this with a machine specific one

    rootfs               /                    auto       defaults              1  1
    proc                 /proc                proc       defaults              0  0
    devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
    usbfs                /proc/bus/usb        usbfs      defaults              0  0
    tmpfs                /var/volatile        tmpfs      defaults,size=16M     0  0
    tmpfs                /dev/shm             tmpfs      mode=0777             0  0
    tmpfs                /media/ram           tmpfs      defaults,size=16M     0  0

    # uncomment this if your device has a SD/MMC/Transflash slot
    #/dev/mmcblk0p1       /media/card          auto       defaults,sync,noauto  0  0