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/AM3357: USB OTG unable to enumerate storage device

Part Number: AM3357
Other Parts Discussed in Thread: AM3352, TPS65910, TLV320AIC3106

Tool/software: Linux

Hello Sir,


I am trying to bring up usb0 as otg. I followed the configuration as given in the link below,

I followed the steps for OTG port and configured USB gadget support as module in the menuconfig. when I flashed the kernel I could able to get the enumeration of the device connected on usb1 properly.

Now I connected Sandisk usb storage device and I couldn't get the enumeration, later i tried to insert the g_mass_storage but it didn't get added. We tried above exercise in two cases, keeping external switch to power VBUS line and removing the switch but the result was same.

These are the logs,

when external switch was there, with OTG port configuration i got the dmesg log as given below,

root@am335x-evm:~# dmesg | grep usb
[   10.590850] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
[   10.590888] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
[   10.590911] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.590926] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.590939] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
[   10.590955] am335x-phy-driver 47401300.usb-phy: lookup for GPIO reset failed
[   10.590970] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
[   10.590982] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
[   10.590996] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.591009] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.591021] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
[   10.591035] am335x-phy-driver 47401300.usb-phy: lookup for GPIO vbus-detect failed
[   10.591129] 47401300.usb-phy supply vcc not found, using dummy regulator
[   10.713483] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer reset
[   10.713522] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
[   10.713543] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.713558] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.713572] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
[   10.713587] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO reset failed
[   10.713602] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus-detect
[   10.713614] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
[   10.713628] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.713641] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.713654] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
[   10.713667] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO vbus-detect failed
[   10.713758] 47401b00.usb-phy supply vcc not found, using dummy regulator
[   19.470784] usbcore: registered new interface driver usbfs
[   19.476441] usbcore: registered new interface driver hub
[   19.610612] usbcore: registered new device driver usb
[   19.845402] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[   19.845437] musb-hdrc: MHDRC RTL version 2.0
[   19.845449] musb-hdrc: setup fifo_mode 4
[   19.845475] musb-hdrc: 28/31 max ep, 16384/16384 memory
[   19.845671] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[   19.889467] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[   20.018126] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[   20.018159] musb-hdrc: MHDRC RTL version 2.0
[   20.018172] musb-hdrc: setup fifo_mode 4
[   20.018194] musb-hdrc: 28/31 max ep, 16384/16384 memory
[   20.018356] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[   20.081780] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[   21.319388] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[   21.939934] cdc_ether 2-1:1.10 usb0: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:00
[   22.010210] cdc_ether 2-1:1.12 usb1: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:01
[   22.022924] usbcore: registered new interface driver cdc_acm
[   22.072319] usbcore: registered new interface driver cdc_ether
[   22.500018] cdc_ether 2-1:1.12 usb1: CDC: unexpected notification 01!
[   22.650006] cdc_ether 2-1:1.10 usb0: CDC: unexpected notification 01!

I have tried to insert the module
root@am335x-evm:/lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/usb/gadget/legacy# insmod g_mass_storage.ko
[ 2148.928847] g_mass_storage: Unknown symbol fsg_common_set_ops (err 0)
[ 2148.935773] g_mass_storage: Unknown symbol fsg_common_set_sysfs (err 0)
[ 2148.948474] g_mass_storage: Unknown symbol usb_get_function_instance (err 0)
[ 2148.963262] g_mass_storage: Unknown symbol usb_string_ids_tab (err 0)
[ 2148.970099] g_mass_storage: Unknown symbol usb_get_function (err 0)
[ 2148.976474] g_mass_storage: Unknown symbol usb_composite_unregister (err 0)
[ 2148.989610] g_mass_storage: Unknown symbol usb_put_function (err 0)
[ 2148.996017] g_mass_storage: Unknown symbol fsg_common_create_luns (err 0)
[ 2149.016801] g_mass_storage: Unknown symbol usb_add_function (err 0)
[ 2149.023444] g_mass_storage: Unknown symbol usb_composite_probe (err 0)
[ 2149.035408] g_mass_storage: Unknown symbol usb_composite_overwrite_options (err 0)
[ 2149.051540] g_mass_storage: Unknown symbol usb_otg_descriptor_alloc (err 0)
[ 2149.058642] g_mass_storage: Unknown symbol usb_put_function_instance (err 0)
[ 2149.071545] g_mass_storage: Unknown symbol fsg_common_set_cdev (err 0)
[ 2149.078226] g_mass_storage: Unknown symbol fsg_common_free_buffers (err 0)
[ 2149.096238] g_mass_storage: Unknown symbol usb_otg_descriptor_init (err 0)
[ 2149.103516] g_mass_storage: Unknown symbol fsg_common_remove_luns (err 0)
[ 2149.115645] g_mass_storage: Unknown symbol usb_add_config (err 0)
[ 2149.129000] g_mass_storage: Unknown symbol fsg_common_set_inquiry_string (err 0)
[ 2149.141198] g_mass_storage: Unknown symbol fsg_common_set_num_buffers (err 0)
[ 2149.148467] g_mass_storage: Unknown symbol fsg_config_from_params (err 0)
insmod: ERROR: could not insert module g_mass_storage.ko: Unknown symbol in module

After removing IC

after this keeping everything same I enable CONFIG_CONFIGS_FS=y


root@am335x-evm:~# dmesg | grep usb
[   10.861096] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
[   10.861134] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
[   10.861157] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.861172] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.861186] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
[   10.861201] am335x-phy-driver 47401300.usb-phy: lookup for GPIO reset failed
[   10.861217] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
[   10.861229] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
[   10.861242] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.861256] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
[   10.861269] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
[   10.861282] am335x-phy-driver 47401300.usb-phy: lookup for GPIO vbus-detect failed
[   10.861373] 47401300.usb-phy supply vcc not found, using dummy regulator
[   10.970913] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer reset
[   10.970953] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
[   10.970976] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.970991] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.971005] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
[   10.971020] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO reset failed
[   10.971036] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus-detect
[   10.971048] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
[   10.971062] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.971075] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
[   10.971088] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
[   10.971101] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO vbus-detect failed
[   10.971193] 47401b00.usb-phy supply vcc not found, using dummy regulator
[   19.425348] usbcore: registered new interface driver usbfs
[   19.519552] usbcore: registered new interface driver hub
[   19.594777] usbcore: registered new device driver usb
[   19.837285] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[   19.837322] musb-hdrc: MHDRC RTL version 2.0
[   19.837334] musb-hdrc: setup fifo_mode 4
[   19.837361] musb-hdrc: 28/31 max ep, 16384/16384 memory
[   19.837537] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[   19.903329] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[   20.038320] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[   20.038356] musb-hdrc: MHDRC RTL version 2.0
[   20.038368] musb-hdrc: setup fifo_mode 4
[   20.038391] musb-hdrc: 28/31 max ep, 16384/16384 memory
[   20.038560] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[   20.083313] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
[   21.329189] usb 2-1: new high-speed USB device number 2 using musb-hdrc
[   21.980272] cdc_ether 2-1:1.10 usb0: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:00
[   22.064173] usbcore: registered new interface driver cdc_acm
[   22.074433] cdc_ether 2-1:1.12 usb1: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:01
[   22.160372] usbcore: registered new interface driver cdc_ether
[   22.583666] cdc_ether 2-1:1.10 usb0: CDC: unexpected notification 01!
[   22.670777] cdc_ether 2-1:1.12 usb1: CDC: unexpected notification 01!
[   22.683994] cdc_ether 2-1:1.12 usb1: kevent 12 may have been dropped



root@am335x-evm:~# lsmod
Module                  Size  Used by
cdc_ether               4693  0
usbnet                 27066  1 cdc_ether
cdc_acm                17895  0
musb_dsps               8235  0
musb_hdrc              71550  1 musb_dsps
udc_core               12063  1 musb_hdrc
usbcore               195911  4 musb_hdrc,usbnet,cdc_acm,cdc_ether
ti_am335x_adc           5783  0
kfifo_buf               3291  1 ti_am335x_adc
pm33xx                  5577  0
wkup_m3_ipc             8278  1 pm33xx
wkup_m3_rproc           3669  1
ecb                     1909  0
ti_emif_sram            6242  1 pm33xx
omap_aes_driver        19488  0
sha256_generic          9503  0
hmac                    2735  0
md5                     1897  0
sha1_generic            2621  0
sha1_arm_neon           6261  0
sha1_arm                3862  1 sha1_arm_neon
pru_rproc              11796  0
pruss_intc              7163  1 pru_rproc
omap_sham              21513  0
pruss                  10892  1 pru_rproc
remoteproc             26901  4 pruss,wkup_m3_rproc,pru_rproc,wkup_m3_ipc
virtio                  7742  1 remoteproc
virtio_ring            12163  1 remoteproc
omap_rng                4759  0
rng_core                7794  1 omap_rng
snd_soc_tlv320aic3x    48260  0
ti_am335x_tsc           6029  0
rtc_omap                8272  1
musb_am335x             1426  0
ti_am335x_tscadc        6290  2 ti_am335x_adc,ti_am335x_tsc
omap_wdt                4634  0

after this I have changed USB gadget support from module to builtin then i tried to insert g_mass_storage module

I got this ,

root@am335x-evm:/lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/usb/gadget/legacy# insmod g_mass_storage.ko
[ 1339.606707] Mass Storage Function, version: 2009/09/11
[ 1339.628311] LUN: removable file: (no medium)
[ 1339.644873] no file given for LUN0
[ 1339.648494] g_mass_storage musb-hdrc.0.auto: failed to start g_mass_storage: -22
insmod: ERROR: could not insert module g_mass_storage.ko: Invalid parameters

Now my task is to at least enumerate the device which is connected to usb0.

  • The USB experts have been notified. They will respond here.
  • I believe you posted the same question in the thread below. I have answered it there.
    e2e.ti.com/.../606577
  • Hello Bin,

    I have tried the command as your instruction. I haven't find any mmc block in my /dev folder. So. I created block device with name sda0 and major no. 8. When I did that i got the result as below,

    # modprobe g_mass_storage file=/dev/sda0 stall=0 removable=1
    [ 1492.669973] Mass Storage Function, version: 2009/09/11
    [ 1492.675206] LUN: removable file: (no medium)
    [ 1492.865214] SCSI subsystem initialized
    [ 1492.918877] lun0: unable to open backing file: /dev/sda0
    [ 1492.934216] g_mass_storage musb-hdrc.0.auto: failed to start g_mass_storage: -6

    I tried to find CONFIG_MASS_BLOCK in .config file I didn't get any. Can you just tell me is there any other way to enable mmc block device.
    At last, even though I know that USB sticks doesn't come under MTD devices I tried with "mtdblock0". I got the below result. I am not very sure about this. can you just tell me what is happening here.

    # modprobe g_mass_storage file=/dev/mtdblock0 stall=0 removable=1 usb/gadget/legacy#
    [ 1803.207845] Mass Storage Function, version: 2009/09/11
    [ 1803.224425] LUN: removable file: (no medium)
    [ 1803.239047] LUN: removable file: /dev/mtdblock0
    [ 1803.243939] Number of LUNs=1
    [ 1803.247218] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [ 1803.264291] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [ 1803.274573] g_mass_storage gadget: g_mass_storage ready

    Thank you
  • Sachin T C M2 said:
    I have tried the command as your instruction. I haven't find any mmc block in my /dev folder. So. I created block device with name sda0 and major no. 8.

    With udev deployed in almost every Linux system nowadays, it is not a good idea to manually creating a device node, especially if you don't know what you are doing.

    Sachin T C M2 said:
    At last, even though I know that USB sticks doesn't come under MTD devices I tried with "mtdblock0".

    mtdblock0 is not your usb stick, which is not enumerated yet before you load a gadget driver for the otg port. it is a storage on your board.

    Sachin T C M2 said:
    I got the below result. I am not very sure about this. can you just tell me what is happening here.

    # modprobe g_mass_storage file=/dev/mtdblock0 stall=0 removable=1 usb/gadget/legacy#
    ......
    [ 1803.274573] g_mass_storage gadget: g_mass_storage ready

    The gadget driver is loaded correctly now, you should be able to enumerate your usb stick, don't you?

  • Hello Sir,

    no, I am not able to see any enumeration. dmesg log remains same before and after plugginf the usb stick. The device which is connected on usb1 is enumerating properly.

    The dmesg log,

    root@am335x-evm:/lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/usb/gadget/legacy# dmesg
    [ 0.000000] Booting Linux on physical CPU 0x0
    [ 0.000000] Initializing cgroup subsys cpu
    [ 0.000000] Initializing cgroup subsys cpuacct
    [ 0.000000] Linux version 4.4.41-gf9f6f0db2d (root@adems) (gcc version 5.3.1 20160113 (Linaro GCC 5.3-2016.02) ) #4 PREEMPT Fri Jun 30 16:07
    [ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
    [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [ 0.000000] Machine model: TI AM335x EVM
    [ 0.000000] cma: Reserved 48 MiB at 0xbd000000
    [ 0.000000] Memory policy: Data cache writeback
    [ 0.000000] On node 0 totalpages: 262144
    [ 0.000000] free_area_init_node: node 0, pgdat c0955024, node_mem_map ef6f9000
    [ 0.000000] Normal zone: 1728 pages used for memmap
    [ 0.000000] Normal zone: 0 pages reserved
    [ 0.000000] Normal zone: 196608 pages, LIFO batch:31
    [ 0.000000] HighMem zone: 65536 pages, LIFO batch:15
    [ 0.000000] CPU: All CPU(s) started in SVC mode.
    [ 0.000000] AM335X ES2.1 (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: 260416
    [ 0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=NAND.file-system,2048 rootfstype=ubifs rootwait=1
    [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
    [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
    [ 0.000000] Memory: 979372K/1048576K available (6603K kernel code, 317K rwdata, 2344K rodata, 264K init, 265K bss, 20052K reserved, 49152K )
    [ 0.000000] Virtual kernel memory layout:
    [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
    [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
    [ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
    [ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
    [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
    [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
    [ 0.000000] .text : 0xc0008000 - 0xc08c5004 (8949 kB)
    [ 0.000000] .init : 0xc08c6000 - 0xc0908000 ( 264 kB)
    [ 0.000000] .data : 0xc0908000 - 0xc09574b0 ( 318 kB)
    [ 0.000000] .bss : 0xc09574b0 - 0xc0999bd8 ( 266 kB)
    [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [ 0.000000] Preemptible hierarchical RCU implementation.
    [ 0.000000] Build-time adjustment of leaf fanout to 32.
    [ 0.000000] NR_IRQS:16 nr_irqs:16 16
    [ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [ 0.000043] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [ 0.000055] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000262] clocksource_probe: no matching clocksources found
    [ 0.000480] Console: colour dummy device 80x30
    [ 0.000511] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
    [ 0.000519] This ensures that you still see kernel messages. Please
    [ 0.000526] update your kernel commandline.
    [ 0.000547] Calibrating delay loop... 597.60 BogoMIPS (lpj=2988032)
    [ 0.058752] pid_max: default: 32768 minimum: 301
    [ 0.058921] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.058938] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [ 0.059801] Initializing cgroup subsys io
    [ 0.059837] Initializing cgroup subsys memory
    [ 0.059882] Initializing cgroup subsys devices
    [ 0.059900] Initializing cgroup subsys freezer
    [ 0.059918] Initializing cgroup subsys perf_event
    [ 0.059935] Initializing cgroup subsys pids
    [ 0.059969] CPU: Testing write buffer coherency: ok
    [ 0.060425] Setting up static identity map for 0x80008200 - 0x80008260
    [ 0.063159] devtmpfs: initialized
    [ 0.079518] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.098313] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.156695] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [ 0.161416] pinctrl core: initialized pinctrl subsystem
    [ 0.163044] NET: Registered protocol family 16
    [ 0.165586] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.188816] cpuidle: using governor ladder
    [ 0.218804] cpuidle: using governor menu
    [ 0.224184] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
    [ 0.224563] OMAP GPIO hardware version 0.1
    [ 0.225498] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
    [ 0.226479] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
    [ 0.227425] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
    [ 0.235715] omap-gpmc 50000000.gpmc: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/nandflash_pins_s0, deferrie
    [ 0.238458] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.279801] edma 49000000.edma: TI EDMA DMA engine driver
    [ 0.280261] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@0[0]'
    [ 0.280648] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@1[0]'
    [ 0.280986] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator@2[0]' - status (0)
    [ 0.285263] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring e
    [ 0.285333] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring e
    [ 0.285495] media: Linux media interface: v0.10
    [ 0.285575] Linux video capture interface: v2.00
    [ 0.285663] pps_core: LinuxPPS API ver. 1 registered
    [ 0.285674] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.285712] PTP clock support registered
    [ 0.285785] EDAC MC: Ver: 3.0.0
    [ 0.287233] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.287682] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.289243] clocksource: Switched to clocksource timer1
    [ 0.303412] NET: Registered protocol family 2
    [ 0.304366] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.304491] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [ 0.304600] TCP: Hash tables configured (established 8192 bind 8192)
    [ 0.304724] UDP hash table entries: 512 (order: 1, 8192 bytes)
    [ 0.304761] UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
    [ 0.304958] NET: Registered protocol family 1
    [ 0.305441] RPC: Registered named UNIX socket transport module.
    [ 0.305459] RPC: Registered udp transport module.
    [ 0.305468] RPC: Registered tcp transport module.
    [ 0.305476] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.305515] PCI: CLS 0 bytes, default 64
    [ 0.306600] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [ 0.309054] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.320094] squashfs: version 4.0 (2009/01/31) Phillip Lougher
    [ 0.321122] NFS: Registering the id_resolver key type
    [ 0.321200] Key type id_resolver registered
    [ 0.321210] Key type id_legacy registered
    [ 0.321320] ntfs: driver 2.1.32 [Flags: R/O].
    [ 0.325522] bounce: pool size: 64 pages
    [ 0.325841] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
    [ 0.325865] io scheduler noop registered
    [ 0.325882] io scheduler deadline registered
    [ 0.326082] io scheduler cfq registered (default)
    [ 0.327800] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.412293] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [ 0.417513] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 158, base_baud = 3000000) is a 8250
    [ 1.043543] console [ttyS0] enabled
    [ 1.048539] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 159, base_baud = 3000000) is a 8250
    [ 1.058809] [drm] Initialized drm 1.1.0 20060810
    [ 1.066030] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 1.081265] loop: module loaded
    [ 1.087786] libphy: Fixed MDIO Bus: probed
    [ 1.149332] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.155478] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 1.162733] libphy: 4a101000.mdio: probed
    [ 1.166786] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver TI DP83867
    [ 1.176068] cpsw 4a100000.ethernet: Detected MACID = 68:c9:0b:75:13:63
    [ 1.182897] cpsw 4a100000.ethernet: cpts: overflow check period 850
    [ 1.191452] mousedev: PS/2 mouse device common for all mice
    [ 1.197807] i2c /dev entries driver
    [ 1.202833] cpuidle: enable-method property 'ti,am3352' found operations
    [ 1.210499] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [ 1.210520] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.210559] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [ 1.210651] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.215299] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [ 1.215313] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.215327] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [ 1.215340] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [ 1.215353] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [ 1.215367] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [ 1.239814] omap_hsmmc 47810000.mmc: GPIO lookup for consumer cd
    [ 1.239840] omap_hsmmc 47810000.mmc: using device tree for GPIO lookup
    [ 1.239858] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@47810000[0]'
    [ 1.239872] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@47810000[0]'
    [ 1.239885] omap_hsmmc 47810000.mmc: using lookup tables for GPIO lookup
    [ 1.239898] omap_hsmmc 47810000.mmc: lookup for GPIO cd failed
    [ 1.239914] omap_hsmmc 47810000.mmc: GPIO lookup for consumer wp
    [ 1.239925] omap_hsmmc 47810000.mmc: using device tree for GPIO lookup
    [ 1.239938] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@47810000[0]'
    [ 1.239951] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@47810000[0]'
    [ 1.239962] omap_hsmmc 47810000.mmc: using lookup tables for GPIO lookup
    [ 1.239974] omap_hsmmc 47810000.mmc: lookup for GPIO wp failed
    [ 1.240199] omap_hsmmc 47810000.mmc: RX DMA channel request failed
    [ 1.270158] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.279995] NET: Registered protocol family 10
    [ 1.286110] sit: IPv6 over IPv4 tunneling driver
    [ 1.291924] NET: Registered protocol family 17
    [ 1.296764] Key type dns_resolver registered
    [ 1.301482] omap_voltage_late_init: Voltage driver support not added
    [ 1.311990] omap-gpmc 50000000.gpmc: GPMC revision 6.0
    [ 1.317181] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
    [ 1.323477] gpiochip_find_base: found new base at 510
    [ 1.323717] gpiochip_add: registered GPIOs 510 to 511 on device: omap-gpmc
    [ 1.324850] omap2-nand 8000000.nand: GPIO lookup for consumer rb
    [ 1.324875] omap2-nand 8000000.nand: using device tree for GPIO lookup
    [ 1.324924] of_get_named_gpiod_flags: parsed 'rb-gpios' property of node '/ocp/gpmc@50000000/nand@0,0[0]' - status (0)
    [ 1.325145] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
    [ 1.331666] nand: Micron MT29F2G08ABAEAWP
    [ 1.335700] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
    [ 1.343388] nand: using OMAP_ECC_BCH8_CODE_HW ECC scheme
    [ 1.348837] 10 ofpart partitions found on MTD device 8000000.nand
    [ 1.354988] Creating 10 MTD partitions on "8000000.nand":
    [ 1.360441] 0x000000000000-0x000000020000 : "NAND.SPL"
    [ 1.367403] 0x000000020000-0x000000040000 : "NAND.SPL.backup1"
    [ 1.374871] 0x000000040000-0x000000060000 : "NAND.SPL.backup2"
    [ 1.382155] 0x000000060000-0x000000080000 : "NAND.SPL.backup3"
    [ 1.389459] 0x000000080000-0x0000000c0000 : "NAND.u-boot-spl-os"
    [ 1.396961] 0x0000000c0000-0x0000001c0000 : "NAND.u-boot"
    [ 1.404186] 0x0000001c0000-0x0000001e0000 : "NAND.u-boot-env"
    [ 1.411495] 0x0000001e0000-0x000000200000 : "NAND.u-boot-env.backup1"
    [ 1.419464] 0x000000200000-0x000000a00000 : "NAND.kernel"
    [ 1.429190] 0x000000a00000-0x000010000000 : "NAND.file-system"
    [ 1.539555] tps65910 0-002d: No interrupt support, no core IRQ
    [ 1.545654] tps65910-gpio tps65910-gpio: ti,en-gpio-sleep not specified
    [ 1.545676] gpiochip_find_base: found new base at 504
    [ 1.545841] gpiochip_add: registered GPIOs 504 to 509 on device: tps65910
    [ 1.570557] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.578336] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz
    [ 1.584732] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [ 1.584756] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.584800] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [ 1.584882] omap_hsmmc 48060000.mmc: Got CD GPIO
    [ 1.589591] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [ 1.589606] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [ 1.589621] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [ 1.589634] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [ 1.589647] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [ 1.589662] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [ 1.590107] vmmc: supplied by vbat
    [ 1.630032] vdd_mpu: supplied by vbat
    [ 1.640375] ubi0: attaching mtd9
    [ 3.601453] ubi0: scanning is finished
    [ 3.628544] ubi0: attached mtd9 (name "NAND.file-system", size 246 MiB)
    [ 3.637312] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
    [ 3.644304] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
    [ 3.651107] ubi0: VID header offset: 2048 (aligned 2048), data offset: 4096
    [ 3.658151] ubi0: good PEBs: 1968, bad PEBs: 0, corrupted PEBs: 0
    [ 3.664340] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
    [ 3.671674] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1015831849
    [ 3.680927] ubi0: available PEBs: 0, total reserved PEBs: 1968, PEBs reserved for bad PEB handling: 40
    [ 3.690353] ubi0: background thread "ubi_bgt0d" started, PID 59
    [ 3.696869] hctosys: unable to open rtc device (rtc0)
    [ 3.707482] lis3_reg: disabling
    [ 3.710766] wlan-en-regulator: disabling
    [ 3.715164] ALSA device list:
    [ 3.718156] No soundcards found.
    [ 3.729379] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 60
    [ 3.787551] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "rootfs"
    [ 3.795053] UBIFS (ubi0:0): LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
    [ 3.805153] UBIFS (ubi0:0): FS size: 242905088 bytes (231 MiB, 1913 LEBs), journal size 9023488 bytes (8 MiB, 72 LEBs)
    [ 3.815927] UBIFS (ubi0:0): reserved for root: 0 bytes (0 KiB)
    [ 3.821813] UBIFS (ubi0:0): media format: w4/r0 (latest is w4/r0), UUID 0726D1E4-4D45-4CFA-B6F9-A5C85C74888E, small LPT model
    [ 3.834082] VFS: Mounted root (ubifs filesystem) on device 0:14.
    [ 3.841689] devtmpfs: mounted
    [ 3.845118] Freeing unused kernel memory: 264K (c08c6000 - c0908000)
    [ 3.851537] This architecture does not have kernel memory protection.
    [ 4.060773] systemd[1]: System time before build time, advancing clock.
    [ 4.127983] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [ 4.160392] random: systemd: uninitialized urandom read (16 bytes read, 10 bits of entropy available)
    [ 4.183498] systemd[1]: systemd 229 running in system mode. (+PAM -AUDIT -SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP -GCR)
    [ 4.203325] systemd[1]: Detected architecture arm.
    [ 4.231410] systemd[1]: Set hostname to <am335x-evm>.
    [ 4.431071] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.461998] random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.524640] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.585782] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.595840] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.606523] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.673709] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.705403] random: systemd: uninitialized urandom read (16 bytes read, 11 bits of entropy available)
    [ 4.982135] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
    [ 5.023598] systemd[1]: Listening on Journal Socket.
    [ 5.055509] systemd[1]: Created slice User and Session Slice.
    [ 5.080988] systemd[1]: Listening on Syslog Socket.
    [ 5.110977] systemd[1]: Listening on Journal Socket (/dev/log).
    [ 5.140954] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
    [ 5.170743] systemd[1]: Reached target Swap.
    [ 5.200876] systemd[1]: Listening on udev Kernel Socket.
    [ 5.232220] systemd[1]: Created slice System Slice.
    [ 5.265804] systemd[1]: Mounting POSIX Message Queue File System...
    [ 5.309946] systemd[1]: Reached target Slices.
    [ 5.374470] systemd[1]: Starting Setup Virtual Console...
    [ 5.415188] systemd[1]: Starting Remount Root and Kernel File Systems...
    [ 5.485380] systemd[1]: Mounting Debug File System...
    [ 5.545920] systemd[1]: Mounting Temporary Directory...
    [ 5.620287] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
    [ 5.649742] systemd[1]: Reached target Paths.
    [ 5.703960] systemd[1]: Starting Journal Service...
    [ 5.749891] systemd[1]: Reached target Remote File Systems.
    [ 5.815449] systemd[1]: Starting Apply Kernel Variables...
    [ 5.851730] systemd[1]: Created slice system-getty.slice.
    [ 5.890611] systemd[1]: Listening on Network Service Netlink Socket.
    [ 5.925740] systemd[1]: Starting Create list of required static device nodes for the current kernel...
    [ 6.010268] systemd[1]: Listening on udev Control Socket.
    [ 6.031768] systemd[1]: Created slice system-serial\x2dgetty.slice.
    [ 6.094061] systemd[1]: Mounted Debug File System.
    [ 6.130022] systemd[1]: Mounted POSIX Message Queue File System.
    [ 6.159866] systemd[1]: Mounted Temporary Directory.
    [ 6.190628] systemd[1]: Started Journal Service.
    [ 7.873956] systemd-journald[97]: Received request to flush runtime journal from PID 1
    [ 10.256542] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 10.381041] rtc rtc0: 44e3e000.rtc: dev (254:0)
    [ 10.381099] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 10.408415] input: ti-tsc as /devices/platform/ocp/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [ 10.483953] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer reset
    [ 10.483993] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 10.484017] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 10.484032] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 10.484045] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 10.484061] am335x-phy-driver 47401300.usb-phy: lookup for GPIO reset failed
    [ 10.484076] am335x-phy-driver 47401300.usb-phy: GPIO lookup for consumer vbus-detect
    [ 10.484088] am335x-phy-driver 47401300.usb-phy: using device tree for GPIO lookup
    [ 10.484102] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 10.484115] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401300[0]'
    [ 10.484128] am335x-phy-driver 47401300.usb-phy: using lookup tables for GPIO lookup
    [ 10.484141] am335x-phy-driver 47401300.usb-phy: lookup for GPIO vbus-detect failed
    [ 10.484232] 47401300.usb-phy supply vcc not found, using dummy regulator
    [ 10.631905] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer reset
    [ 10.631943] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [ 10.631965] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 10.631980] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 10.631994] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [ 10.632009] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO reset failed
    [ 10.632024] am335x-phy-driver 47401b00.usb-phy: GPIO lookup for consumer vbus-detect
    [ 10.632036] am335x-phy-driver 47401b00.usb-phy: using device tree for GPIO lookup
    [ 10.632050] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 10.632063] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb-phy@47401b00[0]'
    [ 10.632076] am335x-phy-driver 47401b00.usb-phy: using lookup tables for GPIO lookup
    [ 10.632089] am335x-phy-driver 47401b00.usb-phy: lookup for GPIO vbus-detect failed
    [ 10.632180] 47401b00.usb-phy supply vcc not found, using dummy regulator
    [ 10.863280] of_get_named_gpiod_flags: can't parse 'gpio-reset' property of node '/ocp/i2c@4802a000/tlv320aic3106@1b[0]'
    [ 10.863468] vaux2: supplied by vbat
    [ 11.072634] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 11.532734] ti-pruss 4a300000.pruss: creating PRU cores and other child platform devices
    [ 11.627820] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [ 11.758708] irq: no irq domain found for /ocp/pruss@4a300000/intc@4a320000 !
    [ 11.906058] remoteproc0: 4a334000.pru0 is available
    [ 11.983148] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 12.055684] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 12.201313] remoteproc0: Direct firmware load for am335x-pru0-fw failed with error -2
    [ 12.235378] remoteproc0: failed to load am335x-pru0-fw
    [ 12.316634] pru-rproc 4a334000.pru0: booting the PRU core manually
    [ 12.331257] remoteproc0: powering up 4a334000.pru0
    [ 12.336262] remoteproc0: Direct firmware load for am335x-pru0-fw failed with error -2
    [ 12.441000] remoteproc0: request_firmware failed: -2
    [ 12.446116] pru-rproc 4a334000.pru0: rproc_boot failed
    [ 12.489513] remoteproc0: releasing 4a334000.pru0
    [ 12.494428] pru-rproc: probe of 4a334000.pru0 failed with error -2
    [ 12.646883] remoteproc0: 4a338000.pru1 is available
    [ 12.679510] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 12.688541] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 12.920018] remoteproc0: Direct firmware load for am335x-pru1-fw failed with error -2
    [ 12.928009] remoteproc0: failed to load am335x-pru1-fw
    [ 13.079444] pru-rproc 4a338000.pru1: booting the PRU core manually
    [ 13.085690] remoteproc0: powering up 4a338000.pru1
    [ 13.169493] remoteproc0: Direct firmware load for am335x-pru1-fw failed with error -2
    [ 13.177489] remoteproc0: request_firmware failed: -2
    [ 13.240644] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 13.369498] pru-rproc 4a338000.pru1: rproc_boot failed
    [ 13.374798] remoteproc0: releasing 4a338000.pru1
    [ 13.385471] remoteproc1: wkup_m3 is available
    [ 13.479436] remoteproc1: Note: remoteproc is still under development and considered experimental.
    [ 13.488470] remoteproc1: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 13.502993] pru-rproc: probe of 4a338000.pru1 failed with error -2
    [ 13.682172] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
    [ 13.814239] remoteproc1: powering up wkup_m3
    [ 13.834888] remoteproc1: Booting fw image am335x-pm-firmware.elf, size 217280
    [ 13.849197] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 13.920021] remoteproc1: remote processor wkup_m3 is now up
    [ 13.920051] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
    [ 14.657676] PM: bootloader does not support rtc-only!
    [ 18.816326] usbcore: registered new interface driver usbfs
    [ 18.941754] usbcore: registered new interface driver hub
    [ 18.980738] usbcore: registered new device driver usb
    [ 19.274298] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [ 19.274333] musb-hdrc: MHDRC RTL version 2.0
    [ 19.274346] musb-hdrc: setup fifo_mode 4
    [ 19.274372] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [ 19.274588] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [ 19.319493] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [ 19.357530] hub 1-0:1.0: USB hub found
    [ 19.376818] hub 1-0:1.0: 1 port detected
    [ 19.448578] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [ 19.448611] musb-hdrc: MHDRC RTL version 2.0
    [ 19.448623] musb-hdrc: setup fifo_mode 4
    [ 19.448646] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [ 19.448807] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [ 19.501779] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [ 19.562415] hub 2-0:1.0: USB hub found
    [ 19.593121] hub 2-0:1.0: 1 port detected
    [ 19.649634] net eth0: initializing cpsw version 1.12 (0)
    [ 19.655032] net eth0: initialized cpsw ale version 1.4
    [ 19.666395] net eth0: ALE Table size 1024
    [ 19.702160] net eth0: phy "4a101000.mdio:00" not found on slave 0, err -19
    [ 19.770026] net eth0: phy found : id is : 0x2000a231
    [ 19.825499] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
    [ 20.779405] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [ 21.173529] cdc_acm 2-1:1.0: ttyACM0: USB ACM device
    [ 21.244932] cdc_acm 2-1:1.2: ttyACM1: USB ACM device
    [ 21.326434] cdc_acm 2-1:1.4: ttyACM2: USB ACM device
    [ 21.373663] cdc_acm 2-1:1.6: ttyACM3: USB ACM device
    [ 21.412598] cdc_ether 2-1:1.10 usb0: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:00
    [ 21.459120] cdc_acm 2-1:1.8: ttyACM4: USB ACM device
    [ 21.487074] usbcore: registered new interface driver cdc_acm
    [ 21.497346] cdc_ether 2-1:1.12 usb1: register 'cdc_ether' at usb-musb-hdrc.1.auto-1, CDC Ethernet Device, de:ad:be:ef:00:01
    [ 21.531872] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [ 21.554801] usbcore: registered new interface driver cdc_ether
    [ 21.770431] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [ 21.778534] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [ 22.090101] cdc_ether 2-1:1.10 usb0: CDC: unexpected notification 01!
    [ 22.192621] cdc_ether 2-1:1.12 usb1: CDC: unexpected notification 01!
    [ 22.210019] cdc_ether 2-1:1.12 usb1: kevent 12 may have been dropped
    [ 22.224621] cdc_ether 2-1:1.12 usb1: kevent 11 may have been dropped
    [ 22.452816] random: nonblocking pool is initialized
    [ 173.587927] Mass Storage Function, version: 2009/09/11
    [ 173.666939] LUN: removable file: (no medium)
    [ 173.692907] LUN: removable file: /dev/mtdblock0
    [ 173.697512] Number of LUNs=1
    [ 173.770599] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [ 173.777652] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [ 173.811369] g_mass_storage gadget: g_mass_storage ready

    root@am335x-evm:/lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/usb/gadget/legacy# lsusb
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation
    Bus 002 Device 002: ID 1e2d:0061
    Bus 002 Device 001: ID 1d6b:0002 Linux Foundation
  • Does the micro-A USB cable you used to connect the thumb drive have its ID line grounded? A quick test is to ground the USB0_ID pin on your board then plug in the thumb drive to see if it enumerates, if so, you don't use a right micro-A USB cable. If not either, we need to look at elsewhere for the problem.

  • Hello

    yes, we have used micro-A USB cable, with the default configurations now we have grounded the USB0_ID pin and booted the board.

    After inserting the cable with thumb drive i inserted the g_mass_storage module "modprobe g_mass_storage file=/dev/mtdblock0 stall=0 removable=1"
    .

    now it  getting  enumarated,

    modprobe g_mass_storage file=/dev/mtdblock0 stall=0 removabl=
    [  704.690897] Mass Storage Function, version: 2009/09/11
    [  704.757538] LUN: removable file: (no medium)
    [  704.774501] LUN: removable file: /dev/mtdblock0
    [  704.833528] Number of LUNs=1
    [  704.852267] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [  704.866960] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [  704.889168] g_mass_storage gadget: g_mass_storage ready
    root@am335x-evm:/lib/modules/4.4.41-gf9f6f0db2d/kernel/drivers/usb/gadget/legacy# [  705.559390] usb 1-1: new high-speed USB device number 2 uc
    [  705.799604] SCSI subsystem initialized
    [  705.864479] usb-storage 1-1:1.0: USB Mass Storage device detected
    [  705.872392] scsi host0: usb-storage 1-1:1.0
    [  705.891450] usbcore: registered new interface driver usb-storage
    [  706.881936] scsi 0:0:0:0: Direct-Access     SanDisk  Cruzer Blade     1.00 PQ: 0 ANSI: 6
    [  706.945448] sd 0:0:0:0: [sda] 30464000 512-byte logical blocks: (15.6 GB/14.5 GiB)
    [  706.985201] sd 0:0:0:0: [sda] Write Protect is off
    [  707.006136] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
    [  707.042274]  sda: sda1
    [  707.057883] sd 0:0:0:0: [sda] Attached SCSI removable disk

    now my question is how can we make it auto detection, is that possible?

  • Yes, it is possible, you have to use the true micro-A USB cable which grounds its ID line in its header.

    If you ground the USB0_ID pin on your board everything works, but enumeration doesn't happen if not ground USB0_ID pin, this means the micro-A cable you use doesn't ground its ID line, it is not a true micro-A cable.