building: stm32mp1: hint to fix GPT redundant data
Adds hint for using sgdisk to properly relocate the GPT redundant
data at the end of the storage media device.
Acked-by: Thomas Bourgoin <thomas.bourgoin@foss.st.com>
Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
diff --git a/building/devices/stm32mp1.rst b/building/devices/stm32mp1.rst
index 7d3a106..b58fe0b 100644
--- a/building/devices/stm32mp1.rst
+++ b/building/devices/stm32mp1.rst
@@ -57,6 +57,10 @@
$ make toolchains
$ make PLATFORM=stm32mp1-157C_DK2 all
$ dd if=../out/bin/sdcard.img of=/dev/sdX conv=fdatasync status=progress
+ $ sgdisk -e /dev/sdX
+
+Command ``sgdisk -e`` fixes the GPT backup data which location depends on
+storage device effective size.
.. _STM32MP135F-DK: https://www.st.com/en/evaluation-tools/stm32mp135f-dk.html
.. _STM32MP157A-DK1: https://www.st.com/en/evaluation-tools/stm32mp157a-dk1.html