July 19Jul 19 I want to compile a matching build for: https://armbian.com/boards/odroidhc4 Debian 13trixie Minimal (CLI)—current6.18.33 https://dl.armbian.com/odroidhc4/Trixie_current_minimal Matching the img is fine (rather than the img.xz). I haven't compiled a matching build yet. I am doing this to debug my issue with the stock builds. Running: ./compile.sh BOARD=odroidhc4 BRANCH=current RELEASE=trixie BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_CONFIGURE=no Logs forthcoming.
November 26Nov 26 Author It looks like I need to check out a different branch of the git (roll back)../compile.sh BOARD=odroidhc4 \ BRANCH=current \ RELEASE=trixie \ BUILD_MINIMAL=yes \ BUILD_DESKTOP=no \ KERNEL_CONFIGURE=noNone of these look right:git tag -l 'v26.8*' v26.8.0-trunk.10v26.8.0-trunk.121v26.8.0-trunk.18v26.8.0-trunk.180v26.8.0-trunk.216v26.8.0-trunk.277v26.8.0-trunk.343v26.8.0-trunk.376v26.8.0-trunk.423v26.8.0-trunk.424v26.8.0-trunk.53v26.8.0-trunk.84AI says (not to be taken as flawless)>The latest stable for the HC4 is Armbian 26.8.1 Minimal (CLI), Debian 13, built Aug 8, 2026, with the current 6.18.43 kernel. To match it, build from the v26.8.1 release tag instead of main. main tracks the rolling images, which are newer (kernel 6.18.6x).>Not bit-identical: the tag pins the build scripts, kernel config and patches. Rootfs packages come from Debian's repos at build time, so they'll be newer than the Aug 8 image.Log: https://paste.armbian.com/exafobeladuvusus
November 27Nov 27 I think you already know yourself what to do, from the log I see no real failures, just at the start the message regarding the source / git tag. In general I would say it can cost a lot of time to stick to some older version although this is only 4 months old, I would say, focus on only U-Boot, kernel/DTB. Also make sure only 1 bootloader is used.I don't know the HC4, but U-Boot can chain-load, so the SPL part might be old (e.g. from SPI-flash) while full stage might be what yuou expect and is from SD-card. Also in recent builds I noticed KERNEL_CONFIGURE is not used, it is command 'kernel-config' and then a re-run with the config copied to userpatches and command 'kernel'. U-Boot similar. It may be quicker just to build U-Boot and put that in place manually, although if you build for example the edge variant of U-Boot, the .deb package can then be installed with apt and via armbian-config. On RK3588 and AllwinnerH3 (those I have) recent mainline based U-Boot actually runs vanilla Debian Sid kernel without even loading the DTB (not a separate package, nor the one from the kernel package). Same for Armbian 7.3.x edge kernels for RK3588 and AllwinnerH3. SATA might be a difficult issue, but I think if you get it right already in U-Boot, the rest is no issue. I would say, just use latest edge/mainline based U-Boot and kernel and see what it does for your use-case. For more generic things like storage and networking, it is fine and also you benefit from various fixes automatically.Regarding your build platform question: That also would be no issue if you use recent/mainline based sources. I have done many builds on my ROCK5B and NanoPi-R6C, both native (I avoid Docker), run Armbian Trixie although I change bootloader and kernels quite often, like that NanoPi-R6C now runs 16k pages Debian Sid kernel.If need building old U-Boot, I have a Jammy KVM for both x86_64 and aarch64 image still working. Just started via CLI by: virsh start --console ubuntu
November 27Nov 27 We only provide frozen sources for kernel, uboot and few others at build framework and only for stable builds. You can build 26.8 build by checking out build framework at that tag. But not recommended. Use main branch. We keep it operational at any any time.
November 27Nov 27 Author I'm just trying to verify my build is working. Could someone else try this build and verify the hash?I ran git pull before this. ./compile.sh build BOARD=odroidhc4 BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixiehttps://paste.armbian.com/uregogawukocevamsha256:5a5bacedd828ba2bf6e899df7bdb2326b4c8e39a5308a4b49702a84f2c3f3134
November 28Nov 28 17 hours ago, BigHeadMode said:Could someone else try this build and verify the hash?This does not make sense as the sha256sum of the resulting image is different per build run. Simply because the resulting image file is not bit-exact the same, many things in the image are different, one obvious is for example the UUID of the Ext4 filesystem.Even on a very much lower level, like the U-Boot .bin blob file will be different every build run. To make output of a compiler e.t.c. bit exact takes a sophisticated amount of development/effort AFAIK. You can search the internet, I think Suse has a mechanism in-place for 're-producible builds', but quite some time ago I read this and if/how it is used I don't know.I think if you still have trouble, you need to dig into U-Boot sources and its configuration. And do that on latest/edge; For fun/test, I can run this on my ROCK5B: ./compile.sh build BOARD=odroidhc4 BRANCH=edge RELEASE=trixie BUILD_DESKTOP=no BUILD_MINIMAL=yesWill then also be a a nice random thing to see how this runs as a container via systemd-nspawn -bD <rootfs-mount-point> on the same ROCK5BShould start/run in a blink of an eye. If some slight patching in /etc/systemd/network it should also be a separate IP address, so only shared kernel.
November 28Nov 28 Started the build; I first get a Docker warning/issue, is new to me; it was always just a one-liner showing something with docker.sh↗ (External link) or so, but I now had to have Docker installed because of Frigate. But I think there is an option to just not slelect/use Docker, something to search in the docs.Also likely KERNEL_CONFIGURE=no prevents pop-ping up a kernel config menu, so still handy to use that. I guess...OK I see already finished, so all from build cache it must be, I am used to hour waiting because kernel and U-Boot build from source.systemd-nspawn -b -i Armbian-unofficial_26.11.0-trunk_Odroidhc4_trixie_edge_7.3.6_minimal.imgRunning fails because partition table needs to be GPT type, not MBR/MSDOS type, I forgot thatThen after resizing a bit (MBR tables overlap backup GPT that needs to be written at end of image)truncate -s2G Armbian-unofficial_26.11.0-trunk_Odroidhc4_trixie_edge_7.3.6_minimal.imgSave to GPT via:gdisk Armbian-unofficial_26.11.0-trunk_Odroidhc4_trixie_edge_7.3.6_minimal.imgThen it works. Edited November 28Nov 28 by eselarm
November 28Nov 28 If I do:./compile.sh build BOARD=odroidhc4 BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixiePREFER_DOCKER=noI still get:[🚸] Docker is installed, but not usable [ can't use Docker; check your Docker config / groups / etc ][💥] Problem detected [ Docker installed but not usable ][💥] Exiting in 10 seconds [ Press <Ctrl-C> to abort, <Enter> to ignore and continue ]Counting down: 9... 8... 7... 6... 5... ^C[🚸] Build interrupted [ Build interrupted by SIGINT ]That seems not OK, but not fatal.
November 29Nov 29 That's not a problem. It will fall back to using the build host and available tools there directly.
November 29Nov 29 2 hours ago, Werner said:That's not a problem. It will fall back to using the build host and available tools there directly.With: 'Seems not OK' I mean: I explicitly add an option that suggests to not use Docker (so the PREFER_DOCKER=no), and the system still seems to check the Docker tooling and method; This can be skipped IMO, or is the word 'prefer' sort of non-binary, like depending what the computer just likes at that time of the day or whatever reason. So it is a matter of various messages that some persons like myself might think that I did something wrong or will it work etc. It actually cost me quite some time as on a N100 Debian Trixie where I had tried Immich (need Docker) I could not get anything to build, so brute-force just removed all that as I anyway find immich an unacceptable architecture, but then also experience with Docker gone. So went back to some older/faster/powerhungry PC where only minimal Debian Trixie installed.Anyway, I just did a git pull on the ROCK5B board and now it is different: both tests unattended, so not hitting keyboard after the compile.sh:odroidhc4/build$ ./compile.sh build BOARD=odroidhc4 BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie[] Applying cmdline param [ 'BUILD_MINIMAL': '(unset)' --> 'yes' early ] [] Applying cmdline param [ 'BUILD_DESKTOP': '(unset)' --> 'no' early ] [] Applying cmdline param [ 'BRANCH': '(unset)' --> 'current' early ] [] Applying cmdline param [ 'BOARD': '(unset)' --> 'odroidhc4' early ] [] Applying cmdline param [ 'RELEASE': '(unset)' --> 'no' early ] [] Applying cmdline param [ 'KERNEL_CONFIGURE': '(unset)' --> 'no' early ] [] Docker is installed, but not usable [ can't use Docker; check your Docker config / groups / etc ] [] Problem detected [ Docker installed but not usable ] [] Exiting in 10 seconds [ Press <Ctrl-C> to abort, <Enter> to ignore and continue ] Counting down: 9... 8... 7... 6... 5... 4... 3... 2... 1... 0... [] error! [ Exiting due to 'Docker installed but not usable' ] [] Exiting with error 43 [ at /local/s0/bs/odroidhc4/build/lib/functions/logging/traps.sh:1 exit_with_error() --> lib/functions/logging/traps.sh:1 exit_if_countdown_not_aborted() --> lib/functions/general/countdown.sh:41 cli_standard_relaunch_docker_or_sudo() --> lib/functions/cli/utils-cli.sh:339 cli_standard_build_pre_run() --> lib/functions/cli/cli-build.sh:14 armbian_cli_pre_run_command() --> lib/functions/cli/utils-cli.sh:200 cli_entrypoint() --> lib/functions/cli/entrypoint.sh:119 main() --> ./compile.sh:50 ]odroidhc4/build$ ./compile.sh build BOARD=odroidhc4 BRANCH=current BUILD_DESKTOP=no BUILD_MINIMAL=yes KERNEL_CONFIGURE=no RELEASE=trixie PREFER_DOCKER=no[] Applying cmdline param [ 'PREFER_DOCKER': '(unset)' --> 'no' early ] [] Applying cmdline param [ 'BUILD_MINIMAL': '(unset)' --> 'yes' early ] [] Applying cmdline param [ 'BUILD_DESKTOP': '(unset)' --> 'no' early ] [] Applying cmdline param [ 'BRANCH': '(unset)' --> 'current' early ] [] Applying cmdline param [ 'BOARD': '(unset)' --> 'odroidhc4' early ] [] Applying cmdline param [ 'RELEASE': '(unset)' --> 'trixie' early ] [] Applying cmdline param [ 'KERNEL_CONFIGURE': '(unset)' --> 'no' early ] [] This script requires root privileges; Docker is unavailable [ trying to use sudo ] [sudo] password ... [] Applying cmdline param [ 'PREFER_DOCKER': '(unset)' --> 'no' early ] [] Applying cmdline param [ 'BUILD_MINIMAL': '(unset)' --> 'yes' early ] [] Applying cmdline param [ 'BUILD_DESKTOP': '(unset)' --> 'no' early ] [] Skip cmdline param [ 'ARMBIAN_RELAUNCHED': already set to 'yes' early ] [] Applying cmdline param [ 'BRANCH': '(unset)' --> 'current' early ] [] Applying cmdline param [ 'BOARD': '(unset)' --> 'odroidhc4' early ] [] Applying cmdline param [ 'SET_OWNER_TO_UID': '(unset)' --> '1000' early ] [] Applying cmdline param [ 'RELEASE': '(unset)' --> 'trixie' early ] [] Applying cmdline param [ 'KERNEL_CONFIGURE': '(unset)' --> 'no' early ] [] Starting single build process [ odroidhc4 ] [] Checking [ basic host setup ] [] Build host OS release [ trixie ] [] Build host architecture [ arm64 ] ...The difference is now that there is nothing in the cache, so it wants to download the meson kernel tree, full or shallow., maybe that matters. Or that I have restricted sudo, that I saw as issue with some other software that does not use distro package manager principles. Edited November 29Nov 29 by eselarm
November 29Nov 29 You should not mix docker and non-docker cache anyway. This leads to unexpected behavior.
November 29Nov 29 21 minutes ago, Werner said:You should not mix docker and non-docker cache anyway. This leads to unexpected behavior.But docker based build never worked on that ROCK5B, so how can there be a docker cache. Or is the cache from outside, I have not looked at it (yet).But this gives a hint; I already knew that a Btrfs stream clone from arm64 to x86_64 is tricky. Worked fine if both non-docker Debian Trixie, as long as it is just the sources. In the past, I just deleted old build dirs and started from scratch, re-download all from github. Is fine when doing 1 build per year, but not when slow internet for example. So I think I need to have a detailed look at caching principles/methods, as I feel I don't understand it well enough.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.