NanoPi M1 Plus Image using modern Kernel that breaks ethernet #6974
Description
> I now added the execute flag to 99-dietpi-uboot (via `chmod +x`) and did an `apt reinstall linux-image-edge-sunxi linux-dtb-edge-sunxi linux-u-boot-nanopim1plus-edge`. Now we have, what we expected:
root@DietPi:/boot# ls -l total 29920 -rw-r--r-- 1 root root 4325751 Sep 26 21:35 System.map-5.14.8-sunxi -rw-r--r-- 1 root root 253 Oct 2 13:42 armbianEnv.txt -rw-r--r-- 1 root root 307322 Oct 5 15:26 boot.bmp -rw-r--r-- 1 root root 3895 Jan 5 2021 boot.cmd -rw-rw-r-- 1 root root 3967 Jan 5 2021 boot.scr -rw-r--r-- 1 root root 198159 Sep 26 21:35 config-5.14.8-sunxi drwxr-xr-x 4 root root 4096 Oct 5 19:25 dietpi -rw-rw-r-- 1 root root 314088 Sep 29 22:24 dietpi-CHANGELOG.txt -rw-rw-r-- 1 root root 18092 Sep 29 22:24 dietpi-LICENSE.txt -rw-rw-r-- 1 root root 14711 Sep 29 22:24 dietpi-README.md -rw------- 1 root root 2955 Oct 5 15:28 dietpi-wifi.txt -rw-rw-r-- 1 root root 15149 Oct 5 19:25 dietpi.txt lrwxrwxrwx 1 root root 16 Oct 6 07:46 dtb -> dtb-5.14.8-sunxi drwxr-xr-x 3 root root 12288 Oct 6 07:45 dtb-5.14.8-sunxi -rw-r--r-- 1 root root 8572128 Oct 6 07:46 initrd.img-5.14.8-sunxi drwxrwxr-x 2 root root 4096 Jan 21 2021 overlay-user lrwxrwxrwx 1 root root 20 Oct 6 07:46 uInitrd -> uInitrd-5.14.8-sunxi -rw-r--r-- 1 root root 8572192 Oct 6 07:46 uInitrd-5.14.8-sunxi -rwxr-xr-x 1 root root 8244488 Sep 26 21:35 vmlinuz-5.14.8-sunxi lrwxrwxrwx 1 root root 20 Oct 6 07:46 zImage -> vmlinuz-5.14.8-sunxi root@DietPi:/boot#
Further step
Testing this with a reboot to the edge kernel 5.14.8 and prove the original LAN/WLAN issue. Tataa: The problem is back again, only LAN or WLAN can be activated, but not both in parallel:
The legacy kernel 5.4.88 shows the working condition:
Final testing
With these steps (
apt remove ...
,apt install ...
, check for the/boot
directory contents it gives:
- edge kernel (5.14.8) does not work
- current kernel (5.10.60) does not work
- legacy kernel (5.4.88) works
Other kernels are not available:
root@DietPi:/boot# apt-cache search linux-image | grep sunxi linux-image-current-sunxi - Linux kernel, version 5.10.60-sunxi linux-image-edge-sunxi - Linux kernel, armbian version 5.14.8-sunxi edge linux-image-legacy-sunxi - Linux kernel, version 5.4.88-sunxi root@DietPi:/boot#
Result
-->> I will generate images for Buster and Bullseye based on the legacy kernel.
This is an old issue and since it was closed, I used it to reopen a new issue. Hopefully this was the correct thing to do. I have a couple of these devices. I installed a new 9.2 dietpi image on the device which uses a later kernel and I am having the ethernet / wifi issue again. Is it possible to lock the M1Plus builds to kernel 5.4.88 as it is the only one that works for this device? Or if not, how do I roll back to t5.4.88 Kernel and prevent future dietpi updates from updating the Kernel ?
Originally posted by @InnovoMagicCube in #4712 (comment)