[fastboot] support `erase userdata` as a no-op

A common Android workflow is to pass `-w` to fastboot which triggers an
`erase userdata` command; we can't really support this at the moment
because userdata is nested inside the FVM/super image and gets
automatically erased when we flash that partition, but we've been asked
to ignore this request rather than error out.

Bug: b/322897225
Change-Id: I0ca301c723ae9b5d7057e9b472e0bc1f40b5597d
Reviewed-on: https://turquoise-internal-review.googlesource.com/c/third_party/u-boot/+/803950
Reviewed-by: Yecheng Zhao <zyecheng@google.com>
GitOrigin-RevId: 77d68b2c514684a1848243941640f25453b0ee0f
1 file changed
tree: c6ba5c9075040387ebb6f4736ede4edec263b2e0
  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
  39. Makefile
  40. mk
  41. README
  42. README.md
  43. snapshot.commit

SPDX-License-Identifier: GPL-2.0+


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


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