USB OTG GADGET

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

USB OTG GADGET

1,429 次查看
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,382 次查看
barry_chen
Contributor I

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

0 项奖励
回复

1,382 次查看
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,382 次查看
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 项奖励
回复