I run BalenaOS 2.15 on Hummingboard and I am not able to communicate with USB device.
When I connect a USB device, it’s recognize but not mount. I have this message on the serial port:
usb 1-1: new full-speed USB device number 3 using ci_hdrc
I don’t find none files ttyUSBx on /dev/ repository.
Can you confirm that you are unable to see the /dev/ttyUSBx files from the HostOS? (there won’t be files inside the container if the host is unable to see them)
We need to root cause and find why these dev nodes are not appearing in the host os.
This could be a missing kernel driver/module. Can you please share what usb device it is?
And when you plug it in. Can you share the output of dmesg and lsusb -t
We need to find the exact kernel config option. And then see if it is enabled in that OS version using something like this in the Host OS.
e.g on the nuc I just tried.
root@balena:~# cat /proc/config.gz | gunzip -d | grep -i hdrc
# CONFIG_USB_MUSB_HDRC is not set
I test different usb device type ( storage, tranceiver, …) and I have the same result. When I plug in an Amber key I have :
dmesg :
usb 1-1: new full-speed USB device number 3 using ci_hdrc
imx-sgtl5000 sound-sgtl5000: ASoC: CODEC DAI sgtl5000 not registered
imx-sgtl5000 sound-sgtl5000: snd_soc_register_card failed (-517)
lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ci_hdrc/1p, 480M
|__ Port 1: Dev 3, If 0, Class=Vendor Specific Class, Driver=, 12M
Which is also disabled on the nuc. Is it disabled on the hummingboard as well?
root@balena:~# cat /proc/config.gz | gunzip -d | grep -i chipide -C5
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
# CONFIG_USB_CHIPIDEA is not set
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#
root@b2e6021:/sys/class/gpio/gpio94# cat /proc/config.gz | gunzip -d | grep -i chipide -C5
# CONFIG_USB_MICROTEK is not set
# CONFIG_USBIP_CORE is not set
# CONFIG_USB_MUSB_HDRC is not set
# CONFIG_USB_DWC3 is not set
# CONFIG_USB_DWC2 is not set
CONFIG_USB_CHIPIDEA=y
CONFIG_USB_CHIPIDEA_OF=y
CONFIG_USB_CHIPIDEA_PCI=y
CONFIG_USB_CHIPIDEA_UDC=y
CONFIG_USB_CHIPIDEA_HOST=y
# CONFIG_USB_ISP1760 is not set
#
# USB port drivers
#
Hi,
I’m afraid it seems like the module is not available in that case. But before going all the way to build a custom balenaOS, you might also want to look into How to build custom kernel modules. Maybe this works to just build the missing module?