onboard wifi not working on dietpi first boot (pi 3)

Hi,

I cannot seem to get a pi 3 to connect to my access point on first boot on DietPi. I add my details in dietpi.txt on the image before dd, adding SSID and password, and setting AUTO_SETUP_NET_WIFI_ENABLED=1

During the boot process I can see that the ifup command fails to bring up wlan0. Naturally the NTPD update and the internet connection tests fail after that.

I’m on DietPi 6.2 if it matters but I don’t think this issue is version specific. I remember having this problem a while back but ended up just using ethernet instead. I need the onboard wifi to work this time though.

Is there anyone that knows a way to fix this issue or can confirm DietPi does not support onboard wifi upon first boot?

Hi,

Does the WiFi function once dietpi-config is launched and WiFi details re-entered? If not, may be that your router is setup for WEP. We only support WPA currently.

My router was set to WPA2 so I changed it to WPA but still no dice. During the boot process I can see it says:

wpa_supplicant daemon failed to start
/run-parts/if-pre-up.d/wpasupplicant fails with error code 1

Can’t test from dietpi-config as I have no external keyboard, was planning on SSH’ing in from my laptop but the connection issues prevent that…



EDIT: It successfully connects on the 2nd boot. But there’s something that causes it to fail on first boot (perhaps it needs some delay before trying to bring up the device?) Anyone else had this issue?

EDIT2: I totally missed the CONFIG_BOOT_WAIT_FOR_NETWORK= setting in dietpi.txt, it is likely that it will fix this issue.

WPA and WPA2 are both supported. Apologies I didn’t make that clear :slight_smile:

EDIT2: I totally missed the CONFIG_BOOT_WAIT_FOR_NETWORK= setting in dietpi.txt, it is likely that it will fix this issue.

Should resolve, let us know how it goes.