Kernel 6.1.43-20-rk2312 upgrade fails

looks like the kernel is installed but I always get errors - see below…

uname -a
Linux calypso 6.1.43-20-rk2312 #3e26818dc SMP Tue Nov 19 07:21:24 UTC 2024 aarch64 GNU/Linux

The image is an radxa image installed 14.4.2024 but
/var/lib/dkms/8852be/1.15.10.0.5.0-4/build/make.log
says:
warning: the compiler differs from the one used to build the kernel
The kernel was built by: aarch64-linux-gnu-gcc (Debian 10.2.1-6) 10.2.1 20210110
You are using: gcc (Debian 12.2.0-14) 12.2.0

HOW CAN I GET RID OF THIS ERROR WITHOUT REINSTALLING THE WHOLE OS.

Btw… new installs of the newest radxa AND armbian images are faulty!
One of them detaches the NIC at an kernel upgrade!

Tks

##########################
linux-image-6.1.43-20-rk2312 (6.1.43-20-3e26818dc) wird eingerichtet …
dkms: running auto installation service for kernel 6.1.43-20-rk2312.
Sign command: /lib/modules/6.1.43-20-rk2312/build/scripts/sign-file
Binary /lib/modules/6.1.43-20-rk2312/build/scripts/sign-file not found, modules
won’t be signed

Building module:
Cleaning build area…
make -j8 KERNELRELEASE=6.1.43-20-rk2312 -C /lib/modules/6.1.43-20-rk2312/build M
=/var/lib/dkms/8852be/1.15.10.0.5.0-4/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.43-20-rk2312 (aarch64)
Consult /var/lib/dkms/8852be/1.15.10.0.5.0-4/build/make.log for more information
.
Sign command: /lib/modules/6.1.43-20-rk2312/build/scripts/sign-file
Binary /lib/modules/6.1.43-20-rk2312/build/scripts/sign-file not found, modules
won’t be signed

Building module:
Cleaning build area…
make -j8 KERNELRELEASE=6.1.43-20-rk2312 -C /lib/modules/6.1.43-20-rk2312/build M
=/var/lib/dkms/8852bu/1.15.7.112-2/build…(bad exit status: 2)
Error! Bad return status for module build on kernel: 6.1.43-20-rk2312 (aarch64)
Consult /var/lib/dkms/8852bu/1.15.7.112-2/build/make.log for more information.
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
dkms: autoinstall for kernel: 6.1.43-20-rk2312 failed!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
update-initramfs: Generating /boot/initrd.img-6.1.43-20-rk2312
Rebuilding overlay data folder for ‘6.1.43-20-rk2312’…
Removing managed overlays…
Building list of compatible overlays…
Installing compatible overlays…
Reenable previously enabled overlays…
Commiting changes…
Overlay data folder has been successfully rebuilt.
P: Checking for EXTLINUX directory… found.
P: Writing config for vmlinuz-6.1.43-20-rk2312…
P: Writing config for vmlinuz-5.10.110-33-rockchip…
dpkg: Fehler beim Bearbeiten des Paketes linux-image-6.1.43-20-rk2312 (–configu
re):
»installiertes post-installation-Skript des Paketes linux-image-6.1.43-20-rk231
2«-Unterprozess gab den Fehlerwert 1 zurück
dpkg: Abhängigkeitsprobleme verhindern Konfiguration von linux-image-rock-5b:
linux-image-rock-5b hängt ab von linux-image-6.1.43-20-rk2312; aber:
Paket linux-image-6.1.43-20-rk2312 ist noch nicht konfiguriert.

dpkg: Fehler beim Bearbeiten des Paketes linux-image-rock-5b (–configure):
Abhängigkeitsprobleme - verbleibt unkonfiguriert
Fehler traten auf beim Bearbeiten von:
linux-image-6.1.43-20-rk2312
linux-image-rock-5b
E: Sub-process /usr/bin/dpkg returned an error code (1)

How do you upgrade the kernel? By apt or by dpkg manually ?

저에게도 비슷한 문제가 있습니다.
Radxa Team은 이에 대한 해답을 줄 수 있나요?

나는 Radxa 5b 보드에서 custom 운영체제를 사용하길 원합니다.
하지만 3번 과정에서 실패했습니다.
내 방법의 어느 과정이 틀렸나요?
이 문제를 해결할 방법이 있나요?

  1. 나는 balenaEtcher을 통해 ubuntu를 SD 카드에 설치 후 운영체제 실행에 성공했습니다.
    다운로드 주소:(Sorry, new users can only put 2 links in a post.)
    설치파일:ubuntu-24.10-preinstalled-desktop-arm64-rock-5b.img.xz

  2. 다음 두 지침을 따라 여러파일들을 생성시켰고, 3개의 파일을 Radxa 5b 보드의 ubuntu로 이동시켰습니다.
    (커널 업데이트 테스트를 위해 커널 코드는 수정하지 않았습니다.)

지침:


사용 파일:

linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb
u-boot-rknext_2017.09-1_arm64.deb

생성 파일(전체):

ubuntu@ubuntu-900X5T:~/bsp$ ls
LICENSE
Makefile
README.md
action.yaml
book.toml
bsp
common
container
debian
docs
lib
linux
linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-headers-rock-4-core-io_5.10.110-999_all.deb
linux-headers-rock-4c-plus_5.10.110-999_all.deb
linux-headers-rock-4se_5.10.110-999_all.deb
linux-headers-rock-pi-4a-plus_5.10.110-999_all.deb
linux-headers-rock-pi-4a_5.10.110-999_all.deb
linux-headers-rock-pi-4b-plus_5.10.110-999_all.deb
linux-headers-rock-pi-4b_5.10.110-999_all.deb
linux-headers-rock-pi-4c_5.10.110-999_all.deb
linux-headers-rockchip_5.10.110-999_all.deb
linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-image-rock-4-core-io_5.10.110-999_all.deb
linux-image-rock-4c-plus_5.10.110-999_all.deb
linux-image-rock-4se_5.10.110-999_all.deb
linux-image-rock-pi-4a-plus_5.10.110-999_all.deb
linux-image-rock-pi-4a_5.10.110-999_all.deb
linux-image-rock-pi-4b-plus_5.10.110-999_all.deb
linux-image-rock-pi-4b_5.10.110-999_all.deb
linux-image-rock-pi-4c_5.10.110-999_all.deb
linux-image-rockchip_5.10.110-999_all.deb
linux-libc-dev-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-libc-dev-rock-4-core-io_5.10.110-999_all.deb
linux-libc-dev-rock-4c-plus_5.10.110-999_all.deb
linux-libc-dev-rock-4se_5.10.110-999_all.deb
linux-libc-dev-rock-pi-4a-plus_5.10.110-999_all.deb
linux-libc-dev-rock-pi-4a_5.10.110-999_all.deb
linux-libc-dev-rock-pi-4b-plus_5.10.110-999_all.deb
linux-libc-dev-rock-pi-4b_5.10.110-999_all.deb
linux-libc-dev-rock-pi-4c_5.10.110-999_all.deb
linux-libc-dev-rockchip_5.10.110-999_all.deb
man
po
theme
u-boot
u-boot-rknext_2017.09-1_arm64.deb
u-boot-rock-5b_2017.09-1_all.deb
  1. 두 지침에 따라 3개의 파일을 Radxa 5b 보드에서 설치했으나 커널은 업데이트 되지 않았습니다.
ubuntu@ubuntu-desktop:~$ uname -a
Linux ubuntu-desktop 6.1.0-1025-rockchip #25-Ubuntu SMP Mon Aug 26 23:01:14 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu-desktop:~$ uname -r
6.1.0-1025-rockchip

ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ lsblk
NAME        MAJ:MIN RM  SIZE RO TYPE MOUNTPOINTS
loop0         7:0    0 33.7M  1 loop /snap/snapd/21761
loop1         7:1    0 69.2M  1 loop /snap/core22/1624
loop2         7:2    0 94.4M  1 loop /snap/lxd/30134
sda           8:0    1 28.7G  0 disk 
└─sda1        8:1    1 28.7G  0 part /media/ubuntu/2707-439D
mtdblock0    31:0    0   16M  0 disk 
mmcblk1     179:0    0 29.7G  0 disk 
└─mmcblk1p1 179:1    0 29.7G  0 part /
ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ ls
'System Volume Information'   linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb   linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb   u-boot-rknext_2017.09-1_arm64.deb

ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ sudo dpkg -i u-boot-rknext_2017.09-1_arm64.deb
ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ cd /usr/lib/u-boot/rock-5b/
ubuntu@ubuntu-desktop:/usr/lib/u-boot/rock-5b$ sudo ./setup.sh update_bootloader /dev/mmcblk1
ubuntu@ubuntu-desktop:/usr/lib/u-boot/rock-5b$ sudo reboot

ubuntu@ubuntu-desktop:/usr/lib/u-boot/rock-5b$ cd /media/ubuntu/2707-439D
ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ sudo dpkg -i linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb
ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ sudo dpkg -i linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb
ubuntu@ubuntu-desktop:/media/ubuntu/2707-439D$ sudo reboot

ubuntu@ubuntu-desktop:~$ uname -a
Linux ubuntu-desktop 6.1.0-1025-rockchip #25-Ubuntu SMP Mon Aug 26 23:01:14 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu-desktop:~$ uname -r
6.1.0-1025-rockchip

#추가적으로 /boot/extlinux/extlinux.conf 파일의 default l0을 default l1로 바꾸어도 문제는 해결 되지 않았습니다.

ubuntu@ubuntu-desktop:~$ uname -a
Linux ubuntu-desktop 6.1.0-1025-rockchip #25-Ubuntu SMP Mon Aug 26 23:01:14 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux
ubuntu@ubuntu-desktop:~$ uname -r
6.1.0-1025-rockchip
ubuntu@ubuntu-desktop:~$ cat /boot/extlinux/extlinux.conf
## /boot/extlinux/extlinux.conf
##
## IMPORTANT WARNING
##
## The configuration of this file is generated automatically.
## Do not edit this file manually, use: u-boot-update

default l0
menu title U-Boot menu
prompt 1
timeout 20


label l0
	menu label Ubuntu 24.04.1 LTS 6.1.0-1025-rockchip
	linux /boot/vmlinuz-6.1.0-1025-rockchip
	initrd /boot/initrd.img-6.1.0-1025-rockchip
	fdtdir /lib/firmware/6.1.0-1025-rockchip/device-tree/
	
	append root=UUID=45e4283a-9ee9-4749-ae01-f0e9f7407d7d rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory quiet splash plymouth.ignore-serial-consoles

label l0r
	menu label Ubuntu 24.04.1 LTS 6.1.0-1025-rockchip (rescue target)
	linux /boot/vmlinuz-6.1.0-1025-rockchip
	initrd /boot/initrd.img-6.1.0-1025-rockchip
	fdtdir /lib/firmware/6.1.0-1025-rockchip/device-tree/
	append root=UUID=45e4283a-9ee9-4749-ae01-f0e9f7407d7d rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory splash plymouth.ignore-serial-consoles single
	

label l1
	menu label Ubuntu 24.04.1 LTS 5.10.110-999-rockchip
	linux /boot/vmlinuz-5.10.110-999-rockchip
	initrd /boot/initrd.img-5.10.110-999-rockchip
	
	
	append root=UUID=45e4283a-9ee9-4749-ae01-f0e9f7407d7d rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory quiet splash plymouth.ignore-serial-consoles

label l1r
	menu label Ubuntu 24.04.1 LTS 5.10.110-999-rockchip (rescue target)
	linux /boot/vmlinuz-5.10.110-999-rockchip
	initrd /boot/initrd.img-5.10.110-999-rockchip
	
	append root=UUID=45e4283a-9ee9-4749-ae01-f0e9f7407d7d rootwait rw console=ttyS2,1500000 console=tty1 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory splash plymouth.ignore-serial-consoles single
	
ubuntu@ubuntu-desktop:~$ 

해당 방법들을 사용해도 커널이 업데이트 되지 않았습니다.
이 문제를 해결할 방법이 있나요?

linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb
u-boot-rknext_2017.09-1_arm64.deb

these files are built for debian system not ubuntu

.deb파일은 ubuntu에서 사용 가능한 것으로 알고 있습니다.
debian .deb파일 또한 ubuntu에서 사용 가능한 것으로 알고 있습니다.

linux-headers-5.10.110-999-rockchip_5.10.110-999_arm64.deb
linux-image-5.10.110-999-rockchip_5.10.110-999_arm64.deb
u-boot-rknext_2017.09-1_arm64.deb

다음 파일들이 debian 운영체제에서 동작을 한다면, rock 5b 보드에 debian 운영체제를 설치하고 싶습니다.
ubuntu 운영체제는 아래 주소에서 다운받았는데, 이중 debian 운영체제는 없었습니다.
https://wiki.radxa.com/Rock5/downloads
어디에서 rock 5b 보드에서 동작가능한 debian 운영체제를 다운로드 할 수 있나요?

these are debian header and debian kernel

you can download debian image from here:

6.1 don’t supports 8852-dkms. Are you using Debian 11?

I did it with apt unattended…

Not that I know of debian11… used the radxa image of debian12

https://wiki.radxa.com/Rock5/downloads

The only acceptable and most common standard would be the arrmbian image but this image seems to have a NIC driver problem as the NIC vanishes on an upgrade…

I skip it and try the 100++ (in my life) other image going through the armbian community.

and it looks like I am lucky with the:
Armbian_24.8.1_Rock-5b_bookworm_vendor_6.1.75_xfce_desktop.img

고맙습니다.
덕분에 커널 코드 수정에 대한 방향을 확인할 수 있었습니다.(uname -r)

5.10.110-15-rockchip

VVVVVV

5.10.110-999-rockchip

다음에도 문제가 생길 경우 도움을 요청할 수 있을까요?