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- how to enable the USB1 on SDK8.0

Other Parts Discussed in Thread: TPS65217

Dears,


I use the ti-sdk-am335x-evm-08.00.00.00\board-support\prebuilt-images on BBB that USB1 is workable and the USB1_DRVVBUS is 5V,

but I use the my zimage after compiling the SDK8.0 that isnot workable, I measeure the USB1_DRVVBUS is 5V,

I also enable the usb driver config in the kernel, but result is the same, attached file is my config.

Please provide the suggestion for the question, thanks.


B.R.

Joe8322.config_old.zip

  • Hi Joe,

    I've run mu beaglebone black with a custom built kernel & my usb port detects the devices connected to it:

     root@am335x-evm:~# [   60.861946] usb 2-1: new high-speed USB device number 2 using musb-hdrc                              

    [   61.007069] usb 2-1: New USB device found, idVendor=0930, idProduct=6545                                                

    [   61.014185] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3                                          

    [   61.021676] usb 2-1: Product: DataTraveler 2.0                                                                          

    [   61.026374] usb 2-1: Manufacturer: Kingston                                                                            

    [   61.030770] usb 2-1: SerialNumber: 00241D8CE3E6ED51991909C7                                                            

    [   61.047066] usb-storage 2-1:1.0: USB Mass Storage device detected                                                      

    Can you please share:

     1. the output of lsmod on your board

     2. boot log of your board

    Best Regards,

    Yordan

  • Also, I noticed that you haven't set the MUSB_DSPS driver in the config fiel you attached. Try setting CONFIG_USB_MUSB_DSPS=y in your config file.

    Best Regards,
    Yordan
  • Hi Yordan,

    Thank your help. My board information as below,

    am335x-evm login: root
    root@am335x-evm:~# lsmod
    Module Size Used by
    root@am335x-evm:~#

    [ 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] Total of 128 interrupts on 1 active controller
    [ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
    [ 0.000012] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
    [ 0.000029] OMAP clocksource: timer1 at 24000000 Hz
    [ 0.000252] Console: colour dummy device 80x30
    [ 0.000277] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [ 0.089555] pid_max: default: 32768 minimum: 301
    [ 0.089637] Security Framework initialized
    [ 0.089684] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.089693] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [ 0.095290] CPU: Testing write buffer coherency: ok
    [ 0.095622] Setting up static identity map for 0x805dc720 - 0x805dc778
    [ 0.096404] devtmpfs: initialized
    [ 0.097908] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [ 0.103545] omap_hwmod: tptc0 using broken dt data from edma
    [ 0.103611] omap_hwmod: tptc1 using broken dt data from edma
    [ 0.103669] omap_hwmod: tptc2 using broken dt data from edma
    [ 0.107597] omap_hwmod: debugss: _wait_target_disable failed
    [ 0.162110] pinctrl core: initialized pinctrl subsystem
    [ 0.162965] regulator-dummy: no parameters
    [ 0.164974] NET: Registered protocol family 16
    [ 0.166615] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [ 0.168715] cpuidle: using governor ladder
    [ 0.168728] cpuidle: using governor menu
    [ 0.174199] syscon 44e10000.control_module: regmap [mem 0x44e10000-0x44e107fb] registered
    [ 0.175433] platform 49000000.edma: alias fck already exists
    [ 0.175453] platform 49000000.edma: alias fck already exists
    [ 0.175464] platform 49000000.edma: alias fck already exists
    [ 0.176433] OMAP GPIO hardware version 0.1
    [ 0.187979] No ATAGs?
    [ 0.188000] hw-breakpoint: debug architecture 0x4 unsupported.
    [ 0.209062] bio: create slab <bio-0> at 0
    [ 0.221637] edma-dma-engine edma-dma-engine.0: TI EDMA DMA engine driver
    [ 0.222488] vmmcsd_fixed: 3300 mV
    [ 0.224933] vgaarb: loaded
    [ 0.225359] i2c-core: driver [palmas] using legacy suspend method
    [ 0.225367] i2c-core: driver [palmas] using legacy resume method
    [ 0.225967] SCSI subsystem initialized
    [ 0.227159] usbcore: registered new interface driver usbfs
    [ 0.227313] usbcore: registered new interface driver hub
    [ 0.227474] usbcore: registered new device driver usb
    [ 0.228246] omap_i2c 44e0b000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c0_pins, deferring probe
    [ 0.228271] platform 44e0b000.i2c: Driver omap_i2c requests probe deferral
    [ 0.228294] omap_i2c 4802a000.i2c: could not find pctldev for node /pinmux@44e10800/pinmux_i2c1_pins, deferring probe
    [ 0.228306] platform 4802a000.i2c: Driver omap_i2c requests probe deferral
    [ 0.228615] pps_core: LinuxPPS API ver. 1 registered
    [ 0.228625] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [ 0.228729] PTP clock support registered
    [ 0.230399] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [ 0.231281] Advanced Linux Sound Architecture Driver Initialized.
    [ 0.232630] Switched to clocksource timer1
    [ 0.248415] NET: Registered protocol family 2
    [ 0.249106] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.249149] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
    [ 0.249187] TCP: Hash tables configured (established 4096 bind 4096)
    [ 0.249245] TCP: reno registered
    [ 0.249257] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.249272] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [ 0.249429] NET: Registered protocol family 1
    [ 0.249786] RPC: Registered named UNIX socket transport module.
    [ 0.249797] RPC: Registered udp transport module.
    [ 0.249801] RPC: Registered tcp transport module.
    [ 0.249807] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [ 0.250708] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available
    [ 0.253075] futex hash table entries: 256 (order: -1, 3072 bytes)
    [ 0.392297] VFS: Disk quotas dquot_6.5.2
    [ 0.392354] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [ 0.392893] NFS: Registering the id_resolver key type
    [ 0.392971] Key type id_resolver registered
    [ 0.392978] Key type id_legacy registered
    [ 0.393011] jffs2: version 2.2. (NAND) (SUMMARY) ? 2001-2006 Red Hat, Inc.
    [ 0.393152] msgmni has been set to 993
    [ 0.394343] NET: Registered protocol family 38
    [ 0.394378] io scheduler noop registered
    [ 0.394385] io scheduler deadline registered
    [ 0.394404] io scheduler cfq registered (default)
    [ 0.395808] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [ 0.400964] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
    [ 0.403632] omap_uart 44e09000.serial: no wakeirq for uart0
    [ 0.403768] 44e09000.serial: ttyO0 at MMIO 0x44e09000 (irq = 88, base_baud = 3000000) is a OMAP UART0
    [ 1.060122] console [ttyO0] enabled
    [ 1.064382] omap_uart 48022000.serial: no wakeirq for uart0
    [ 1.075574] 48022000.serial: ttyO1 at MMIO 0x48022000 (irq = 89, base_baud = 3000000) is a OMAP UART1
    [ 1.086446] omap_rng 48310000.rng: OMAP Random Number Generator ver. 20
    [ 1.093749] [drm] Initialized drm 1.1.0 20060810
    [ 1.107452] brd: module loaded
    [ 1.115250] loop: module loaded
    [ 1.118876] (hci_tty): inside hci_tty_init
    [ 1.123589] (hci_tty): allocated 248, 0
    [ 1.131080] mtdoops: mtd device (mtddev=name/number) must be supplied
    [ 1.141043] usbcore: registered new interface driver asix
    [ 1.146915] usbcore: registered new interface driver ax88179_178a
    [ 1.153455] usbcore: registered new interface driver cdc_ether
    [ 1.159723] usbcore: registered new interface driver smsc95xx
    [ 1.165866] usbcore: registered new interface driver net1080
    [ 1.171928] usbcore: registered new interface driver cdc_subset
    [ 1.178253] usbcore: registered new interface driver zaurus
    [ 1.184291] usbcore: registered new interface driver cdc_ncm
    [ 1.191201] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
    [ 1.198070] ehci-pci: EHCI PCI platform driver
    [ 1.202897] ehci-platform: EHCI generic platform driver
    [ 1.208628] ehci-omap: OMAP-EHCI Host Controller driver
    [ 1.214901] usbcore: registered new interface driver cdc_acm
    [ 1.220838] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
    [ 1.229397] usbcore: registered new interface driver cdc_wdm
    [ 1.235500] usbcore: registered new interface driver usb-storage
    [ 1.243429] mousedev: PS/2 mouse device common for all mice
    [ 1.250328] TI-am335x-tsc TI-am335x-tsc: ti,charge-delay not specified
    [ 1.257615] input: ti-tsc as /devices/ocp.3/44e0d000.tscadc/TI-am335x-tsc/input/input0
    [ 1.267164] i2c-core: driver [rtc-ds1307] using legacy suspend method
    [ 1.273946] i2c-core: driver [rtc-ds1307] using legacy resume method
    [ 1.281326] omap_rtc 44e3e000.rtc: rtc core: registered 44e3e000.rtc as rtc0
    [ 1.289460] i2c /dev entries driver
    [ 1.293278] Driver for 1-wire Dallas network protocol.
    [ 1.300687] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [ 1.415376] ledtrig-cpu: registered to indicate activity on CPUs
    [ 1.421999] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
    [ 1.429249] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
    [ 1.436680] usbcore: registered new interface driver usbhid
    [ 1.442544] usbhid: USB HID core driver
    [ 1.446853] platform 44d00000.wkup_m3: Driver wkup_m3 requests probe deferral
    [ 1.454380] mmc0: host does not support reading read-only switch. assuming write-enable.
    [ 1.463983] mmc0: new SD card at address 92aa
    [ 1.469913] mmcblk0: mmc0:92aa SU01G 968 MiB
    [ 1.476934] mmcblk0: p1 p2
    [ 1.481066] oprofile: using arm/armv7
    [ 1.485278] TCP: cubic registered
    [ 1.488749] Initializing XFRM netlink socket
    [ 1.493848] NET: Registered protocol family 17
    [ 1.498593] NET: Registered protocol family 15
    [ 1.504416] Key type dns_resolver registered
    [ 1.511594] cpu cpu0: of_pm_voltdm_notifier_register: Failed to get cpu0 regulator/voltdm: -517
    [ 1.520785] cpu cpu0: cpu0 clock notifier not ready, retry
    [ 1.526622] platform cpufreq-cpu0.0: Driver cpufreq-cpu0 requests probe deferral
    [ 1.535045] PM: bootloader does not support rtc-only!
    [ 1.540449] ThumbEE CPU extension supported.
    [ 1.545023] Registering SWP/SWPB emulation handler
    [ 1.551528] regulator-dummy: disabling
    [ 1.560854] tilcdc 4830e000.lcdc: no encoders/connectors found
    [ 1.567088] tilcdc 4830e000.lcdc: failed to initialize mode setting
    [ 1.583645] DCDC1: at 1500 mV
    [ 1.587838] vdd_mpu: 925 <--> 1375 mV at 1325 mV
    [ 1.593922] vdd_core: 925 <--> 1150 mV at 1125 mV
    [ 1.599987] LDO1: at 1800 mV
    [ 1.604108] LDO2: at 3300 mV
    [ 1.608202] LDO3: 1800 mV
    [ 1.611388] mmc1: BKOPS_EN bit is not set
    [ 1.616263] LDO4: at 3300 mV
    [ 1.620459] tps65217 0-0024: TPS65217 ID 0xe version 1.2
    [ 1.626513] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [ 1.634587] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [ 1.640477] mmc1: new high speed MMC card at address 0001
    [ 1.646727] remoteproc0: wkup_m3 is available
    [ 1.651383] remoteproc0: Note: remoteproc is still under development and considered experimental.
    [ 1.660797] remoteproc0: THE BINARY FORMAT IS NOT YET FINALIZED, and backward compatibility isn't yet guaranteed.
    [ 1.672265] mmcblk1: mmc1:0001 MMC04G 3.60 GiB
    [ 1.677167] mmcblk1boot0: mmc1:0001 MMC04G partition 1 2.00 MiB
    [ 1.683481] mmcblk1boot1: mmc1:0001 MMC04G partition 2 2.00 MiB
    [ 1.690550] remoteproc0: Direct firmware load failed with error -2
    [ 1.697179] remoteproc0: Falling back to user helper
    [ 1.702570] mmcblk1: p1 p2
    [ 1.706550] cpu cpu0: of_pm_voltdm_notifier_register: Fail calculating voltage latency[950000<->1325000]:-22
    [ 1.718952] mmcblk1boot1: unknown partition table
    [ 1.740390] mmcblk1boot0: unknown partition table
    [ 1.782676] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6
    [ 1.789063] davinci_mdio 4a101000.mdio: detected phy mask fffffffe
    [ 1.796196] libphy: 4a101000.mdio: probed
    [ 1.800401] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
    [ 1.810742] cpsw 4a100000.ethernet: Detected MACID = 6c:ec:eb:68:fa:f4
    [ 1.819256] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
    [ 1.830833] ALSA device list:
    [ 1.834014] No soundcards found.
    [ 1.840996] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
    [ 1.848714] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
    [ 3.418730] EXT4-fs (mmcblk0p2): recovery complete
    [ 3.574581] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 3.583207] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
    [ 3.592950] devtmpfs: mounted
    [ 3.597173] Freeing unused kernel memory: 268K (c07fa000 - c083d000)
    INIT: version 2.88 booting
    Error opening /dev/fb0: No such file or directory
    Starting udev
    [ 4.418298] udevd[868]: starting version 182
    [ 4.974093] EXT4-fs (mmcblk0p2): warning: maximal mount count reached, running e2fsck is recommended
    [ 5.079369] remoteproc0: powering up wkup_m3
    [ 5.108836] remoteproc0: Booting fw image am335x-pm-firmware.elf, size 154420
    [ 5.131411] EXT4-fs (mmcblk0p2): re-mounted. Opts: data=ordered
    [ 5.253180] PM: CM3 Firmware Version = 0x190
    [ 5.337049] remoteproc0: remote processor wkup_m3 is now up
    [ 5.372728] random: nonblocking pool is initialized
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [ 7.530031] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    [ 7.743624] EXT4-fs (mmcblk1p2): recovery complete
    [ 7.748673] EXT4-fs (mmcblk1p2): mounted filesystem with ordered data mode. Opts: (null)
    [ 7.759192] FAT-fs (mmcblk1p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
    ALSA: Restoring mixer settings...
    /usr/sbin/alsactl: load_state:1729: No soundcards found...
    Wed Feb 11 14:32:00 UTC 2015
    INIT: Entering runlevel: 5
    Configuring network interfaces... [ 8.427214] net eth0: initializing cpsw version 1.12 (0)
    [ 8.513447] net eth0: phy found : id is : 0x7c0f1
    [ 8.518438] libphy: PHY 4a101000.mdio:01 not found
    [ 8.523472] net eth0: phy 4a101000.mdio:01 not found on slave 1

    B.R.
    Joe
  • Hi Joe,

    Joe Chen3 said:
    root@am335x-evm:~# lsmod
    Module Size Used by

    Indicates that you don't have any of the drivers inserted in your kernel.

    Can you change your config file, as I stated in my previous post, add  CONFIG_USB_MUSB_DSPS=y, rebuild your kernel.

    Then boot your board, navigate to /lib/modules/3.14.26-g2489c02/kernel/drivers/usb & insmod all usb related drivers.

    Best Regards,

    Yordan

  • Hi Yordan,

    Great, thank for your help after enabling the CONFIG_USB_MUSB_DSPS.

    B.R.
    Joe