commit | 38b279c9cc7c1661ac0f60e0b39fbfb943b28aac | [log] [tgz] |
---|---|---|
author | Yecheng Zhao <zyecheng@google.com> | Mon Apr 22 17:57:50 2024 -0700 |
committer | Yecheng Zhao <zyecheng@google.com> | Tue Apr 23 10:55:39 2024 -0700 |
tree | cf2ad282a1230440fc91c8ac194e6bad9acfb762 | |
parent | 3bb5d84606e72157178324a9132422740e28e772 [diff] |
Fix GPT initialization U-boot code requires a partition with size -1 to mark the end of partition list. This causes failure for the attempt to shrink the size of FVM from -1 (all remaining) to 28G. This CL fixes the GPT init logic to use a specified count instead of relying on size==-1. Bug: 335731188 Change-Id: I1d4a1caa942aca56c8c7b6209c3d634046428ed4 Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/834684 Reviewed-by: David Pursell <dpursell@google.com> GitOrigin-RevId: d26426b8ade9581893bf9a2df00396cd7bcc03d9
This is a version of u-boot, modified to support Fuchsia on the Khadas vim3
To build the vim3 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
Run the build script from repo root
./build_uboot_vim3_zircon.sh
You now have a build/u-boot.bin.unsigned
that you can flash to a target using fastboot.