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.

Linux on AM335x IDK

Hi all,

         I am trying to port linux for AM335x IDK. I have done necessary changes in U-boot code, while booting up kernel hangs on following line:

[    1.724365] Waiting for root device /dev/mmcblk0p2...

Can any one suggest me what is the problem?

What i have already tried is:

1. Card detect to -EINVAL in static struct omap2_hsmmc_info am335x_mmc[] __initdata = {
2. Tried to disable card detect in board file, but enabled it while doing 1.

3. Changed PINMODE  from 7 to 4-     {"mcasp0_aclkr.gpio3_18", OMAP_MUX_MODE4 | AM33XX_PIN_INPUT_PULLDOWN},


What am i missing here? What could be the reason for this? Any help is appriciated.

Thanks in Advance.

  • It may be waiting for MMC0_CD input, which isn't connected on the IDK. This post could be related to your issue: http://e2e.ti.com/support/arm/sitara_arm/f/791/t/249718.aspx
  • Hi Prateek,

    You may also check the prepare_namespace() function inside do_mounts.c file in the kernel. This is where your system hangs:

        /* wait for any asynchronous scanning to complete */
        if ((ROOT_DEV == 0) && root_wait) {
            printk(KERN_INFO "Waiting for root device %s...\n",
                saved_root_name);
            while (driver_probe_done() != 0 ||
                (ROOT_DEV = name_to_dev_t(saved_root_name)) == 0)
                msleep(100);
            async_synchronize_full();
        }

    Check why your system doesn't exit this while loop, taking in regard what Biser said.

    Best regards,
    Miroslav

  • Thanks for your reply,

    Please find the log below, After enabling mmc debugging.

    [    1.633087] Waiting for root device /dev/mmcblk0p2...
    [    1.640289] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
    [    1.648712] pgd = c0004000
    [    1.651550] [0000000c] *pgd=00000000
    [    1.655303] Internal error: Oops: 5 [#1]
    [    1.659362] Modules linked in:
    [    1.662567] CPU: 0    Not tainted  (3.2.0-svn1 #2)
    [    1.667572] PC is at omap_hsmmc_start_command+0xc8/0x148
    [    1.673126] LR is at console_unlock+0x170/0x1f8
    [    1.677825] pc : [<c031c978>]    lr : [<c003ed50>]    psr: 60000013
    [    1.677856] sp : df835d28  ip : df835be0  fp : df835d4c
    [    1.689819] r10: 00000008  r9 : 00000001  r8 : df835e60
    [    1.695251] r7 : 00000033  r6 : df835de0  r5 : df835e10  r4 : dfa2b280
    [    1.702056] r3 : 00020000  r2 : 00000000  r1 : 00000033  r0 : 00000001
    [    1.708862] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    [    1.716461] Control: 10c5387d  Table: 80004019  DAC: 00000015
    [    1.722442] Process kworker/u:0 (pid: 5, stack limit = 0xdf8342f0)
    [    1.728881] Stack: (0xdf835d28 to 0xdf836000)
    [    1.733428] 5d20:                   00000033 00000000 dfa2b280 df835e40 dfa2b000 00000000
    [    1.741973] 5d40: df835d94 df835d50 c031e508 c031c8bc df835d64 00000008 dfa2b1fc df835de0
    [    1.750488] 5d60: df835d84 00000019 c0425830 df835e40 dfa2b000 00000001 00000008 00000008
    [    1.759002] 5d80: dfa2b1fc df835de0 df835dc4 df835d98 c030d15c c031e41c 00000200 00000064
    [    1.767547] 5da0: 00000000 c01db44c df835e40 dfa2b000 00000000 dfac0fc0 df835ddc df835dc8
    [    1.776062] 5dc0: c030d460 c030cffc dfabd400 dfabd57c df835e94 df835de0 c0313df4 c030d414
    [    1.784606] 5de0: 05f5e100 00000000 00000008 00000001 00000000 00000200 00000000 00000000
    [    1.793121] 5e00: df835e40 00000001 df835e60 00000000 00000033 00000000 00000000 00000000
    [    1.801635] 5e20: 00000000 00000000 000000b5 00000000 00000000 00000000 df835de0 df835e40
    [    1.810180] 5e40: 00000000 df835e10 df835de0 00000000 00000001 df835e54 df835e54 c030cfd8
    [    1.818695] 5e60: c0a6c802 00000fc0 00000008 9fac0fc0 dfabd400 dfa2b000 00000000 00000000
    [    1.827209] 5e80: df835ed4 df8c0605 df835ec4 df835e98 c0312af8 c0313ca0 00000000 00000000
    [    1.835754] 5ea0: dfa2b000 dfabd400 00000000 00000000 df835ed4 df8c0605 df835f0c df835ec8
    [    1.844268] 5ec0: c0312fa4 c0312a80 00000002 00000000 00000014 03534453 55303447 80018004
    [    1.852813] 5ee0: d500c42f c0ff8000 dfa2b000 00000000 c045b1fc 00000000 c030eb38 df8c0605
    [    1.861328] 5f00: df835f2c df835f10 c03136ac c0312ed4 00000000 40ff8000 dfa2b000 c045b1f0
    [    1.869842] 5f20: df835f4c df835f30 c030ed58 c03135d8 60000013 df817f00 df8c0600 df834000
    [    1.878387] 5f40: df835f84 df835f50 c0051138 c030eb44 c065cbac df817f10 c065cba8 df817f00
    [    1.886901] 5f60: c065cbac df817f10 c065cba8 df834000 00000089 c0605c2c df835fbc df835f88
    [    1.895446] 5f80: c0052fb0 c0051020 df817f00 c0052e54 00000013 df82dee0 df817f00 c0052e54
    [    1.903961] 5fa0: 00000013 00000000 00000000 00000000 df835ff4 df835fc0 c0056fc8 c0052e60
    [    1.912475] 5fc0: df82dee0 00000000 df817f00 00000000 df835fd0 df835fd0 00000000 df82dee0
    [    1.921020] 5fe0: c0056f38 c0041724 00000000 df835ff8 c0041724 c0056f44 4c006a20 08a0a80c
    [    1.929534] Backtrace:
    [    1.932098] [<c031c8b0>] (omap_hsmmc_start_command+0x0/0x148) from [<c031e508>] (omap_hsmmc_request+0xf8/0x4c4)
    [    1.942596]  r7:00000000 r6:dfa2b000 r5:df835e40 r4:dfa2b280
    [    1.948547] [<c031e410>] (omap_hsmmc_request+0x0/0x4c4) from [<c030d15c>] (mmc_start_request+0x16c/0x214)
    [    1.958526] [<c030cff0>] (mmc_start_request+0x0/0x214) from [<c030d460>] (mmc_wait_for_req+0x58/0x90)
    [    1.968109]  r7:dfac0fc0 r6:00000000 r5:dfa2b000 r4:df835e40
    [    1.974060] [<c030d408>] (mmc_wait_for_req+0x0/0x90) from [<c0313df4>] (mmc_app_send_scr+0x160/0x1b8)
    [    1.983642]  r5:dfabd57c r4:dfabd400
    [    1.987396] [<c0313c94>] (mmc_app_send_scr+0x0/0x1b8) from [<c0312af8>] (mmc_sd_setup_card+0x84/0x408)
    [    1.997100] [<c0312a74>] (mmc_sd_setup_card+0x0/0x408) from [<c0312fa4>] (mmc_sd_init_card+0xdc/0x664)
    [    2.006805] [<c0312ec8>] (mmc_sd_init_card+0x0/0x664) from [<c03136ac>] (mmc_attach_sd+0xe0/0x254)
    [    2.016143] [<c03135cc>] (mmc_attach_sd+0x0/0x254) from [<c030ed58>] (mmc_rescan+0x220/0x280)
    [    2.025024]  r5:c045b1f0 r4:dfa2b000
    [    2.028778] [<c030eb38>] (mmc_rescan+0x0/0x280) from [<c0051138>] (process_one_work+0x124/0x384)
    [    2.037933]  r6:df834000 r5:df8c0600 r4:df817f00 r3:60000013
    [    2.043853] [<c0051014>] (process_one_work+0x0/0x384) from [<c0052fb0>] (worker_thread+0x15c/0x330)
    [    2.053283] [<c0052e54>] (worker_thread+0x0/0x330) from [<c0056fc8>] (kthread+0x90/0x94)
    [    2.061737] [<c0056f38>] (kthread+0x0/0x94) from [<c0041724>] (do_exit+0x0/0x67c)
    [    2.069519]  r6:c0041724 r5:c0056f38 r4:df82dee0
    [    2.074340] Code: 13a03801 0a00001b e5942008 e5951000 (e592200c)
    [    2.080749] ---[ end trace 0cc5761495d60da0 ]---
    [    2.085601] Unable to handle kernel paging request at virtual address fffffffc
    [    2.093109] pgd = c0004000
    [    2.095916] [fffffffc] *pgd=9fffe821, *pte=00000000, *ppte=00000000
    [    2.102478] Internal error: Oops: 17 [#2]
    [    2.106628] Modules linked in:
    [    2.109832] CPU: 0    Tainted: G      D       (3.2.0-svn1 #2)
    [    2.115814] PC is at kthread_data+0x10/0x18
    [    2.120178] LR is at wq_worker_sleeping+0x14/0x98
    [    2.125061] pc : [<c0057118>]    lr : [<c00531ec>]    psr: 20000193
    [    2.125091] sp : df835a80  ip : df835a90  fp : df835a8c
    [    2.137054] r10: df82b1dc  r9 : c0611d78  r8 : df82b258
    [    2.142486] r7 : c05e8bf0  r6 : df834000  r5 : c06041f0  r4 : 00000000
    [    2.149291] r3 : 00000000  r2 : c1704dfe  r1 : 00000000  r0 : df82b100
    [    2.156097] Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [    2.163604] Control: 10c5387d  Table: 80004019  DAC: 00000015
    [    2.169586] Process kworker/u:0 (pid: 5, stack limit = 0xdf8342f0)

    Also while going through the point where kernel was hanging, i obsereved that function blk_lookup_devt(s, part); in same do_mounts.c called in line number 240.

    Does that mean mmc card is not detected? I really can't understand log, please help.

    thanks.

  • Hi Prateek,

    The log shows a NULL pointer dereference error. This means that somewhere during the mmc start/init you are trying to use an uninitialized resource. Perhaps an uninitialized structure member? Is the blk_lookup_devt() function where your system hangs. Please trace the system hang using prints and when you pinpoint it, you will probably find what is causing it. Please post your progress here.

    Best regards,
    Miroslav

  • Hi,

    Thanks Mirosalv. Please see the log attached. I see a time out error in my log mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000, i think its because of No card detect. Is there any way or work around for it??

    Starting kernel ...
    
    [    0.000000] Linux version 3.2.0-svn1 (hari@MELANGE) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #7 Tue Mar 26 13:57:00 IST 2013
    [    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] On node 0 totalpages: 131072
    [    0.000000] free_area_init_node: node 0, pgdat c0641440, node_mem_map c0677000
    [    0.000000]   Normal zone: 1024 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 130048 pages, LIFO batch:31
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
    [    0.000000] pcpu-alloc: [0] 0 
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO3,115200n8 debug root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 513132k/513132k available, 11156k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a2000   (5736 kB)
    [    0.000000]       .init : 0xc05a2000 - 0xc05e1000   ( 252 kB)
    [    0.000000]       .data : 0xc05e2000 - 0xc0649fd8   ( 416 kB)
    [    0.000000]        .bss : 0xc0649ffc - 0xc0676ea4   ( 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 clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000152] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
    [    0.058929] pid_max: default: 32768 minimum: 301
    [    0.059051] Security Framework initialized
    [    0.059173] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.061492] ttyO3 used as console in debug mode uart3 clocks will not be gated
    [    0.080108] omap_hwmod: pruss: failed to hardreset
    [    0.081268] print_constraints: dummy: 
    [    0.081634] NET: Registered protocol family 16
    [    0.083801] OMAP GPIO hardware version 0.1
    [    0.086425] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.088348]  omap_i2c.1: alias fck already exists
    [    0.089294]  omap2_mcspi.1: alias fck already exists
    [    0.089538]  omap2_mcspi.2: alias fck already exists
    [    0.090484]  edma.0: alias fck already exists
    [    0.090484]  edma.0: alias fck already exists
    [    0.090515]  edma.0: alias fck already exists
    [    0.117187] bio: create slab <bio-0> at 0
    [    0.119476] SCSI subsystem initialized
    [    0.121093] usbcore: registered new interface driver usbfs
    [    0.121398] usbcore: registered new interface driver hub
    [    0.121612] usbcore: registered new device driver usb
    [    0.121765] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.122070] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.123168] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.125061] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.127441] print_constraints: VRTC: 
    [    0.128875] print_constraints: VIO: at 1800 mV 
    [    0.131225] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
    [    0.133544] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
    [    0.134521] print_constraints: VDD3: 5000 mV 
    [    0.135955] print_constraints: VDIG1: at 1800 mV 
    [    0.137359] print_constraints: VDIG2: at 1800 mV 
    [    0.138793] print_constraints: VPLL: at 1800 mV 
    [    0.140228] print_constraints: VDAC: at 1800 mV 
    [    0.141662] print_constraints: VAUX1: at 1800 mV 
    [    0.143096] print_constraints: VAUX2: at 3300 mV 
    [    0.144531] print_constraints: VAUX33: at 3300 mV 
    [    0.145935] print_constraints: VMMC: at 3300 mV 
    [    0.146423] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.147674] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.148803] Switching to clocksource gp timer
    [    0.164245] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.164428] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.164733] MUSB0 controller's USBSS revision = 4ea20800
    [    0.164794] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    0.164794] musb-hdrc: MHDRC RTL version 2.0 
    [    0.164825] musb-hdrc: setup fifo_mode 4
    [    0.164855] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    0.164855] musb-hdrc.0: bulk split disabled
    [    0.164886] musb-hdrc.0: bulk combine disabled
    [    0.165374] musb-hdrc musb-hdrc.0: USB OTG mode controller at e083c000 using PIO, IRQ 18
    [    0.165557] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.165863] MUSB1 controller's USBSS revision = 4ea20800
    [    0.165893] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    0.165893] musb-hdrc: MHDRC RTL version 2.0 
    [    0.165893] musb-hdrc: setup fifo_mode 4
    [    0.165924] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    0.165954] musb-hdrc.1: bulk split disabled
    [    0.165954] musb-hdrc.1: bulk combine disabled
    [    0.166015] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.166107] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.166229] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.166259] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.166259] usb usb1: Product: MUSB HDRC host driver
    [    0.166290] usb usb1: Manufacturer: Linux 3.2.0-svn1 musb-hcd
    [    0.166290] usb usb1: SerialNumber: musb-hdrc.1
    [    0.167083] hub 1-0:1.0: USB hub found
    [    0.167114] hub 1-0:1.0: 1 port detected
    [    0.167633] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19
    [    0.168090] NET: Registered protocol family 2
    [    0.168273] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.168609] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.168975] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.169158] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.169158] TCP reno registered
    [    0.169189] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.169189] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.169372] NET: Registered protocol family 1
    [    0.169647] RPC: Registered named UNIX socket transport module.
    [    0.169677] RPC: Registered udp transport module.
    [    0.169677] RPC: Registered tcp transport module.
    [    0.169677] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.169921] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.191192] VFS: Disk quotas dquot_6.5.2
    [    0.191253] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.191802] msgmni has been set to 1002
    [    0.195007] alg: No test for stdrng (krng)
    [    0.195678] io scheduler noop registered
    [    0.195709] io scheduler deadline registered
    [    0.195770] io scheduler cfq registered (default)
    [    0.196960] Could not set LED4 to fully on
    [    0.198730] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.199279] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.199737] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.200134] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.954010] console [ttyO3] enabled
    [    0.958251] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.966094] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.974365] omap4_rng omap4_rng: OMAP4 Random Number Generator ver. 2.00
    [    0.990722] brd: module loaded
    [    0.998718] loop: module loaded
    [    1.002258] i2c-core: driver [tsl2550] using legacy suspend method
    [    1.008697] i2c-core: driver [tsl2550] using legacy resume method
    [    1.015167] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.029052] Detected a daughter card on AM335x EVM..
    [    1.034088] CPLD version: CPLD1.0A
    [    1.037841] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.053009] Board name: A33515BB
    [    1.056365] Board version: 1.2A
    [    1.059661] SKU: SKU#02
    [    1.062316] The board is an industrial automation EVM in profile 0
    [    1.070281] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.075286] Registering NAND on CS0
    [    1.080169]  omap_i2c.2: alias fck already exists
    [    1.085418] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.091888] tsl2550 2-0039: standard operating mode
    [    1.097137] tsl2550: probe of 2-0039 failed with error -121
    [    1.103363]  omap_hsmmc.0: alias fck already exists
    [    1.109649] registered am33xx_sr device
    [    1.115509] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.122467] m25p80 spi2.0: unrecognized JEDEC id ef0000
    [    1.128417] omap2-nand driver initializing
    [    1.133056] ONFI flash detected
    [    1.136444] ONFI param page 0 valid
    [    1.140106] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron MT29F2G08ABAEAWP)
    [    1.148681] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.154235] 0x000000000000-0x000000020000 : "SPL"
    [    1.160644] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    1.167602] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    1.174499] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    1.181396] 0x000000080000-0x000000260000 : "U-Boot"
    [    1.188507] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    1.195343] 0x000000280000-0x000000780000 : "Kernel"
    [    1.203826] 0x000000780000-0x000010000000 : "File System"
    [    1.314025] OneNAND driver initializing
    [    1.319519] CAN device driver interface
    [    1.323516] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.379516] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.385955] davinci_mdio davinci_mdio.0: detected phy mask bfffffff
    [    1.393188] davinci_mdio.0: probed
    [    1.396759] davinci_mdio davinci_mdio.0: phy[30]: device 0:1e, driver unknown
    [    1.404541] usbcore: registered new interface driver zd1201
    [    1.410552] usbcore: registered new interface driver cdc_ether
    [    1.416778] usbcore: registered new interface driver cdc_eem
    [    1.422851] usbcore: registered new interface driver dm9601
    [    1.428710] cdc_ncm: 04-Aug-2011
    [    1.432250] usbcore: registered new interface driver cdc_ncm
    [    1.438140] Initializing USB Mass Storage driver...
    [    1.443481] usbcore: registered new interface driver usb-storage
    [    1.449737] USB Mass Storage support registered.
    [    1.455017] mousedev: PS/2 mouse device common for all mice
    [    1.461975] omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
    [    1.469146] i2c /dev entries driver
    [    1.473449] Linux video capture interface: v2.00
    [    1.478607] usbcore: registered new interface driver uvcvideo
    [    1.484619] USB Video Class driver (1.1.1)
    [    1.489166] lm75: probe of 2-0048 failed with error -121
    [    1.497711] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.506286] cpuidle: using governor ladder
    [    1.511077] cpuidle: using governor menu
    [    1.515747] omap_hsmmc omap_hsmmc.0: context was not lost
    [    1.521423] omap_hsmmc omap_hsmmc.0: enabled
    [    1.526214] mmc0: clock 0Hz busmode 1 powermode 0 cs 0 Vdd 0 width 0 timing 0
    [    1.533660] omap_hsmmc omap_hsmmc.0: Set clock to 0Hz
    [    1.539978] omap_hsmmc omap_hsmmc.0: disabled
    [    1.544616] omap_hsmmc omap_hsmmc.0: context was not lost
    [    1.550262] omap_hsmmc omap_hsmmc.0: enabled
    [    1.554718] mmc0: mmc_rescan_try_freq: trying to init card at 400000 Hz
    [    1.561614] mmc0: clock 0Hz busmode 2 powermode 1 cs 0 Vdd 21 width 0 timing 0
    [    1.569152] omap_hsmmc omap_hsmmc.0: Set clock to 0Hz
    [    1.574859] omap4_aes_mod_init: loading AM33X AES driver
    [    1.580535] omap4-aes omap4-aes: AM33X AES hw accel rev: 3.02
    [    1.587005] omap4_aes_probe: probe() done
    [    1.591308] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
    [    1.599304] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    1.605377] omap4_sham_mod_init: loading AM33X SHA/MD5 driver
    [    1.611511] omap4-sham omap4-sham: AM33X SHA/MD5 hw accel rev: 4.03
    [    1.619689] mmc0: starting CMD52 arg 00000c00 flags 00000195
    [    1.625579] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    1.631347] omap_hsmmc omap_hsmmc.0: mmc0: CMD52, argument 0x00000c00
    [    1.638061] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    1.643768] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    1.649505] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    1.655212] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    1.660919] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    1.666656] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    1.672363] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    1.678100] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    1.683624] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    1.689819] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [    1.697296] mmc0: starting CMD52 arg 80000c08 flags 00000195
    [    1.703186] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    1.708892] omap_hsmmc omap_hsmmc.0: mmc0: CMD52, argument 0x80000c08
    [    1.715637] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    1.721343] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    1.727050] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    1.732788] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    1.738494] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    1.744201] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    1.749938] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    1.755645] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    1.761199] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    1.767395] mmc0: req done (CMD52): -110: 00000000 00000000 00000000 00000000
    [    1.774841] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 21 width 0 timing 0
    [    1.782836] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    1.790069] mmc0: starting CMD0 arg 00000000 flags 000000c0
    [    1.795867] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    1.801605] omap_hsmmc omap_hsmmc.0: mmc0: CMD0, argument 0x00000000
    [    1.808227] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    1.813964] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    1.819671] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    1.825378] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    1.831115] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    1.836822] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    1.842559] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    1.848266] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    1.853424] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
    [    1.863708] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 21 width 0 timing 0
    [    1.871704] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    1.878295] omap4_sham_probe: probe() done
    [    1.884124] mmc0: starting CMD8 arg 000001aa flags 000002f5
    [    1.889984] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    1.895690] omap_hsmmc omap_hsmmc.0: mmc0: CMD8, argument 0x000001aa
    [    1.902313] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    1.908050] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    1.913757] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    1.919494] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    1.925201] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    1.930908] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    1.936645] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    1.942352] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    1.947509] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
    [    1.954620] mmc0: starting CMD5 arg 00000000 flags 000002e1
    [    1.960418] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    1.966156] omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
    [    1.972778] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    1.978485] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    1.984222] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    1.989929] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    1.995635] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.001373] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.007080] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.012786] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    2.018341] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    2.024536] mmc0: req failed (CMD5): -110, retrying...
    [    2.029907] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.035614] omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
    [    2.042236] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.047973] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.053680] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.059387] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.065124] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.070831] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.076538] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.082275] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    2.087799] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    2.093994] mmc0: req failed (CMD5): -110, retrying...
    [    2.099365] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.105072] omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
    [    2.111724] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.117431] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.123138] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.128875] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.134582] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.140319] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.146026] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.151733] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    2.157257] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    2.163482] mmc0: req failed (CMD5): -110, retrying...
    [    2.168823] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.174560] omap_hsmmc omap_hsmmc.0: mmc0: CMD5, argument 0x00000000
    [    2.181182] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.186889] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.192626] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.198333] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.204071] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.209777] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.215484] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.221221] omap_hsmmc omap_hsmmc.0: IRQ Status is 18000
    [    2.226745] omap_hsmmc omap_hsmmc.0: MMC IRQ 0x18000 : ERRI CTO
    [    2.232940] mmc0: req done (CMD5): -110: 00000000 00000000 00000000 00000000
    [    2.240295] mmc0: starting CMD55 arg 00000000 flags 000000f5
    [    2.246185] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.251922] omap_hsmmc omap_hsmmc.0: mmc0: CMD55, argument 0x00000000
    [    2.258636] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.264343] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.270080] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.275787] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.281524] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.287231] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.292938] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.298675] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.303833] mmc0: req done (CMD55): 0: 00400120 00000000 00000000 00000000
    [    2.311004] mmc0: starting CMD41 arg 00000000 flags 000000e1
    [    2.316894] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.322631] omap_hsmmc omap_hsmmc.0: mmc0: CMD41, argument 0x00000000
    [    2.329345] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.335052] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.340789] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.346496] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.352233] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.357940] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.363647] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.369384] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.374542] mmc0: req done (CMD41): 0: 40ff8000 00000000 00000000 00000000
    [    2.381713] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 20 width 0 timing 0
    [    2.389709] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    2.395446] mmc0: clock 400000Hz busmode 2 powermode 2 cs 1 Vdd 20 width 0 timing 0
    [    2.403442] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    2.411071] usbcore: registered new interface driver usbhid
    [    2.416900] usbhid: USB HID core driver
    [    2.421508] usbcore: registered new interface driver snd-usb-audio
    [    2.429626] ALSA device list:
    [    2.432739]   No soundcards found.
    [    2.436279] oprofile: hardware counters not available
    [    2.441558] oprofile: using timer interrupt.
    [    2.446014] nf_conntrack version 0.5.0 (8017 buckets, 32068 max)
    [    2.452850] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.458496] TCP cubic registered
    [    2.461883] NET: Registered protocol family 17
    [    2.466522] can: controller area network core (rev 20090105 abi 8)
    [    2.473083] NET: Registered protocol family 29
    [    2.477722] can: raw protocol (rev 20090105)
    [    2.482177] can: broadcast manager protocol (rev 20090105 t)
    [    2.488098] Registering the dns_resolver key type
    [    2.493072] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    2.501098] ThumbEE CPU extension supported.
    [    2.505584] mux: Failed to setup hwmod io irq -22
    [    2.511138] Power Management for AM33XX family
    [    2.515991] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    2.522674] Copied the M3 firmware to UMEM
    [    2.527130] smartreflex smartreflex: am33xx_sr_probe: Zero NValue read from EFUSE
    [    2.534973] smartreflex: probe of smartreflex failed with error -22
    [    2.541992] sr_init: platform driver register failed
    [    2.550659] clock: disabling unused clocks to save power
    [    2.568847] Detected MACID=50:56:63:c7:eb:f9
    [    2.574401] cpsw: Detected MACID = 50:56:63:c7:eb:fa
    [    2.580688] omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [    2.590087] Waiting for root device /dev/mmcblk0p2...
    [    2.596435] mmc0: starting CMD0 arg 00000000 flags 000000c0
    [    2.602294] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.608001] omap_hsmmc omap_hsmmc.0: mmc0: CMD0, argument 0x00000000
    [    2.614624] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.620361] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.626068] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.631805] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.637512] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.643218] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.648956] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.654663] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.659851] mmc0: req done (CMD0): 0: 00000000 00000000 00000000 00000000
    [    2.667938] mmc0: clock 400000Hz busmode 2 powermode 2 cs 0 Vdd 20 width 0 timing 0
    [    2.675933] omap_hsmmc omap_hsmmc.0: Set clock to 400000Hz
    [    2.682647] mmc0: starting CMD8 arg 000001aa flags 000002f5
    [    2.688446] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.694183] omap_hsmmc omap_hsmmc.0: mmc0: CMD8, argument 0x000001aa
    [    2.700805] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.706512] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.712249] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.717956] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.723693] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.729400] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.735107] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.740844] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.746002] mmc0: req done (CMD8): 0: 000001aa 00000000 00000000 00000000
    [    2.753082] mmc0: starting CMD55 arg 00000000 flags 000000f5
    [    2.759002] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.764709] omap_hsmmc omap_hsmmc.0: mmc0: CMD55, argument 0x00000000
    [    2.771423] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.777160] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.782867] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.788574] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.794311] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.800018] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.805755] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.811462] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.816619] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    [    2.823791] mmc0: starting CMD41 arg 40300000 flags 000000e1
    [    2.829711] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.835418] omap_hsmmc omap_hsmmc.0: mmc0: CMD41, argument 0x40300000
    [    2.842132] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.847869] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.853576] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.859283] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.865020] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.870727] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.876464] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.882171] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.887329] mmc0: req done (CMD41): 0: 40ff8000 00000000 00000000 00000000
    [    2.909698] mmc0: starting CMD55 arg 00000000 flags 000000f5
    [    2.915588] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.921295] omap_hsmmc omap_hsmmc.0: mmc0: CMD55, argument 0x00000000
    [    2.928009] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    2.933746] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    2.939453] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    2.945190] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    2.950897] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    2.956604] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    2.962341] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    2.968048] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    2.973236] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    [    2.980407] mmc0: starting CMD41 arg 40300000 flags 000000e1
    [    2.986297] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    2.992034] omap_hsmmc omap_hsmmc.0: mmc0: CMD41, argument 0x40300000
    [    2.998718] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.004455] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.010192] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.015899] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.021606] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.027313] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.033050] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.038757] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.043945] mmc0: req done (CMD41): 0: 40ff8000 00000000 00000000 00000000
    [    3.069732] mmc0: starting CMD55 arg 00000000 flags 000000f5
    [    3.075622] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.081359] omap_hsmmc omap_hsmmc.0: mmc0: CMD55, argument 0x00000000
    [    3.088073] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.093780] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.099517] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.105224] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.110961] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.116668] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.122375] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.128112] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.133270] mmc0: req done (CMD55): 0: 00000120 00000000 00000000 00000000
    [    3.140441] mmc0: starting CMD41 arg 40300000 flags 000000e1
    [    3.146331] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.152069] omap_hsmmc omap_hsmmc.0: mmc0: CMD41, argument 0x40300000
    [    3.158782] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.164489] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.170227] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.175933] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.181671] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.187377] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.193084] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.198822] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.203979] mmc0: req done (CMD41): 0: c0ff8000 00000000 00000000 00000000
    [    3.211151] mmc0: starting CMD2 arg 00000000 flags 00000067
    [    3.216979] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.222686] omap_hsmmc omap_hsmmc.0: mmc0: CMD2, argument 0x00000000
    [    3.229309] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.235046] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.240753] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.246459] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.252197] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.257904] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.263610] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.269348] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.274505] mmc0: req done (CMD2): 0: 03534453 55303447 80018004 d500c42f
    [    3.281616] mmc0: starting CMD3 arg 00000000 flags 00000075
    [    3.287414] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.293121] omap_hsmmc omap_hsmmc.0: mmc0: CMD3, argument 0x00000000
    [    3.299743] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.305480] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.311218] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.316925] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.322631] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.328338] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.334075] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.339782] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.344970] mmc0: req done (CMD3): 0: aaaa0520 00000000 00000000 00000000
    [    3.352050] mmc0: starting CMD9 arg aaaa0000 flags 00000007
    [    3.357849] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.363586] omap_hsmmc omap_hsmmc.0: mmc0: CMD9, argument 0xaaaa0000
    [    3.370208] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.375915] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.381622] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.387359] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.393066] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.398773] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.404510] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.410217] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.415405] mmc0: req done (CMD9): 0: 400e0032 5b590000 1d8a7f80 0a4040b9
    [    3.422485] mmc0: starting CMD7 arg aaaa0000 flags 00000015
    [    3.428283] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.434020] omap_hsmmc omap_hsmmc.0: mmc0: CMD7, argument 0xaaaa0000
    [    3.440643] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.446350] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.452087] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.457794] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.463500] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.469238] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.474945] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.480651] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.485839] mmc0: req done (CMD7): 0: 00000700 00000000 00000000 00000000
    [    3.492919] mmc0: starting CMD55 arg aaaa0000 flags 00000095
    [    3.498809] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.504547] omap_hsmmc omap_hsmmc.0: mmc0: CMD55, argument 0xaaaa0000
    [    3.511260] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.516967] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.522705] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.528411] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.534118] omap_hsmmc_start_command:928: BWIR DEBUG PRINT
    [    3.539825] omap_hsmmc_start_command:937: BWIR DEBUG PRINT
    [    3.545562] omap_hsmmc_start_command:945: BWIR DEBUG PRINT
    [    3.551269] omap_hsmmc omap_hsmmc.0: IRQ Status is 1
    [    3.556457] mmc0: req done (CMD55): 0: 00000920 00000000 00000000 00000000
    [    3.563629] mmc0: starting CMD51 arg 00000000 flags 000000b5
    [    3.569519] mmc0:     blksz 8 blocks 1 flags 00000200 tsac 100 ms nsac 0
    [    3.576568] omap_hsmmc_start_command:896: BWIR DEBUG PRINT
    [    3.582275] mmc0: req done (CMD51): 0: 00000000 00000000 00000000 00000000
    [    3.589447] mmc0:     0 bytes transferred: 0
    [    3.593902] omap_hsmmc omap_hsmmc.0: mmc0: CMD51, argument 0x00000000
    [    3.600616] omap_hsmmc_start_command:899: BWIR DEBUG PRINT
    [    3.606353] omap_hsmmc_start_command:902: BWIR DEBUG PRINT
    [    3.612060] omap_hsmmc_start_command:904: BWIR DEBUG PRINT
    [    3.617767] omap_hsmmc_start_command:916: BWIR DEBUG PRINT
    [    3.623504] Unable to handle kernel NULL pointer dereference at virtual address 0000000c
    [    3.631958] pgd = c0004000
    [    3.634765] [0000000c] *pgd=00000000
    [    3.638488] Internal error: Oops: 5 [#1]
    [    3.642578] Modules linked in:
    [    3.645751] CPU: 0    Not tainted  (3.2.0-svn1 #7)
    [    3.650787] PC is at omap_hsmmc_start_command+0x14c/0x208
    [    3.656402] LR is at console_unlock+0x170/0x1f8
    [    3.661132] pc : [<c031ccf0>]    lr : [<c003ed50>]    psr: 60000013
    [    3.661132] sp : df835d20  ip : df835c18  fp : df835d4c
    [    3.673095] r10: 00000008  r9 : 00000001  r8 : 00020000
    [    3.678527] r7 : 00000033  r6 : df835de0  r5 : df835e10  r4 : dfa2b280
    [    3.685333] r3 : 00000000  r2 : c0604788  r1 : 0000bb60  r0 : c055dacc
    [    3.692138] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    [    3.699768] Control: 10c5387d  Table: 80004019  DAC: 00000015
    [    3.705749] Process kworker/u:0 (pid: 5, stack limit = 0xdf8342f0)
    [    3.712188] Stack: (0xdf835d20 to 0xdf836000)
    [    3.716735] 5d20: 00000033 00000000 df835e40 dfa2b280 df835e40 dfa2b000 00000000 df835e60
    [    3.725250] 5d40: df835d94 df835d50 c031e5d8 c031cbb0 df835d64 00000008 dfa2b1fc df835de0
    [    3.733795] 5d60: df835d84 00000019 c0425900 df835e40 dfa2b000 00000001 00000008 00000008
    [    3.742309] 5d80: dfa2b1fc df835de0 df835dc4 df835d98 c030d15c c031e4ec 00000200 00000064
    [    3.750823] 5da0: 00000000 c01db44c df835e40 dfa2b000 00000000 dfac0fc0 df835ddc df835dc8
    [    3.759368] 5dc0: c030d460 c030cffc dfabd400 dfabd57c df835e94 df835de0 c0313df4 c030d414
    [    3.767883] 5de0: 05f5e100 00000000 00000008 00000001 00000000 00000200 00000000 00000000
    [    3.776397] 5e00: df835e40 00000001 df835e60 00000000 00000033 00000000 00000000 00000000
    [    3.784942] 5e20: 00000000 00000000 000000b5 00000000 00000000 00000000 df835de0 df835e40
    [    3.793457] 5e40: 00000000 df835e10 df835de0 00000000 00000001 df835e54 df835e54 c030cfd8
    [    3.802001] 5e60: c0a6c802 00000fc0 00000008 9fac0fc0 dfabd400 dfa2b000 00000000 00000000
    [    3.810516] 5e80: df835ed4 df8c0605 df835ec4 df835e98 c0312af8 c0313ca0 00000000 00000000
    [    3.819030] 5ea0: dfa2b000 dfabd400 00000000 00000000 df835ed4 df8c0605 df835f0c df835ec8
    [    3.827575] 5ec0: c0312fa4 c0312a80 00000002 00000000 00000014 03534453 55303447 80018004
    [    3.836090] 5ee0: d500c42f c0ff8000 dfa2b000 00000000 c045b1fc 00000000 c030eb38 df8c0605
    [    3.844604] 5f00: df835f2c df835f10 c03136ac c0312ed4 00000000 40ff8000 dfa2b000 c045b1f0
    [    3.853149] 5f20: df835f4c df835f30 c030ed58 c03135d8 60000013 df817f00 df8c0600 df834000
    [    3.861663] 5f40: df835f84 df835f50 c0051138 c030eb44 c065cbac df817f10 c065cba8 df817f00
    [    3.870208] 5f60: c065cbac df817f10 c065cba8 df834000 00000089 c0605c2c df835fbc df835f88
    [    3.878723] 5f80: c0052fb0 c0051020 df817f00 c0052e54 00000013 df82dee0 df817f00 c0052e54
    [    3.887237] 5fa0: 00000013 00000000 00000000 00000000 df835ff4 df835fc0 c0056fc8 c0052e60
    [    3.895782] 5fc0: df82dee0 00000000 df817f00 00000000 df835fd0 df835fd0 00000000 df82dee0
    [    3.904296] 5fe0: c0056f38 c0041724 00000000 df835ff8 c0041724 c0056f44 48006800 08200808
    [    3.912811] Backtrace: 
    [    3.915374] [<c031cba4>] (omap_hsmmc_start_command+0x0/0x208) from [<c031e5d8>] (omap_hsmmc_request+0xf8/0x4c4)
    [    3.925903]  r8:df835e60 r7:00000000 r6:dfa2b000 r5:df835e40 r4:dfa2b280
    [    3.932922] [<c031e4e0>] (omap_hsmmc_request+0x0/0x4c4) from [<c030d15c>] (mmc_start_request+0x16c/0x214)
    [    3.942901] [<c030cff0>] (mmc_start_request+0x0/0x214) from [<c030d460>] (mmc_wait_for_req+0x58/0x90)
    [    3.952484]  r7:dfac0fc0 r6:00000000 r5:dfa2b000 r4:df835e40
    [    3.958435] [<c030d408>] (mmc_wait_for_req+0x0/0x90) from [<c0313df4>] (mmc_app_send_scr+0x160/0x1b8)
    [    3.968017]  r5:dfabd57c r4:dfabd400
    [    3.971771] [<c0313c94>] (mmc_app_send_scr+0x0/0x1b8) from [<c0312af8>] (mmc_sd_setup_card+0x84/0x408)
    [    3.981475] [<c0312a74>] (mmc_sd_setup_card+0x0/0x408) from [<c0312fa4>] (mmc_sd_init_card+0xdc/0x664)
    [    3.991180] [<c0312ec8>] (mmc_sd_init_card+0x0/0x664) from [<c03136ac>] (mmc_attach_sd+0xe0/0x254)
    [    4.000518] [<c03135cc>] (mmc_attach_sd+0x0/0x254) from [<c030ed58>] (mmc_rescan+0x220/0x280)
    [    4.009399]  r5:c045b1f0 r4:dfa2b000
    [    4.013153] [<c030eb38>] (mmc_rescan+0x0/0x280) from [<c0051138>] (process_one_work+0x124/0x384)
    [    4.022308]  r6:df834000 r5:df8c0600 r4:df817f00 r3:60000013
    [    4.028228] [<c0051014>] (process_one_work+0x0/0x384) from [<c0052fb0>] (worker_thread+0x15c/0x330)
    [    4.037658] [<c0052e54>] (worker_thread+0x0/0x330) from [<c0056fc8>] (kthread+0x90/0x94)
    [    4.046112] [<c0056f38>] (kthread+0x0/0x94) from [<c0041724>] (do_exit+0x0/0x67c)
    [    4.053894]  r6:c0041724 r5:c0056f38 r4:df82dee0
    [    4.058715] Code: e5957000 e30d0acc e30b1b60 e34c0055 (e593300c) 
    [    4.065093] ---[ end trace befc80a82a438458 ]---
    [    4.069976] Unable to handle kernel paging request at virtual address fffffffc
    [    4.077484] pgd = c0004000
    [    4.080322] [fffffffc] *pgd=9fffe821, *pte=00000000, *ppte=00000000
    
    

    And as far as any uninitialized structure is concerned i have gone through the whole loop i couldn't recognize any such structure.

    Thanks

  • Hi all,

             I have pin pointed the error using gdb and kernel log. It is in following line.

    (gdb) list *(omap_hsmmc_start_command+0xc8)
    0x1a0 is in omap_hsmmc_start_command (drivers/mmc/host/omap_hsmmc.c:919).
    914        /*
    915         * Unlike OMAP1 controller, the cmdtype does not seem to be based on
    916         * ac, bc, adtc, bcr. Only commands ending an open ended transfer need
    917         * a val of 0x3, rest 0x0.
    918         */
    919        if (cmd == host->mrq->stop)
    920            cmdtype = 0x3;
    921    
    922        cmdreg = (cmd->opcode << 24) | (resptype << 16) | (cmdtype << 22);
    923    

    Structure host->mrq is NULL. But how do i correct it. Because kernel calls same function 4 to 5 times before crashing. Why does it go to this function 4 or 5 times but doesn't crash? Any pointer will be help full

    Thanks in advance.

  • Has anyone discovered why this is occurring as I am seeing the same issue when I enable spi0?

  • I fixed my issue by changing the order in which I called the spi0_init() within my custom dev_cfg structure.

    static struct evm_dev_cfg gemini_dev_cfg[] = {
        {am335x_rtc_init, DEV_ON_BASEBOARD, PROFILE_ALL},
        {clkout2_enable, DEV_ON_BASEBOARD, PROFILE_ALL},
        {rmii1_gemini_init,     DEV_ON_BASEBOARD, PROFILE_NONE},
        {usb0_init,     DEV_ON_BASEBOARD, PROFILE_ALL},
        {usb1_init,     DEV_ON_BASEBOARD, PROFILE_ALL},

    // {spi0_init,     DEV_ON_BASEBOARD, PROFILE_NONE}, /* moved spi0 from here */
        {gpmc_gemini_init, DEV_ON_BASEBOARD, PROFILE_ALL},                                                                                                                 
        {uart5_gemini_init, DEV_ON_BASEBOARD, PROFILE_ALL},                                                                                                                
        {mmc2_wl12xx_init,      DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 |  PROFILE_5)},                                                                                                               
        {mmc0_init,     DEV_ON_BASEBOARD, (PROFILE_ALL & ~PROFILE_5)},
        {uart1_wl12xx_init,     DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 |  PROFILE_5)},
        {wl12xx_init,   DEV_ON_BASEBOARD, (PROFILE_0 | PROFILE_3 | PROFILE_5)},

        {spi0_init,     DEV_ON_BASEBOARD, PROFILE_NONE}, /* moved spi0 init to here */                                                                              
        {NULL, 0, 0},                                                                                                                                                      
    };