在 Raspberry Pi 2 上使用TOTOLINK N150UA此型號之USB網卡,發生網卡無法驅動,以下為解決之步驟。
使用 lsusb 有裝置訊息,但無法使用
pi@rjcpi ~ $ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp. Bus 001 Device 006: ID 1a40:0101 Terminus Technology Inc. 4-Port HUB Bus 001 Device 007: ID 0461:4de2 Primax Electronics, Ltd Bus 001 Device 008: ID 0461:0010 Primax Electronics, Ltd HP Keyboard
從上述結果得知網卡ID為以下所示
Bus 001 Device 005: ID 148f:7601 Ralink Technology, Corp.
使用dmesg發現驅動錯誤
pi@rjcpi ~ $ dmesg | grep mt7601
[ 4.805772] mt7601u 1-1.5:1.0: ASIC revision: 76010001 MAC revision: 76010500 [ 4.821366] mt7601u 1-1.5:1.0: Direct firmware load for mt7601u.bin failed with error -2 [ 4.836151] mt7601u: probe of 1-1.5:1.0 failed with error -2 [ 4.848095] usbcore: registered new interface driver mt7601u
上述中發現缺少 mt7601u.bin 此檔案
因此,下載 mt7601u.bin 至 /lib/firmware/ 此目錄下
下載指令為
sudo wget https://github.com/porjo/mt7601/raw/master/src/mcu/bin/MT7601.bin -O /lib/firmware/mt7601u.bin
重新啟動後,即可使用
參考資料:
https://www.raspberrypi.org/forums/viewtopic.php?t=119095&p=808311