B3+BR: 4.0.4 kernel. Recognize these symptoms?

I don’t get this close to the metal too often so do let me know if I’ve missed something screamingly obvious… trying to get gadget audio to work.

Using BR/Busybox/4.0.4 I get a clean booting system with Ethernet working and USB modules loading as expected. However I get no device enumeration when board is plugged into a host. I suspect PHY may not be powered up or I’ve got the device management settings wrong. Nothing obvious appears in kernel logs.

Questions arising …

  1. Does anyone have a known good 4.0.4 config file for a B3?

  2. Any pointers on how to start debugging this?

  3. What is the recommended way to manage USB devices (and best docs?)

This does all work using the pre-built bone-debian 2015-03-01 release …

TVMIA.

did you load the gadget driver? We do in the factory images.

https://github.com/RobertCNelson/boot-scripts/blob/master/boot/am335x_evm.sh#L105

Regards,

> 1. Does anyone have a known good 4.0.4 config file for a B3?

Kernel configuration file

>
> 3. What is the recommended way to manage USB devices (and best docs?)

I don't understand the question.
Is question that your pc doesn't see the BBB when you connect them via
USB?

Zero activity on both host and device. On the Bone side it's like the USB plug notification was never sent.

Tx++

Hello Robert and thanks for the input here.

>

did you load the gadget driver? We do in the factory images.

https://github.com/RobertCNelson/boot-
scripts/blob/master/boot/am335x_evm.sh#L105

Think it may even be lower level than that. The following dmesg dump is from a debian build. The usbcore/musb-hdrc stuff is not happening in the custom BR build.

Thx++

-----------------------------------snip-----------------------------------------
[ 0.129576] usbcore: registered new interface driver usbfs
[ 0.129637] usbcore: registered new interface driver hub
[ 0.129837] usbcore: registered new device driver usb
[ 0.714884] usbcore: registered new interface driver cdc_ether
[ 0.714937] usbcore: registered new interface driver rndis_host
[ 0.715035] usbcore: registered new interface driver cdc_ncm
[ 0.716805] usbcore: registered new interface driver cdc_acm
[ 0.716908] usbcore: registered new interface driver usb-storage
[ 0.717054] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
[ 0.717292] musb-hdrc musb-hdrc.0.auto: pdev->id = 0
[ 0.717309] musb-hdrc musb-hdrc.0.auto: drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[ 0.717334] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.717344] musb-hdrc: MHDRC RTL version 2.0
[ 0.717352] musb-hdrc: setup fifo_mode 4
[ 0.717368] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.717452] musb-hdrc musb-hdrc.0.auto: *** mode=3
[ 0.717463] musb-hdrc musb-hdrc.0.auto: *** power=250
[ 0.744206] musb-hdrc musb-hdrc.1.auto: pdev->id = 1
[ 0.744220] musb-hdrc musb-hdrc.1.auto: drivers/usb/musb/musb_dsps.c:480 dsps_musb_init: OK
[ 0.744243] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
[ 0.744253] musb-hdrc: MHDRC RTL version 2.0
[ 0.744260] musb-hdrc: setup fifo_mode 4
[ 0.744271] musb-hdrc: 28/31 max ep, 16384/16384 memory
[ 0.744347] musb-hdrc musb-hdrc.1.auto: *** mode=1
[ 0.744358] musb-hdrc musb-hdrc.1.auto: *** power=250
[ 0.744368] musb-hdrc musb-hdrc.1.auto: MUSB HDRC host driver
[ 0.744596] musb-hdrc musb-hdrc.1.auto: new USB bus registered, assigned bus number 1
[ 0.744623] musb-hdrc musb-hdrc.1.auto: supports USB remote wakeup
[ 0.744694] usb usb1: default language 0x0409
[ 0.744726] usb usb1: udev 1, busnum 1, minor = 0

Hello.

Use the previous .config and maybe then a make oldconfig.

The suggested default appears to be omap2plus_defconfig. But I cannot get it to play nice. After a lot of experimentation (guessing) I found workable configurations for 3.14 and 3.12 series kernels.

I don't know the OS you're running so can't say, don't know.

Buildroot configured Busybox + mdev.

Thx++