Portable Wifi USB wireless network card driver (model 8192fu) compilation tutorial

Preparation Phase:

Hardware:

001c portable wifi

The usb expansion dock that Xianyu bought for 20 oceans.

The usb wireless network card model of 20 Dayang on Taobao is 8192fu, (for the model, plug it into the computer to see it yourself)

Software:

Vmware workstation16 (official website available, free)

The virtual machine of the Ubuntu20.04 system (the mirror station can be downloaded)

Any ssh software I use here is MobaXterm (available on the official website, free of charge)

Kernel source for your debian system. (Just pull the source code of handsomehack, if you have it, you can skip it)

Actual operation:

1. Check the model of your own network card, plug it into the computer, and look inside the network adapter.

2. Check the driver of the corresponding model on github, here is 8192fu. https://github.com/BrightX/rtl8192fu

3. In ubuntu, git clone https://github.com/BrightX/rtl8192fu.git to download the driver source code.

4. Download the big brother’s kernel source code in Ubuntu, git clone https://github.com/OpenStick/linux.git --depth=1 (you can skip it already) and remember this path after downloading.

5. After downloading, cd to the rtl8192fu directory to open the Makefile with vim, and search for I386_PC on the command line (please Baidu for how to search for vim..)

Change it to the following

Here I want to explain: the place to be modified is the place in the red box above, and then KSRC is the kernel source code path, and the kernel source code here is the path of the kernel source code that you can get after git clone. The latter two paths are also the same.

6. After the change is completed, make starts compiling.

7. Finally, the 8192fu.ko file will be obtained.

8. Copy the 8192fu.ko file to the stick.

9. Insmod 8192fu.ko on the stick to load the driver.

10. After loading successfully, enter ifconfig in the command line, and you will see an extra network card.

Seeing the last network card means success.

11. Enter nmtui on the command line.

You can see that usb wifi has appeared.

It should be a similar operation to open other drivers. It is nothing more than changing the makefile, changing the kernel source code directory and compiler, and then compiling.

Guess you like

Origin blog.csdn.net/m0_46449041/article/details/127001779