usb gadget 设备

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

usb gadget 设备

1,428 次查看
linhaiboyy
Contributor II

(1)我用的mx6ul,内核是3.14.38。将编译生成的g_serial.ko文件,执行 insmod g_serial.ko 命令,报错如下:

root@freescale /$ insmod g_serial.ko
g_serial: Unknown symbol usb_remove_function (err 0)
g_serial: Unknown symbol usb_get_function_instance (err 0)
g_serial: Unknown symbol usb_add_config_only (err 0)
g_serial: Unknown symbol usb_string_ids_tab (err 0)
g_serial: Unknown symbol usb_get_function (err 0)
g_serial: Unknown symbol usb_composite_unregister (err 0)
g_serial: Unknown symbol usb_put_function (err 0)
g_serial: Unknown symbol usb_add_function (err 0)
g_serial: Unknown symbol usb_composite_probe (err 0)
g_serial: Unknown symbol usb_composite_overwrite_options (err 0)
g_serial: Unknown symbol usb_otg_descriptor_alloc (err 0)
g_serial: Unknown symbol usb_put_function_instance (err 0)
g_serial: Unknown symbol usb_otg_descriptor_init (err 0)
g_serial: Unknown symbol usb_ep_autoconfig_reset (err 0)
insmod: can't insert 'g_serial.ko': unknown symbol in module, or unknown parameter

 

(2)我在内核的根目录下执行make命令,可以生成xxx.ko文件,但是执行make zImage -j4命令编译生成不了xxx.ko文件,不能将驱动文件打包

0 项奖励
回复
1 回复

1,000 次查看
igorpadykov
NXP Employee
NXP Employee

Hi 海波 林

please try with modprobe as in unit test examples

imx-test (../test/mxc_usb_test folder)
www.nxp.com/lgfiles/NMG/MAD/YOCTO/imx-test-5.7.tar.gz

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

0 项奖励
回复