i.mx6dl- usb otg test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.mx6dl- usb otg test

Jump to solution
3,870 Views
erenbasturk
Contributor II


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

Labels (3)
1 Solution
1,876 Views
qinghuazhu
Contributor III

I think you must run "bitbake core-image-minimal", so you miss "kernel" directory.

At least you should run "bitbake core-image-base".

View solution in original post

8 Replies
1,877 Views
qinghuazhu
Contributor III

I think you must run "bitbake core-image-minimal", so you miss "kernel" directory.

At least you should run "bitbake core-image-base".

1,876 Views
erenbasturk
Contributor II

Hi,

I understand that yocto generates modules.tar.gz separetly. I just refresh zImage and rootfs. Now the problem solved.

Thanks

0 Kudos
1,876 Views
qinghuazhu
Contributor III

That means no module installed default, so you should install modules manually.

modules in directory /lib/modules/3.14.28-1.0.0_ga+g91cf351/kernel

you can find "g_mass_storage.ko" in "/lib/modules/3.14.28-1.0.0_ga+g91cf351/kernel/drivers/usb/gadget"

0 Kudos
1,876 Views
erenbasturk
Contributor II

root@imx6dlsabresd:/lib/modules/3.14.52-1.1.1_ga+gdb1bcba# ls

extra                modules.builtin.bin  modules.order

modules.alias        modules.dep          modules.softdep

modules.alias.bin    modules.dep.bin      modules.symbols

modules.builtin      modules.devname      modules.symbols.bin

There is no related kernel directory on my side. Kernel directory and kernel objects are missing. I don't know I have chosen all gadget as a module. I follow the referance manuel but, it seems that something is missing. What could be the reason that why kernel directory is missing on my system.

0 Kudos
1,876 Views
igorpadykov
NXP Employee
NXP Employee

HI Eren

for usb tests one can look at imx-test package (folder ../test/mxc_usb_test)

http://patches.openembedded.org/patch/110753/

also please check attached Linux Manual Chapter 40

CHIPIDEA USB Driver

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

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

-----------------------------------------------------------------------------------------------------------------------

0 Kudos
1,876 Views
erenbasturk
Contributor II

Hi,

I followwed the docuement and now. The module exits but there is something strange. The module exist but, it can unloadable with modprobe.

root@imx6dlsabresd:~# find / -name g_mass_storage

/sys/module/g_mass_storage

root@imx6dlsabresd:~# modprobe g_mass_storage

modprobe: module g_mass_storage not found in modules.dep

root@imx6dlsabresd:~#

Best Regards,

Eren

0 Kudos
1,876 Views
qinghuazhu
Contributor III

As storage device, you can run commands as below,

insmod configfs.ko

insmod libcomposite.ko

insmod usb_f_mass_storage.ko

insmod gadgetfs.ko

insmod g_mass_storage.ko file=/dev/mmcblk1p1

run "lsmod" to list modules installed.

1,876 Views
erenbasturk
Contributor II

Actually, no kernel object shown. I selected the parameters which are written in I.MX6 Linux Referance Manuel-40.

root@imx6dlsabresd:~# lsmod

    Tainted: G 

galcore 225842 0 - Live 0x7f000000 (O)

root@imx6dlsabresd:~# ls /lib/modules/3.14.52-1.1.1_ga+gdb1bcba/

extra                modules.builtin.bin  modules.order

modules.alias        modules.dep          modules.softdep

modules.alias.bin    modules.dep.bin      modules.symbols

modules.builtin      modules.devname      modules.symbols.bin

root@imx6dlsabresd:~#

Also here is output of "zgrep -i usb /proc/config.gz" command.

CONFIG_IMX_HAVE_PLATFORM_FSL_USB2_UDC=y

# CONFIG_USB_SWITCH_FSA9480 is not set

# USB Network Adapters

# CONFIG_USB_CATC is not set

# CONFIG_USB_KAWETH is not set

CONFIG_USB_PEGASUS=m

CONFIG_USB_RTL8150=m

CONFIG_USB_RTL8152=m

CONFIG_USB_USBNET=m

CONFIG_USB_NET_AX8817X=m

CONFIG_USB_NET_AX88179_178A=m

CONFIG_USB_NET_CDCETHER=m

CONFIG_USB_NET_CDC_EEM=m

CONFIG_USB_NET_CDC_NCM=m

# CONFIG_USB_NET_HUAWEI_CDC_NCM is not set

# CONFIG_USB_NET_CDC_MBIM is not set

# CONFIG_USB_NET_DM9601 is not set

# CONFIG_USB_NET_SR9700 is not set

# CONFIG_USB_NET_SR9800 is not set

# CONFIG_USB_NET_SMSC75XX is not set

# CONFIG_USB_NET_SMSC95XX is not set

# CONFIG_USB_NET_GL620A is not set

CONFIG_USB_NET_NET1080=m

# CONFIG_USB_NET_PLUSB is not set

# CONFIG_USB_NET_MCS7830 is not set

# CONFIG_USB_NET_RNDIS_HOST is not set

CONFIG_USB_NET_CDC_SUBSET=m

# CONFIG_USB_ALI_M5632 is not set

# CONFIG_USB_AN2720 is not set

CONFIG_USB_BELKIN=y

CONFIG_USB_ARMLINUX=y

# CONFIG_USB_EPSON2888 is not set

# CONFIG_USB_KC2190 is not set

CONFIG_USB_NET_ZAURUS=m

# CONFIG_USB_NET_CX82310_ETH is not set

# CONFIG_USB_NET_KALMIA is not set

# CONFIG_USB_NET_QMI_WWAN is not set

# CONFIG_USB_NET_INT51X1 is not set

# CONFIG_USB_IPHETH is not set

# CONFIG_USB_SIERRA_NET is not set

# CONFIG_USB_VL600 is not set

# CONFIG_AT76C50X_USB is not set

# CONFIG_USB_ZD1201 is not set

# CONFIG_USB_NET_RNDIS_WLAN is not set

# CONFIG_TOUCHSCREEN_USB_COMPOSITE is not set

# CONFIG_I2C_TINY_USB is not set

# USB GPIO expanders:

# USB-based Watchdog Cards

# CONFIG_USBPCWATCHDOG is not set

# CONFIG_IR_MCEUSB is not set

# CONFIG_IR_TTUSBIR is not set

CONFIG_MEDIA_USB_SUPPORT=y

CONFIG_USB_VIDEO_CLASS=m

CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y

CONFIG_USB_GSPCA=m

# CONFIG_USB_M5602 is not set

# CONFIG_USB_STV06XX is not set

# CONFIG_USB_GL860 is not set

# CONFIG_USB_GSPCA_BENQ is not set

# CONFIG_USB_GSPCA_CONEX is not set

# CONFIG_USB_GSPCA_CPIA1 is not set

# CONFIG_USB_GSPCA_ETOMS is not set

# CONFIG_USB_GSPCA_FINEPIX is not set

# CONFIG_USB_GSPCA_JEILINJ is not set

# CONFIG_USB_GSPCA_JL2005BCD is not set

# CONFIG_USB_GSPCA_KINECT is not set

# CONFIG_USB_GSPCA_KONICA is not set

# CONFIG_USB_GSPCA_MARS is not set

# CONFIG_USB_GSPCA_MR97310A is not set

# CONFIG_USB_GSPCA_NW80X is not set

# CONFIG_USB_GSPCA_OV519 is not set

# CONFIG_USB_GSPCA_OV534 is not set

# CONFIG_USB_GSPCA_OV534_9 is not set

# CONFIG_USB_GSPCA_PAC207 is not set

# CONFIG_USB_GSPCA_PAC7302 is not set

# CONFIG_USB_GSPCA_PAC7311 is not set

# CONFIG_USB_GSPCA_SE401 is not set

# CONFIG_USB_GSPCA_SN9C2028 is not set

# CONFIG_USB_GSPCA_SN9C20X is not set

# CONFIG_USB_GSPCA_SONIXB is not set

# CONFIG_USB_GSPCA_SONIXJ is not set

# CONFIG_USB_GSPCA_SPCA500 is not set

# CONFIG_USB_GSPCA_SPCA501 is not set

# CONFIG_USB_GSPCA_SPCA505 is not set

# CONFIG_USB_GSPCA_SPCA506 is not set

# CONFIG_USB_GSPCA_SPCA508 is not set

# CONFIG_USB_GSPCA_SPCA561 is not set

# CONFIG_USB_GSPCA_SPCA1528 is not set

# CONFIG_USB_GSPCA_SQ905 is not set

# CONFIG_USB_GSPCA_SQ905C is not set

# CONFIG_USB_GSPCA_SQ930X is not set

# CONFIG_USB_GSPCA_STK014 is not set

# CONFIG_USB_GSPCA_STK1135 is not set

# CONFIG_USB_GSPCA_STV0680 is not set

# CONFIG_USB_GSPCA_SUNPLUS is not set

# CONFIG_USB_GSPCA_T613 is not set

# CONFIG_USB_GSPCA_TOPRO is not set

# CONFIG_USB_GSPCA_TV8532 is not set

# CONFIG_USB_GSPCA_VC032X is not set

# CONFIG_USB_GSPCA_VICAM is not set

# CONFIG_USB_GSPCA_XIRLINK_CIT is not set

# CONFIG_USB_GSPCA_ZC3XX is not set

# CONFIG_USB_PWC is not set

# CONFIG_USB_ZR364XX is not set

# CONFIG_USB_STKWEBCAM is not set

# CONFIG_USB_S2255 is not set

# CONFIG_VIDEO_USBTV is not set

# Webcam, TV (analog/digital) USB devices

# CONFIG_USB_MR800 is not set

# CONFIG_USB_DSBR is not set

# CONFIG_USB_KEENE is not set

# CONFIG_USB_RAREMONO is not set

# CONFIG_USB_MA901 is not set

CONFIG_SND_USB=y

CONFIG_SND_USB_AUDIO=m

# CONFIG_SND_USB_UA101 is not set

# CONFIG_SND_USB_CAIAQ is not set

# CONFIG_SND_USB_6FIRE is not set

# CONFIG_SND_USB_HIFACE is not set

# USB HID support

CONFIG_USB_HID=y

# CONFIG_USB_HIDDEV is not set

CONFIG_USB_OHCI_LITTLE_ENDIAN=y

CONFIG_USB_SUPPORT=y

CONFIG_USB_COMMON=y

CONFIG_USB_ARCH_HAS_HCD=y

CONFIG_USB=y

# CONFIG_USB_DEBUG is not set

CONFIG_USB_ANNOUNCE_NEW_DEVICES=y

# Miscellaneous USB options

CONFIG_USB_DEFAULT_PERSIST=y

# CONFIG_USB_DYNAMIC_MINORS is not set

CONFIG_USB_OTG=y

CONFIG_USB_OTG_WHITELIST=y

# CONFIG_USB_OTG_BLACKLIST_HUB is not set

CONFIG_USB_OTG_FSM=y

# CONFIG_USB_MON is not set

# CONFIG_USB_WUSB_CBAF is not set

# USB Host Controller Drivers

# CONFIG_USB_C67X00_HCD is not set

CONFIG_USB_XHCI_HCD=m

CONFIG_USB_EHCI_HCD=m

CONFIG_USB_EHCI_ROOT_HUB_TT=y

CONFIG_USB_EHCI_TT_NEWSCHED=y

CONFIG_USB_FSL_MPH_DR_OF=m

CONFIG_USB_EHCI_MXC=m

# CONFIG_USB_EHCI_HCD_PLATFORM is not set

# CONFIG_USB_OXU210HP_HCD is not set

# CONFIG_USB_ISP116X_HCD is not set

# CONFIG_USB_ISP1760_HCD is not set

# CONFIG_USB_ISP1362_HCD is not set

# CONFIG_USB_FUSBH200_HCD is not set

# CONFIG_USB_FOTG210_HCD is not set

# CONFIG_USB_OHCI_HCD is not set

# CONFIG_USB_SL811_HCD is not set

# CONFIG_USB_R8A66597_HCD is not set

# CONFIG_USB_IMX21_HCD is not set

# CONFIG_USB_HCD_TEST_MODE is not set

# CONFIG_USB_RENESAS_USBHS is not set

# USB Device Class drivers

# CONFIG_USB_ACM is not set

# CONFIG_USB_PRINTER is not set

# CONFIG_USB_WDM is not set

# CONFIG_USB_TMC is not set

# NOTE: USB_STORAGE depends on SCSI but BLK_DEV_SD may

# also be needed; see USB_STORAGE Help for more info

# CONFIG_USB_STORAGE is not set

# USB Imaging devices

# CONFIG_USB_MDC800 is not set

# CONFIG_USB_MICROTEK is not set

# CONFIG_USB_MUSB_HDRC is not set

# CONFIG_USB_DWC3 is not set

# CONFIG_USB_DWC2 is not set

CONFIG_USB_CHIPIDEA=m

# CONFIG_USB_CHIPIDEA_UDC is not set

# CONFIG_USB_CHIPIDEA_HOST is not set

# CONFIG_USB_CHIPIDEA_DEBUG is not set

# USB port drivers

CONFIG_USB_SERIAL=m

CONFIG_USB_SERIAL_GENERIC=y

# CONFIG_USB_SERIAL_SIMPLE is not set

# CONFIG_USB_SERIAL_AIRCABLE is not set

# CONFIG_USB_SERIAL_ARK3116 is not set

# CONFIG_USB_SERIAL_BELKIN is not set

# CONFIG_USB_SERIAL_CH341 is not set

# CONFIG_USB_SERIAL_WHITEHEAT is not set

# CONFIG_USB_SERIAL_DIGI_ACCELEPORT is not set

# CONFIG_USB_SERIAL_CP210X is not set

# CONFIG_USB_SERIAL_CYPRESS_M8 is not set

# CONFIG_USB_SERIAL_EMPEG is not set

CONFIG_USB_SERIAL_FTDI_SIO=m

# CONFIG_USB_SERIAL_VISOR is not set

# CONFIG_USB_SERIAL_IPAQ is not set

# CONFIG_USB_SERIAL_IR is not set

# CONFIG_USB_SERIAL_EDGEPORT is not set

# CONFIG_USB_SERIAL_EDGEPORT_TI is not set

# CONFIG_USB_SERIAL_F81232 is not set

# CONFIG_USB_SERIAL_GARMIN is not set

# CONFIG_USB_SERIAL_IPW is not set

# CONFIG_USB_SERIAL_IUU is not set

# CONFIG_USB_SERIAL_KEYSPAN_PDA is not set

# CONFIG_USB_SERIAL_KEYSPAN is not set

# CONFIG_USB_SERIAL_KLSI is not set

# CONFIG_USB_SERIAL_KOBIL_SCT is not set

# CONFIG_USB_SERIAL_MCT_U232 is not set

# CONFIG_USB_SERIAL_METRO is not set

# CONFIG_USB_SERIAL_MOS7720 is not set

# CONFIG_USB_SERIAL_MOS7840 is not set

# CONFIG_USB_SERIAL_MXUPORT is not set

# CONFIG_USB_SERIAL_NAVMAN is not set

# CONFIG_USB_SERIAL_PL2303 is not set

# CONFIG_USB_SERIAL_OTI6858 is not set

# CONFIG_USB_SERIAL_QCAUX is not set

# CONFIG_USB_SERIAL_QUALCOMM is not set

# CONFIG_USB_SERIAL_SPCP8X5 is not set

# CONFIG_USB_SERIAL_SAFE is not set

# CONFIG_USB_SERIAL_SIERRAWIRELESS is not set

# CONFIG_USB_SERIAL_SYMBOL is not set

# CONFIG_USB_SERIAL_TI is not set

# CONFIG_USB_SERIAL_CYBERJACK is not set

# CONFIG_USB_SERIAL_XIRCOM is not set

CONFIG_USB_SERIAL_WWAN=m

CONFIG_USB_SERIAL_OPTION=m

# CONFIG_USB_SERIAL_OMNINET is not set

# CONFIG_USB_SERIAL_OPTICON is not set

# CONFIG_USB_SERIAL_XSENS_MT is not set

# CONFIG_USB_SERIAL_WISHBONE is not set

# CONFIG_USB_SERIAL_ZTE is not set

# CONFIG_USB_SERIAL_SSU100 is not set

# CONFIG_USB_SERIAL_QT2 is not set

# CONFIG_USB_SERIAL_DEBUG is not set

# USB Miscellaneous drivers

# CONFIG_USB_EMI62 is not set

# CONFIG_USB_EMI26 is not set

# CONFIG_USB_ADUTUX is not set

# CONFIG_USB_SEVSEG is not set

# CONFIG_USB_RIO500 is not set

# CONFIG_USB_LEGOTOWER is not set

# CONFIG_USB_LCD is not set

# CONFIG_USB_LED is not set

# CONFIG_USB_CYPRESS_CY7C63 is not set

# CONFIG_USB_CYTHERM is not set

# CONFIG_USB_IDMOUSE is not set

# CONFIG_USB_FTDI_ELAN is not set

# CONFIG_USB_APPLEDISPLAY is not set

# CONFIG_USB_SISUSBVGA is not set

# CONFIG_USB_LD is not set

# CONFIG_USB_TRANCEVIBRATOR is not set

# CONFIG_USB_IOWARRIOR is not set

# CONFIG_USB_TEST is not set

CONFIG_USB_EHSET_TEST_FIXTURE=y

# CONFIG_USB_ISIGHTFW is not set

# CONFIG_USB_YUREX is not set

# CONFIG_USB_EZUSB_FX2 is not set

# CONFIG_USB_HSIC_USB3503 is not set

# USB Physical Layer drivers

CONFIG_USB_PHY=y

CONFIG_NOP_USB_XCEIV=y

# CONFIG_AM335X_PHY_USB is not set

# CONFIG_SAMSUNG_USB2PHY is not set

# CONFIG_SAMSUNG_USB3PHY is not set

# CONFIG_USB_GPIO_VBUS is not set

# CONFIG_USB_ISP1301 is not set

CONFIG_USB_MXS_PHY=m

# CONFIG_USB_RCAR_PHY is not set

# CONFIG_USB_ULPI is not set

CONFIG_USB_GADGET=m

CONFIG_USB_GADGET_DEBUG=y

CONFIG_USB_GADGET_VERBOSE=y

CONFIG_USB_GADGET_DEBUG_FILES=y

CONFIG_USB_GADGET_DEBUG_FS=y

CONFIG_USB_GADGET_VBUS_DRAW=2

CONFIG_USB_GADGET_STORAGE_NUM_BUFFERS=2

# USB Peripheral Controller

CONFIG_USB_FSL_USB2=m

# CONFIG_USB_FUSB300 is not set

# CONFIG_USB_FOTG210_UDC is not set

# CONFIG_USB_GR_UDC is not set

# CONFIG_USB_R8A66597 is not set

# CONFIG_USB_PXA27X is not set

# CONFIG_USB_S3C_HSOTG is not set

# CONFIG_USB_MV_UDC is not set

# CONFIG_USB_MV_U3D is not set

# CONFIG_USB_M66592 is not set

# CONFIG_USB_NET2272 is not set

# CONFIG_USB_DUMMY_HCD is not set

CONFIG_USB_LIBCOMPOSITE=m

CONFIG_USB_F_ACM=m

CONFIG_USB_F_SS_LB=m

CONFIG_USB_U_SERIAL=m

CONFIG_USB_U_ETHER=m

CONFIG_USB_F_SERIAL=m

CONFIG_USB_F_OBEX=m

CONFIG_USB_F_NCM=m

CONFIG_USB_F_ECM=m

CONFIG_USB_F_EEM=m

CONFIG_USB_F_SUBSET=m

CONFIG_USB_F_RNDIS=m

CONFIG_USB_F_MASS_STORAGE=m

CONFIG_USB_F_FS=m

CONFIG_USB_CONFIGFS=m

CONFIG_USB_CONFIGFS_SERIAL=y

CONFIG_USB_CONFIGFS_ACM=y

CONFIG_USB_CONFIGFS_OBEX=y

CONFIG_USB_CONFIGFS_NCM=y

CONFIG_USB_CONFIGFS_ECM=y

CONFIG_USB_CONFIGFS_ECM_SUBSET=y

CONFIG_USB_CONFIGFS_RNDIS=y

CONFIG_USB_CONFIGFS_EEM=y

CONFIG_USB_CONFIGFS_MASS_STORAGE=y

CONFIG_USB_CONFIGFS_F_LB_SS=y

CONFIG_USB_CONFIGFS_F_FS=y

CONFIG_USB_ZERO=m

CONFIG_USB_ZERO_HNPTEST=y

# CONFIG_USB_AUDIO is not set

# CONFIG_USB_ETH is not set

# CONFIG_USB_G_NCM is not set

# CONFIG_USB_GADGETFS is not set

CONFIG_USB_FUNCTIONFS=m

# CONFIG_USB_FUNCTIONFS_ETH is not set

# CONFIG_USB_FUNCTIONFS_RNDIS is not set

CONFIG_USB_FUNCTIONFS_GENERIC=y

CONFIG_USB_MASS_STORAGE=m

CONFIG_USB_G_SERIAL=m

# CONFIG_USB_MIDI_GADGET is not set

# CONFIG_USB_G_PRINTER is not set

# CONFIG_USB_CDC_COMPOSITE is not set

# CONFIG_USB_G_ACM_MS is not set

# CONFIG_USB_G_MULTI is not set

# CONFIG_USB_G_HID is not set

# CONFIG_USB_G_DBGP is not set

# CONFIG_USB_G_WEBCAM is not set

# CONFIG_USBIP_CORE is not set

# CONFIG_PRISM2_USB is not set

# CONFIG_LINE6_USB is not set

# CONFIG_USB_SERIAL_QUATECH2 is not set

# CONFIG_USB_ENESTORAGE is not set

# CONFIG_USB_MSI3101 is not set

# CONFIG_USB_SN9C102 is not set

# CONFIG_USB_WPAN_HCD is not set

0 Kudos