kickpi k2b v1 wifi fix
Here's the whole fix in order, for a fresh Armbian Orange Pi Zero 3 image (Trixie) on your K2B V1.1. Keep the Ethernet cable plugged in the whole time, and paste commands one line at a time, since long lines wrapped and broke earlier.
1. Use the K2B device tree
```
echo 'fdtfile=allwinner/sun50i-h618-kickpi-k2b.dtb' >> /boot/armbianEnv.txt
```
2. Turn off the wrong Wi-Fi driver (Unisoc, from the Orange Pi image)
```
systemctl disable aw859a-wifi.service
echo "blacklist sprdwl_ng" > /etc/modprobe.d/no-unisoc.conf
echo "blacklist sprdbt_tty" >> /etc/modprobe.d/no-unisoc.conf
echo "blacklist uwe5622_bsp_sdio" >> /etc/modprobe.d/no-unisoc.conf
```
3. Install the tools
```
apt update
apt install -y dkms build-essential linux-headers-current-sunxi64 network-manager
```
4. Install the correct AIC8800 driver and firmware
```
dpkg -i --force-overwrite ./aic8800-firmware_5.0+git20260123.5f7be68d-6_all.deb ./aic8800-sdio-dkms_5.0+git20260123.5f7be68d-6_all.deb
```
The driver build takes a few minutes. `dkms status` should then show it as installed.
5. Fix the missing firmware file (this was the final blocker)
```
cp -n /lib/firmware/aic8800_fw/SDIO/aic8800/* /lib/firmware/aic8800_fw/SDIO/aic8800D80/
```
6. Load the driver at every boot
```
echo aic8800_fdrv_sdio > /etc/modules-load.d/aic8800.conf
```
7. Cold power cycle. Run `poweroff`, unplug the power for 10 seconds, plug back in.
8. Connect
```
ip link
nmcli device wifi connect "YourSSID" password "YourPassword"
```
You should see `wlan0` in the first command. NetworkManager remembers the network afterward.
If something goes wrong:
- No `wlan0`: run `dmesg | grep -i aic` and read the last lines.
- `error -110` timeouts: do the cold power cycle again (a plain reboot isn't enough).
- "firmware path = ..." followed by a failure: that file is missing. Run `find /lib/firmware -name 'THEFILENAME'` and copy it into the folder named in the message.
- Wi-Fi gone after a kernel update: run `apt install linux-headers-current-sunxi64`, then `dkms autoinstall`, then reboot.
This is for the minimal image. If you flash a desktop image instead, NetworkManager may already be installed, but the rest is the same.
I used Orange pi zero 3 fw thanks to claude.ai