Building the Kernel rkr3.4 on Ubuntu (Crosscompile)

I’m having huge problems with building the older 3.4 kernel on either ubuntu-jammy, debian bullseye, debian bookworm.

In general I want to build it inside normal ubuntu-jammy (on a github-ci). But I have issues getting crosscompile to even remotely work, I tried the guides for rock3,rock4,rock5(which is strangely native ?!)

But all fail with a missing linker Using rockchip_linux_defconfig
scripts/Kconfig.include:40: linker ‘aarch64-none-linux-gnu-ld’ not found

I tried the linaio, native and rockchip crosscompilers, all give the same result.

Hi Raphael,

I had the same issue trying to build a kernel for Rock 5b so I did a: grep -r “aarch64-none-” * in the rk3588-sdk folder and found a couple mk files had that and just removed the “-none” and ran the build command again and it started building.

Hope this might help?

Cheers,
Rodney

Hi Raphael,

It might be better to get the aarch64-none- compilers :slight_smile:

wget https://dl.radxa.com/tools/linux/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.gz
sudo tar zxvf gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu.tar.gz -C /usr/local/

Reference: https://wiki.radxa.com/Rock5/guide/build-debian-from-debos-radxa

Cheers,
Rod