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.

AM335x USB OTG hot plug issue with SDK v2.00.00.00

Other Parts Discussed in Thread: TPS65910, PCA9538

We develop one products based on TI AM-3352. Now we want to update the Linux to TI Linux SDK v2.00.00.00 and encounter problems. We set usb0 working with otg mode and CONFIG_USB_MUSB_DUAL_ROLE is set .In host mode it is working fine.But in slave mode ,It must plug the usb cable before booting.Otherwise the device can not be detected by the PC.And the slave mode does not support hot plug. When unplug the usb cable for more than about 3 seconds.then plug the usb cable again the device can not be detected by the PC.the error message is as follows:

[   76.553012] g_mass_storage gadget: reset config
[   76.553100] g_mass_storage gadget: bulk_out_complete --> -104, 0/31
[   76.553120] g_mass_storage gadget: reset interface
[   78.701477] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #1, port1 00000100
[   78.853892] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #2, port1 00000100
[   79.006318] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #3, port1 00000100
[   79.158740] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 00080108
[   82.542171] musb_h_ep0_irq 1164: no URB for end 0
[   82.547151] musb_h_ep0_irq 1164: no URB for end 0
[   82.898156] musb_h_ep0_irq 1164: no URB for end 0
[   82.903126] musb_h_ep0_irq 1164: no URB for end 0
[   83.254268] musb_h_ep0_irq 1164: no URB for end 0
[   83.259235] musb_h_ep0_irq 1164: no URB for end 0
[   83.610318] musb_h_ep0_irq 1164: no URB for end 0
[   83.615298] musb_h_ep0_irq 1164: no URB for end 0

my dts file as follows:
usb0_pins_default: pinmux_usb0_pins {
                pinctrl-single,pins = <
                        0x21c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb0_drvvbus.usb0_drvvbus */
                        0x234 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* usb1_drvvbus.usb1_drvvbus */
                >;
        };
&usb {
        status = "okay";
        pinctrl-names = "default";
        pinctrl-0 = <&usb0_pins_default>;

        control@44e10620 {
                status = "okay";
        };

        usb0-phy@47401300 {
                status = "okay";
        };

        usb@47401000 {
                dr_mode = "otg";
                status = "okay";
        };

        dma-controller@47402000  {
                status = "okay";
        };
        usb1-phy@47401b00 {
                status = "okay";
        };
        usb@47401800 {
                dr_mode = "host";
                status = "okay";
        };
};

Could you help on this.

Looking forward TI reply, thanks advance.

  • The USB experts have been notified. They will respond here.
  • Hi,

    Your dts seems correct, it shouldn't be the root cause of this problem. Could you share your bootlog?

    There have been quite a lot of changes since SDK2.0 in the linux kernel & usb driver specifically. Is i t possible for you to switch to the latest TI SDK (www.ti.com/.../PROCESSOR-SDK-AM335X)

    If not I suggest you crosscheck the usb driver with the one from the latest SDK & backport related parts.

    Best Regards,
    Yordan
  • Hi Yordan

    Thanks for you reply,

    When we plug the usb cable before booting,the bootlog is as follows:

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.1.6-g52c4aa7 (root@dfc-Lenovo) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #2 PREEMPT Thu Oct 13 11:34:29 CST 2016
    [    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 RSB4220
    [    0.000000] cma: Reserved 24 MiB at 0x9e800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 131072
    [    0.000000] free_area_init_node: node 0, pgdat c09d7458, node_mem_map de3ed000
    [    0.000000]   Normal zone: 1024 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
    [    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: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
    [    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: 484628K/524288K available (7251K kernel code, 276K rwdata, 2244K rodata, 276K init, 237K bss, 15084K reserved, 24576K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc094e0ac   (9497 kB)
    [    0.000000]       .init : 0xc094f000 - 0xc0994000   ( 276 kB)
    [    0.000000]       .data : 0xc0994000 - 0xc09d9208   ( 277 kB)
    [    0.000000]        .bss : 0xc09dc000 - 0xc0a17420   ( 238 kB)
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]     Additional per-CPU info printed with stalls.
    [    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.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000031] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000041] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000274] Console: colour dummy device 80x30
    [    0.000299] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089255] pid_max: default: 32768 minimum: 301
    [    0.089350] Security Framework initialized
    [    0.089402] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089411] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090028] CPU: Testing write buffer coherency: ok
    [    0.090358] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.091878] devtmpfs: initialized
    [    0.102397] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.120398] omap_hwmod: tptc0 using broken dt data from edma
    [    0.120615] omap_hwmod: tptc1 using broken dt data from edma
    [    0.120814] omap_hwmod: tptc2 using broken dt data from edma
    [    0.126376] omap_hwmod: debugss: _wait_target_disable failed
    [    0.180573] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.182364] pinctrl core: initialized pinctrl subsystem
    [    0.183617] NET: Registered protocol family 16
    [    0.185921] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.209401] cpuidle: using governor ladder
    [    0.239240] cpuidle: using governor menu
    [    0.245249] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
    [    0.245471] OMAP GPIO hardware version 0.1
    [    0.246244] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
    [    0.247412] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
    [    0.248562] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
    [    0.282597] No ATAGs?
    [    0.282627] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.348234] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.348775] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@0[0]'
    [    0.349105] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@1[0]'
    [    0.355154] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_gpio, deferring probe
    [    0.355289] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator@3[0]' - status (0)
    [    0.359555] vgaarb: loaded
    [    0.360419] SCSI subsystem initialized
    [    0.360922] libata version 3.00 loaded.
    [    0.361519] usbcore: registered new interface driver usbfs
    [    0.361650] usbcore: registered new interface driver hub
    [    0.361781] usbcore: registered new device driver usb
    [    0.362567] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.362841] pps_core: LinuxPPS API ver. 1 registered
    [    0.362851] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.362927] PTP clock support registered
    [    0.364651] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.366795] Advanced Linux Sound Architecture Driver Initialized.
    [    0.368096] cfg80211: Calling CRDA to update world regulatory domain
    [    0.369076] Switched to clocksource timer1
    [    0.389919] NET: Registered protocol family 2
    [    0.391086] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.391138] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.391177] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.391243] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.391261] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.391426] NET: Registered protocol family 1
    [    0.391880] RPC: Registered named UNIX socket transport module.
    [    0.391893] RPC: Registered udp transport module.
    [    0.391900] RPC: Registered tcp transport module.
    [    0.391906] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.391937] PCI: CLS 0 bytes, default 64
    [    0.392968] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.393017] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.395422] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.397714] VFS: Disk quotas dquot_6.6.0
    [    0.397832] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.398425] NFS: Registering the id_resolver key type
    [    0.398496] Key type id_resolver registered
    [    0.398505] Key type id_legacy registered
    [    0.398568] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.402047] NET: Registered protocol family 38
    [    0.402122] io scheduler noop registered
    [    0.402135] io scheduler deadline registered
    [    0.402174] io scheduler cfq registered (default)
    [    0.403423] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.405567] pwm-backlight backlight: GPIO lookup for consumer enable
    [    0.405587] pwm-backlight backlight: using device tree for GPIO lookup
    [    0.405603] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/backlight[0]'
    [    0.405613] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/backlight[0]'
    [    0.405623] pwm-backlight backlight: using lookup tables for GPIO lookup
    [    0.405633] pwm-backlight backlight: lookup for GPIO enable failed
    [    0.405655] backlight supply power not found, using dummy regulator
    [    0.409807] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.412515] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.412542] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@44e09000[0]'
    [    0.412711] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a OMAP UART0
    [    1.047814] console [ttyO0] enabled
    [    1.052200] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.058127] port 1 is 232
    [    1.058158] of_get_named_gpiod_flags: parsed 'rts-gpio' property of node '/ocp/serial@48022000[0]' - status (0)
    [    1.058453] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 156, base_baud = 3000000) is a OMAP UART1
    [    1.068895] omap_uart 48024000.serial: no wakeirq for uart2
    [    1.074920] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@48024000[0]'
    [    1.075064] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 157, base_baud = 3000000) is a OMAP UART2
    [    1.085427] omap_uart 481a6000.serial: no wakeirq for uart3
    [    1.091438] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481a6000[0]'
    [    1.091565] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 158, base_baud = 3000000) is a OMAP UART3
    [    1.101925] omap_uart 481a8000.serial: no wakeirq for uart4
    [    1.107782] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481a8000[0]'
    [    1.107990] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 159, base_baud = 3000000) is a OMAP UART4
    [    1.118349] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.124372] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481aa000[0]'
    [    1.124501] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 160, base_baud = 3000000) is a OMAP UART5
    [    1.135696] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.143241] [drm] Initialized drm 1.1.0 20060810
    [    1.148970] panel panel: GPIO lookup for consumer enable
    [    1.148986] panel panel: using device tree for GPIO lookup
    [    1.148999] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/panel[0]'
    [    1.149009] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/panel[0]'
    [    1.149018] panel panel: using lookup tables for GPIO lookup
    [    1.149028] panel panel: lookup for GPIO enable failed
    [    1.150880] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.157832] [drm] No driver support for vblank timestamp query.
    [    1.214086] Console: switching to colour frame buffer device 100x30
    [    1.224937] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.230820] tilcdc 4830e000.lcdc: registered panic notifier
    [    1.259100] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    1.280614] brd: module loaded
    [    1.291329] loop: module loaded
    [    1.297032] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.307032] m25p80 spi1.0: found w25q32, expected m25p80
    [    1.313194] m25p80 spi1.0: w25q32 (4096 Kbytes)
    [    1.317977] 1 ofpart partitions found on MTD device spi1.0
    [    1.323806] Creating 1 MTD partitions on "spi1.0":
    [    1.328838] 0x000000000000-0x000000400000 : "BootLoader"
    [    1.337653] hdlc: HDLC support module revision 1.22
    [    1.344083] usbcore: registered new interface driver catc
    [    1.350121] usbcore: registered new interface driver kaweth
    [    1.355990] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    1.364162] usbcore: registered new interface driver pegasus
    [    1.370351] usbcore: registered new interface driver rtl8150
    [    1.376508] usbcore: registered new interface driver r8152
    [    1.382487] usbcore: registered new interface driver asix
    [    1.388372] usbcore: registered new interface driver ax88179_178a
    [    1.394919] usbcore: registered new interface driver cdc_ether
    [    1.401318] usbcore: registered new interface driver smsc95xx
    [    1.407553] usbcore: registered new interface driver net1080
    [    1.413648] usbcore: registered new interface driver cdc_subset
    [    1.420084] usbcore: registered new interface driver zaurus
    [    1.426193] usbcore: registered new interface driver cdc_ncm
    [    1.433113] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.440294] ehci-pci: EHCI PCI platform driver
    [    1.445115] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.451155] usbcore: registered new interface driver cdc_wdm
    [    1.457425] usbcore: registered new interface driver usb-storage
    [    1.463941] usbcore: registered new interface driver usbtest
    [    1.471987] am335x-phy-driver 47401300.usb0-phy: GPIO lookup for consumer reset
    [    1.472008] am335x-phy-driver 47401300.usb0-phy: using device tree for GPIO lookup
    [    1.472023] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472033] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472043] am335x-phy-driver 47401300.usb0-phy: using lookup tables for GPIO lookup
    [    1.472054] am335x-phy-driver 47401300.usb0-phy: lookup for GPIO reset failed
    [    1.472065] am335x-phy-driver 47401300.usb0-phy: GPIO lookup for consumer vbus-detect
    [    1.472074] am335x-phy-driver 47401300.usb0-phy: using device tree for GPIO lookup
    [    1.472084] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472093] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472102] am335x-phy-driver 47401300.usb0-phy: using lookup tables for GPIO lookup
    [    1.472112] am335x-phy-driver 47401300.usb0-phy: lookup for GPIO vbus-detect failed
    [    1.472168] 47401300.usb0-phy supply vcc not found, using dummy regulator
    [    1.511530] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
    [    1.517768] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.526925] am335x-phy-driver 47401b00.usb1-phy: GPIO lookup for consumer reset
    [    1.526944] am335x-phy-driver 47401b00.usb1-phy: using device tree for GPIO lookup
    [    1.526959] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.526970] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.526980] am335x-phy-driver 47401b00.usb1-phy: using lookup tables for GPIO lookup
    [    1.526990] am335x-phy-driver 47401b00.usb1-phy: lookup for GPIO reset failed
    [    1.527002] am335x-phy-driver 47401b00.usb1-phy: GPIO lookup for consumer vbus-detect
    [    1.527011] am335x-phy-driver 47401b00.usb1-phy: using device tree for GPIO lookup
    [    1.527020] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.527030] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.527039] am335x-phy-driver 47401b00.usb1-phy: using lookup tables for GPIO lookup
    [    1.527048] am335x-phy-driver 47401b00.usb1-phy: lookup for GPIO vbus-detect failed
    [    1.527097] 47401b00.usb1-phy supply vcc not found, using dummy regulator
    [    1.561455] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
    [    1.567677] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [    1.590489] mousedev: PS/2 mouse device common for all mice
    [    1.598493] i2c /dev entries driver
    [    1.603393] Driver for 1-wire Dallas network protocol.
    [    1.610550] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.610572] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.610603] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    1.610628] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.615497] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.615507] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.615517] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.615527] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.615536] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.615546] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    1.639541] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.639565] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.639579] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.639589] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.639599] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.639609] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    1.639621] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.639630] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.639639] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.639648] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.639657] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.639665] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    1.669856] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.676490] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.684132] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.691521] hidraw: raw HID events driver (C) Jiri Kosina
    [    1.697491] usbcore: registered new interface driver usbhid
    [    1.703978] usbhid: USB HID core driver
    [    1.708328]  remoteproc0: wkup_m3 is available
    [    1.713178]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.722619]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.733734]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.745702] oprofile: using arm/armv7
    [    1.750688] Initializing XFRM netlink socket
    [    1.755216] NET: Registered protocol family 17
    [    1.760004]  remoteproc0: failed to load am335x-pm-firmware.elf
    [    1.766321] NET: Registered protocol family 15
    [    1.771095] lib80211: common routines for IEEE802.11 drivers
    [    1.777031] lib80211_crypt: registered algorithm 'NULL'
    [    1.777046] lib80211_crypt: registered algorithm 'WEP'
    [    1.777060] lib80211_crypt: registered algorithm 'CCMP'
    [    1.777073] lib80211_crypt: registered algorithm 'TKIP'
    [    1.777137] Key type dns_resolver registered
    [    1.781935] omap_voltage_late_init: Voltage driver support not added
    [    1.789457] ThumbEE CPU extension supported.
    [    1.793973] Registering SWP/SWPB emulation handler
    [    1.802344] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator@2[0]' - status (0)
    [    1.819466] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.878935] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
    [    1.888452] gpiochip_add: registered GPIOs 200 to 207 on device: pca9538
    [    1.893841] Set uart1 to 485 mode.
    [    1.897468] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
    [    1.909055] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.909262] musb-hdrc: MHDRC RTL version 2.0
    [    1.909276] musb-hdrc: setup fifo_mode 4
    [    1.909294] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.909439] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    1.915845] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    1.924443] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.931630] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.939263] usb usb1: Product: MUSB HDRC host driver
    [    1.944476] usb usb1: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [    1.950900] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    1.956983] hub 1-0:1.0: USB hub found
    [    1.961231] hub 1-0:1.0: 1 port detected
    [    1.995122] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.995142] musb-hdrc: MHDRC RTL version 2.0
    [    1.995151] musb-hdrc: setup fifo_mode 4
    [    1.995169] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.995293] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    2.001902] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    2.010474] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.017598] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.025230] usb usb2: Product: MUSB HDRC host driver
    [    2.030487] usb usb2: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [    2.036878] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    2.042969] hub 2-0:1.0: USB hub found
    [    2.047088] hub 2-0:1.0: 1 port detected
    [    2.069869] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    2.069893] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    2.069928] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    2.069951] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.074817] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    2.074826] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    2.074836] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    2.074846] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    2.074856] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    2.074866] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    2.075250] vmmc: supplied by vbat
    [    2.119912] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    2.119934] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    2.119948] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    2.119958] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    2.119968] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    2.119978] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    2.119989] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    2.119998] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    2.120007] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    2.120016] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    2.120025] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    2.120034] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    2.157274] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.168998] mmc0: new high speed SDHC card at address 0007
    [    2.175332] mmcblk0: mmc0:0007 SD04G 3.70 GiB
    [    2.182169]  mmcblk0: p1 p2
    [    2.291883] mmc1: MAN_BKOPS_EN bit is not set
    [    2.297934] mmc1: new high speed MMC card at address 0001
    [    2.303647] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    2.310626] mmcblk1: mmc1:0001 4FEACB 3.64 GiB
    [    2.315639] davinci_mdio 4a101000.mdio: detected phy mask ffffff76
    [    2.322223] mmcblk1boot0: mmc1:0001 4FEACB partition 1 4.00 MiB
    [    2.328943] mmcblk1boot1: mmc1:0001 4FEACB partition 2 4.00 MiB
    [    2.336910] libphy: 4a101000.mdio: probed
    [    2.342254] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211E Gigabit Ethernet
    [    2.352505]  mmcblk1: p1 p2
    [    2.355654] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver RTL8211E Gigabit Ethernet
    [    2.368353] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver RTL8211E Gigabit Ethernet
    [    2.379609] cpsw 4a100000.ethernet: Detected MACID = 78:a5:04:9e:4b:e1
    [    2.387736] cpsw 4a100000.ethernet: cpsw: Detected MACID = 78:a5:04:9e:4b:e3
    [    2.397606] rtc-s35390a 0-0030: setting system clock to 2016-07-06 07:43:28 UTC (1467791008)
    [    2.412080] lis3_reg: disabling
    [    2.415511] ALSA device list:
    [    2.418620]   No soundcards found.
    [    2.453634] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.462341] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.476305] devtmpfs: mounted
    [    2.479793] Freeing unused kernel memory: 276K (c094f000 - c0994000)
    [    3.529252] cfg80211: Calling CRDA to update world regulatory domain
    [    3.732028] udevd[1018]: starting version 182
    [    4.583233] CAN device driver interface
    [    4.714726] cryptodev: driver 1.6 loaded.
    [    4.812744] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=164)
    [    5.036306] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [    6.327502] random: dd urandom read with 119 bits of entropy available
    [    6.533226] random: nonblocking pool is initialized
    [    6.709260] cfg80211: Calling CRDA to update world regulatory domain
    [    8.057421] cfg80211: World regulatory domain updated:
    [    8.359255] cfg80211:  DFS Master region: unset
    [    8.363870] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [    8.526415] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.602726] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.683605] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.755536] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [    8.833993] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [    8.865035] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    8.898959] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.909594] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.935227] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [    8.979353] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.987774] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [   13.235694] net eth1: initializing cpsw version 1.12 (0)
    [   13.244388] net eth1: phy found : id is : 0x1cc915
    [   13.326751] net eth0: initializing cpsw version 1.12 (0)
    [   13.336437] net eth0: phy found : id is : 0x1cc915
    [   15.330017] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   26.890641] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
    [   26.890746] Mass Storage Function, version: 2009/09/11
    [   26.925177] LUN: removable file: (no medium)
    [   26.937433] lun0: open backing file: /dev/mmcblk0p1
    [   26.937468] LUN: file: /dev/mmcblk0p1
    [   26.955254] Number of LUNs=1
    [   26.968345] g_mass_storage gadget: adding config #1 'Linux File-Backed Storage'/bf0465cc
    [   26.968379] Number of LUNs=1
    [   26.989264] g_mass_storage gadget: I/O thread pid: 1831
    [   26.989301] g_mass_storage gadget: adding 'Mass Storage Function'/dc42c800 to config 'Linux File-Backed Storage'/bf0465cc
    [   26.989332] g_mass_storage gadget: cfg 1/bf0465cc speeds: high full
    [   26.989341] g_mass_storage gadget:   interface 0 = Mass Storage Function/dc42c800
    [   26.989361] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [   27.019253] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [   27.049354] g_mass_storage gadget: g_mass_storage ready
    [   27.054922] g_mass_storage musb-hdrc.0.auto: usb_gadget_udc_start

    When we do not plug the usb cable before booting,the bootlog is as follows:

    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.1.6-g52c4aa7 (root@dfc-Lenovo) (gcc version 4.9.3 20150413 (prerelease) (Linaro GCC 4.9-2015.05) ) #2 PREEMPT Thu Oct 13 11:34:29 CST 2016
    [    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 RSB4220
    [    0.000000] cma: Reserved 24 MiB at 0x9e800000
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] On node 0 totalpages: 131072
    [    0.000000] free_area_init_node: node 0, pgdat c09d7458, node_mem_map de3ed000
    [    0.000000]   Normal zone: 1024 pages used for memmap
    [    0.000000]   Normal zone: 0 pages reserved
    [    0.000000]   Normal zone: 131072 pages, LIFO batch:31
    [    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: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait
    [    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: 484628K/524288K available (7251K kernel code, 276K rwdata, 2244K rodata, 276K init, 237K bss, 15084K reserved, 24576K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    [    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc094e0ac   (9497 kB)
    [    0.000000]       .init : 0xc094f000 - 0xc0994000   ( 276 kB)
    [    0.000000]       .data : 0xc0994000 - 0xc09d9208   ( 277 kB)
    [    0.000000]        .bss : 0xc09dc000 - 0xc0a17420   ( 238 kB)
    [    0.000000] Preemptible hierarchical RCU implementation.
    [    0.000000]     Additional per-CPU info printed with stalls.
    [    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.000015] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
    [    0.000036] clocksource timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
    [    0.000047] OMAP clocksource: timer1 at 24000000 Hz
    [    0.000279] Console: colour dummy device 80x30
    [    0.000303] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.089253] pid_max: default: 32768 minimum: 301
    [    0.089350] Security Framework initialized
    [    0.089402] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089413] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.090027] CPU: Testing write buffer coherency: ok
    [    0.090368] Setting up static identity map for 0x80008200 - 0x80008258
    [    0.091878] devtmpfs: initialized
    [    0.102386] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.120383] omap_hwmod: tptc0 using broken dt data from edma
    [    0.120600] omap_hwmod: tptc1 using broken dt data from edma
    [    0.120800] omap_hwmod: tptc2 using broken dt data from edma
    [    0.126362] omap_hwmod: debugss: _wait_target_disable failed
    [    0.180552] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.182339] pinctrl core: initialized pinctrl subsystem
    [    0.183587] NET: Registered protocol family 16
    [    0.185913] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.209401] cpuidle: using governor ladder
    [    0.239238] cpuidle: using governor menu
    [    0.245240] gpiochip_add: registered GPIOs 0 to 31 on device: gpio
    [    0.245461] OMAP GPIO hardware version 0.1
    [    0.246232] gpiochip_add: registered GPIOs 32 to 63 on device: gpio
    [    0.247404] gpiochip_add: registered GPIOs 64 to 95 on device: gpio
    [    0.248554] gpiochip_add: registered GPIOs 96 to 127 on device: gpio
    [    0.282621] No ATAGs?
    [    0.282654] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.348298] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [    0.348831] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@0[0]'
    [    0.349144] of_get_named_gpiod_flags: can't parse 'gpio' property of node '/fixedregulator@1[0]'
    [    0.355204] reg-fixed-voltage fixedregulator@2: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_wl12xx_gpio, deferring probe
    [    0.355342] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator@3[0]' - status (0)
    [    0.359582] vgaarb: loaded
    [    0.360440] SCSI subsystem initialized
    [    0.360945] libata version 3.00 loaded.
    [    0.361556] usbcore: registered new interface driver usbfs
    [    0.361687] usbcore: registered new interface driver hub
    [    0.361811] usbcore: registered new device driver usb
    [    0.362592] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.362859] pps_core: LinuxPPS API ver. 1 registered
    [    0.362869] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.362944] PTP clock support registered
    [    0.364673] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.366803] Advanced Linux Sound Architecture Driver Initialized.
    [    0.368101] cfg80211: Calling CRDA to update world regulatory domain
    [    0.369076] Switched to clocksource timer1
    [    0.390210] NET: Registered protocol family 2
    [    0.390965] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.391015] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.391055] TCP: Hash tables configured (established 4096 bind 4096)
    [    0.391123] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.391140] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.391302] NET: Registered protocol family 1
    [    0.391780] RPC: Registered named UNIX socket transport module.
    [    0.391791] RPC: Registered udp transport module.
    [    0.391798] RPC: Registered tcp transport module.
    [    0.391804] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.391844] PCI: CLS 0 bytes, default 64
    [    0.392870] CPU PMU: Failed to parse /pmu/interrupt-affinity[0]
    [    0.392919] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.395315] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.397682] VFS: Disk quotas dquot_6.6.0
    [    0.397803] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.398396] NFS: Registering the id_resolver key type
    [    0.398461] Key type id_resolver registered
    [    0.398470] Key type id_legacy registered
    [    0.398534] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
    [    0.402001] NET: Registered protocol family 38
    [    0.402071] io scheduler noop registered
    [    0.402086] io scheduler deadline registered
    [    0.402125] io scheduler cfq registered (default)
    [    0.403364] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.405496] pwm-backlight backlight: GPIO lookup for consumer enable
    [    0.405516] pwm-backlight backlight: using device tree for GPIO lookup
    [    0.405531] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/backlight[0]'
    [    0.405541] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/backlight[0]'
    [    0.405551] pwm-backlight backlight: using lookup tables for GPIO lookup
    [    0.405561] pwm-backlight backlight: lookup for GPIO enable failed
    [    0.405583] backlight supply power not found, using dummy regulator
    [    0.409705] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [    0.412395] omap_uart 44e09000.serial: no wakeirq for uart0
    [    0.412424] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@44e09000[0]'
    [    0.412597] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 155, base_baud = 3000000) is a OMAP UART0
    [    1.047718] console [ttyO0] enabled
    [    1.052103] omap_uart 48022000.serial: no wakeirq for uart1
    [    1.058029] port 1 is 232
    [    1.058060] of_get_named_gpiod_flags: parsed 'rts-gpio' property of node '/ocp/serial@48022000[0]' - status (0)
    [    1.058353] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 156, base_baud = 3000000) is a OMAP UART1
    [    1.068784] omap_uart 48024000.serial: no wakeirq for uart2
    [    1.074810] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@48024000[0]'
    [    1.074951] 48024000.serial: ttyO2 at MMIO 0x48024000 (irq = 157, base_baud = 3000000) is a OMAP UART2
    [    1.085314] omap_uart 481a6000.serial: no wakeirq for uart3
    [    1.091325] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481a6000[0]'
    [    1.091454] 481a6000.serial: ttyO3 at MMIO 0x481a6000 (irq = 158, base_baud = 3000000) is a OMAP UART3
    [    1.101813] omap_uart 481a8000.serial: no wakeirq for uart4
    [    1.107665] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481a8000[0]'
    [    1.107873] 481a8000.serial: ttyO4 at MMIO 0x481a8000 (irq = 159, base_baud = 3000000) is a OMAP UART4
    [    1.118237] omap_uart 481aa000.serial: no wakeirq for uart5
    [    1.124257] of_get_named_gpiod_flags: can't parse 'rts-gpio' property of node '/ocp/serial@481aa000[0]'
    [    1.124385] 481aa000.serial: ttyO5 at MMIO 0x481aa000 (irq = 160, base_baud = 3000000) is a OMAP UART5
    [    1.135592] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [    1.143135] [drm] Initialized drm 1.1.0 20060810
    [    1.148886] panel panel: GPIO lookup for consumer enable
    [    1.148903] panel panel: using device tree for GPIO lookup
    [    1.148916] of_get_named_gpiod_flags: can't parse 'enable-gpios' property of node '/panel[0]'
    [    1.148926] of_get_named_gpiod_flags: can't parse 'enable-gpio' property of node '/panel[0]'
    [    1.148935] panel panel: using lookup tables for GPIO lookup
    [    1.148945] panel panel: lookup for GPIO enable failed
    [    1.150808] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
    [    1.157759] [drm] No driver support for vblank timestamp query.
    [    1.214092] Console: switching to colour frame buffer device 100x30
    [    1.224947] tilcdc 4830e000.lcdc: fb0:  frame buffer device
    [    1.230826] tilcdc 4830e000.lcdc: registered panic notifier
    [    1.259100] [drm] Initialized tilcdc 1.0.0 20121205 on minor 0
    [    1.280678] brd: module loaded
    [    1.291498] loop: module loaded
    [    1.297121] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.307139] m25p80 spi1.0: found w25q32, expected m25p80
    [    1.313305] m25p80 spi1.0: w25q32 (4096 Kbytes)
    [    1.318086] 1 ofpart partitions found on MTD device spi1.0
    [    1.323914] Creating 1 MTD partitions on "spi1.0":
    [    1.328946] 0x000000000000-0x000000400000 : "BootLoader"
    [    1.337765] hdlc: HDLC support module revision 1.22
    [    1.344201] usbcore: registered new interface driver catc
    [    1.350244] usbcore: registered new interface driver kaweth
    [    1.356113] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
    [    1.364296] usbcore: registered new interface driver pegasus
    [    1.370498] usbcore: registered new interface driver rtl8150
    [    1.376664] usbcore: registered new interface driver r8152
    [    1.382648] usbcore: registered new interface driver asix
    [    1.388537] usbcore: registered new interface driver ax88179_178a
    [    1.395098] usbcore: registered new interface driver cdc_ether
    [    1.401505] usbcore: registered new interface driver smsc95xx
    [    1.407747] usbcore: registered new interface driver net1080
    [    1.413848] usbcore: registered new interface driver cdc_subset
    [    1.420286] usbcore: registered new interface driver zaurus
    [    1.426402] usbcore: registered new interface driver cdc_ncm
    [    1.433317] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [    1.440507] ehci-pci: EHCI PCI platform driver
    [    1.445329] ehci-omap: OMAP-EHCI Host Controller driver
    [    1.451371] usbcore: registered new interface driver cdc_wdm
    [    1.457641] usbcore: registered new interface driver usb-storage
    [    1.464157] usbcore: registered new interface driver usbtest
    [    1.472207] am335x-phy-driver 47401300.usb0-phy: GPIO lookup for consumer reset
    [    1.472227] am335x-phy-driver 47401300.usb0-phy: using device tree for GPIO lookup
    [    1.472243] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472253] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472264] am335x-phy-driver 47401300.usb0-phy: using lookup tables for GPIO lookup
    [    1.472274] am335x-phy-driver 47401300.usb0-phy: lookup for GPIO reset failed
    [    1.472285] am335x-phy-driver 47401300.usb0-phy: GPIO lookup for consumer vbus-detect
    [    1.472294] am335x-phy-driver 47401300.usb0-phy: using device tree for GPIO lookup
    [    1.472304] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472314] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb0-phy@47401300[0]'
    [    1.472323] am335x-phy-driver 47401300.usb0-phy: using lookup tables for GPIO lookup
    [    1.472332] am335x-phy-driver 47401300.usb0-phy: lookup for GPIO vbus-detect failed
    [    1.472389] 47401300.usb0-phy supply vcc not found, using dummy regulator
    [    1.511530] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.
    [    1.517763] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517
    [    1.526938] am335x-phy-driver 47401b00.usb1-phy: GPIO lookup for consumer reset
    [    1.526957] am335x-phy-driver 47401b00.usb1-phy: using device tree for GPIO lookup
    [    1.526972] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.526983] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.526993] am335x-phy-driver 47401b00.usb1-phy: using lookup tables for GPIO lookup
    [    1.527003] am335x-phy-driver 47401b00.usb1-phy: lookup for GPIO reset failed
    [    1.527014] am335x-phy-driver 47401b00.usb1-phy: GPIO lookup for consumer vbus-detect
    [    1.527023] am335x-phy-driver 47401b00.usb1-phy: using device tree for GPIO lookup
    [    1.527033] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpios' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.527043] of_get_named_gpiod_flags: can't parse 'vbus-detect-gpio' property of node '/ocp/usb@47400000/usb1-phy@47401b00[0]'
    [    1.527052] am335x-phy-driver 47401b00.usb1-phy: using lookup tables for GPIO lookup
    [    1.527061] am335x-phy-driver 47401b00.usb1-phy: lookup for GPIO vbus-detect failed
    [    1.527109] 47401b00.usb1-phy supply vcc not found, using dummy regulator
    [    1.561455] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.
    [    1.567685] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517
    [    1.590411] mousedev: PS/2 mouse device common for all mice
    [    1.598491] i2c /dev entries driver
    [    1.603402] Driver for 1-wire Dallas network protocol.
    [    1.610562] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    1.610583] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.610613] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    1.610637] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    1.615509] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    1.615518] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    1.615528] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    1.615538] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    1.615547] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    1.615557] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    1.639551] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    1.639573] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.639587] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.639597] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.639606] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.639615] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    1.639627] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    1.639635] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    1.639645] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    1.639654] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    1.639662] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    1.639671] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    1.669859] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.676501] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [    1.684145] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [    1.691547] hidraw: raw HID events driver (C) Jiri Kosina
    [    1.697519] usbcore: registered new interface driver usbhid
    [    1.703990] usbhid: USB HID core driver
    [    1.708335]  remoteproc0: wkup_m3 is available
    [    1.713194]  remoteproc0: Note: remoteproc is still under development and considered experimental.
    [    1.722642]  remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [    1.733759]  remoteproc0: Direct firmware load for am335x-pm-firmware.elf failed with error -2
    [    1.745718] oprofile: using arm/armv7
    [    1.750703] Initializing XFRM netlink socket
    [    1.755230] NET: Registered protocol family 17
    [    1.760024]  remoteproc0: failed to load am335x-pm-firmware.elf
    [    1.766343] NET: Registered protocol family 15
    [    1.771118] lib80211: common routines for IEEE802.11 drivers
    [    1.777054] lib80211_crypt: registered algorithm 'NULL'
    [    1.777068] lib80211_crypt: registered algorithm 'WEP'
    [    1.777082] lib80211_crypt: registered algorithm 'CCMP'
    [    1.777095] lib80211_crypt: registered algorithm 'TKIP'
    [    1.777158] Key type dns_resolver registered
    [    1.781958] omap_voltage_late_init: Voltage driver support not added
    [    1.789493] ThumbEE CPU extension supported.
    [    1.794009] Registering SWP/SWPB emulation handler
    [    1.802414] of_get_named_gpiod_flags: parsed 'gpio' property of node '/fixedregulator@2[0]' - status (0)
    [    1.819465] tps65910 0-002d: No interrupt support, no core IRQ
    [    1.878930] rtc-s35390a 0-0030: rtc core: registered rtc-s35390a as rtc0
    [    1.888461] gpiochip_add: registered GPIOs 200 to 207 on device: pca9538
    [    1.893861] Set uart1 to 485 mode.
    [    1.897487] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 100 kHz
    [    1.909261] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.909279] musb-hdrc: MHDRC RTL version 2.0
    [    1.909288] musb-hdrc: setup fifo_mode 4
    [    1.909306] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.909448] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
    [    1.915851] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
    [    1.924445] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.931633] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.939268] usb usb1: Product: MUSB HDRC host driver
    [    1.944481] usb usb1: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [    1.950905] usb usb1: SerialNumber: musb-hdrc.0.auto
    [    1.956977] hub 1-0:1.0: USB hub found
    [    1.961217] hub 1-0:1.0: 1 port detected
    [    1.995123] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    [    1.995141] musb-hdrc: MHDRC RTL version 2.0
    [    1.995150] musb-hdrc: setup fifo_mode 4
    [    1.995167] musb-hdrc: 28/31 max ep, 16384/16384 memory
    [    1.995287] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
    [    2.001865] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 2
    [    2.010430] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    2.017557] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    2.025186] usb usb2: Product: MUSB HDRC host driver
    [    2.030442] usb usb2: Manufacturer: Linux 4.1.6-g52c4aa7 musb-hcd
    [    2.036834] usb usb2: SerialNumber: musb-hdrc.1.auto
    [    2.042915] hub 2-0:1.0: USB hub found
    [    2.047029] hub 2-0:1.0: 1 port detected
    [    2.069879] omap_hsmmc 48060000.mmc: GPIO lookup for consumer cd
    [    2.069901] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    2.069934] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/ocp/mmc@48060000[0]' - status (0)
    [    2.069957] omap_hsmmc 48060000.mmc: Got CD GPIO
    [    2.074824] omap_hsmmc 48060000.mmc: GPIO lookup for consumer wp
    [    2.074833] omap_hsmmc 48060000.mmc: using device tree for GPIO lookup
    [    2.074843] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@48060000[0]'
    [    2.074853] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@48060000[0]'
    [    2.074863] omap_hsmmc 48060000.mmc: using lookup tables for GPIO lookup
    [    2.074874] omap_hsmmc 48060000.mmc: lookup for GPIO wp failed
    [    2.075259] vmmc: supplied by vbat
    [    2.119912] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer cd
    [    2.119936] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    2.119950] of_get_named_gpiod_flags: can't parse 'cd-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    2.119960] of_get_named_gpiod_flags: can't parse 'cd-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    2.119969] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    2.119979] omap_hsmmc 481d8000.mmc: lookup for GPIO cd failed
    [    2.119991] omap_hsmmc 481d8000.mmc: GPIO lookup for consumer wp
    [    2.119999] omap_hsmmc 481d8000.mmc: using device tree for GPIO lookup
    [    2.120009] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/ocp/mmc@481d8000[0]'
    [    2.120018] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/ocp/mmc@481d8000[0]'
    [    2.120027] omap_hsmmc 481d8000.mmc: using lookup tables for GPIO lookup
    [    2.120036] omap_hsmmc 481d8000.mmc: lookup for GPIO wp failed
    [    2.157272] mmc0: host does not support reading read-only switch, assuming write-enable
    [    2.169002] mmc0: new high speed SDHC card at address 0007
    [    2.175338] mmcblk0: mmc0:0007 SD04G 3.70 GiB
    [    2.182196]  mmcblk0: p1 p2
    [    2.291877] mmc1: MAN_BKOPS_EN bit is not set
    [    2.297924] mmc1: new high speed MMC card at address 0001
    [    2.303637] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [    2.310618] mmcblk1: mmc1:0001 4FEACB 3.64 GiB
    [    2.315629] davinci_mdio 4a101000.mdio: detected phy mask ffffff76
    [    2.322213] mmcblk1boot0: mmc1:0001 4FEACB partition 1 4.00 MiB
    [    2.328903] mmcblk1boot1: mmc1:0001 4FEACB partition 2 4.00 MiB
    [    2.336863] libphy: 4a101000.mdio: probed
    [    2.342191] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver RTL8211E Gigabit Ethernet
    [    2.352439]  mmcblk1: p1 p2
    [    2.355596] davinci_mdio 4a101000.mdio: phy[3]: device 4a101000.mdio:03, driver RTL8211E Gigabit Ethernet
    [    2.368282] davinci_mdio 4a101000.mdio: phy[7]: device 4a101000.mdio:07, driver RTL8211E Gigabit Ethernet
    [    2.379533] cpsw 4a100000.ethernet: Detected MACID = 78:a5:04:9e:4b:e1
    [    2.387661] cpsw 4a100000.ethernet: cpsw: Detected MACID = 78:a5:04:9e:4b:e3
    [    2.397527] rtc-s35390a 0-0030: setting system clock to 2016-07-06 07:40:50 UTC (1467790850)
    [    2.411999] lis3_reg: disabling
    [    2.415437] ALSA device list:
    [    2.418547]   No soundcards found.
    [    2.451789] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    2.460496] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    2.474511] devtmpfs: mounted
    [    2.477966] Freeing unused kernel memory: 276K (c094f000 - c0994000)
    [    3.529255] cfg80211: Calling CRDA to update world regulatory domain
    [    3.722052] udevd[1018]: starting version 182
    [    4.579559] cryptodev: driver 1.6 loaded.
    [    4.724738] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [    5.170828] CAN device driver interface
    [    5.317467] c_can_platform 481d0000.can: c_can_platform device registered (regs=fa1d0000, irq=164)
    [    6.201455] random: dd urandom read with 122 bits of entropy available
    [    6.264601] random: nonblocking pool is initialized
    [    6.699252] cfg80211: Calling CRDA to update world regulatory domain
    [    7.775366] cfg80211: World regulatory domain updated:
    [    8.018673] cfg80211:  DFS Master region: unset
    [    8.069221] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
    [    8.201211] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.301001] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.371113] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.451901] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
    [    8.520814] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
    [    8.544344] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [    8.571462] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.584193] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [    8.615663] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
    [    8.679441] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
    [    8.687879] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
    [   12.984564] net eth1: initializing cpsw version 1.12 (0)
    [   12.993184] net eth1: phy found : id is : 0x1cc915
    [   13.075750] net eth0: initializing cpsw version 1.12 (0)
    [   13.085169] net eth0: phy found : id is : 0x1cc915
    [   15.080183] cpsw 4a100000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
    [   26.183922] udc musb-hdrc.0.auto: registering UDC driver [g_mass_storage]
    [   26.184063] Mass Storage Function, version: 2009/09/11
    [   26.207218] LUN: removable file: (no medium)
    [   26.225950] lun0: open backing file: /dev/mmcblk0p1
    [   26.225985] LUN: file: /dev/mmcblk0p1
    [   26.243855] Number of LUNs=1
    [   26.246919] g_mass_storage gadget: adding config #1 'Linux File-Backed Storage'/bf0465cc
    [   26.246934] Number of LUNs=1
    [   26.258038] g_mass_storage gadget: I/O thread pid: 1830
    [   26.258072] g_mass_storage gadget: adding 'Mass Storage Function'/ddd1ff80 to config 'Linux File-Backed Storage'/bf0465cc
    [   26.258101] g_mass_storage gadget: cfg 1/bf0465cc speeds: high full
    [   26.258111] g_mass_storage gadget:   interface 0 = Mass Storage Function/ddd1ff80
    [   26.258130] g_mass_storage gadget: Mass Storage Gadget, version: 2009/09/11
    [   26.282442] g_mass_storage gadget: userspace failed to provide iSerialNumber
    [   26.298215] g_mass_storage gadget: g_mass_storage ready
    [   26.315653] g_mass_storage musb-hdrc.0.auto: usb_gadget_udc_start
    [   26.468215] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #1, port1 00000100
    [   26.620637] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #2, port1 00000100
    [   26.773067] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (81, <SessEnd), retry #3, port1 00000100
    [   26.925488] musb-hdrc musb-hdrc.0.auto: VBUS_ERROR in a_wait_vrise (80, <SessEnd), retry #3, port1 00080108

    Thanks & regards

  • Can you post the USB sections from your schematic please?
  • The schematic is as follows:

  • From what I see there are some errors in your schematic, especially in the USB_ID signal. I suppose F1 and R1718 are not mounted. Please check processors.wiki.ti.com/.../AM335x_Schematic_Checklist for proper connections.
  • As you said,the Components F1、R1718 and C191 are not mounted.

    We used TI SDK v6.0 and the otg function is okay. Host and slave mode can be detected correctly. But in slave mode when unplug the usb cable, kernel will print the following information uninterruptedly:
    [ 1037.607847] ti81xx_interrupt 1151: VBUS error workaround (delay coming)
    [ 1039.605431] ti81xx_interrupt 1151: VBUS error workaround (delay coming)
    [ 1039.757869] ti81xx_interrupt 1151: VBUS error workaround (delay coming)
    [ 1041.755418] ti81xx_interrupt 1151: VBUS error workaround (delay coming)
    When we plug the usb cable again, printing message stops and usb can be used normally. But when we used the same device, there are some problem in sdk 2.0.
    So We have the following two problem:
    1、In 6.0 BSP ,our usb can be used normally, but will print the "VBUS error" message. Can you help me to confirm whether it is ok?

    2、For the same schematic,the sdk 6.0 is okay, but SDK 2.0 has problem. It seems that the cause is on the difference of SDK. Can you clarify it for me ?


    Thank you very much!

  • How is USB0_VBUS pin connected? I don't see it on schematic.

  • Please combine the following schematic to analyze.

    Thank you very much

  • OK,

    1) Please fix the USB_ID issues pointed out by Biser earlier in this thread. Keep in mind that USB_ID should *never* have a voltage source applied. It is GND=HOST and FLOAT=DEVICE mode operation only. No resistors are needed.

    2) Try replacing R68 with a zero-Ohm resistor. 1.2K is the absolute maximum recommended so there may be an IR drop related issue.

  • According to your suggestion, our hardware engineer has been modified, but OTG still can not use normally. Do you have any other suggestions?

  • Just for testing slave mode, please do the following change.

    - Don't connect the jumper pin 2-3, so that USB0_VBUS pin only connects to the VBUS pin on the usb receptacle, nothing else is on this VBUS line;

    - Disconnect USB0_ID pin from FET PC127, so that it is completely float.

  • Thank you so much for your suggestion!  Using your suggestion, we can support the hot swap of the slave mode, but the host mode can not work.

    So We have the following two problem:

    1、If we want to support the both modes, then what should we do?

    2、We use the 6.0 version of the SDK is fine, but the 2.0 version of the SDK has a problem, so we want to know whether we can find the software differences to fix this problem, after all, our hardware has mass production

  • xiao dai said:
    Using your suggestion, we can support the hot swap of the slave mode,

    Thanks for testing. This means board design has problem in either VBUS or ID pin, or both.

    xiao dai said:
    but the host mode can not work.

    This is expected due the two changes.

    xiao dai said:
    1、If we want to support the both modes, then what should we do?

    We have to narrow down the board issue first. Now please only do one of the two changes you just tested and let me know in which case slave mode works, and which doesn't.

    xiao dai said:
    so we want to know whether we can find the software differences to fix this problem

    Once we understand the hw problem, we can look for sw workaround.

  • According to our hardware engineer's reply, they have do the following verification:
    1、Floating jumper and pull up PQ26 first pin directly, The result is that USB0_ID is floating and slave mode can also be used normally.
    2、In the original schematic(slave mode jumper CN25 (2-3)), when the cable is unplugged, the ID pin is Low, at this time USB0_VBUS has not power supply, so vbus state error. And when re-connected cable the USB0_ID is Floating but USB0_VBUS 5V can not be used.

  • Hi,


    Please try the following workaround.

    When you set the board to host mode by jumping 1-2, run the following command on the board.

    # echo host > /sys/devices/platform/ocp/47400000.usb/47401400.usb/musb-hdrc.0.auto/mode

    When jumping 2-3 for device mode, run the following command on the board.

    # echo peripheral > /sys/devices/platform/ocp/47400000.usb/47401400.usb/musb-hdrc.0.auto/mode

    Please note that depending your kernel config, the sysfs entry name for USB0 port might not be 'musb-hdrc.0.auto', it could be 'musb-hdrc.1.auto'.

  • First of all, thank you very much for your help, through your suggestion seems to be able to solve the problem.

    But this may require the user to interact.  I will see if I can view some state to distinguish between slave and host.

    Thank you very much!

  • Do you know where the driver reads the USB0_ID pin status. I want to read it and then set the otg working mode. In this case we do not need to manually perform etho
  • Hi,

    The driver does not read the USBx_ID pin status, actually there is no way the sw can the status.

    If you can explain what exact you want to achieve, I might have some suggestions.