Creating a bug report/issue
I have searched the existing open and closed issues
Required Information
- DietPi version | v
10.2.3
- Distro version |
trixie
- Kernel version |
5.10.110
- Architecture |
arm64
- SBC model | Generic Device (aarch64)
- Power supply used | 5V 1A RAVpower
- SD card used | SanDisk ultra
Additional Information (if applicable)
- Can this issue be replicated on a fresh installation of DietPi?
5da1e3b3-a5fb-4c9e-a0a0-b0d264f3bc75
Steps to reproduce
- My SBC: ArmSom-P2pro(RK3308BS, HW is quite close to ROCKpiS)
- By flash it with offical ROCKpiS.img, => Doesn’t work at all.
- The only way for me is that using dietpi-installer script, But it has to be at lest Debian 12.
- Then I did below upgrade:
Debian 11 → Debian 12(Bookworm) → Debian 13(Trixie) and Debian 13 → DietPi
- Firt run at the begining, reboot.
- run DietPi-Software, it appear that ‘Kernel modules for the loaded kernel at /lib/modules/5.10.110 are missing’. The console request reboot again and again. I could never being success to the package list from run DietPi-Software.
Expected behaviour
After run dietpi-installer, I should be able to select and install software.
Actual behaviour
Kernel modules for the loaded kernel at /lib/modules/5.10.110 are missing. And asking reboot. But it doesn’t change anything.
BPI-p2pro-Debian-Trixie2DietPi_issue.txt (2.9 KB)
BPI-p2pro-Debian-Trixie2DietPi_install_log.txt (111.2 KB)
BPI-p2pro-Debian-Trixie2DietPi_first_run_log.txt (4.6 KB)
Extra details
SBC: ArmSom-P2pro(RK3308BS, HW is quite close to ROCKpiS)
Base: Debian 11(Bullseye)
Kernel: 5.10.110
- If I flash it with offical ROCKpiS.img, => Doesn’t work at all.
- If do dietpi-installer script, But it has to be at lest Debian 12, then I did below upgrade:
Debian 11 → Debian 12(Bookworm) → Debian 13(Trixie) and try both,
Debian 12 → DietPi => It shows success, But doesn’t work after reboot.
Debian 13 → DietPi => Looks works.. but another problem occurred.
All seems fine at the firt run at the begining, I can run DietPi-Software and do install, until after some time or maybe A reboot. When run DietPi-Software again, it appear that ‘Kernel modules for the loaded kernel at /lib/modules/5.10.110 are missing’. The console request reboot again and again. I could never being success to run DietPi-Software anymore.
I see already at the end of the dietpi-installer logs:
[ INFO ] DietPi-Installer | The following kernel images and modules have been found:
ls: cannot access '/lib/modules': No such file or directory
Is this missing on their original image already?
Anyway, the kernel is ancient, the original distro version is ancient, why don’t you use our ROCK Pi S image based on mainline Linux? EDIT: Ah, different SBC. Still worth an attempt, but mainline Linux + U-Boot are usually less flexible than vendor kernels.
Did you use this image? debian – Google Drive
I cannot even look into the contained .img file with 7zip, weird format.
EDIT: I don’t know what it is, but it is no regular image file: no partition table, no known filesystem type. I have no way to access its content. And Rufus as well says it is not bootable.
Hi Michalng,
Yes, I use armsom-p2pro-debian*-20241101.7z.
The inside ‘update.img’ should be used via firmware update from RKDevTool rather than to flash it to SD to boot. May be this is the reason.
Give me some time, I’ll go back to check if it is true that missing kernel module on the original debian before I transfer to DietPi.
Thank you.
Yes, It seems not exist.
root@armsom-p2pro:~# cd /lib/modules
-bash: cd: /lib/modules: No such file or directory
Is there solution to repair?
Or do something to ignore it? Since I see dietpi-software looks working at the begining.
Oh okay, why making it simple with any flashing tool, if there is a complicated way to restrict it to some crappy Rockchip/vendor tool.
So looks like they decided to build everything into the kernel image itself, very uncommon, either limiting capabilities, or loading huge bloated kernel image. Would be interesting to see how big it is, but difficult to find out with this 8 partitions setup they copied for FriendlyELEC
. There is no kernel in the boot dir/partition, right?
ls -l /boot
You can mute the error by creating the expected dir:
sudo mkdir "/lib/modules/$(uname -r)"
Since that kernel cannot be upgraded, at least this is a permanent workaround.
Hi Master,
See boot dir/partition:
root@DietPi:~# ls -l /boot
total 72
drwxr-xr-x 4 root root 4096 Apr 19 01:00 dietpi
-rw-r--r-- 1 root root 18092 Mar 26 14:09 dietpi-LICENSE.txt
-rw-r--r-- 1 root root 16878 Mar 26 14:09 dietpi-README.md
-rw-r--r-- 1 root root 19900 Apr 19 01:00 dietpi.txt
drwxr-xr-x 2 root root 4096 Dec 23 2023 firmware
drwxr-xr-x 3 root root 4096 Dec 23 2023 grub
By muting the the error, now I am able to play happily now!
sudo mkdir “/lib/modules/$(uname -r)”
Danke, Haben Sie einen schönen Tag.
Great! Out of curiosity, what is inside /boot/firmware? And is this a dedicated mount?
ls -l /boot/firmware
findmnt /boot/firmware
Yeah, it shows below.
root@DietPi:~# ls -l /boot/firmware
total 21368
-rw-r--r-- 1 root root 52456 Dec 23 2023 bootcode.bin
-rw-r--r-- 1 root root 7314 Dec 23 2023 fixup.dat
-rw-r--r-- 1 root root 5448 Dec 23 2023 fixup4.dat
-rw-r--r-- 1 root root 3187 Dec 23 2023 fixup4cd.dat
-rw-r--r-- 1 root root 8452 Dec 23 2023 fixup4db.dat
-rw-r--r-- 1 root root 8454 Dec 23 2023 fixup4x.dat
-rw-r--r-- 1 root root 3187 Dec 23 2023 fixup_cd.dat
-rw-r--r-- 1 root root 10298 Dec 23 2023 fixup_db.dat
-rw-r--r-- 1 root root 10298 Dec 23 2023 fixup_x.dat
-rw-r--r-- 1 root root 2952960 Dec 23 2023 start.elf
-rw-r--r-- 1 root root 2228800 Dec 23 2023 start4.elf
-rw-r--r-- 1 root root 793116 Dec 23 2023 start4cd.elf
-rw-r--r-- 1 root root 3722504 Dec 23 2023 start4db.elf
-rw-r--r-- 1 root root 2981192 Dec 23 2023 start4x.elf
-rw-r--r-- 1 root root 793116 Dec 23 2023 start_cd.elf
-rw-r--r-- 1 root root 4794472 Dec 23 2023 start_db.elf
-rw-r--r-- 1 root root 3704808 Dec 23 2023 start_x.elf
root@DietPi:~# findmnt /boot/firmware
root@DietPi:~# (blank in here)
Wow, these are Raspberry Pi bootloader files, which are definitely not used on the ArmSom P2pro. Probably some false usage of buildroot, which generally supports the Raspberry Pi and can created those: armsom-p2pro-bsp/buildroot/board/raspberrypi/readme.txt at 0ef93a16b7dae039c73a061764ac107c080d49f4 · ArmSoM/armsom-p2pro-bsp · GitHub
I guess they set BR2_PACKAGE_RPI_FIRMWARE* variables
.
But the files are relatively small, and do not cause harm, just indicates how little these vendors care about reviewing their images, or know about the build systems they use.