Rock 4C+ Kernel 6.1 install failed

Installation of Kernel 6.1 on my Rock4C+ failed and doesn’t boot
Had to change to l1 in /boot/extlinux/extlinux.conf = last 5.1 kernel
I lost the apt-terminal log but think was some
make -J6 … of kernel / overlay module … ERROR 2 at the beginning
and to look at some …/log/… dkms or so was mentioned
and then some relating errors later

cat /var/lib/dkms/r8125/9.013.02-1/build/make.log
DKMS make.log for r8125-9.013.02-1 for kernel 6.1.115-1-rk2501 (aarch64)
Tue 15. Jul 17:40:19 CEST 2025
make: Enter „/usr/src/linux-headers-6.1.115-1-rk2501“
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0
You are using: gcc (Debian 10.2.1-6) 10.2.1 20210110
CC [M] /var/lib/dkms/r8125/9.013.02-1/build/r8125_n.o
CC [M] /var/lib/dkms/r8125/9.013.02-1/build/rtl_eeprom.o
CC [M] /var/lib/dkms/r8125/9.013.02-1/build/rtltool.o
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[1]: *** [scripts/Makefile.build:250: /var/lib/dkms/r8125/9.013.02-1/build/r8125_n.o] Error 1
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’
make[1]: *** [scripts/Makefile.build:250: /var/lib/dkms/r8125/9.013.02-1/build/rtl_eeprom.o] Error 1
make[1]: *** [scripts/Makefile.build:250: /var/lib/dkms/r8125/9.013.02-1/build/rtltool.o] Error 1
make: *** [Makefile:2009: /var/lib/dkms/r8125/9.013.02-1/build] Error 2
make: Leave „/usr/src/linux-headers-6.1.115-1-rk2501“

I’ve tried to solve this problem with KI, which also helped me finding that log, and suggested installing gcc-12 which seems to not even to find in backports repo for the factory debian image.
Other suggestion is to remove -ftrivial-auto-var-init=zero from the make-files.
I think this update must fail and brig every system-image and wonder nobody else writes something.

6.1 for ROCK 4B+ is ready to come out, 6.1 for ROCK 4C+ is probably coming soon too, you can wait for the official system!

or you can tell me how did you get the 6.1 deb package, by radxa bsp tool ?

apt-get update …
OK:7 https://radxa-repo.github.io/bullseye rockchip-bullseye InRelease
OK:8 https://radxa-repo.github.io/bullseye bullseye InRelease
Probably from there, that’s just the factory image

I’ve just noticed the installation is retried on every apt upgrade (do update before), so I can offer some log of also, I think was slightly different first time, but shouldn’t matter to much:…
radxa-overlays-dkms (0.1.27)…several lines of 5.10 stuff runs fine…
Building initial module for 6.1.115-1-rk2501
Error! Bad return status for module build on kernel: 6.1.115-1-rk2501 (aarch64)
Consult /var/lib/dkms/radxa-overlays/0.1.27/build/make.log for more information.
…linux-image-rock-4c-plus depends on radxa-overlays-dkms which isn’t configured…

cat /var/lib/dkms/radxa-overlays/0.1.27/build/make.log
DKMS make.log for radxa-overlays-0.1.27 for kernel 6.1.115-1-rk2501 (aarch64)
Fr 18. Jul 18:43:42 CEST 2025
make: Enter „/usr/src/linux-headers-6.1.115-1-rk2501“
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gnu-gcc (Debian 12.2.0-14) 12.2.0
You are using: gcc (Debian 10.2.1-6) 10.2.1 20210110
CC [M] /var/lib/dkms/radxa-overlays/0.1.27/build/radxa-overlays.o
gcc: error: unrecognized command-line option ‘-ftrivial-auto-var-init=zero’ …
DTC /var/lib/dkms/radxa-overlays/0.1.27/build/arch/arm64/boot/dts/rockchip/overlays/rk3328-pwm2.dtbo …
./scripts/dtc/dtc: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.33' not found (required by ./scripts/dtc/dtc) ./scripts/dtc/dtc: /lib/aarch64-linux-gnu/libc.so.6: version GLIBC_2.34’ not found (required by ./scripts/dtc/dtc)

May be somehow new kernel stuff got into public repo without dependencies rolled out first.

I still wondering am I the only one using the factory image?

For few months ? now I’m quite disappointed again anyway, because sound lags video now, which I can’t fix like the other way round before.

please use Radxa system tool rsetup to upgrade the system, not use “sudo apt upgrade”

rsetup seems to call apt-get update / upgrade also
Everything looks the same, including the error, except all in English, just tried.
So users of should have the same problem.

did you use this repo https://github.com/radxa-pkg/linux-rk2501 ?

this repo refers to https://github.com/radxa/kernel/tree/linux-6.1-stan-rkr5.1/, and 4C+ has not yet been adapted on this branch,It is not recommended to install it now.

I told several times I’m just using the factory image.
And rsetup also just using apt update / upgrade
which seems not to be known and I quoted you the repos used above:
OK:7 https://radxa-repo.github.io/bullseye rockchip-bullseye InRelease
OK:8 https://radxa-repo.github.io/bullseye bullseye InRelease