range Pi User Manual Copyright reserved by Shenzhen Xunlong Software Co., Ltd
298
└── u-boot
├── LICENSE
├── orangepi-3b-rk3566_defconfig
└── platform_install.sh
3 directories, 6 files
7) When the orangepi-bulid compilation system compiles the u-boot source code, it will
first synchronize the u-boot source code with the u-boot source code of the github server,
so if you want to modify the u-boot source code, you first need to turn off the download
and update function of the source code (This function needs to be fully compiled once
u-boot, otherwise it will prompt that the source code of u-boot cannot be found. If
the source code package downloaded from Baidu cloud disk, there is no such
problem, because the source code of u-boot is all cached), otherwise the changes made
will be reverted, the method is as follows:
Set the IGNORE_UPDATES variable in userpatches/config-default.conf to "yes"
test@test:~/orangepi-build$ vim userpatches/config-default.conf
IGNORE_UPDATES="yes"
8) When debugging u-boot code, you can use the following method to update u-boot in
the Linux image for testing
a. Upload the compiled u-boot deb package to the Linux system of the
development board
test@test:~/orangepi-build$ cd output/debs/u-boot
test@test:~/orangepi_build/output/debs/u-boot$ scp \
linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb root@192.168.1.xxx:/root
b. Then log in to the development board and uninstall the deb package of u-boot
installed
root@orangepi:~# apt purge -y linux-u-boot-orangepi3b-legacy
c. Install the new u-boot deb package just uploaded
root@orangepi:~# dpkg -i linux-u-boot-legacy-orangepi3b_1.0.0_arm64.deb
d. Then run the nand-sata-install script
root@orangepi:~# nand-sata-install
e. Then select 5 Install/Update the bootloader on SD/eMMC to update the
u-boot in the TF card or 7 Install/Update the bootloader on SPI Flash to