OrangePI 5B wifi crashes on boot

I have good news: the fix indeed works! In summary, here are the steps we followed to fix the OrangePi 5B wifi issues in case that is useful to create a new image:

Problem 1: the WiFi module is not recognized in dietpi-config

sudo cp /boot/dtb/rockchip/overlay/orangepi-5-ap6275p.dtbo /boot/dtb/rockchip/overlay/rk3588-wifi-ap6275p.dtbo
put overlays=wifi-ap6275p in /boot/dietpiEnv.txt
reboot
the adapter can now be seen in dietpi-config! You can use it to connect to your wifi.

Problem 2: WiFi crashes at startup

Edit /etc/systemd/system/ifup@.service.d/dietpi.conf and put:

[Service]
Type=oneshot
ExecStart=
ExecStart=/bin/sh -ec 'ip link set %I up; ifup --allow=hotplug %I'

The important part being that we added ip link set %I up before the call to ifup. Reboot, and the WiFi should work! This was tested on two different OrangePi 5B.

1 Like