summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorFrieder Schrempf <frieder.schrempf@kontron.de>2023-01-19 12:20:38 +0100
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>2023-01-27 18:31:59 +0100
commit888ff2eae7417c6fbc1521332836cbebb66d2af1 (patch)
tree74f7bab7819ba0dee9754b0651bf51ca77898591 /doc
parent5800fb8c7ad895fd1220288e4f0772d280d3f4d1 (diff)
downloadu-boot-888ff2eae7417c6fbc1521332836cbebb66d2af1.tar.gz
doc: sl-mx8mm: Add guide for copying the bootloader to SPI NOR
This adds a guide for copying the raw bootloader image on the SD card to the SPI NOR using U-Boot itself. Signed-off-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Diffstat (limited to 'doc')
-rw-r--r--doc/board/kontron/sl-mx8mm.rst34
1 files changed, 33 insertions, 1 deletions
diff --git a/doc/board/kontron/sl-mx8mm.rst b/doc/board/kontron/sl-mx8mm.rst
index b3e21d8538..8b29cbba67 100644
--- a/doc/board/kontron/sl-mx8mm.rst
+++ b/doc/board/kontron/sl-mx8mm.rst
@@ -92,7 +92,39 @@ Burn the flash.bin to SD card at an offset of 33 KiB:
Boot
^^^^
-Put the SD card in the slot on the board and apply power.
+Put the SD card in the slot on the board and apply power. Check the serial
+console for output.
+
+Flash the Bootloader to SPI NOR
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+1. Determine and note the exact size of the ``flash.bin`` image in bytes (e.g.
+ by running ``ls -l flash.bin``)
+
+2. On the U-Boot CLI copy the bootloader from SD card to RAM:
+
+ .. code-block::
+
+ mmc dev 1
+ mmc read $loadaddr 0x42 0x1000
+
+3. Erase the SPI NOR flash:
+
+ .. code-block::
+
+ sf probe
+ sf erase 0x0 0x200000
+
+4. Copy the bootloader from RAM to SPI NOR. For the last parameter of the
+ command, use the size determined in step 1 in **hexadecimal notation**:
+
+ .. code-block::
+
+ sf write $loadaddr 0x400 0x13B6F0
+
+.. note::
+
+ To be able to boot from SPI NOR the OTP fuses need to be set accordingly.
Further Information
-------------------