hikey: fix 'invalid partition' error during recovery

After trying to use upstream EDK2 on my HiKey board without success,
I reached a point where even 'make recovery' would not make the board
bootable again. The recovery process failed like so:

 $ make recovery
 [...]
 Waiting for device... [35][34][33][32][31][30][29][28][27][26][25][24][23][22][21][20][19][18]
 Sending /home/jerome/work/optee_repo_hikey/build/../l-loader/recovery.bin ...
 Done

 fastboot flash loader /home/jerome/work/optee_repo_hikey/build/../l-loader/l-loader.bin
 < waiting for any device >
 Sending 'loader' (39 KB)                           FAILED (remote: 'invalid partition')
 fastboot: error: Command failed
 make: *** [Makefile:351: recovery] Error 1

The solution to this problem is mentioned in [1] and consists in
running 'fastboot getvar partition-size:ptable' before the fastboot
flash command.

Link: [1] https://github.com/96boards/documentation/issues/751.
Signed-off-by: Jerome Forissier <jerome@forissier.org>
Acked-by: Victor Chong <victor.chong@linaro.org>
1 file changed
tree: 10dc7bce9527e1e129b57fd397d669a8c201bc23
  1. .github/
  2. br-ext/
  3. fvp/
  4. imx/
  5. kconfigs/
  6. qemu_v8/
  7. rpi3/
  8. ti/
  9. zynqmp/
  10. .gitignore
  11. am43xx.mk
  12. am57xx.mk
  13. common.mk
  14. dra7xx.mk
  15. fvp.mk
  16. get_clang.sh
  17. hikey.mk
  18. hikey960.mk
  19. imx.mk
  20. juno.mk
  21. poplar.mk
  22. qemu-check.exp
  23. qemu.mk
  24. qemu_v8.mk
  25. README.md
  26. rpi3.mk
  27. stm32mp1.mk
  28. synquacer.mk
  29. toolchain.mk
  30. verdin.mk
  31. zynqmp.mk
README.md

OP-TEE build.git

This git contains makefiles etc to be able to build a full OP-TEE developer setup for the OP-TEE project.

All official OP-TEE documentation has moved to http://optee.readthedocs.io. The pages that used to be here in this git can be found under build and Device specific information at he new location for the OP-TEE documentation.

// OP-TEE core maintainers