Rockpi4c-rk-ubootimg fun!

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