Srinirajini
Posts: 10
Joined: Fri Oct 05, 2018 4:17 am

USB devices not working on the Pi CM3 with buildroot custom Image

Mon Dec 24, 2018 3:33 am

Hi All,
I am using buildroot to generate u-boot+kernel+rootfs+systemd to work on Raspberry Pi CM3 board, most of my required features are working fine, including a wifi dongle connected on one of the USB port which sits over the "Genesys Logic, Inc. 4-port hub" USB hub. The moment I plug in my other USB devices like Z-Wave dongle and other ZigBee dongle the system is completely hogged.
In my board, three USB ports are taken out while the wifi dongle connected on the first port works fines, If I connect my Z-Wave Dongle on the second port, the system is hogged completely at the same time if I connect the same device on the third port I keep getting the connection/disconnection logs from the kernel for every key press, as the log below.
# [ 130.721279] usb 1-1.2.4: new full-speed USB device number 9 using dwc_otg
[ 130.864720] usb 1-1.2.4: New USB device found, idVendor=0658, idProduct=0200
[ 130.874975] usb 1-1.2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 130.888820] cdc_acm 1-1.2.4:1.0: ttyACM0: USB ACM device

# [ 135.804088] usb 1-1.2.4: USB disconnect, device number 9
[ 136.111287] usb 1-1.2.4: new full-speed USB device number 10 using dwc_otg
[ 136.254718] usb 1-1.2.4: New USB device found, idVendor=0658, idProduct=0200
[ 136.264895] usb 1-1.2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 136.278700] cdc_acm 1-1.2.4:1.0: ttyACM0: USB ACM device

# [ 139.900121] usb 1-1.2.4: USB disconnect, device number 10
[ 140.201274] usb 1-1.2.4: new full-speed USB device number 11 using dwc_otg
[ 140.344720] usb 1-1.2.4: New USB device found, idVendor=0658, idProduct=0200
[ 140.354670] usb 1-1.2.4: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 140.368070] cdc_acm 1-1.2.4:1.0: ttyACM0: USB ACM device


I had gone through the limitations of USB in raspberry Pi pointed out in this forum "viewtopic.php?t=53832"
But I wonder how this same combination of all these three USB devices on the same board with the Jessy or Stretch light OS working good. I believe I am missing some crucial patch/configuration while building my kernel with build root. below is my configurations.
buildroot : buildroot-2018.02.8 (LTS)
Kernel : 4.14.74-v7
u-boot : u-boot-2018.09

lsusb between the custom System and the Jessy system does not show any differences. in fact, even after plugging in all my USB device on the custom system, I could still use SSH shell to work on terminal but I could not type anything on the UART terminal.

# lsusb -t
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M
|__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 2: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
|__ Port 3: Dev 8, If 2, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 3: Dev 8, If 0, Class=Vendor Specific Class, Driver=, 480M
|__ Port 3: Dev 8, If 3, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 3: Dev 8, If 1, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 1: Dev 5, If 0, Class=Vendor Specific Class, Driver=rt2800usb, 480M
|__ Port 4: Dev 9, If 1, Class=CDC Data, Driver=cdc_acm, 12M
|__ Port 4: Dev 9, If 0, Class=Communications, Driver=cdc_acm, 12M
|__ Port 2: Dev 7, If 2, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 2: Dev 7, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 2: Dev 7, If 3, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 2: Dev 7, If 1, Class=Vendor Specific Class, Driver=ftdi_sio, 480M
|__ Port 3: Dev 4, If 0, Class=Vendor Specific Class, Driver=ftdi_sio, 12M
|__ Port 4: Dev 6, If 0, Class=Vendor Specific Class, Driver=smsc95xx, 480M


Apologize, I could not able to attach my kernel config here, as the attachment form reports unrecognized file format, also I wonder if I copy past the whole config the post would have been pretty big.

please help with your valuable suggestions.

Thanks in Advance,
Srini.

Srinirajini
Posts: 10
Joined: Fri Oct 05, 2018 4:17 am

Re: USB devices not working on the Pi CM3 with buildroot custom Image

Wed Jan 02, 2019 4:31 am

If Anyone has some suggestion, please help

Return to “Advanced users”