USB OTG device mode not working in imx6ul Target Board

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

USB OTG device mode not working in imx6ul Target Board

2,619 Views
sourabhdas
Contributor III

Hi we have our imx6ul Target board. USB OTG host mode is working fine.

But to check the USB OTG device mode, we are inserting the modules: configfs.ko, libcomposite.ko and g_mass_storage.ko.

While doing "insmod g_mass_storage.ko", it is giving the following errors:

g_mass_storage: Unknown symbol fsg_common_set_ops (err 0)
g_mass_storage: Unknown symbol fsg_common_set_sysfs (err 0)
g_mass_storage: Unknown symbol fsg_common_run_thread (err 0)
g_mass_storage: Unknown symbol fsg_common_free_luns (err 0)
g_mass_storage: Unknown symbol fsg_common_create_luns (err 0)
g_mass_storage: Unknown symbol fsg_common_set_cdev (err 0)
g_mass_storage: Unknown symbol fsg_common_free_buffers (err 0)
g_mass_storage: Unknown symbol fsg_common_set_nluns (err 0)
g_mass_storage: Unknown symbol fsg_common_remove_luns (err 0)
g_mass_storage: Unknown symbol fsg_common_set_inquiry_string (err 0)
g_mass_storage: Unknown symbol fsg_common_set_num_buffers (err 0)
g_mass_storage: Unknown symbol fsg_config_from_params (err 0)
insmod: ERROR: could not insert module drivers/usb/gadget/legacy/g_mass_storage.ko: Unknown symbol in module

Please suggest something on this.

Labels (1)
0 Kudos
2 Replies

1,438 Views
sourabhdas
Contributor III

Hi Igor,

This error has been solved. Actually one dependent module "usb_f_mass_storage.ko" insertion was missing.

cd /lib/modules/4.1.15-1.2.0+g77f6154/kernel
insmod fs/configfs/configfs.ko
insmod drivers/usb/gadget/libcomposite.ko
insmod drivers/usb/gadget/function/usb_f_mass_storage.ko
insmod drivers/usb/gadget/legacy/g_mass_storage.ko file=/dev/mmcblk0p2

Now this is working fine.

0 Kudos

1,438 Views
igorpadykov
NXP Employee
NXP Employee

Hi Sourabh

for usb testing one can look at sect.39.2.6 Changing the Controller Operation Mode

attached Linux Manual and use unit test (imx-test package, folder /mxc_usb_test)

www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.4.tar.gz

with Demo Image

http://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0_iMX6UL&appType=license&location=null&Parent... 

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

0 Kudos