summaryrefslogtreecommitdiff
path: root/doc/README.mxs
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-06-10 00:03:59 -0300
committerStefano Babic <sbabic@denx.de>2014-06-17 16:39:10 +0200
commita81c90f4c8a7e77a0a6bf4b7288bf32f15d923a2 (patch)
tree25a406f052d1de5d0812f80193323f6685d0b8a2 /doc/README.mxs
parentd4c8258812ace8991faf6f66fb6d81f4546a749f (diff)
downloadu-boot-imx-a81c90f4c8a7e77a0a6bf4b7288bf32f15d923a2.zip
u-boot-imx-a81c90f4c8a7e77a0a6bf4b7288bf32f15d923a2.tar.gz
u-boot-imx-a81c90f4c8a7e77a0a6bf4b7288bf32f15d923a2.tar.bz2
mx28evk: Add documentation on how to boot from SPI NOR
Explain the necessary steps in order to boot from SPI NOR. Based on a earlier submission from Mårten Wikman. Signed-off-by: Mårten Wikman <marten.wikman@novia.fi> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Diffstat (limited to 'doc/README.mxs')
-rw-r--r--doc/README.mxs26
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/README.mxs b/doc/README.mxs
index 0235a5a..ed2e568 100644
--- a/doc/README.mxs
+++ b/doc/README.mxs
@@ -23,6 +23,7 @@ Contents
2) Compiling U-Boot for a MXS based board
3) Installation of U-Boot for a MXS based board to SD card
4) Installation of U-Boot into NAND flash on a MX28 based board
+5) Installation of U-boot into SPI NOR flash on a MX28 based board
1) Prerequisites
----------------
@@ -262,3 +263,28 @@ There are two possibilities when preparing an image writable to NAND flash.
In case the user needs to boot a firmware image bigger than 1Mb, the
user has to adjust the "update_nand_firmware_maxsz" variable for the
update scripts to work properly.
+
+5) Installation of U-Boot into SPI NOR flash on a MX28 based board
+------------------------------------------------------------------
+
+The u-boot.sb file can be directly written to SPI NOR from U-boot prompt.
+
+Load u-boot.sb into RAM, this can be done in several ways and one way is to use
+tftp:
+ => tftp u-boot.sb 0x42000000
+
+Probe the SPI NOR flash:
+ => sf probe
+
+(SPI NOR should be succesfully detected in this step)
+
+Erase the blocks where U-boot binary will be written to:
+ => sf erase 0x0 0x80000
+
+Write u-boot.sb to SPI NOR:
+ => sf write 0x42000000 0 0x80000
+
+Power off the board and set the boot mode DIP switches to boot from the SPI NOR
+according to MX28 manual section 12.2.1 (Table 12-2)
+
+Last step is to power up the board and U-boot should start from SPI NOR.