I try to compile yocto kernel for intel galileo gen 2 with usb device configure as serial port (cdc acm).
In menuconfig, I add Device Drivers > USB support > USB Gadget Support > USB Gadget Drivers > Serial Gadget (with CDC ACM and CDC OBEX support).
I boot on sd card with re compile image.
With this config, usb device is well enumerate as cdc port, but nothing appear in /dev/tty*.
dmesg command produce this result (linux host usb):
[246145.396558] usb 3-14: new high-speed USB device number 10 using xhci_hcd [246145.545669] usb 3-14: New USB device found, idVendor=0525, idProduct=a4a7 [246145.545673] usb 3-14: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [246145.545676] usb 3-14: Product: Gadget Serial v2.4 [246145.545679] usb 3-14: Manufacturer: Linux 4.4.26-yocto-standard with pch_udc [246145.546117] usb 3-14: can't set config #2, error -32
Should I change something in menuconfig ?
I follow this tutorial :
I also use these commands to compile kernel :
bitbake virtual/kernel -c menuconfig bitbake virtual/kernel -f -c compile
Thanks for your help,
I still have my problem, I had this information, I hope it could help :
dmesg from yocto :
pch_udc 0000:00:14.2: USB_RESET pch_udc 0000:00:14.2: USB_ENUM pch_udc 0000:00:14.2: ES g_serial gadget: suspend pch_udc 0000:00:14.2: USB_SUSPEND