User:Minou/Arm64/YY3568

From Gentoo Wiki
< User:Minou‎ | Arm64
Jump to:navigation Jump to:search

Just starting

Build u-boot

Here it is assumed that the directory travail already exists
We create a arm64/yy3568 directory 
Look in Makefile and match the name of u-boot with what you see in Makefile

user $cd $HOME/travail/arm64
user $mkdir yy3568
user $cd yy3568
user $mv u-boot u-boot-2025-04-rc1
user $cd trusted-firmware-a
user $make realclean
user $export ROCKCHIP_TPL=/home/michel/travail/arm64/yy3568/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.23.bin
user $export BL31=/home/michel/travail/arm64/yy3568/trusted-firmware-a/build/rk3568/release/bl31/bl31.elf
user $cd ../u-boot-2025-04-rc1
user $make clean
user $make rock-3a-rk3568_defconfig
user $make CROSS_COMPILE=aarch64-unknown-linux-gnu-
user $cd ..

Build Kernel

youyeetoo doesn't have a working 6.x kernel yet
We can try to create one later
user $cd $HOME/travail/arm64/yy3568
user $cd yy3568-linux-kernel.5.10
user $make ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- distclean
user $make ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- rk3568-yy3568_defconfig
If you want to modify the default .config use menuconfig
You may want to adjust the number of cores to use
If you use too many cores you won't be able to do anything else
user $make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- menuconfig
user $make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- Image modules
This one fails to completely compile at this time. It tries to compile too many dts
I need to find the correct dts file and remove the other ones in the Makefile
user $make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-unknown-linux-gnu- dtbs