Dtb overlay setup problem

hi, how can i setup dtb overlay in dietpi? i have fixup.scr problem

Required Information

  • DietPi version | 9
  • Distro version | bookworm
  • Kernel version | Linux DietPi 5.10.160-legacy-rk35xx
  • Architecture | arm64
  • SBC model | Radxa ZERO 3
  • Power supply used | 5v PC USB exit
  • SD card used | Verbatim Premium

Steps to reproduce

  1. fill the /boot/dietpiEnv.txt file in this way:
consoleargs=console=ttyS2,1500000 console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=rockchip
overlay_prefix=
overlays=radxa-zero3-rpi-camera-v2
user_overlays=
  1. attach uart serial
  2. read booting log

Expected behaviour

the log have to show something like this:

Applying kernel provided DT overlay sun8i-h3-w1-gpio.dtbo
506 bytes read in 326 ms (1000 Bytes/s)

Actual behaviour

the log show error for sth-fixup.scr like:

Failed to load '/boot/dtb/rockchip/overlay/-radxa-zero3-rpi-cametbo'
Failed to load '/boot/dtb/rockchip/overlay/-fixup.scr'

Extra details

the issue occurs also if i fill dietpiEnv.txt like:

consoleargs=console=ttyS2,1500000 console=tty1
usbstoragequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=rockchip
overlay_prefix=radxa-zero3
overlays=rpi-camera-v2
user_overlays=

in this form

loaded '/boot/dtb/rockchip/overlay/radxa-zero3-rpi-camera-v2'
Failed to load '/boot/dtb/rockchip/overlay/radxa-zero3-fixup.scr'

Can you share

ls /boot/dtb/rockchip/overlay/

i attach a screenshot for convenience:

Alright, seems like a bug in the latest armbian version and I think this DietPi images is based on Armbian.
See: https://www.reddit.com/r/OrangePI/comments/1hbjay5/psa_how_to_fix_overlay_bug_in_latest_armbian/
(there is also a workaround mentioned)

Also @MichaIng should see this :slight_smile:

it doesn’t work i use ln -s workaround, maybe i set dietpiEnv.txt wrong, could you send me an example of compilation ?

So you tried

ln -s /boot/dtb/allwinner/overlay /boot/dtb/overlay

?

The dietpiEnv.txt looks fine to me, but to be honest I never really touched it.

Yes i tried substituting allwinner with rockchip (the ln Is related to Orange pi allwinner soc) but nothing happened,maybe you know something about fixup.scr and how It works

You already did the right thing to adjust the overlay_prefix and overlays accordingly. There is no fixup script for the Radxa ZERO 3 in particular, but it is optionally anyway.

Apart of the (expected) fixup load error, is the camera module working?

Not sure what the allwinner thing is about? Neither should it exist nor work on the ZERO 3, of course.

This bug is related to Armbian’s own boot.scr while we use our own with vendor-aware dtb paths.

Hence all this symlink hassle is not needed on DietPi.

1 Like
Applying kernel providedy radxa-zero3-rpi-camera-v2.dtbo
Failed to load '/boot/dtb//overlay/radxa-zero3-fixup.scr'

this is the line that’s appear to serial log and that’s the max i reach.
One question if i link boot.scr in dtb folder changing name, like

ln -s /boot/boot.scr /boot/dtb/overlay/radxa-zero3-fixup.scr

?

the camera module not working at all with ffmpeg, cheese and gst-launch-1.0 v4l2src device=/dev/video0 io-mode=4 ! videoconvert ! video/x-raw,format=NV12,width=1920,height=1080 ! jpegenc ! multifilesink location=/home/radxa/test.jpg command how it is in documentation

This is weird, because commands are perfectly allowed to fail in U-Boot scripts, especially this one which itself is an if conditional. It is the last thing you should see from the boot script, but the kernel should be loaded afterwards.

But I see another issue, as the overlay directory itself is missing the overlay_path=rockchip element. Is that one still set in your /boot/dietpiEnv.txt?

And no, that symlink would cause an infinite loop. If at all, link it to the rockchip-fixup.scr in the same directory.

I am wondering is this the same issue?

Can't Enable SPI on DietPi Radxa zero - #4 by Joulinar @MichaIng

Yes! It is the same issue, but in that post the suggested overlay_prefix is wrong. Please see my last post for the solution.
You have - like me - use: overlay_prefix=rk3588
Watch at the list of files in overlay directory you posted :wink:

1 Like