Who has used USB gadget at imx6ull or other linux system?
I want use USB gadget as mass storage and serial function.
But ,the computer of running win10 or ubuntu can't recognize the USB plug-in.
I have modified here in kernel:
-CONFIG_USB_MASS_STORAGE=m
+CONFIG_USB_MASS_STORAGE=y
And uboot:
+++ b/include/configs/mx6ullevk.h
@@ -119,7 +119,13 @@
"console=ttymxc0\0" \
"bootargs=console=ttymxc0,115200 ubi.mtd=4 " \
"root=ubi0:rootfs rootfstype=ubifs " \
- CONFIG_BOOTARGS_CMA_SIZE \
+ "g_mass_storage.removable=1 " \
+ "g_mass_storage.idVendor=0x15a2 " \
+ "g_mass_storage.idProduct=0x7b " \
+ "g_mass_storage.iSerialNumber=123456abcdef" \
+ "g_mass_storage.luns=1 " \
+ CONFIG_MFG_NAND_PARTITION \
+ "clk_ignore_unused "\
"mtdparts=gpmi-nand:64m(boot),16m(kernel),16m(dtb),1m(misc),-(rootfs)\0"\
Now ,I really don't know where there might be a problem