docs: stm32mp1: complete compilation and flashing steps
authorYann Gautier <yann.gautier@st.com>
Wed, 24 Oct 2018 08:50:12 +0000 (10:50 +0200)
committerYann Gautier <yann.gautier@st.com>
Wed, 24 Oct 2018 08:50:12 +0000 (10:50 +0200)
Add U-Boot compilation information.
Add a chapter about how to populate SD-card.

Signed-off-by: Yann Gautier <yann.gautier@st.com>
docs/plat/stm32mp1.rst

index 9e731a4195e76d5be42c0b4e2d5efc0f5607f05c..f8379b4ebe0da01b1fc09c1b7d308ac68dcddc52 100644 (file)
@@ -76,7 +76,23 @@ To build:
 .. code:: bash
 
     make CROSS_COMPILE=arm-linux-gnueabihf- PLAT=stm32mp1 ARCH=aarch32 ARM_ARCH_MAJOR=7 AARCH32_SP=sp_min
+    cd <u-boot_directory>
+    make stm32mp15_basic_defconfig
+    make DEVICE_TREE=stm32mp157c_ev1 all
+    ./tools/mkimage -T stm32image -a 0xC0100000 -e 0xC0100000 -d u-boot.bin u-boot.stm32
 
 The following build options are supported:
 
 - ``ENABLE_STACK_PROTECTOR``: To enable the stack protection.
+
+
+Populate SD-card
+----------------
+
+The SD-card has to be formated with GPT.
+It should contain at least those partitions:
+
+- fsbl: to copy the tf-a-stm32mp157c-ev1.stm32 binary
+- ssbl: to copy the u-boot.stm32 binary
+
+Usually, two copies of fsbl are used (fsbl1 and fsbl2) instead of one partition fsbl.