I have a raspberrypi 3B and want to compile and install a new kernel on it, but I only have an arch linux(x86_64) host to compile it on.
Following the official documentation I get stuck trying to crosscompile the kernel, it seems I'm missing the correct crosscompiler.
❯ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bcm2709_defconfig scripts/Kconfig.include:39: compiler 'arm-linux-gnueabihf-gcc' not found make: *** [scripts/kconfig/Makefile:88: bcm2709_defconfig] Error 1 make: *** [Makefile:603: bcm2709_defconfig] Error 2
The problem is that I don't know what to install, the package suggested in the documentation
crossbuild-essential-armhf doesn´t seem to exist in the official repositories neither in the AUR.
Does it have another name in the arch repositories? I installed
arm-none-eabi-gcc but it doesn't seem to be what i need. Looking into the arch wiki I found this page and it didn't help much but it gave me the impression that I need to build and compile my own crosscompiler. Is this the case? There are no readily available arm crosscompilers in arch linux?
Also, once I do manage to cross compile it, will I have problems with the different versions of packages (e.g. glibc) in arch vs in raspbian? if so, is there an easy way to deal with this?
Any help would be greatly appreciated