CPU temp : 59 °C / 138 °F : Running warm, but safe
LAN IP : 10.0.0.235 (wlan0)
Linux DietPi 6.6.44-current-sunxi64 #1 SMP Sat Aug 3 06:54:42 UTC 2024 aarch64 GNU/Linux
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=8
G_DIETPI_VERSION_RC=0
G_GITBRANCH=‘master’
G_GITOWNER=‘MichaIng’
arm64
5V 3A RaspberryPi power supply
SD card SanDisk
Steps to reproduce
Download current 9.7.1 from dietpi for OPiZ2W
Burn to SD card with Balena Etcher (Linux Debian 12)
Plug in keyboard and monitor
Plug in power supply
On first run attempt to set-up wifi from dietpi-config
Wifi not found (board does not have Ethernet)
Expected behaviour
Should find on-board wifi
Actual behaviour
on-board wifi not found
Extra details
Turn off
Plug in USB hub
Plug in generic wifi dongle from Uncle Jeff’s big bamboozle store
Plug in keyboard
Plug in power supply
On first boot wifi is found
Set-up wifi, scan, enter password. Board autoupdates to 9.8.0
Exit dietpi-config
Shutdown
Remove generic USB wifi adapter
Plug in power supply
Board reboots and on-board wifi is found and wifi works
Can logon from keyboard and can SSH into board over wifi.
Did you tried to enable Wifi before first boot using dietpi.txt? On some devices it can be enabled using dietpi-config. There should be no need to use a external USB adapter, usually.
After flashing to the SD-card, I amended three text files dietpi.txt, dietpiEnv.txt and dietpi-wifi.txt. One of the 3 contains the wifi address and password. Used ipconfig in windows cmd and I gave it a free static IP address too, which I pinged in windows cmd first.
Got it from a YouTube video. Something like; how to start wifi on a headless dietpi OS.
Only after these adjustments, I started the first installation.
I did not yet try to install/change Wifi through the Dietpi-launcher on or after first boot. It’s on my list.
I can help trouble shooting.
Have a spare SD card.
(I do vaguely remember using an Ethernet cable, but don’t remember why. Maybe before I figured out I needed to preset the txt files)
On the Zero 3 I remember we need to have the kernel module enabled on first boot, as it somehow does not load successfully otherwise and/or not if it was unloaded once during first boot. I guess for the Zero 2W it is the same. I’ll adjust our installer and create a test image to see whether this makes a difference.
If it helps, I reflashed the SD card and modified the following on the DIETPI_SETUP volume. The OPiZ2W booted fine, found the onboard wifi and auto updated without intervention. All seems well.
I also just checked that WiFi modules are enabled on first boot already. Problem hence really only is that this particular module cannot be re-enabled when it has been disabled in the same boot session. It always requires a reboot. If WiFi is not enabled via dietpi.txt, the module gets unloaded during early boot. We must prevent this for Orange Pi Zero 3 and 2W and do so only after first run setup finished, if WiFi is not used until then.