USB OTG GADGET

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB OTG GADGET

1,402件の閲覧回数
barry_chen
Contributor I

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

ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

1,355件の閲覧回数
barry_chen
Contributor I

This problem has been solved. It's a hardware problem. Thank you for your help!

0 件の賞賛
返信

1,355件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi cheng

what bsp used in the case, one can try usb unit test below on i.MX6UL EVK

with Demo Images

mxc_usb_test\test - imx-test - i.MX Driver Test Application Software 

Embedded Linux for i.MX Applications Processors | NXP 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,355件の閲覧回数
barry_chen
Contributor I

&usbotg1 {
dr_mode = "otg";
- srp-disable;
- hnp-disable;
+ //srp-disable;
+ //hnp-disable;
adp-disable;
otg-rev = <0x0200>;

By the way,There will also be problems with modifying the above one.

0 件の賞賛
返信