AnsweredAssumed Answered

i.mx6dl- usb otg test

Question asked by eren basturk on Jul 21, 2016
Latest reply on Jul 25, 2016 by eren basturk


Dear all,

 

I want to test USB OTG as storage device but I have some problem with adding kernel modules.

 

I currently use yocto with 3.14.52 version. Actually, I add g_mass_storage support as module but, it doesn't exist on kernel. Here is my log file.

 

root@imx6dlsabresd:~# insmod g_mass_storage.ko file=/dev/mmcblk1p1

insmod: can't insert 'g_mass_storage.ko': No such file or directory

root@imx6dlsabresd:~# uname -a

Linux imx6dlsabresd 3.14.52-1.1.1_ga+gdb1bcba #140 SMP PREEMPT Thu Jul 21 16:50:46 EEST 2016 armv7l GNU/Linux

root@imx6dlsabresd:~#

 

 

device tree:

/**
 *usbotg settings 
 */
&usbotg {
       vbus-supply = <&reg_usb_otg_vbus>;
       pinctrl-names = "default";
       pinctrl-0 = <&pinctrl_usbotg>;
       disable-over-current;
       srp-disable;
       hnp-disable;
       adp-disable;
       status = "okay";
       dr_mode = "otg"; 
};

 

pin config:

Here are my kernel config about selection.

usb_gadget.png

 

usb_peripheral.png

 

 

usb_support.png

 

Best Regards,

Eren

Outcomes