vim3: fix `fastboot -w`

It looks like there are some other partitions that `fastboot -w` tries
to erase that we weren't handling; it's not yet clear why this seemed to
work fine previously but is broken now.

This CL switches to a better approach than faking out no-op erases. It
turns out fastboot will just skip these partitions as long as we don't
report their existence via `getvar partition-type:<name>`, so this
removes that variable for partitions we don't have.

Bug: b/341071781
Change-Id: I96d1768cec32950aafed59595ca912938e642219
Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/842330
Reviewed-by: Yecheng Zhao <zyecheng@google.com>
GitOrigin-RevId: bef1f30a7e3bf833ce2ba0e0468ce574f127dbd6
1 file changed
tree: 3f6de7d527065b7a6f72d0479b2737093074f1b1
  1. api/
  2. arch/
  3. bl2/
  4. bl30/
  5. bl31/
  6. bl31_1.3/
  7. board/
  8. common/
  9. configs/
  10. disk/
  11. doc/
  12. drivers/
  13. dts/
  14. examples/
  15. fip/
  16. fs/
  17. include/
  18. lib/
  19. Licenses/
  20. net/
  21. post/
  22. scripts/
  23. test/
  24. tools/
  25. vim3_aml_tools/
  26. .checkpatch.conf
  27. .clang-format
  28. .gitignore
  29. .mailmap
  30. amlogic_help.sh
  31. build_uboot_vim3_zircon.sh
  32. check_compile.sh
  33. config.mk
  34. fuchsia_upload.py
  35. Kbuild
  36. Kconfig
  37. MAINTAINERS
  38. MAKEALL
  39. Makefile
  40. mk
  41. README
  42. README.md
  43. snapshot.commit
README.md

SPDX-License-Identifier: GPL-2.0+

u-boot

This is a version of u-boot, modified to support Fuchsia on the Khadas vim3

Building vim3 Bootloader for Fuchsia

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.