samsung GT 7510 host 失敗

嘗試在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)
請問是什麼原因?

我偷懶menuconfig後沒有編image,直接編modules的

azzurris 發表於 2012-01-06 10:47 
內核搶佔沒開
有人說是內核搶佔沒打開,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的給點啓發吧,謝謝了

發佈了8 篇原創文章 · 獲贊 4 · 訪問量 8萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章