Close boot log information
In this guide, we will use the SDK path /home/ubuntu/Core3566 as an example. Please adjust the path to your actual SDK location.
1. Method for Modifying DDR Loader
Navigate to the DDR path according to your actual SDK absolute path.
To disable or switch off the print output in DDR Loader, you need to modify the UART print configuration in the file rkbin/tools/ddrbin_param.txt with the following parameter:
uart id=0xf # UART controller id, set to 0xf to disable printing
Run the compilation command.
./ddrbin_tool ddrbin_param.txt ../bin/rk35/rk3566_ddr_1056MHz_v1.16.bin
root@ubuntu:/home/ubuntu/Core3566/rkbin/tools# ./ddrbin_tool ddrbin_param.txt ../bin/rk35/rk3566_ddr_1056MHz_v1.16.bin
version v1.14 20221214
version 2
new bin config:
uart id: 15
modify end
2. Method for Modifying U-Boot
Enter the u-boot directory.
root@ubuntu:/home/ubuntu/Core3566/rkbin/tools# cd ../../u-boot
root@ubuntu:/home/ubuntu/Core3566/u-boot# cp ./configs/luckfox_rk356x_defconfig .config
root@ubuntu:/home/ubuntu/Core3566/u-boot# make menuconfigUse '/' to search.
Enter the search bar, input your search content, and press Enter.
Enter the search bar, input your search content, and press Enter.
Go to the corresponding option, press Y to enable the feature, and finally, Save.
Save the config.
make savedefconfig
cp defconfig ./configs/luckfox_rk356x_defconfig
3. Method for Modifying Kernel
Enter the kernel directory and search for the Luckfox device tree file.
root@ubuntu:/home/ubuntu/Core3566/u-boot# cd /home/ubuntu/Core3566/kernel/arch/arm64/boot/dts/rockchip
root@ubuntu:/home/ubuntu/Core3566/kernel/arch/arm64/boot/dts/rockchip# ls | grep luckfox*
core3566-luckfox-rk3566.dtsi
root@ubuntu:/home/ubuntu/Core3566/kernel/arch/arm64/boot/dts/rockchip# vim core3566-luckfox-rk3566.dtsiOpen it with an editor and delete the highlighted section in the device tree.
- Finally, change the status from status="okay"; to status="disabled";.
4. Image Compilation
Select the branch to compile, specifying whether to output the video signal via HDMI or MIPI DSI.
./build.sh lunch
Compile the image.
export RK_ROOTFS_SYSTEM=debian
./build.sh