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.
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.
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
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------