[efi] Expose eMMC boot partitions to GBL Register the "bootloader" raw partition on eMMC hardware partition 1 (boot0) using GBL_VENDOR_MEDIA_DEVICE_PATH_GUID, and mirror block writes to hardware partition 2 (boot1) starting at block offset 1. This allows GBL fastboot to query `partition-size:bootloader` and flash or stream-flash `bootloader` directly via `EFI_BLOCK_IO_PROTOCOL` when running `fx flash` or `ffx target flash` on VIM3. TAG=agy CONV=d6901459-7b8c-4e0a-8447-092869375046 Bug: 496295142 Bug: 565499464 Test: Verified fx flash and ffx target flash on VIM3 Change-Id: I34f454143a467bbd83911effbd53a508522c1ff1 Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/1678534 Reviewed-by: David Pursell <dpursell@google.com> Commit-Queue: Sergii Parubochyi <sergiip@google.com> GitOrigin-RevId: 615c25aa87d6ef89ecf5a60b1af5436d70778bfb
This is a version of u-boot, modified to support Fuchsia on the Khadas vim3
To build the vim3 bootloader for Fuchsia:
CIPD access. All build tools are downloaded to cipd_deps.
Run the build script from repo root
./fuchsia_build.py
Options:
--clean-cipd option can be used to make sure CIPD checkout is clean. It will remove cipd_deps directory and download dependencies again.--gbl-path <path> option specifies a path to a local GBL (gbl.efi) binary. If provided, CIPD GBL is not used; otherwise, the script downloads GBL from CIPD and uses gbl_aarch64_dev.efi.You now have a build/u-boot.bin.unsigned that you can flash to a target using fastboot.
go/fuchsia-firmware-licensing-publishing