ubuntu7 10使用usb轉串列埠問題

2021-04-21 05:20:53 字數 1838 閱讀 8863

所以就考慮移植下uboot到該開發板上,首先遇到的問題就是在ubuntu7.10發行版的linux上usb轉串列埠不太好用(用的是膝上型電腦,沒有串列埠),經歷如下:

將usb連線線和開發板連好,插入電腦,用dmesg檢視該裝置是否被檢測到:  

[   70.676000] usb 2-2: new full speed usb device using uhci_hcd and address 3

[   70.836000] usb 2-2: configuration #1 chosen from 1 choice

[   70.968000] usbcore: registered new inte***ce driver usbserial

[   70.968000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: usb serial support registered for generic

[   70.968000] usbcore: registered new inte***ce driver usbserial_generic

[   70.968000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: usb serial driver core

[   70.980000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: usb serial support registered for pl2303

[   70.980000] pl2303 2-2:1.0: pl2303 converter detected

[   70.980000] usb 2-2: pl2303 converter now attached to ttyusb0

[   70.980000] usbcore: registered new inte***ce driver pl2303

可以看出核心檢測到該裝置並且將pl2303的模組載入到ttyusb0上。

在minicom中設定串列埠裝置為ttyusb0,波特率為115200 ,無奇偶校驗,無流控制,並儲存

開發板上電,輸出了沒有幾行資訊就不再輸出,檢視核心日誌:dmesg|tail -10

[ 1498.524000] pl2303 2-2:1.0: device disconnected

[ 1498.636000] usb 2-2: new full speed usb device using uhci_hcd and address 8

[ 1498.796000] usb 2-2: configuration #1 chosen from 1 choice

[ 1498.800000] pl2303 2-2:1.0: pl2303 converter detected

[ 1498.800000] usb 2-2: pl2303 converter now attached to ttyusb0

[ 1589.244000] hub 2-0:1.0: port 2 disabled by hub (emi?), re-enabling...

[ 1589.244000] usb 2-2: usb disconnect, address 8

可以看出該裝置不斷的被禁止,然後斷開,這個應該就是串列埠不能真正輸出資料的原因所在了。

另外在fedora8中不存在該問題,而且在win下也能使用。

搜尋了一下資料,發現也沒有對該問題明確的解釋;不知道是不是7.10存在的bug還是不能完全支援我的usb轉串列埠裝置。

Ubuntu 7 10的更新源

ubuntu的更新開始覺的真是有點不敢恭維,可能是被 microsoft慣的吧,後來慢慢習慣了linux的操作方式,感覺在linux下才有點操作計算機的感覺,本想以後不再用windows了,但可能不實際吧,目前為止,我所有的開發平台都在windows 下,想要一下子改過來,乙個字,難呀,不過沒關係,...

Ubuntu 7 10 硬碟安裝方法

最近公升級ubuntu,為了免除刻盤的麻煩,在網上搜尋了下硬碟安裝的方法,發現7.10提供了wubi這個東西,使原本複雜的安裝變得極其容易。安裝步驟 3 執行wubi cdboot.exe,它會自動安裝,完後重啟計算機,就有了乙個ubuntu linux選項 4 選擇ubuntu linux進入安裝...

ubuntu7 10 下mplayer 的安裝

這應該不是個問題,但對於剛剛接觸linux的我來說,在這裡記錄下配置的過程,為了適應自己逐天下降的記憶力吧。首先宣告 這個方法只是對於我的計算機適應,別人的沒經過測試。首先呢 sudo apt get remove totem gstreamer sudo apt get install totem...