尝试在android 平板里加载usbserial驱动
/data/data/berserker.android.apps.sshdroid/home # modprobe usbserial
modprobe: 'usbserial.ko': unknown symbol in module or invalid parameter
查看dmesg:
[ 3805.921940] usbserial: Unknown symbol add_preempt_count (err 0)
[ 3805.924543] usbserial: Unknown symbol sub_preempt_count (err 0)
请问是什么原因?
#if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER)
这2个没关闭
接着又碰到问题,
我自己编的usbserial mod最终没能安装上,根据提示是 内核已经编进去了,但是它居然没把generic_driver编译进内核 ,太狠了。
[ 7.000666] usbcore: registered new interface driver libusual
[ 7.000790] usbcore: registered new interface driver usbserial
[ 7.000799] usbserial: USB Serial Driver core
[ 7.000899] tegra_usb_phy_open() called instance :0
这样我是不知道该如何才能使用usb线实现 usbserial功能了。。。vid,pid不知道如何传入了。。。?
尝试编译了pl2303,驱动倒是modprobe成功了,可是接上otg线+usb 转串口的pl2303,提示失败。。。还不清楚原因,我贴出一些log
[ 362.658406] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 362.658417] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 362.658427] usb usb1: Product: Tegra EHCI Host Controller
[ 362.658435] usb usb1: Manufacturer: Linux 2.6.36.3 ehci_hcd
[ 362.658442] usb usb1: SerialNumber: tegra-ehci.0
[ 362.660270] hub 1-0:1.0: USB hub found
[ 362.660297] hub 1-0:1.0: 1 port detected
[ 362.660961] tegra-otg tegra-otg: tegra_start_host-
[ 362.660972] host_notify: ndev name=usb_otg: from state=0 -> to state=1
[ 362.878383] usb 1-1: new full speed USB device using tegra-ehci and address 2
[ 363.311812] usb 1-1: device v067b p2303 is not supported
[ 363.338505] host_notify: ndev name=tegra-ehci.0: from state=0 -> to state=5
[ 363.340906] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 363.498483] usb 1-1: new full speed USB device using tegra-ehci and address 3
[ 363.931780] usb 1-1: device v067b p2303 is not supported
[ 363.958407] host_notify: ndev name=tegra-ehci.0: from state=5 -> to state=5
[ 363.958490] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 364.118983] usb 1-1: new full speed USB device using tegra-ehci and address 4
[ 364.348918] usb 1-1: device v067b p2303 is not supported
[ 364.378330] host_notify: ndev name=tegra-ehci.0: from state=5 -> to state=5
[ 364.378374] hub 1-0:1.0: unable to enumerate USB device on port 1
idVendor=1d6b, idProduct=0002 加入pl2303 driver, 还是一样不支持。 加入usb serial driver是 无法验证的,因为我没有厂家内核源码,而他们又把serial 编进了内核。
另外 idVendor=1d6b, idProduct=0002 这个只是OTG 线的Pid/Vid
/data/data/berserker.android.apps.sshdroid/home # modprobe usbserial
modprobe: 'usbserial.ko': unknown symbol in module or invalid parameter
查看dmesg:
[ 3805.921940] usbserial: Unknown symbol add_preempt_count (err 0)
[ 3805.924543] usbserial: Unknown symbol sub_preempt_count (err 0)
请问是什么原因?
我偷懒menuconfig后没有编image,直接编modules的
有人说是内核抢占没打开,config中 抢占是开了,后来看代码发现是因为
#if defined(CONFIG_DEBUG_PREEMPT) || defined(CONFIG_PREEMPT_TRACER)
这2个没关闭
接着又碰到问题,
我自己编的usbserial mod最终没能安装上,根据提示是 内核已经编进去了,但是它居然没把generic_driver编译进内核 ,太狠了。
[ 7.000666] usbcore: registered new interface driver libusual
[ 7.000790] usbcore: registered new interface driver usbserial
[ 7.000799] usbserial: USB Serial Driver core
[ 7.000899] tegra_usb_phy_open() called instance :0
这样我是不知道该如何才能使用usb线实现 usbserial功能了。。。vid,pid不知道如何传入了。。。?
尝试编译了pl2303,驱动倒是modprobe成功了,可是接上otg线+usb 转串口的pl2303,提示失败。。。还不清楚原因,我贴出一些log
[ 362.658406] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 362.658417] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 362.658427] usb usb1: Product: Tegra EHCI Host Controller
[ 362.658435] usb usb1: Manufacturer: Linux 2.6.36.3 ehci_hcd
[ 362.658442] usb usb1: SerialNumber: tegra-ehci.0
[ 362.660270] hub 1-0:1.0: USB hub found
[ 362.660297] hub 1-0:1.0: 1 port detected
[ 362.660961] tegra-otg tegra-otg: tegra_start_host-
[ 362.660972] host_notify: ndev name=usb_otg: from state=0 -> to state=1
[ 362.878383] usb 1-1: new full speed USB device using tegra-ehci and address 2
[ 363.311812] usb 1-1: device v067b p2303 is not supported
[ 363.338505] host_notify: ndev name=tegra-ehci.0: from state=0 -> to state=5
[ 363.340906] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 363.498483] usb 1-1: new full speed USB device using tegra-ehci and address 3
[ 363.931780] usb 1-1: device v067b p2303 is not supported
[ 363.958407] host_notify: ndev name=tegra-ehci.0: from state=5 -> to state=5
[ 363.958490] hub 1-0:1.0: unable to enumerate USB device on port 1
[ 364.118983] usb 1-1: new full speed USB device using tegra-ehci and address 4
[ 364.348918] usb 1-1: device v067b p2303 is not supported
[ 364.378330] host_notify: ndev name=tegra-ehci.0: from state=5 -> to state=5
[ 364.378374] hub 1-0:1.0: unable to enumerate USB device on port 1
idVendor=1d6b, idProduct=0002 加入pl2303 driver, 还是一样不支持。 加入usb serial driver是 无法验证的,因为我没有厂家内核源码,而他们又把serial 编进了内核。
另外 idVendor=1d6b, idProduct=0002 这个只是OTG 线的Pid/Vid
哪位研究过usb的给点启发吧,谢谢了