Fuchsia mirror of u-boot

Clone this repo:
  1. e11d1a2 Update README.md with vim3 instructions by Amit Uttamchandani · 1 year, 6 months ago master
  2. 209e70a Update README.md to recommend passing CROSS_COMPILE via env by Venkatesh Srinivas · 4 years, 3 months ago
  3. 8399d31 Improve README - link to gerrit, describe vim2 build process by Venkatesh Srinivas · 4 years, 6 months ago
  4. 74cacda Revert "test disregard, this should fail." by Travis Geiselbrecht · 4 years, 6 months ago
  5. 6ee0a5f test disregard, this should fail. by Travis Geiselbrecht · 4 years, 6 months ago

SPDX-License-Identifier: GPL-2.0+

u-boot

This is a version of u-boot, modified to support Fuchsia on the Khadas vim2, vim3, and NXP imx8mevk boards.

The master branch in this repository is empty.

Please check out one of the platform specific branches, like vim2 or imx8mevk for access to the source.

u-boot uses the Gerrit code review system to review and accept patches. Our instance is located at [https://third-party-mirror-review.googlesource.com/]. Please take a look at the CONTRIBUTING file and at that link if you're interested.

Building the vim3 bootloader

To build the vim3 bootloader for Fuchsia:

Prerequisites - arm and aarch64 toolchains. On Debian/Ubuntu systems, for example:

apt install gcc-arm-none-eabi gcc-aarch64-linux-gnu
  1. Check out the vim3 branch
git checkout --track remotes/origin/vim3
  1. Configure and build the bootloader by executing the helper script
./build_uboot_vim3_zircon.sh

You now have a build/u-boot.bin.unsigned that you can flash to a target with using fastboot.

Building the vim2 bootloader

To build the vim2 bootloader for Fuchsia:

Prerequisites - arm and aarch64 toolchains. On Debian/Ubuntu systems, for example:

apt-get install gcc-arm-none-eabi gcc-aarch64-linux-gnu
  1. Check out the vim2 branch
git checkout -b vim2 origin/vim2
  1. Configure the target
make kvim2_defconfig
  1. Build u-boot.bin
CROSS_COMPILE=aarch64-linux-gnu- make

You now have a u-boot.bin that you can flash to a target with using fastboot.