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.

USB0 host mode configuration for AM335

Hi,

I want to set USB0 to HOST mode on my board which is a design based on AM335x.

In AM335x EVM, USB0 is set to OTG and USB1 is set to HOST.

The board file board-am335xevm.c contains the following code for USB configuration

static struct omap_musb_board_data musb_board_data = {
    .interface_type    = MUSB_INTERFACE_ULPI,
    /*
     * mode[0:3] = USB0PORT's mode
     * mode[4:7] = USB1PORT's mode
     * AM335X beta EVM has USB0 in OTG mode and USB1 in host mode.
     */
    .mode           = (MUSB_HOST << 4) | MUSB_OTG,
    .power        = 500,
    .instances    = 1,
};

To set USB0 to HOST I have changed above code  to 

  .mode           = (MUSB_HOST << 4) | MUSB_HOST.

The kernel compiles, but when I try to run, it crashes giving an error --- "Unable to handle kernel NULL pointer dereference at virtual address 00000018"

What could be the problem ? How can I set USB0 to HOST mode ?

Regards

Radhika

  • Radhika,

    Can you post the complete crash log and the System.map file of your kernel?

  • [    3.760925] android_usb: already disabled
    [    3.766601] Unable to handle kernel NULL pointer dereference at virtual address 00000018
    [    3.775146] pgd = dfa98000
    [    3.777954] [00000018] *pgd=9fa86831, *pte=00000000, *ppte=00000000
    [    3.784515] Internal error: Oops: 17 [#1]
    [    3.788696] Modules linked in: rt2800usb(O) rt2800lib(O) rt2x00usb(O) rt2x00lib(O) mac80211(O) cfg80211(O) compat(O)
    [    3.799713] CPU: 0    Tainted: G           O  (3.2.0-g523fcb7-dirty #10)
    [    3.806732] PC is at enable_store+0xb4/0x14c
    [    3.811187] LR is at _parse_integer+0xc4/0xf8
    [    3.815734] pc : [<c0322e88>]    lr : [<c0220430>]    psr: 60000013
    [    3.815734] sp : df82ded8  ip : 00000000  fp : df82defc
    [    3.827697] r10: df3b3a08  r9 : c0554ac8  r8 : 00000001
    [    3.833160] r7 : dfb93b40  r6 : 00000001  r5 : 00000000  r4 : df3c28c0
    [    3.839935] r3 : c0750814  r2 : 00000000  r1 : 00000001  r0 : 00000000
    [    3.846771] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [    3.854187] Control: 10c5387d  Table: 9fa98019  DAC: 00000015
    [    3.860198] 
    [    3.860198] PC: 0xc0322e08:
    [    3.864624] 2e08  e5223004 ebfbe518 e51b1020 e3510000 0a000006 e5d43014 e3530000 159f10dc
    [    3.873199] 2e28  0a000014 e59f00d8 eb0810d8 ea00000e e5d43014 e3530000 059f10c8 0afffff8
    [    3.881744] 2e48  e5950000 e5903000 e5933014 e3530000 0a000000 e12fff33 e1a00005 e59f10a8
    [    3.890319] 2e68  ebfff6d8 e3a03000 e5c43014 e1a00006 e24bd018 e89da870 e59f3090 e1a00005
    [    3.898864] 2e88  e595c018 e2831f43 e59f2084 e1d3e2b8 e7d7c41e e585c018 e5d3c02a e5c5c01b
    [    3.907440] 2ea8  e5d3c02b e5c5c01c e1d3e2bc e595c01c e7d7c41e e585c01c e5d3c024 e5c5c015
    [    3.915985] 2ec8  e5d3c025 e5c5c016 e5d33026 e5c53017 ebfffdca e5950000 e5903000 e5933014
    [    3.924560] 2ee8  e3530000 0a000001 e3a01001 e12fff33 e3a03001 e5c43014 eaffffdb c063ffc4
    [    3.933105] 
    [    3.933105] LR: 0xc02203b0:
    [    3.937561] 03b0  0a000023 e0832593 e2866001 e14b03d4 e0900002 e0233895 e0a11003 e1c700f0
    [    3.946105] 03d0  e7da3006 e3530000 0a00001c e2432030 e6ef1072 e3510009 91a03002 9a000005
    [    3.954681] 03f0  e3833020 e3530060 9a000014 e3530066 8a000012 e2433057 e1530005 2a00000f
    [    3.963226] 0410  e5978004 e1a00003 e3a01000 e1a04005 e14b03f4 e1e00000 e1e01001 ebffba52
    [    3.971801] 0430  e1580003 e5973000 9affffdc e3a09001 eaffffdb e1530002 83a09001 eaffffd8
    [    3.980346] 0450  e3590000 13866102 e1a00006 e24bd028 e89daff0 e1a0c00d e92dd830 e24cb004
    [    3.988891] 0470  e24dd010 e24b3014 e1a05002 e523100c e1a01003 ebffff93 e51b1020 e24b201c
    [    3.997467] 0490  e1a04000 ebffffb4 e3500000 b3e00021 aa000001 e24bd014 e89da830 e3d00102
    [    4.006011] 
    [    4.006011] SP: 0xdf82de58:
    [    4.010467] de58  c021baf0 c021ba2c df82deac df82de70 c021bba8 c021bae0 c0322e88 60000013
    [    4.019012] de78  ffffffff df82dec4 df82defc df82de90 c0529098 c0008418 00000000 00000001
    [    4.027587] de98  00000000 c0750814 df3c28c0 00000000 00000001 dfb93b40 00000001 c0554ac8
    [    4.036132] deb8  df3b3a08 df82defc 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff
    [    4.044708] ded8  00027281 00000001 df82defc dfb93b58 df82df70 df3aa860 df82df0c df82df00
    [    4.053253] def8  c026610c c0322de0 df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa77b40
    [    4.061828] df18  00000001 00027281 df82df70 00000000 00000000 00000000 df82df6c df82df40
    [    4.070373] df38  c00ac160 c01052cc df82c000 dfa77b48 df82df94 dfa77b40 00027281 00000001
    [    4.078918] 
    [    4.078948] FP: 0xdf82de7c:
    [    4.083374] de7c  df82dec4 df82defc df82de90 c0529098 c0008418 00000000 00000001 00000000
    [    4.091949] de9c  c0750814 df3c28c0 00000000 00000001 dfb93b40 00000001 c0554ac8 df3b3a08
    [    4.100494] debc  df82defc 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff 00027281
    [    4.109069] dedc  00000001 df82defc dfb93b58 df82df70 df3aa860 df82df0c df82df00 c026610c
    [    4.117614] defc  c0322de0 df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa77b40 00000001
    [    4.126190] df1c  00027281 df82df70 00000000 00000000 00000000 df82df6c df82df40 c00ac160
    [    4.134735] df3c  c01052cc df82c000 dfa77b48 df82df94 dfa77b40 00027281 00000001 00000004
    [    4.143310] df5c  00000000 df82dfa4 df82df70 c00ac2d0 c00ac0b4 00000000 00000000 beb4be9c
    [    4.151855] 
    [    4.151855] R3: 0xc0750794:
    [    4.156311] 0794  c066836c 00000100 c0320304 00000000 c066837c 00000100 c03202cc 00000000
    [    4.164855] 07b4  c066838c 00000100 c03202a4 00000000 c066839c 00000124 c0320274 00000000
    [    4.173431] 07d4  c06683a4 00000124 c0320244 00000000 c06683b4 00000124 c0320214 00000000
    [    4.181976] 07f4  c06683c4 00000124 c03201e4 00000000 c06683d4 00000124 c03201b4 00000000
    [    4.190551] 0814  00000000 c066927c 00000000 c066929c 00000000 c0660dd0 00000000 00000000
    [    4.199096] 0834  02000112 00000000 d00218d1 0000ffff 00000100 00000000 c0669234 00000000
    [    4.207672] 0854  00000000 00000409 00ffff02 00000000 c0750fe8 00000000 c0750858 c0750e3c
    [    4.216217] 0874  c0750e48 00000000 c0750858 c0750e54 c0750e60 00000000 00000000 c06657dc
    [    4.224792] 
    [    4.224792] R4: 0xdf3c2840:
    [    4.229217] 2840  df3ac7c0 df35d4c4 df8adcf8 df817500 df8adcf8 c07446a0 df3aa7c0 00000004
    [    4.237792] 2860  00000003 c0751360 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.246337] 2880  df3ac980 df3aecf8 df3aecf8 df817500 df3aecf8 c07446a0 df3ad130 00000002
    [    4.254913] 28a0  00000003 df3c2900 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.263458] 28c0  c0750bac c0750ea4 c0750ea4 00000000 df3b3a00 00000000 00000200 df3c28dc
    [    4.272033] 28e0  df3c28dc c0326614 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.280578] 2900  c0668fb0 00000000 00000000 00000000 00000000 df817d00 00000000 00000000
    [    4.289154] 2920  c026a660 00000000 00000000 00000000 00000000 00000000 00000000 df3aec80
    [    4.297698] 
    [    4.297698] R7: 0xdfb93ac0:
    [    4.302154] 3ac0  00000004 00060001 0000003c 0000007c 00000000 00060000 00000892 0000006c
    [    4.310699] 3ae0  00000004 00060001 0000003c 0000006c 00000000 00060000 000008b1 000000c0
    [    4.319274] 3b00  00000008 00040001 0000003c 000000c0 00000000 00040000 000008cd 00000050
    [    4.327819] 3b20  00000004 00060001 0000003c 00000050 00000000 00060000 000008eb 00000078
    [    4.336395] 3b40  00000000 00000000 00000000 00000000 dfb97000 c0554ac8 00000000 dfb93b5c
    [    4.344940] 3b60  dfb93b5c 00000001 00000000 dfbd6b90 dfbd6b90 00000000 00000000 00000000
    [    4.353515] 3b80  00000000 000081b0 000003ea 000003ea 00000000 00000000 386d4382 0f84856e
    [    4.362060] 3ba0  386d4382 0f84856e 386d4382 0f84856e 00000000 00000000 00000000 00000000
    [    4.370635] 
    [    4.370635] R9: 0xc0554a48:
    [    4.375061] 4a48  00000000 00000000 00000000 00000000 c00ab0c8 00000000 00000000 00000000
    [    4.383636] 4a68  00000000 00000000 00000000 00000000 00000000 00000000 c0265bdc 00000000
    [    4.392181] 4a88  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.400756] 4aa8  00000000 00000000 00000000 00000000 00000000 c026614c c0266194 c0266d74
    [    4.409301] 4ac8  c0266a94 c02660e8 00000000 64737973 645f7665 65766972 65725f72 74736967
    [    4.417877] 4ae8  00007265 c0267dd0 c0267df8 00000000 c0267e20 c0267e48 00000000 c02684b8
    [    4.426422] 4b08  00000000 00000000 5f737562 5f646461 76697264 00007265 c026845c c0268488
    [    4.434997] 4b28  00000000 c0268400 c026842c 00000000 76697264 625f7265 646e756f 00000000
    [    4.443542] 
    [    4.443542] R10: 0xdf3b3988:
    [    4.448089] 3988  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.456634] 39a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.465209] 39c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.473754] 39e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 df3b0640
    [    4.482330] 3a08  df3ac9c0 df3b3854 df3b3c0c df3c2880 df817dc0 c0744680 df3ad0e0 00000002
    [    4.490875] 3a28  00000007 00000000 00000000 00000001 df3b3a38 df3b3a38 00000000 00000000
    [    4.499420] 3a48  00000000 00000000 00000000 df3b389c df3b3c54 7fffffff df3b3a60 df3b3a60
    [    4.507995] 3a68  00000000 00000000 00000000 00000000 00000000 c0774c40 c0271564 df3b3a00
    [    4.516571] Process init (pid: 1, stack limit = 0xdf82c2f0)
    [    4.522369] Stack: (0xdf82ded8 to 0xdf82e000)
    [    4.526916] dec0:                                                       00027281 00000001
    [    4.535430] dee0: df82defc dfb93b58 df82df70 df3aa860 df82df0c df82df00 c026610c c0322de0
    [    4.543975] df00: df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa77b40 00000001 00027281
    [    4.552520] df20: df82df70 00000000 00000000 00000000 df82df6c df82df40 c00ac160 c01052cc
    [    4.561035] df40: df82c000 dfa77b48 df82df94 dfa77b40 00027281 00000001 00000004 00000000
    [    4.569580] df60: df82dfa4 df82df70 c00ac2d0 c00ac0b4 00000000 00000000 beb4be9c 00000000
    [    4.578125] df80: c0014508 00000008 00027281 00000001 c0014508 df82c000 00000000 df82dfa8
    [    4.586639] dfa0: c0014360 c00ac298 00000008 00027281 00000008 00027281 00000001 00027283
    [    4.595184] dfc0: 00000008 00027281 00000001 00000004 00000001 00000001 00021704 00000000
    [    4.603698] dfe0: 80000000 beb4be50 0000b34d 00008288 60000010 00000008 91682009 0802be84
    [    4.612243] Backtrace: 
    [    4.614807] [<c0322dd4>] (enable_store+0x0/0x14c) from [<c026610c>] (dev_attr_store+0x24/0x28)
    [    4.623809]  r6:df3aa860 r5:df82df70 r4:dfb93b58
    [    4.628631] [<c02660e8>] (dev_attr_store+0x0/0x28) from [<c01053c4>] (sysfs_write_file+0x104/0x184)
    [    4.638092] [<c01052c0>] (sysfs_write_file+0x0/0x184) from [<c00ac160>] (vfs_write+0xb8/0x14c)
    [    4.647094] [<c00ac0a8>] (vfs_write+0x0/0x14c) from [<c00ac2d0>] (sys_write+0x44/0x74)
    [    4.655334]  r8:00000000 r7:00000004 r6:00000001 r5:00027281 r4:dfa77b40
    [    4.662353] [<c00ac28c>] (sys_write+0x0/0x74) from [<c0014360>] (ret_fast_syscall+0x0/0x30)
    [    4.671081]  r9:df82c000 r8:c0014508 r6:00000001 r5:00027281 r4:00000008
    [    4.678100] Code: e24bd018 e89da870 e59f3090 e1a00005 (e595c018) 
    [    4.684509] ---[ end trace 13123abd8fd37475 ]---
    [    4.689331] Kernel panic - not syncing: Fatal exception
    [    4.694793] Backtrace: 
    [    4.697357] [<c00180dc>] (dump_backtrace+0x0/0x10c) from [<c0526ffc>] (dump_stack+0x18/0x1c)
    [    4.706176]  r7:00000001 r6:00000000 r5:c07640d0 r4:c07640d0
    [    4.712127] [<c0526fe4>] (dump_stack+0x0/0x1c) from [<c0527064>] (panic+0x64/0x198)
    [    4.720123] [<c0527000>] (panic+0x0/0x198) from [<c0018308>] (die+0x120/0x2b4)
    [    4.727661]  r3:00000001 r2:00007f4a r1:00000000 r0:c0622ea0
    [    4.733581] [<c00181e8>] (die+0x0/0x2b4) from [<c001a844>] (__do_kernel_fault+0x6c/0x8c)
    [    4.742065] [<c001a7d8>] (__do_kernel_fault+0x0/0x8c) from [<c052a84c>] (do_page_fault+0xa0/0x228)
    [    4.751403]  r9:dfa7fe34 r8:00010000 r7:00000017 r6:00000018 r5:dfa7fe00
    [    4.758239] r4:df82de90
    [    4.760986] [<c052a7ac>] (do_page_fault+0x0/0x228) from [<c0008448>] (do_DataAbort+0x3c/0xa4)
    [    4.769897] [<c000840c>] (do_DataAbort+0x0/0xa4) from [<c0529098>] (__dabt_svc+0x38/0x60)
    [    4.778442] Exception stack(0xdf82de90 to 0xdf82ded8)
    [    4.783721] de80:                                     00000000 00000001 00000000 c0750814
    [    4.792266] dea0: df3c28c0 00000000 00000001 dfb93b40 00000001 c0554ac8 df3b3a08 df82defc
    [    4.800811] dec0: 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff
    [    4.807708]  r7:df82dec4 r6:ffffffff r5:60000013 r4:c0322e88
    [    4.813659] [<c0322dd4>] (enable_store+0x0/0x14c) from [<c026610c>] (dev_attr_store+0x24/0x28)
    [    4.822662]  r6:df3aa860 r5:df82df70 r4:dfb93b58
    [    4.827514] [<c02660e8>] (dev_attr_store+0x0/0x28) from [<c01053c4>] (sysfs_write_file+0x104/0x184)
    [    4.836975] [<c01052c0>] (sysfs_write_file+0x0/0x184) from [<c00ac160>] (vfs_write+0xb8/0x14c)
    [    4.845977] [<c00ac0a8>] (vfs_write+0x0/0x14c) from [<c00ac2d0>] (sys_write+0x44/0x74)
    [    4.854248]  r8:00000000 r7:00000004 r6:00000001 r5:00027281 r4:dfa77b40
    [    4.861267] [<c00ac28c>] (sys_write+0x0/0x74) from [<c0014360>] (ret_fast_syscall+0x0/0x30)
    [    4.869995]  r9:df82c000 r8:c0014508 r6:00000001 r5:00027281 r4:00000008
    
    
    2330.System.txt

    Hello Renjith,

    I have attached the crash log and System.map (renamed it as System.txt for uploading sake).

    Regards

    Radhika

  • Radhika,

    Can you attach your .config file and also the complete kernel boot logs?

  • Complete kernel boot log --

    U-Boot SPL 2011.09-00000-gab8398a-dirty (Sep 26 2012 - 11:16:35)
    Texas Instruments Revision detection unimplemented
    Inside omap_mmc_init 
    Calling mmc_register 
    Inside mmc_register 
    Returning from  mmc_register 
    Inside omap_mmc_init : Getting out 
    OMAP SD/MMC: 0
    reading u-boot.img
    reading u-boot.img
    
    U-Boot 2011.09-00000-gab8398a-dirty (Sep 26 2012 - 11:16:35)
    
    I2C:   ready
    DRAM:  256 MiB
    WARNING: Caches not enabled
    NAND:  HW ECC Hamming Code selected
    No NAND device found!!!
    0 MiB
    MMC:   Inside omap_mmc_init 
    Calling mmc_register 
    Inside mmc_register 
    Returning from  mmc_register 
    Inside omap_mmc_init : Getting out 
    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
    
    234 bytes read
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    Running uenvcmd ...
    reading uImage
    
    3799704 bytes read
    ## Booting kernel from Legacy Image at 81000000 ...
       Image Name:   Linux-3.2.0-g523fcb7-dirty
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3799640 Bytes = 3.6 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    [    0.000000] Linux version 3.2.0-g523fcb7-dirty (radhika@radhika-laptop) (gcc version 4.4.3 (GCC) ) #12 Mon Oct 8 16:23:122
    [    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: am335xstamp2
    [    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: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=512M root=/dev/mmcblk0p2 rw rootfst 
    [    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: 510960k/510960k available, 13328k 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 - 0xc06c7000   (6908 kB)
    [    0.000000]       .init : 0xc06c7000 - 0xc0707000   ( 256 kB)
    [    0.000000]       .data : 0xc0708000 - 0xc0763100   ( 365 kB)
    [    0.000000]        .bss : 0xc0763124 - 0xc0895010   (1224 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.058959] pid_max: default: 32768 minimum: 301
    [    0.059082] Security Framework initialized
    [    0.059143] Mount-cache hash table entries: 512
    [    0.059539] CPU: Testing write buffer coherency: ok
    [    0.079437] omap_hwmod: pruss: failed to hardreset
    [    0.080230] print_constraints: dummy: 
    [    0.080474] NET: Registered protocol family 16
    [    0.081542] OMAP GPIO hardware version 0.1
    [    0.082458]  Entering STAMP2 board init function in kernel
    [    0.082580] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.083770]  omap_i2c.1: alias fck already exists
    [    0.084136] Board name: STAMP2
    [    0.084136] Board version: V_1.0.0
    [    0.084136] The board is STAMP2 in profile 1
    [    0.084503]  da8xx_lcdc.0: alias fck already exists
    [    0.084625] enable_ehrpwm0 
    [    0.084625] 
    [    0.084625] 
    [    0.084625]  mcasp0_init 
    [    0.084655] 
    [    0.084716]  davinci-mcasp.0: alias fck already exists
    [    0.084899] usb0 init
    [    0.084960]  omap_i2c.2: alias fck already exists
    [    0.085052]  Inside mmc2 init
    [    0.085113]  Inside mmc0 init
    [    0.085205]  omap_hsmmc.0: alias fck already exists
    [    0.085327]  omap_hsmmc.2: alias fck already exists
    [    0.095916]  omap2_mcspi.1: alias fck already exists
    [    0.096038]  omap2_mcspi.2: alias fck already exists
    [    0.096191]  edma.0: alias fck already exists
    [    0.096221]  edma.0: alias fck already exists
    [    0.096221]  edma.0: alias fck already exists
    [    0.107055] bio: create slab <bio-0> at 0
    [    0.108032] SCSI subsystem initialized
    [    0.108886] usbcore: registered new interface driver usbfs
    [    0.109069] usbcore: registered new interface driver hub
    [    0.109222] usbcore: registered new device driver usb
    [    0.109344] musb-ti81xx musb-ti81xx: musb0, board_mode=0x11, plat_mode=0x1
    [    0.109527] musb-ti81xx musb-ti81xx: musb1, board_mode=0x11, plat_mode=0x1
    [    0.129028] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.129913] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.132141] print_constraints: VRTC: 
    [    0.133514] print_constraints: VIO: at 1500 mV 
    [    0.135772] print_constraints: VDD1: 600 <--> 1500 mV at 1262 mV normal 
    [    0.138031] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
    [    0.138977] print_constraints: VDD3: 5000 mV 
    [    0.140319] print_constraints: VDIG1: at 1800 mV 
    [    0.141693] print_constraints: VDIG2: at 1800 mV 
    [    0.143035] print_constraints: VPLL: at 1800 mV 
    [    0.144378] print_constraints: VDAC: at 1800 mV 
    [    0.145751] print_constraints: VAUX1: at 1800 mV 
    [    0.147094] print_constraints: VAUX2: at 3300 mV 
    [    0.148468] print_constraints: VAUX33: at 3300 mV 
    [    0.149810] print_constraints: VMMC: at 3300 mV 
    [    0.150115] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.169006] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    0.169616] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.170166] Bluetooth: Core ver 2.16
    [    0.170227] NET: Registered protocol family 31
    [    0.170257] Bluetooth: HCI device and connection manager initialized
    [    0.170257] Bluetooth: HCI socket layer initialized
    [    0.170257] Bluetooth: L2CAP socket layer initialized
    [    0.170318] Bluetooth: SCO socket layer initialized
    [    0.170471] Switching to clocksource gp timer
    [    0.178222] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.178344] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.178527] MUSB0 controller's USBSS revision = 4ea20800
    [    0.178680] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    0.178771] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 1
    [    0.178894] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.178894] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.178924] usb usb1: Product: MUSB HDRC host driver
    [    0.178924] usb usb1: Manufacturer: Linux 3.2.0-g523fcb7-dirty musb-hcd
    [    0.178955] usb usb1: SerialNumber: musb-hdrc.0
    [    0.179565] hub 1-0:1.0: USB hub found
    [    0.179595] hub 1-0:1.0: 1 port detected
    [    0.179992] musb-hdrc musb-hdrc.0: USB Host mode controller at e083c000 using PIO, IRQ 18
    [    0.180267] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.180419] MUSB1 controller's USBSS revision = 4ea20800
    [    0.180572] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.180603] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 2
    [    0.180725] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.180725] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.180725] usb usb2: Product: MUSB HDRC host driver
    [    0.180755] usb usb2: Manufacturer: Linux 3.2.0-g523fcb7-dirty musb-hcd
    [    0.180755] usb usb2: SerialNumber: musb-hdrc.1
    [    0.181243] hub 2-0:1.0: USB hub found
    [    0.181274] hub 2-0:1.0: 1 port detected
    [    0.181671] musb-hdrc musb-hdrc.1: USB Host mode controller at e083e800 using PIO, IRQ 19
    [    0.182037] NET: Registered protocol family 2
    [    0.182220] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.182617] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.182891] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.183074] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.183105] TCP reno registered
    [    0.183105] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.183135] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.183349] NET: Registered protocol family 1
    [    0.183624] RPC: Registered named UNIX socket transport module.
    [    0.183624] RPC: Registered udp transport module.
    [    0.183624] RPC: Registered tcp transport module.
    [    0.183654] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.183868] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.323699] ashmem: initialized
    [    0.323974] VFS: Disk quotas dquot_6.5.2
    [    0.324035] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.324920] msgmni has been set to 997
    [    0.325988] io scheduler noop registered
    [    0.325988] io scheduler deadline registered
    [    0.326080] io scheduler cfq registered (default)
    [    0.326721] da8xx_lcdc da8xx_lcdc.0: GLCD: Found INNOLUX_AT070TN92 panel
    [    0.326721] innolux_panel_power_ctrl state 1
    [    0.398773] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    1.182403] console [ttyO0] enabled
    [    1.186431] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    1.194152] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    1.201812] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    1.209472] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    1.217132] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    1.230651] brd: module loaded
    [    1.236968] loop: module loaded
    [    1.240417] i2c-core: driver [tsl2550] using legacy suspend method
    [    1.246917] i2c-core: driver [tsl2550] using legacy resume method
    [    1.254272] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.261199] omap2-nand driver initializing
    [    1.265533] OneNAND driver initializing
    [    1.270019] CAN device driver interface
    [    1.274078] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.279937] PPP generic driver version 2.4.2
    [    1.284576] PPP BSD Compression module registered
    [    1.289489] PPP Deflate Compression module registered
    [    1.294921] usbcore: registered new interface driver cdc_ether
    [    1.301055] usbcore: registered new interface driver cdc_eem
    [    1.307037] usbcore: registered new interface driver dm9601
    [    1.312896] usbcore: registered new interface driver cdc_subset
    [    1.319122] cdc_ncm: 04-Aug-2011
    [    1.322570] usbcore: registered new interface driver cdc_ncm
    [    1.328460] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.335357] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
    [    1.341979] usbcore: registered new interface driver cdc_acm
    [    1.347869] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [    1.356262] Initializing USB Mass Storage driver...
    [    1.361480] usbcore: registered new interface driver usb-storage
    [    1.367767] USB Mass Storage support registered.
    [    1.372772] usbcore: registered new interface driver usbserial
    [    1.378875] USB Serial support registered for generic
    [    1.384246] usbcore: registered new interface driver usbserial_generic
    [    1.391052] usbserial: USB Serial Driver core
    [    1.395660] USB Serial support registered for GSM modem (1-port)
    [    1.402130] usbcore: registered new interface driver option
    [    1.407928] option: v0.7.2:USB Driver for GSM modems
    [    1.413574] mousedev: PS/2 mouse device common for all mice
    [    1.420288] rtc base is f9e3e000
    [    1.424072] using rtc device, omap_rtc, for alarms
    [    1.428924] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    1.435852] i2c /dev entries driver
    [    1.439788] Linux video capture interface: v2.00
    [    1.444763] usbcore: registered new interface driver uvcvideo
    [    1.450744] USB Video Class driver (1.1.1)
    [    1.455017] BQ27410 i2c driver module init
    [    1.459350]  bq27410 battery probe
    [    1.464111]  voltage read is 3968
    [    1.468444]  flags read is 0x1
    [    1.472503]  Capacity read is 0
    [    1.476593]  voltage read is 3968
    [    1.481750]  NAC read is 0
    [    1.485626]  getting mains property
    [    1.490112]  flags read is 0x1
    [    1.493347] bq27410_battery 1-0055: support ver. 1.2.0 enabled
    [    1.499572]  getting mains property
    [    1.503784]  flags read is 0x1
    [    1.508514]  flags read is 0x1
    [    1.511749]  getting mains property
    [    1.516235]  voltage read is 3968
    [    1.521209]  flags read is 0x1
    [    1.525268]  flags read is 0x1
    [    1.529327]  Capacity read is 0
    [    1.533447]  Capacity read is 0
    [    1.538482]  voltage read is 3968
    [    1.542846]  FFC/LMD read is 4713000
    [    1.548339] Registered BQ27410 i2c driver
    [    1.552581]  bq24168_battery_probe: i2C is detected. That is why we are here!
    [    1.560119] bq24168_charger 1-006b: support ver. 1.0.0 enabled
    [    1.567077]  NAC read is 0
    [    1.572601]  flags read is 0x1
    [    1.577148]  voltage read is 3968
    [    1.581939]  flags read is 0x1
    [    1.586425]  Capacity read is 0
    [    1.591033]  voltage read is 3968
    [    1.596282]  status_control register value is 0
    [    1.601013]  bat_sup_status register value is f0
    [    1.605834]  control register value is dc
    [    1.610015]  control_bat_volt value control is 14
    [    1.614929]  vend_part_rev register value is 45
    [    1.619659]  set_term_fastchrg register value is 32
    [    1.624725]  dppm_status register value is 0
    [    1.629180]  timer_ntc_mon register value is 18
    [    1.633911]  CHARGE voltage should have chaged to 4v here. This means I2C write has happened successfully
    [    1.643951] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [    1.651702]  NAC read is 0
    [    1.657012]  control bat current register setting is 2
    [    1.665954]  [2]status_control register value is 0
    [    1.670959]  [2]bat_sup_status register value is f0
    [    1.676055]  [2]control register value is 8c
    [    1.680480]  [2]control_bat_volt value control is 8e
    [    1.685668]  [2]vend_part_rev register value is 45
    [    1.690673]  [2]set_term_fastchrg register value is 2
    [    1.695953]  [2]dppm_status register value is 0
    [    1.700653]  [2]timer_ntc_mon register value is 18
    [    1.708435] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.714996] device-mapper: uevent: version 1.0.3
    [    1.720001] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
    [    1.728820] Bluetooth: Virtual HCI driver ver 1.3
    [    1.733856] Bluetooth: HCI UART driver ver 2.2
    [    1.738494] Bluetooth: HCI H4 protocol initialized
    [    1.743499] Bluetooth: HCI BCSP protocol initialized
    [    1.748657] Bluetooth: HCILL protocol initialized
    [    1.753570] Bluetooth: BlueFRITZ! USB driver ver 1.2
    [    1.758850] usbcore: registered new interface driver bfusb
    [    1.764587] Bluetooth: Generic Bluetooth USB driver ver 0.6
    [    1.770507] usbcore: registered new interface driver btusb
    [    1.776245] Bluetooth: Generic Bluetooth SDIO driver ver 0.1
    [    1.782196] Bluetooth: Bluetooth Driver for TI WiLink - Version 1.0
    [    1.790588] cpuidle: using governor ladder
    [    1.795043] cpuidle: using governor menu
    [    1.802612] usbcore: registered new interface driver usbhid
    [    1.808441] usbhid: USB HID core driver
    [    1.813293] logger: created 256K log 'log_main'
    [    1.818115] logger: created 256K log 'log_events'
    [    1.823150] logger: created 256K log 'log_radio'
    [    1.828063] logger: created 256K log 'log_system'
    [    1.833496] usbcore: registered new interface driver snd-usb-audio
    [    1.841491] usb 2-1: New USB device found, idVendor=0424, idProduct=2412
    [    1.848541] usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
    [    1.856597] hub 2-1:1.0: USB hub found
    [    1.860595] hub 2-1:1.0: 2 ports detected
    [    2.027709] Completed adding dapm widgets size = 24
    [    2.038055] Completed adding DAPM routes = 32
    [    2.046295] mmc0: host does not support reading read-only switch. assuming write-enable.
    [    2.054870] mmc0: new SD card at address 61ac
    [    2.060058] mmcblk0: mmc0:61ac SD02G 1.83 GiB 
    [    2.066467]  mmcblk0: p1 p2 p3
    [    2.073211] widgets updated
    [    2.078796] asoc: tlv320aic31xx-dai <-> davinci-mcasp.0 mapping ok
    [    2.086090] ALSA device list:
    [    2.089202]   #0: AM335X EVM
    [    2.092254] oprofile: hardware counters not available
    [    2.097503] oprofile: using timer interrupt.
    [    2.102142] Netfilter messages via NETLINK v0.30.
    [    2.107177] nf_conntrack version 0.5.0 (7983 buckets, 31932 max)
    [    2.113861] ctnetlink v0.93: registering with nfnetlink.
    [    2.119476] NF_TPROXY: Transparent proxy support initialized, version 4.1.0
    [    2.126739] NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
    [    2.133148] xt_time: kernel timezone is -0000
    [    2.137939] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.143737] arp_tables: (C) 2002 David S. Miller
    [    2.148620] TCP cubic registered
    [    2.152191] NET: Registered protocol family 10
    [    2.157623] Mobile IPv6
    [    2.160217] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    2.166107] IPv6 over IPv4 tunneling driver
    [    2.171081] NET: Registered protocol family 17
    [    2.175811] NET: Registered protocol family 15
    [    2.180450] can: controller area network core (rev 20090105 abi 8)
    [    2.187042] NET: Registered protocol family 29
    [    2.191680] can: raw protocol (rev 20090105)
    [    2.196136] can: broadcast manager protocol (rev 20090105 t)
    [    2.202545] Bluetooth: RFCOMM TTY layer initialized
    [    2.207641] Bluetooth: RFCOMM socket layer initialized
    [    2.213043] Bluetooth: RFCOMM ver 1.11
    [    2.216949] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
    [    2.222503] Bluetooth: BNEP filters: protocol multicast
    [    2.227935] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [    2.234283] Registering the dns_resolver key type
    [    2.239288] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    2.247283] ThumbEE CPU extension supported.
    [    2.251831] mux: Failed to setup hwmod io irq -22
    [    2.257415] Power Management for AM33XX family
    [    2.262298] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    2.268951] Copied the M3 firmware to UMEM
    [    2.273254]  ehrpwm0 late init
    [    2.281524] clock: disabling unused clocks to save power
    [    2.289520] input: gpio-keys as /devices/platform/gpio-keys/input/input0
    [    2.296752]  !!state is 0, buttoncode is 158
    [    2.301239]  !!state is 0, buttoncode is 116
    [    2.305816] 
    [    2.305816] 
    [    2.305816]  goodix_ts_init 
    [    2.305847] 
    [    2.341735] input: Goodix TouchScreen of GT80X as /devices/virtual/input/input1
    [    2.349578] 
    [    2.349578]  goodix_ts_probe configuring interrupt 
    [    2.371246] usb 2-1.2: new high-speed USB device number 3 using musb-hdrc
    [    2.381134] enabling irq 
    [    2.381164] 
    [    2.415069] Goodix-TS 2-0055:  Guitar Version: GT801_1R07_2011081501_Goodix_Tech      
    [    2.506713] usb 2-1.2: New USB device found, idVendor=148f, idProduct=3070
    [    2.513916] usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.521545] usb 2-1.2: Product: 802.11 n WLAN
    [    2.526092] usb 2-1.2: Manufacturer: Ralink
    [    2.530456] usb 2-1.2: SerialNumber: 1.0
    [    2.931182] Goodix-TS 2-0055: Start  Goodix TouchScreen of GT80X in Interrupt mode
    [    2.939208] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [    3.133514] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.142089] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    3.148803] Freeing init memory: 256K
    [    3.211822] init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
    [    3.241729]  Got FUEL_GAUGE_IRQ and hence inside fuel_gauge_work
    [    3.249908]  Capacity read is 0
    [    3.255920]  FFC/LMD read is 4713000
    [    3.260620]  flags read is 0x88
    [    3.264984]  voltage read is 3888
    [    3.269317]  flags read is 0x88
    [    3.273956]  Capacity read is 0
    [    3.278106]  voltage read is 3888
    [    3.283416]  NAC read is 0
    [    3.301177]  voltage read is 3888
    [    3.305572]  flags read is 0x88
    [    3.309722]  Capacity read is 0
    [    3.313842]  voltage read is 3888
    [    3.319030]  NAC read is 0
    [    3.322998]  getting mains property
    [    3.327514]  flags read is 0x88
    [    3.409240] init: cannot open '/initlogo.rle'
    [    3.455871] Disabling lock debugging due to kernel taint
    [    3.462127] Compat-wireless backport release: ol_R5.00.21
    [    3.467773] Backport based on wl12xx.git ol_R5.00.21
    [    3.511596] cfg80211: Calling CRDA to update world regulatory domain
    [    3.701721] usb 2-1.2: reset high-speed USB device number 3 using musb-hdrc
    [    3.726074] cfg80211: World regulatory domain updated:
    [    3.731475] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [    3.740264] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    3.748535] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    3.756805] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    3.765075] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    3.773345] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    3.879577] usbcore: registered new interface driver rt2800usb
    [    3.897888] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
    [    3.908752] android_usb: already disabled
    [    3.914581] Unable to handle kernel NULL pointer dereference at virtual address 00000018
    [    3.923126] pgd = dfa94000
    [    3.925933] [00000018] *pgd=9fa7f831, *pte=00000000, *ppte=00000000
    [    3.932495] Internal error: Oops: 17 [#1]
    [    3.936676] Modules linked in: rt2800usb(O) rt2800lib(O) rt2x00usb(O) rt2x00lib(O) mac80211(O) cfg80211(O) compat(O)
    [    3.947692] CPU: 0    Tainted: G           O  (3.2.0-g523fcb7-dirty #12)
    [    3.954711] PC is at enable_store+0xb4/0x14c
    [    3.959167] LR is at _parse_integer+0xc4/0xf8
    [    3.963714] pc : [<c0322e88>]    lr : [<c0220430>]    psr: 60000013
    [    3.963714] sp : df82ded8  ip : 00000000  fp : df82defc
    [    3.975677] r10: df3b3a08  r9 : c0554ac8  r8 : 00000001
    [    3.981109] r7 : dfacc980  r6 : 00000001  r5 : 00000000  r4 : df3c28c0
    [    3.987915] r3 : c0750814  r2 : 00000000  r1 : 00000001  r0 : 00000000
    [    3.994720] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user
    [    4.002166] Control: 10c5387d  Table: 9fa94019  DAC: 00000015
    [    4.008148] 
    [    4.008148] PC: 0xc0322e08:
    [    4.012603] 2e08  e5223004 ebfbe518 e51b1020 e3510000 0a000006 e5d43014 e3530000 159f10dc
    [    4.021179] 2e28  0a000014 e59f00d8 eb0810d8 ea00000e e5d43014 e3530000 059f10c8 0afffff8
    [    4.029724] 2e48  e5950000 e5903000 e5933014 e3530000 0a000000 e12fff33 e1a00005 e59f10a8
    [    4.038269] 2e68  ebfff6d8 e3a03000 e5c43014 e1a00006 e24bd018 e89da870 e59f3090 e1a00005
    [    4.046844] 2e88  e595c018 e2831f43 e59f2084 e1d3e2b8 e7d7c41e e585c018 e5d3c02a e5c5c01b
    [    4.055389] 2ea8  e5d3c02b e5c5c01c e1d3e2bc e595c01c e7d7c41e e585c01c e5d3c024 e5c5c015
    [    4.063964] 2ec8  e5d3c025 e5c5c016 e5d33026 e5c53017 ebfffdca e5950000 e5903000 e5933014
    [    4.072509] 2ee8  e3530000 0a000001 e3a01001 e12fff33 e3a03001 e5c43014 eaffffdb c063ffc4
    [    4.081054] 
    [    4.081054] LR: 0xc02203b0:
    [    4.085510] 03b0  0a000023 e0832593 e2866001 e14b03d4 e0900002 e0233895 e0a11003 e1c700f0
    [    4.094085] 03d0  e7da3006 e3530000 0a00001c e2432030 e6ef1072 e3510009 91a03002 9a000005
    [    4.102630] 03f0  e3833020 e3530060 9a000014 e3530066 8a000012 e2433057 e1530005 2a00000f
    [    4.111175] 0410  e5978004 e1a00003 e3a01000 e1a04005 e14b03f4 e1e00000 e1e01001 ebffba52
    [    4.119750] 0430  e1580003 e5973000 9affffdc e3a09001 eaffffdb e1530002 83a09001 eaffffd8
    [    4.128295] 0450  e3590000 13866102 e1a00006 e24bd028 e89daff0 e1a0c00d e92dd830 e24cb004
    [    4.136871] 0470  e24dd010 e24b3014 e1a05002 e523100c e1a01003 ebffff93 e51b1020 e24b201c
    [    4.145416] 0490  e1a04000 ebffffb4 e3500000 b3e00021 aa000001 e24bd014 e89da830 e3d00102
    [    4.153961] 
    [    4.153961] SP: 0xdf82de58:
    [    4.158416] de58  c021baf0 c021ba2c df82deac df82de70 c021bba8 c021bae0 c0322e88 60000013
    [    4.166992] de78  ffffffff df82dec4 df82defc df82de90 c0529098 c0008418 00000000 00000001
    [    4.175537] de98  00000000 c0750814 df3c28c0 00000000 00000001 dfacc980 00000001 c0554ac8
    [    4.184082] deb8  df3b3a08 df82defc 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff
    [    4.192657] ded8  00027281 00000001 df82defc dfacc998 df82df70 df3aa860 df82df0c df82df00
    [    4.201202] def8  c026610c c0322de0 df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa85340
    [    4.209777] df18  00000001 00027281 df82df70 00000000 00000000 00000000 df82df6c df82df40
    [    4.218322] df38  c00ac160 c01052cc df82c000 dfa85348 df82df94 dfa85340 00027281 00000001
    [    4.226867] 
    [    4.226898] FP: 0xdf82de7c:
    [    4.231323] de7c  df82dec4 df82defc df82de90 c0529098 c0008418 00000000 00000001 00000000
    [    4.239898] de9c  c0750814 df3c28c0 00000000 00000001 dfacc980 00000001 c0554ac8 df3b3a08
    [    4.248443] debc  df82defc 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff 00027281
    [    4.257019] dedc  00000001 df82defc dfacc998 df82df70 df3aa860 df82df0c df82df00 c026610c
    [    4.265563] defc  c0322de0 df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa85340 00000001
    [    4.274108] df1c  00027281 df82df70 00000000 00000000 00000000 df82df6c df82df40 c00ac160
    [    4.282684] df3c  c01052cc df82c000 dfa85348 df82df94 dfa85340 00027281 00000001 00000004
    [    4.291229] df5c  00000000 df82dfa4 df82df70 c00ac2d0 c00ac0b4 00000000 00000000 bed81e9c
    [    4.299804] 
    [    4.299804] R3: 0xc0750794:
    [    4.304260] 0794  c066836c 00000100 c0320304 00000000 c066837c 00000100 c03202cc 00000000
    [    4.312805] 07b4  c066838c 00000100 c03202a4 00000000 c066839c 00000124 c0320274 00000000
    [    4.321350] 07d4  c06683a4 00000124 c0320244 00000000 c06683b4 00000124 c0320214 00000000
    [    4.329925] 07f4  c06683c4 00000124 c03201e4 00000000 c06683d4 00000124 c03201b4 00000000
    [    4.338470] 0814  00000000 c066927c 00000000 c066929c 00000000 c0660dd0 00000000 00000000
    [    4.347045] 0834  02000112 00000000 d00218d1 0000ffff 00000100 00000000 c0669234 00000000
    [    4.355590] 0854  00000000 00000409 00ffff02 00000000 c0750fe8 00000000 c0750858 c0750e3c
    [    4.364135] 0874  c0750e48 00000000 c0750858 c0750e54 c0750e60 00000000 00000000 c06657dc
    [    4.372711] 
    [    4.372711] R4: 0xdf3c2840:
    [    4.377166] 2840  df3ac7c0 df35d4c4 df8adcf8 df817500 df8adcf8 c07446a0 df3aa7c0 00000004
    [    4.385711] 2860  00000003 c0751360 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.394256] 2880  df3ac980 df3aecf8 df3aecf8 df817500 df3aecf8 c07446a0 df3ad130 00000002
    [    4.402832] 28a0  00000003 df3c2900 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.411376] 28c0  c0750bac c0750ea4 c0750ea4 00000000 df3b3a00 00000000 00000200 df3c28dc
    [    4.419952] 28e0  df3c28dc c0326614 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.428497] 2900  c0668fb0 00000000 00000000 00000000 00000000 df817d00 00000000 00000000
    [    4.437042] 2920  c026a660 00000000 00000000 00000000 00000000 00000000 00000000 df3aec80
    [    4.445617] 
    [    4.445617] R7: 0xdfacc900:
    [    4.450073] c900  000179ec 00065e1c 00017a28 0006581c 00017a44 0007cc1c 00017a58 00077b1c
    [    4.458618] c920  00017a68 00060a1c 00017a74 0006581c 00017a7c 0007231c 00017a8c 0006171c
    [    4.467163] c940  00017aac 0006581c 00017b90 0006511c 00017bb8 00074f1c 00017bf0 0007321c
    [    4.475738] c960  00017bf8 0007321c 00017c0c 00064b1c 00017c20 0007d61c 00017c28 0007d61c
    [    4.484283] c980  00000000 00000000 00000000 00000000 dfadc000 c0554ac8 00000000 dfacc99c
    [    4.492858] c9a0  dfacc99c 00000001 00000000 dfb8f210 dfb8f210 00000000 00000000 00000000
    [    4.501403] c9c0  00000001 00000018 00000100 642f0001 732f7665 656b636f 6e642f74 6f727073
    [    4.509948] c9e0  00647978 0006311c 00017ec4 0006311c 00017ecc 0008141c 00017ee4 0007101c
    [    4.518524] 
    [    4.518524] R9: 0xc0554a48:
    [    4.522979] 4a48  00000000 00000000 00000000 00000000 c00ab0c8 00000000 00000000 00000000
    [    4.531524] 4a68  00000000 00000000 00000000 00000000 00000000 00000000 c0265bdc 00000000
    [    4.540100] 4a88  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.548645] 4aa8  00000000 00000000 00000000 00000000 00000000 c026614c c0266194 c0266d74
    [    4.557189] 4ac8  c0266a94 c02660e8 00000000 64737973 645f7665 65766972 65725f72 74736967
    [    4.565765] 4ae8  00007265 c0267dd0 c0267df8 00000000 c0267e20 c0267e48 00000000 c02684b8
    [    4.574310] 4b08  00000000 00000000 5f737562 5f646461 76697264 00007265 c026845c c0268488
    [    4.582885] 4b28  00000000 c0268400 c026842c 00000000 76697264 625f7265 646e756f 00000000
    [    4.591430] 
    [    4.591430] R10: 0xdf3b3988:
    [    4.595977] 3988  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.604522] 39a8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.613098] 39c8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [    4.621643] 39e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 df3b0640
    [    4.630187] 3a08  df3ac9c0 df3b3854 df3b3c0c df3c2880 df817dc0 c0744680 df3ad0e0 00000002
    [    4.638763] 3a28  00000007 00000000 00000000 00000001 df3b3a38 df3b3a38 00000000 00000000
    [    4.647308] 3a48  00000000 00000000 00000000 df3b389c df3b3c54 7fffffff df3b3a60 df3b3a60
    [    4.655883] 3a68  00000000 00000000 00000000 00000000 00000000 c0774c40 c0271564 df3b3a00
    [    4.664428] Process init (pid: 1, stack limit = 0xdf82c2f0)
    [    4.670257] Stack: (0xdf82ded8 to 0xdf82e000)
    [    4.674774] dec0:                                                       00027281 00000001
    [    4.683319] dee0: df82defc dfacc998 df82df70 df3aa860 df82df0c df82df00 c026610c c0322de0
    [    4.691864] df00: df82df3c df82df10 c01053c4 c02660f4 df82df70 dfa85340 00000001 00027281
    [    4.700378] df20: df82df70 00000000 00000000 00000000 df82df6c df82df40 c00ac160 c01052cc
    [    4.708923] df40: df82c000 dfa85348 df82df94 dfa85340 00027281 00000001 00000004 00000000
    [    4.717437] df60: df82dfa4 df82df70 c00ac2d0 c00ac0b4 00000000 00000000 bed81e9c 00000000
    [    4.725982] df80: c0014508 00000008 00027281 00000001 c0014508 df82c000 00000000 df82dfa8
    [    4.734527] dfa0: c0014360 c00ac298 00000008 00027281 00000008 00027281 00000001 00027283
    [    4.743041] dfc0: 00000008 00027281 00000001 00000004 00000001 00000001 00021704 00000000
    [    4.751586] dfe0: 80000000 bed81e50 0000b34d 00008288 60000010 00000008 91682009 0902be85
    [    4.760101] Backtrace: 
    [    4.762664] [<c0322dd4>] (enable_store+0x0/0x14c) from [<c026610c>] (dev_attr_store+0x24/0x28)
    [    4.771667]  r6:df3aa860 r5:df82df70 r4:dfacc998
    [    4.776489] [<c02660e8>] (dev_attr_store+0x0/0x28) from [<c01053c4>] (sysfs_write_file+0x104/0x184)
    [    4.785949] [<c01052c0>] (sysfs_write_file+0x0/0x184) from [<c00ac160>] (vfs_write+0xb8/0x14c)
    [    4.794921] [<c00ac0a8>] (vfs_write+0x0/0x14c) from [<c00ac2d0>] (sys_write+0x44/0x74)
    [    4.803192]  r8:00000000 r7:00000004 r6:00000001 r5:00027281 r4:dfa85340
    [    4.810211] [<c00ac28c>] (sys_write+0x0/0x74) from [<c0014360>] (ret_fast_syscall+0x0/0x30)
    [    4.818939]  r9:df82c000 r8:c0014508 r6:00000001 r5:00027281 r4:00000008
    [    4.825927] Code: e24bd018 e89da870 e59f3090 e1a00005 (e595c018) 
    [    4.832336] ---[ end trace 0aaa32b85465e670 ]---
    [    4.837158] Kernel panic - not syncing: Fatal exception
    [    4.842620] Backtrace: 
    [    4.845214] [<c00180dc>] (dump_backtrace+0x0/0x10c) from [<c0526ffc>] (dump_stack+0x18/0x1c)
    [    4.854034]  r7:00000001 r6:00000000 r5:c07640d0 r4:c07640d0
    [    4.859954] [<c0526fe4>] (dump_stack+0x0/0x1c) from [<c0527064>] (panic+0x64/0x198)
    [    4.867950] [<c0527000>] (panic+0x0/0x198) from [<c0018308>] (die+0x120/0x2b4)
    [    4.875518]  r3:00000001 r2:0000831d r1:00000000 r0:c0622ea0
    [    4.881439] [<c00181e8>] (die+0x0/0x2b4) from [<c001a844>] (__do_kernel_fault+0x6c/0x8c)
    [    4.889892] [<c001a7d8>] (__do_kernel_fault+0x0/0x8c) from [<c052a84c>] (do_page_fault+0xa0/0x228)
    [    4.899261]  r9:dfa79e34 r8:00010000 r7:00000017 r6:00000018 r5:dfa79e00
    [    4.906097] r4:df82de90
    [    4.908843] [<c052a7ac>] (do_page_fault+0x0/0x228) from [<c0008448>] (do_DataAbort+0x3c/0xa4)
    [    4.917755] [<c000840c>] (do_DataAbort+0x0/0xa4) from [<c0529098>] (__dabt_svc+0x38/0x60)
    [    4.926269] Exception stack(0xdf82de90 to 0xdf82ded8)
    [    4.931549] de80:                                     00000000 00000001 00000000 c0750814
    [    4.940093] dea0: df3c28c0 00000000 00000001 dfacc980 00000001 c0554ac8 df3b3a08 df82defc
    [    4.948638] dec0: 00000000 df82ded8 c0220430 c0322e88 60000013 ffffffff
    [    4.955535]  r7:df82dec4 r6:ffffffff r5:60000013 r4:c0322e88
    [    4.961486] [<c0322dd4>] (enable_store+0x0/0x14c) from [<c026610c>] (dev_attr_store+0x24/0x28)
    [    4.970489]  r6:df3aa860 r5:df82df70 r4:dfacc998
    [    4.975311] [<c02660e8>] (dev_attr_store+0x0/0x28) from [<c01053c4>] (sysfs_write_file+0x104/0x184)
    [    4.984771] [<c01052c0>] (sysfs_write_file+0x0/0x184) from [<c00ac160>] (vfs_write+0xb8/0x14c)
    [    4.993774] [<c00ac0a8>] (vfs_write+0x0/0x14c) from [<c00ac2d0>] (sys_write+0x44/0x74)
    [    5.002044]  r8:00000000 r7:00000004 r6:00000001 r5:00027281 r4:dfa85340
    [    5.009063] [<c00ac28c>] (sys_write+0x0/0x74) from [<c0014360>] (ret_fast_syscall+0x0/0x30)
    [    5.017791]  r9:df82c000 r8:c0014508 r6:00000001 r5:00027281 r4:00000008
    
    

    config file --

    Hello Renjith,

    Find the complete boot log and kernel config file attached.

    Thanks and Regards

    Radhika

  • 6332.config.txt

    Attaching the kernel config file. Got missed in the earlier mail.

    Regards

    Radhika

  • Radhika,

    Are you using a RALink WLAN module? Have you seen the error occurring if the module is not connected?Are you inserting an ralink driver after booting up? If so, try not to insert the module and see the behavior.

  • Hello Renjith,

    The RALink USB module is always plugged in. I am not plugging it during boot-up. This module is on USB1 interface of AM335x. I am seeing a crash during boot-up when USB0 is configured as HOST. If USB0 is configured as OTG, the system works fine. Nothing is connected on USB0.

    Regards

    Radhika

  • Radhika,

    In you .config file the USB controller glue interface used is CONFIG_USB_MUSB_TI81XX_GLUE=y CONFIG_USB_MUSB_TI81XX=y, I don't think AM335x is using the same interface as 81xx's. Could you please check this? Also please post the link to the kernel version that you are using.

  • Hello Renjith,

    I checked the defconfig file of AM335x EVM from TI (arch/arm/configs/am335x_evm_defconfig), the Platform Glue Layer configuration is CONFIG_USB_MUSB_TI81XX=y.

    I have not changed it in my config file.

    Regards

    Radhika

  • Radhika,

    If you see the crash log "Modules linked in: rt2800usb(O) rt2800lib(O) rt2x00usb(O) rt2x00lib(O) mac80211(O) cfg80211(O) compat(O)" says that these modules are inserted into the kernel. 

    Also if you see the .config file these modules are not included in kernel and not as modules also. 

    # CONFIG_CFG80211 is not set
    # CONFIG_LIB80211 is not set

    So, could you please check whether these modules are present in your filesystem and see whether its getting inserted also. From that you'll be able to figure out whether its really getting compiled for this particular kernel or whether you are using some old ones or not. If so, please compile it again and use it if required.

  • Hello Renjith,

    The Wifi driver is compiled in the filesystem. It is inserted by the init.rc script. The WiFi works properly and I am able to browse. It is problem with USB0 port which when configured as HOST instead of OTG, the kernel crashes during boot. USB1 which contains the WiFi is working fine.

    Regards

    Radhika

  • Radhika,

    I understand that USB0 is the problem. But to debug this further, we need to figure out what in USB0 is causing the trouble. As a first step, if we can try removing the modules and see whether any function call from the above modules are causing the trouble or not. Also, if the modules are not compiled with the latest kernel configuration as reference this can happen. Please try removing the modules one by one so that we can pin point which module is creating the trouble.

  • Hello Renjith,

    I touched some files in WiFi source code, to see if it compiles. When I compile android, WiFi also gets compiled.

    I will try removing the modules one by one and then get back.

    Thanks and Regards

    Radhika