Port and Configure Wi-Fi Driver

Port Wi-Fi Driver

Place the AIC8800 driver source into the kernel tree and register it with the build system.
  1. Place the driver package under /linux/driver/net/wireless directory.

  2. Add the following content to /linux/driver/net/wireless/Makefile:
    obj-$(CONFIG_AIC_WLAN_SUPPORT) += aic8800/
  3. Add the following content to /linux/driver/net/wireless/Kconfig:
    source "drivers/net/wireless/aic8800/Kconfig"
  4. Copy the AIC8800 firmware package to the target root filesystem: /lib/firmware.

Enable Wi-Fi Driver in Kernel Configuration

Enable the AIC8800 Wi-Fi driver and firmware loading support in the kernel configuration。
  1. Under the root directory of VisionFive 2, type the following command to enter the kernel menu configuration GUI.
    make linux-menuconfig
  2. Enter the Device Drivers > Network device support > Wireless LAN menu, and select the AIC wireless Support option.
    Figure 1. AIC wireless Support
  3. Compile AIC8800 wlan Support and AIC8800 Load Firmware Support into a module.
    Figure 2. AIC8800 Load Firmware Support
  4. Save your change before you exit the kernel configuration dialog.

Bring up Wi-Fi Interface

After building and booting the kernel with the AIC8800 driver, you can run the following to bring up the Wi-Fi interface:
ifconfig wlan0 up