How to find the base image distribution of my DietPi installation?

Hi! I’m testing DietPi on my NanoPi R4S board and may need to build a custom kernel myself. If I understand correctly, every DietPi image is built from some base image distribution. Is it possible for me to find the specific base image distribution of my current DietPi installation? Thanks!

Maybe the uname command gives some hints.
uname -a
uname -r
Many of the NanoPi images are based on Armbian.

If I’m not mistaken it could be Armbian kernel used.

Thank you for the info! Please find my uname output below:

# uname -a
Linux np1 6.6.34-current-rockchip64 #2 SMP PREEMPT Sun Jun 16 11:47:49 UTC 2024 aarch64 GNU/Linux

The uname output didn’t provide enough info to reliably determine the base image origin. There are two NanoPI R4S variants: one with 1GB RAM and the other with 4GB RAM. The Armbian image seems to be built for the 4GB RAM variant and doesn’t work with my 1GB RAM variant. Fortunately the DietPi image works with my 1GB RAM variant and that’s why I need to identify its base image origin and corresponding kernel source. Thanks!

Ditto. Thank you!

If I’m not mistaken, we create debootstrap images and don’t use a real image. What is interesting for you is the used kernel source. @MichaIng could give some more information on this.

I tested some other Armbian images for R4S and can confirm that the full bookworm one (Armbian_23.5.1_Nanopi-r4s_bookworm_current_6.1.30.img.xz) works on my 1GB variant. The minimal ones seem not working. I’ll start from there and build my own kernel. The missing module is 8021q for VLAN. By the way, it would be very helpful if there could be some documentation about the corresponding base image of each DietPi image. Thank you!

not sure if it helps, but following script is used to generate all our images.

Are you sure this module is really missing (and not builtin)? I am pretty sure VLAN works OOTB on all DietPi images, especially those with Armbian kernel. Or ia this some special standard (I am not experienced with VLANs)?

modinfo 8021q

We could add it to our kernel builds.

However, if the Armbian desktop image works (VLAN works with it the way you use it), but the minimal one not, then it is not a missing kernel module, but a missing userland tool or library. Because both use the same kernel, and we use that one as well (though a little newer version).

Thank you for pointing out the command! I was looking at the wrong direction and searched for the file 8021q.ko. It turns out to be a builtin module:

# modinfo 8021q
name:           8021q
filename:       (builtin)
version:        1.8
license:        GPL
file:           net/8021q/8021q
alias:          rtnl-link-vlan

Thank you for the link! I also found this link (https://unix.stackexchange.com/questions/450776/check-armbian-version-on-the-command-line) showing the exact Armbian version can be identified via the file /etc/armbian-release.

# cat /etc/armbian-release 
# PLEASE DO NOT EDIT THIS FILE
BOARD=nanopi-r4s
BOARD_NAME="NanoPi R4S"
BOARDFAMILY=rk3399
BUILD_REPOSITORY_URL=https://github.com/armbian/build
BUILD_REPOSITORY_COMMIT=508a701
VERSION=23.05.1
LINUXFAMILY=rockchip64
ARCH=arm64
IMAGE_TYPE=stable
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
FORCE_BOOTSCRIPT_UPDATE=
VENDOR=Armbian
REVISION=23.05.1
BOOTSCRIPT_FORCE_UPDATE="no"
BOOTSCRIPT_DST="boot.cmd"
BRANCH=current

This file shows the exact commit number of the Armbian source. I haven’t checked if this file is included in the DietPi image yet.

Should not be there

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.