Rockpi4c-rk-ubootimg fun!

Creating new extlinux.conf…
cp: cannot stat ‘/usr/lib/linux-image-4.4.213-rockchip64’: No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-extlinux exited with return code 1
dpkg: error processing package linux-image-4.4.154-111-rockchip-g39b306a41b2d (–configure):
installed linux-image-4.4.154-111-rockchip-g39b306a41b2d package post-installation script subprocess returned error exit status 1
Setting up mtd-utils (1:2.0.1-1) …
Setting up linux-firmware-image-4.4.154-111-rockchip-g39b306a41b2d (4.4.154-111-rockchip) …
Setting up libfile-fnmatch-perl (0.02-2+b6) …
dpkg: dependency problems prevent configuration of linux-4.4-latest:
linux-4.4-latest depends on linux-image-4.4.154-111-rockchip-g39b306a41b2d; however:
Package linux-image-4.4.154-111-rockchip-g39b306a41b2d is not configured yet.

dpkg: error processing package linux-4.4-latest (–configure):
dependency problems - leaving unconfigured
Setting up debsums (2.2.3) …
Setting up linux-headers-4.4.154-111-rockchip-g39b306a41b2d (4.4.154-111-rockchip) …
dpkg: dependency problems prevent configuration of rockpi4c-rk-ubootimg:
rockpi4c-rk-ubootimg depends on linux-4.4-latest (>= 4.4.154-105-rockchip); however:
Package linux-4.4-latest is not configured yet.

dpkg: error processing package rockpi4c-rk-ubootimg (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rockpi4c-rk-u-boot-latest:
rockpi4c-rk-u-boot-latest depends on rockpi4c-rk-ubootimg (= 2017.09-2697-ge41695afe3); however:
Package rockpi4c-rk-ubootimg is not configured yet.
Version of rockpi4c-rk-ubootimg on system, provided by rockpi4c-rk-ubootimg:all, is .

dpkg: error processing package rockpi4c-rk-u-boot-latest (–configure):
dependency problems - leaving unconfigured
Processing triggers for man-db (2.8.5-2) …
Errors were encountered while processing:
linux-image-4.4.154-111-rockchip-g39b306a41b2d
linux-4.4-latest
rockpi4c-rk-ubootimg
rockpi4c-rk-u-boot-latest
E: Sub-process /usr/bin/dpkg returned an error code (1)

root@sapphire:~# sudo apt-get install -y rockpi4c-rk-u-boot-latest
Reading package lists… Done
Building dependency tree
Reading state information… Done
rockpi4c-rk-u-boot-latest is already the newest version (2017.09-2697-ge41695afe3).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-4.4.154-111-rockchip-g39b306a41b2d (4.4.154-111-rockchip) …
update-initramfs: Generating /boot/initrd.img-4.4.154-111-rockchip-g39b306a41b2d
update-initramfs: Converting to u-boot format
Kernel configuration : earlyprintk console=ttyFIQ0,1500000n8 rw init=/sbin/init rootfstype=ext4 rootwait root=PARTUUID=B921B045-1DF0-41C3-AF44-4C6F280D3FAE

Creating new extlinux.conf…
cp: cannot stat ‘/usr/lib/linux-image-4.4.213-rockchip64’: No such file or directory
run-parts: /etc/kernel/postinst.d/zz-update-extlinux exited with return code 1
dpkg: error processing package linux-image-4.4.154-111-rockchip-g39b306a41b2d (–configure):
installed linux-image-4.4.154-111-rockchip-g39b306a41b2d package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-4.4-latest:
linux-4.4-latest depends on linux-image-4.4.154-111-rockchip-g39b306a41b2d; however:
Package linux-image-4.4.154-111-rockchip-g39b306a41b2d is not configured yet.

dpkg: error processing package linux-4.4-latest (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rockpi4c-rk-ubootimg:
rockpi4c-rk-ubootimg depends on linux-4.4-latest (>= 4.4.154-105-rockchip); however:
Package linux-4.4-latest is not configured yet.

dpkg: error processing package rockpi4c-rk-ubootimg (–configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of rockpi4c-rk-u-boot-latest:
rockpi4c-rk-u-boot-latest depends on rockpi4c-rk-ubootimg (= 2017.09-2697-ge41695afe3); however:
Package rockpi4c-rk-ubootimg is not configured yet.
Version of rockpi4c-rk-ubootimg on system, provided by rockpi4c-rk-ubootimg:all, is .

dpkg: error processing package rockpi4c-rk-u-boot-latest (–configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
linux-image-4.4.154-111-rockchip-g39b306a41b2d
linux-4.4-latest
rockpi4c-rk-ubootimg
rockpi4c-rk-u-boot-latest
E: Sub-process /usr/bin/dpkg returned an error code (1)

This is because linux-image and linux-headers packages Radxa provides for 4.4.154-111-rockchip-g39b306a41b2d for this board are built incorrectly (broken).

In my case I can’t compile against the kernel headers because some of the binaries in linux-headers-4.4.154-111-rockchip-g39b306a41b2d are compiled for x86 (!):

$ uname -a
Linux linaro-alip 4.4.154-111-rockchip-g39b306a41b2d #1 SMP Wed Jul 8 15:03:52 UTC 2020 aarch64 GNU/Linux

$ file /usr/src/linux-headers-4.4.154-111-rockchip-g39b306a41b2d/scripts/recordmcount
scripts/recordmcount.orig: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=0c0026551b4441d0dbfeba03e5a30477195cd988, not stripped

This was also mentioned in https://github.com/google-coral/edgetpu/issues/42#issuecomment-578393880 and (related) DKMS building error

@jack Radxa, can you provide fixed kernel support packages?

1 Like

I believe for ROCK Pi 4C, the kernel built host is ARM64 now, so this issue should no longer exist on the latest kernel package:

see: https://github.com/radxa/apt/issues/11