commit | 90a9a01a71b714a9c32aa19a09ae08d8c48e952f | [log] [tgz] |
---|---|---|
author | David Pursell <dpursell@google.com> | Mon Mar 04 08:50:48 2024 -0800 |
committer | David Pursell <dpursell@google.com> | Mon Mar 04 10:21:06 2024 -0800 |
tree | b2e5dd667957ae0adbf74c5de23531969985e558 | |
parent | e8257facb187c60b7bad8e3ff3eee55edd8eccc5 [diff] |
[vim3] fix `getvar partition-size:userdata` We partially support the "userdata" partition by allowing erase to be a no-op for the `fastboot -w` flag, but it doesn't actually exist on disk so querying `partition-size:userdata` hit a buggy code path. This code path is incorrect anyway, when a partition cannot be found we need to return a fastboot FAIL message, but the code was printing an error message inside the OKAY reponse instead which tricks the caller into thinking the contents should be a partition size. Bug: b/327961098 Change-Id: I46403152efcc12c617f5811674f438d4dab59323 Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/815490 Reviewed-by: Yecheng Zhao <zyecheng@google.com> GitOrigin-RevId: 642f58a81710552dd0d06e650e6a1bc330a6c4fd
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.