DietPi version | cat /DietPi/dietpi/.version
G_DIETPI_VERSION_CORE=6
G_DIETPI_VERSION_SUB=17
G_DIETPI_VERSION_RC=12
G_GITBRANCH=master
G_GITOWNER=Fourdee
Distro version | echo $G_DISTRO_NAME or cat /etc/debian_version
stretch 9.6
uname -aecho $G_HW_MODEL_DESCRIPTION or (EG: RPi3)dietpi-bugreport ID@aaro668
Thanks for your report.
Jep it's a known issue when running DietPi-PREP with WiFi connection (SSH) and NetworkManager was installed previously. For this reason currently Ethernet connection is required to have the install done reliable.
However to verify this is really your issue:
network-manager is installed on ARMbian image.network-manager package/etc/network/interfaces and /etc/wpa_supplicant/wpa_supplicant.conf.Fourdee also posted some more detailed instructions here: https://github.com/Fourdee/DietPi/issues/2210#issuecomment-435687637
The problem is that when purging network-manager, all WiFi related settings are removed and WiFi connection dropped. See related issue: https://github.com/Fourdee/DietPi/issues/2054
The issue is not with ssh being dropped....I was ssh through Ethernet, but after running prep script I couldn't set up and use Wi-Fi.....
Aaron Martin
Same here, I prepared image on Orange Pi Zero H2+ two days ago and wifi is "Not Found". I had run the PREP script with ethernet.
A bit more detail here.....
With the Armbian install the Wifi IS working fine, I believe it has Network Manager, as I can configure wireless network using nmtui command.
The SSH connection was not dropped during DietPi-PREP, as I was connected over ethernet/serial.
After DietPi-PREP is finished and first boot setup is done I cannot get WIFI set up and working.....
Maybe I need to do it manually some way?
Another thing that I noticed was that htop interface changes.....
This is how htop looks with fresh install of Armbian:

And this is how htop looks after I run DietPi-PREP:

Maybe this is built into the design of Dietpi to minimize processing?
@aaro668
The default htop does not support CPU temps and frequencies. This seems to be a custom version, e.g.:
I forwarded this request (was already done earlier) to the developer of the official htop. Of course the request did already exist 😉: https://github.com/hishamhm/htop/issues/163
Open request for CPU frequencies: https://github.com/hishamhm/htop/issues/129
htop?I would also love to have everything in one place, but the current 3rd party solutions are either outdated (base htop version), or work only on limited architectures and then temps/freqs will not be correct on all devices. Also often implementations are crappy or rely on heavy dependencies and additional services running in background.
So I would definitely stick with the official version, also since on DietPi cpu provides CPU temp/freq information already.
Perhaps ARMbian customizes their pre-installed htop for each device, since it goes hand in hand with kernel development 🤔.
@MichaIng
Thanks for the htop info, this is not a deal breaker for me, I just thought I would mention it here as I noticed it at the same time as I found the Wifi problem.
Have you checked in about the Wifi yet? Maybe I need to enable Wifi another way?
NB: There is already on open PR for CPU freq, but no progress for a while 😢: https://github.com/hishamhm/htop/pull/592
About WiFi:
dietpi-config?ip a / ip rls -Al /sys/class/net/ or cat /proc/net/devcat /etc/network/interfaces, if this is the expected network card.cat /etc/wpa_supplicant/wpa_supplicant.conf (of course do not paste this or remove SSID + key here 😉)And did you try to switch from DHCP to static IP or the other way round? Perhaps also DHCP fails somehow.
I tried to manually modprobe its module today:
sudo modprobe xradio_wlan
Then I read these things in the dmesg:
[ 12.736501] xradio_wlan mmc1:0001:1: Direct firmware load for xr819/sdd_xr819 .bin failed with error -2
[ 12.736514] xradio_wlan mmc1:0001:1: Falling back to user helper
[ 12.906360] Generic PHY 0.1:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=0.1:01, irq=POLL)
[ 12.909229] dwmac-sun8i 1c30000.ethernet eth0: No MAC Management Counters available
[ 12.909245] dwmac-sun8i 1c30000.ethernet eth0: PTP not supported by HW
[ 12.909705] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 13.370984] thermal thermal_zone0: failed to read out thermal zone (-110)
[ 14.410902] thermal thermal_zone0: failed to read out thermal zone (-110)
[ 14.972280] dwmac-sun8i 1c30000.ethernet eth0: Link is Up - 100Mbps/Full - flow control off
[ 14.972356] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 16.533948] random: crng init done
[ 16.533966] random: 7 urandom warning(s) missed due to ratelimiting
[ 74.731564] xradio_wlan mmc1:0001:1: bh thread exiting
Also these:
dietpi@DietPi:~$ cat /proc/net/dev
Inter- | Receive | Transmit
face | bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls
carrier compressed
eth0: 32022 268 0 0 0 0 0 0 78478 234 0 0 0 0 0 0
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
`
@MichaIng
I use dietpi-config, then "Network Options: Adapters"

Then I select "Change Wireless Network Settings"

Then I select OK

After I exit from dietpi-config now, this is the terminal history:

Maybe this can help you determine what I am doing wrong?
Here is output of ip a after I made above settings:

And here is out of ip r :

Here is output of ls -Al /sys/class/net/ and cat /proc/net/dev :

Here is output of cat /etc/network/interfaces :

And here is output from cat /etc/wpa_supplicant/wpa_supplicant.conf :

And from dmesg:

I also found this further up:

Here is output from ls /lib/firmware with fresh Armbian install:

And here is the output after running DietPi-PREP :

It looks like there were a lot added, but the xr819 is missing.....
So......I copied the xr819 directory from here: https://github.com/armbian/firmware
Into the local /lib/firmware/ directory, restarted the system, and now I have this:

So, copying the xr819 directory into /lib/firmware/ directory I am now able to connect to an SSID.
Is this a bug in DietPi-PREP?
@aaro668
Is this a bug in DietPi-PREP?
Custom firmware provided by the armbian-firmware package conflicts with default Debian packages, and, Debian packages lacks the custom firmware.
I'll fix PREP to detect ARMbian and prevent firmware removal/changes.
@Fourdee
Thanks, let me know when fix is ready to test, then I will go through and make sure it is working here.
@aaro668
Thanks 👍
Ok code done, available via dev branch, use below PREP:
wget https://raw.githubusercontent.com/Fourdee/DietPi/dev/PREP_SYSTEM_FOR_DIETPI.sh -O PREP_SYSTEM_FOR_DIETPI.sh
chmod +x PREP_SYSTEM_FOR_DIETPI.sh
./PREP_SYSTEM_FOR_DIETPI.sh
@Fourdee
Which of these 3 options should I select?
I usually use the top one, but your reference to dev branch makes me think I should maybe select the 3rd item?
@aaro668
Which of these 3 options should I select?
Master should be fine, updated PREP script is already loaded.
Firmware issues resolved in PREP dev and by selecting install branch dev only. Due to master branch pre-req firmware during wifi set.
Completed, passed local testing.