g_mass_storage: Unknown symbol fsg_common_set_sysfs (err 0)

arm开发板usb作为从机时,挂载驱动
insmod /home/lib/g_mass_storage.ko file=/dev/mmcblk0p1 stall=0 removable=1
的时候报错
insmod /home/lib/g_mass_storage.ko file=/dev/mmcblk0p1 stall=0 removable=1
g_mass_storage: Unknown symbol fsg_common_set_sysfs (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_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: can’t insert ‘/home/lib/g_mass_storage.ko’: unknown symbol in module or invalid parameter

安装驱动步骤要正确
insmod configfs.ko
insmod libcomposite.ko
insmod usb_f_mass_storage.ko
insmod g_mass_storage.ko file=/dev/mmcblk0p1 stall=0 removable=1

我这里是第三个驱动官方文档没说,所以漏加载了,查看这里了解

你可能感兴趣的:(新塘NUC980,usb,linux)