https://wiki.gentoo.org/wiki/Raspberry_ ... l#Overview
https://wiki.gentoo.org/wiki/Raspberry_ ... n_overview
Going with the guide for an rpi3 so far, and switching to the guide for an rpi4 when necessary (compiling the kernel). Now, I never used an rpi so this is a bit of a trouble for me. These are the steps I followed so far if it helps:
1.Get crossdev on my PC with
Code: Select all
emerge --ask sys-devel/crossdevCode: Select all
crossdev -t aarch64-unknown-linux-gnuCode: Select all
git clone -b stable --depth=1 https://github.com/raspberrypi/firmware4. Stay in the raspberry directory and
Code: Select all
git clone https://github.com/raspberrypi/linux5. cd linux
6. This might be worth mentioning, as I am not that experienced with git either. I did
Code: Select all
git checkout rpi-4.14.y Code: Select all
git checkout rpi-5.4.y7. I got over to the guide for rpi4 on this one to "cross-compile" the kernel. I used
Code: Select all
ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make bcm2711_defconfigCode: Select all
make[1]: *** No rule to make target 'scripts/kconfig/lexer.lex.c', needed by 'scripts/kconfig/lexer.lex.o'. Stop.
make: *** [Makefile:520: bcm2711_defconfig] Error 2Code: Select all
ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make bcmrpi3_defconfigCode: Select all
make[1]: *** No rule to make target 'scripts/kconfig/lexer.lex.c', needed by 'scripts/kconfig/lexer.lex.o'. Stop.
make: *** [Makefile:520: bcmrpi3_defconfig] Error 2Code: Select all
ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- make menuconfigCode: Select all
make[1]: *** No rule to make target 'scripts/kconfig/mconf-cfg', needed by 'scripts/kconfig/mconf.o'. Stop.
make: *** [Makefile:520: menuconfig] Error 2Note: All of this was done on my PC, which has an amd64 CPU.




