USB OTG device mode not working in imx6ul Target Board

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

USB OTG device mode not working in imx6ul Target Board

4,228件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
2 返答(返信)

3,047件の閲覧回数
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 件の賞賛
返信

3,044件の閲覧回数
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 件の賞賛
返信