Rock 5B - Problem Upgrade Bookworm (Script)

Hello!

I want to upgrade my Rock 5B to Bookworm with the command provided, but I get errors in relation to the sources.

bash <(curl -sSf 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.meta/dietpi-bookworm-upgrade')

I installed the image of the os from Radxa as there are no image from dietpi at this time. Afterwards I installed dietpi on top (was a little bit tricky).

Now there are sources in apt which aren’t availabe any longer.

Can you give me the correct sources for the update?

Thanks in advance.

Error Log:

---------------------------------------------------------------------
- DietPi has encountered an error                                   -
- Please create a ticket: https://github.com/MichaIng/DietPi/issues -
- Copy and paste only the BLUE lines below into the ticket          -
---------------------------------------------------------------------
#### Details:
- Date           | Wed Mar 27 08:41:09 CET 2024
- DietPi version | v9.2.1 (MichaIng/master)
- Image creator  | rock5b
- Pre-image      | ROCK 5 Debian
- Hardware       | Generic Device (aarch64) (ID=22)
- Kernel version | `Linux XXXXXX 5.10.66-27-rockchip-gea60d388902d #rockchip SMP Mon Oct 24 08:25:47 UTC 2022 aarch64 GNU/Linux`
- Distro         | bullseye (ID=6)
- Command        | `apt-get -y -eany update`
- Exit code      | 100
- Software title | dietpi-bookworm-upgrade
#### Steps to reproduce:
<!-- Explain how to reproduce the issue -->
1. ...
2. ...
#### Expected behaviour:
<!-- What SHOULD happen? -->
- ...
#### Actual behaviour:
<!-- What IS happening? -->
- ...
#### Extra details:
<!-- Please post any extra details that might help solve the issue -->
- ...
#### Additional logs:

Get:2 https://deb.debian.org/debian bookworm InRelease [151 kB]
Ign:3 http://apt.radxa.com/bookworm-stable bookworm InRelease
Get:4 https://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Hit:1 https://linux-packages.resilio.com/resilio-sync/deb resilio-sync InRelease
Get:5 https://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Ign:6 https://pkg.ltec.ch/public bookworm InRelease
Get:7 https://deb.debian.org/debian bookworm-backports InRelease [56.5 kB]
Err:8 https://pkg.ltec.ch/public bookworm Release
  404  Not Found [IP: 95.143.48.181 443]
Err:9 http://apt.radxa.com/bookworm-stable bookworm Release
  404  Not Found [IP: 185.199.109.153 80]
Get:10 https://deb.debian.org/debian bookworm/contrib arm64 Packages [45.6 kB]
Get:11 https://deb.debian.org/debian bookworm/non-free-firmware arm64 Packages [5824 B]
Get:12 https://deb.debian.org/debian bookworm/main arm64 Packages [8685 kB]
Get:13 https://deb.debian.org/debian bookworm/non-free arm64 Packages [75.4 kB]
Get:14 https://deb.debian.org/debian bookworm-updates/non-free-firmware arm64 Packages [616 B]
Get:15 https://deb.debian.org/debian bookworm-updates/main arm64 Packages [12.5 kB]
Get:16 https://deb.debian.org/debian bookworm-updates/non-free arm64 Packages [12.0 kB]
Get:17 https://deb.debian.org/debian bookworm-updates/contrib arm64 Packages [768 B]
Get:18 https://deb.debian.org/debian-security bookworm-security/main arm64 Packages [145 kB]
Get:19 https://deb.debian.org/debian bookworm-backports/contrib arm64 Packages [4700 B]
Get:20 https://deb.debian.org/debian bookworm-backports/non-free arm64 Packages [1288 B]
Get:21 https://deb.debian.org/debian bookworm-backports/main arm64 Packages [185 kB]
Reading package lists...
E: The repository 'https://pkg.ltec.ch/public bookworm Release' does not have a Release file.
E: The repository 'http://apt.radxa.com/bookworm-stable bookworm Release' does not have a Release file.
---------------------------------------------------------------------

You need to delete the repo (it’s for wsdd) because wsdd is now available via bookworm repos.
See
https://dietpi.com/forum/t/dietpi-update-error-with-release-file-pkg-ltec-ch-bookworm/17519/2
and
https://github.com/MichaIng/DietPi/issues/6227

I’ve commented out both repos and the upgrade is running…

But the was an error and the kernel is still the same:

Any idea?

Did you reboot?

BTW there is an image for rock 5B on our homepage.
https://dietpi.com/downloads/images/DietPi_ROCK5B-ARMv8-Bookworm.img.xz

Yes. I rebooted the device.

I was an early adopter… I’ve seen there is an image available meanwhile…

But I don’t want to reinstall the server :wink:

Was it correct to comment the radxa-repo out?

How to switch to a newer kernel?

maybe @MichaIng can answer the question regarding kernel

Yes, we use armbian and debian (and raspbian) repos by default.

Looks like to me there is no 6.x kernel for rock 5b with armbian (and also not from radxa)

https://www.armbian.com/rock-5b/

edit:

oh there are community releases with 6.8, so there is hope for you.

Since you used the Radxa image, it is expected that the kernel did not upgrade. The kernel repo is managed by Radxa and they remain outdated for long or forever. And they are in general distro-version-agnostic.

Which packages are actually installed? Maybe there are newer ones available with a different name:

dpkg -l | grep linux

But nope, Linux 5.10 is the latest: https://radxa-repo.github.io/bookworm/dists/bookworm/main/binary-arm64/Packages

We could try to migrate it to Armbian kernel. It is one partition or a dedicated /boot partition?

df

Which kernel uses the dietpi-image?

You could open the *.img file with tools like 7zip and check. :slight_smile:

But it’s 5.10.160
image

Debian, Armbian, Radxa, Other?

should be the Radxa one.

so the official dietpi-image for the rock5b uses the same and is also on kernel 5.x?

have i bought a dead horse?

No worries, Rockchip is known to not care about mainlining support for their chips, and the vendors/SBC manufacturers just use their always outdated dedicated Linux sources. However, the RK3588 is popular enough, that mainline support is getting better over time, and at some point we can use latest upstream Linux versions.

Until then, we use a kernel build from Armbian, which is at least a little newer, 5.10.160 vs 5.10.66. But in the meantime, Rockchip released Linux 6.1 sources. Armbian does not have builds based on them in their repo yet, but support in their build scripts. I aim to add support for those to our workflows as well, and eventually use those on all RK3588 boards. These sources have been generated from scratch by Rockchip, based on mainline Linux 6.1, while older versions were an ancient fork, rebased over and over, accumulated a lot of crap, with build configs for Android and Linux mixed together and other weird stuff. So I hope for a much better kernel quality with this change.

Can you show the content of your /boot dir, so we can see which boot configs/scripts are used:

ls -l /boot

Thank you for your efforts!