配置内核选项Make MenuConfig选择
Devces drivers-->
USB seupport-->
<M>USB Serial Converter support
--> <M> USB driver for GSM and CDMA modems
[*]USB Generic Serial Driver,保存退出。运行make modules,编译成功后可找到usbserial.ko及option.ko两个驱动,加载驱动usbserial.ko没问题,但是加载option,ko报错
insmod option.ko
[ 582.054456] option: Unknown symbol usb_wwan_write (err 0)
[ 582.059875] option: Unknown symbol usb_wwan_suspend (err 0)
[ 582.065500] option: Unknown symbol usb_wwan_close (err 0)
[ 582.070933] option: Unknown symbol usb_wwan_release (err 0)
[ 582.076529] option: Unknown symbol usb_wwan_tiocmget (err 0)
[ 582.082210] option: Unknown symbol usb_wwan_chars_in_buffer (err 0)
[ 582.088490] option: Unknown symbol usb_wwan_write_room (err 0)
[ 582.094373] option: Unknown symbol usb_wwan_disconnect (err 0)
[ 582.100231] option: Unknown symbol usb_wwan_startup (err 0)
[ 582.105813] option: Unknown symbol usb_wwan_set_termios (err 0)
[ 582.111790] option: Unknown symbol usb_wwan_resume (err 0)
[ 582.117298] option: Unknown symbol usb_wwan_dtr_rts (err 0)
[ 582.122900] option: Unknown symbol usb_wwan_open (err 0)
[ 582.128249] option: Unknown symbol usb_wwan_ioctl (err 0)
[ 582.133681] option: Unknown symbol usb_wwan_tiocmset (err 0)
insmod: init_module 'option.ko' failed (No such file or directory)
------解决方案--------------------
请问你解决了么,我也碰到了相同的问题。
------解决方案--------------------
你的是少了init.h头文件么 ?
------解决方案--------------------
为什么要编译成模块手动加载,直接编译进内核不行吗