Armbian下编译wifi无线驱动

2022-01-25  本文已影响0人  Armlinux

转自armbian官网 How to build a wireless driver?

Install and recreate kernel headers scripts (optional)

armbian-config -> install kernel headers
exit
# 注:也可通过apt install linux-headers 安装(可能需要search对应的版本,如果没有还需要apt upgrade)
cd /usr/src/linux-headers-$(uname -r)
make scripts

Go back to root directory and fetch sources (working example, use ARCH=arm64 on 64bit system)

cd
git clone https://github.com/pvaret/rtl8192cu-fixes.git
cd rtl8192cu-fixes
make ARCH=arm

Load driver for test

insmod 8192cu.ko

Check dmesg and the last entry will be:

usbcore: registered new interface driver rtl8192cu

Plug the USB wireless adaptor and issue a command:

iwconfig wlan0

You should see this:

wlan0   unassociated  Nickname:"<WIFI@REALTEK>"
        Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
        Sensitivity:0/0
        Retry:off   RTS thr:off   Fragment thr:off
        Encryption key:off
        Power Management:off
        Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
        Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
        Tx excessive retries:0  Invalid misc:0   Missed beacon:0
上一篇下一篇

猜你喜欢

热点阅读