Rock4SE updated image does not boot (+Workaround so it does)

Rock4SE updated image does not boot (+Workaround so it does)

Required Information

  • DietPi version
G_DIETPI_VERSION_CORE=9
G_DIETPI_VERSION_SUB=15
G_DIETPI_VERSION_RC=2
G_GITBRANCH='master'
G_GITOWNER='MichaIng'e
  • Distro version | bookworm
  • Kernel version | 6.12.35-current-rockchip64
  • Architecture | ARMv8 / RK3399-T / aarch64
  • SBC model | 72.2 Radxa Rock4SE
  • Power supply used | 65W GaN USB-C (also tried a off-the-shelf 5A/1A. No difference).
  • SD card used | SanDisk Ultra 32GB A1

Additional Information (if applicable)

  • Software title | DietPi base system
  • Fresh install
  • Can this issue be replicated on a fresh installation of DietPi? Probably. Only have one SBC, very likely.

Steps to reproduce

  1. Download the latest DietPi image for the Rock4SE
  2. Flash to SD-Card using Balena Etcher
  3. Insert SD-Card into SBC
  4. Power on

Expected behaviour

  • GREEN LED power on
  • BLUE LED power on / blinking
  • HDMI output

Actual behaviour

  • GREEN LED power on
  • BLUE LED stays off
  • No HDMI output
  • Nothing happens (left it running over night - nothing).

Extra details

  • Download old version of DietPi from Web Archive (20241217194104, 17.12.2024)
  • Flash that version using Balena Etcher
  • Power on
  • GREEN LED on
  • BLUE LED on/blinking after short while
  • Installer prompt on HDMI

Workaround:

  1. Download the aforementioned old version of DietPi (v9.8.0).
  2. Flash it using Balena Etcher or similar (e.g. RPi-Imager, although Etcher is preferable).
  3. WITHOUT network attached, insert SD card and power on the ROCK4SE
  4. This will take a while, because it will try to connect to network (up to 5 min).
  5. Go into “DietPi-Config” –> “4: Advanced Options” –> “Flash current U-Boot to /dev/mmcblk1”
  6. After flashing, attach network and click “Retry”
  7. Wait for it to install

It may hang on “[OK] Finished dietpi.kill_ssh.service - DietPi-Kill_SSH on shutdown”. I let it run for like 10 minutes then powered off the device and plugged it back in. It booted, and it reboots fine.

If I do not do the workaround and reboot, it will not boot. No idea why - possible problem with U-Boot? Other operating systems work, so seems to be a DietPi specific issue.

Either way, this way one can get recent DietPi onto the Radxa ROCK4SE. I don’t have a serial monitor, so cannot test further. Update to Trixie (using the script) also worked.

Maybe this will help somebody.

can you have a look @MichaIng

Not sure whether I understand: When you flash an image to the SD card, it has the bootloader flashed already, obviously. So unless you upgrade APT packages (network) and the linux-u-boot-rock-4se-current package is upgraded, flashing U-Boot via dietpi-config does not change something.

I mean the image booted in the first place, so the (old) bootloader seems fine, and even if the package is upgraded, on ROCK 4 SE the new U-Boot image is never flashed automatically. So I guess it is more like a random issue in your case, sometimes it boots, sometimes not.

Could you try with the latest Trixie image please, and try a few more times? No need to wait long. If the LED does not start to blink within 20 seconds or so, it failed somewhere in bootloader stage without loading the kernel.