Since the upstream U-Boot started to support Orange Pi 3B since https://github.com/u-boot/u-boot/commit/a52099b4a2ae9e8cafc79268325249bcad308012, I am going too stop maintaining the patches in this repo.
Please refer to the upstream implementation and report bugs to the upstream. Thanks!
U-Boot patched for Orange Pi 3B.
Unlikely Xunlong's U-Boot, this U-Boot is based on the mainline U-Boot, and it is much more up-to-date.
Install dependencies:
aarch64-linux-gnu-gcc
toolchaingcc
toolchain for your host environment
And then:
$ git clone https://github.com/w568w/u-boot-orangepi-3b --recursive
$ cd u-boot-orangepi-3b
$ ./orangepi-3b-build.sh
You only need the built u-boot-rockchip.bin
file. #
means you need root permission to execute commands:
# dd if=u-boot-rockchip.bin of=<your-sd-card> seek=64
# sync
Also check U-Boot's documentation about Rockchip.
Okay, you can keep up with the mainline by:
$ git remote add upstream https://github.com/u-boot/u-boot
$ git fetch upstream
$ git merge upstream/master
You may need to resolve some conflicts; follow the instructions by Git.