From 84286c22e6c6de03cd2749ef9d103fb9b79279ad Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:07:57 -0300 Subject: README: mx28_common: Keep the text within 80 columns In order to improve readability keep the text within 80 columns. Signed-off-by: Fabio Estevam Signed-off-by: Fabio Estevam Signed-off-by: Fabio Estevam --- doc/README.mx28_common | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'doc') diff --git a/doc/README.mx28_common b/doc/README.mx28_common index 8bacaf8a5e..ac824193e3 100644 --- a/doc/README.mx28_common +++ b/doc/README.mx28_common @@ -63,9 +63,9 @@ means "/usr/local/bin/" has to be in your $PATH. 2) Compiling U-Boot for a MX28 based board ------------------------------------------- -Compiling the U-Boot for a MX28 board is straightforward and done as compiling U-Boot -for any other ARM device. For cross-compiler setup, please refer to ELDK5.0 -documentation. First, clean up the source code: +Compiling the U-Boot for a MX28 board is straightforward and done as compiling +U-Boot for any other ARM device. For cross-compiler setup, please refer to +ELDK5.0 documentation. First, clean up the source code: $ make mrproper @@ -150,8 +150,8 @@ NOTE: If the user needs to adjust the start sector, the "mxsboot" tool contains 4) Installation of U-Boot into NAND flash ----------------------------------------- -To boot a MX28 based board from NAND, set the boot mode DIP switches according to i.MX28 -manual chapter 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V. +To boot a MX28 based board from NAND, set the boot mode DIP switches according +to i.MX28 manual chapter 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V. There are two possibilities when preparing an image writable to NAND flash. -- cgit v1.2.3 From 3f5e2e2a7db13dda7b656bbddda10b9cd0d2c871 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:07:58 -0300 Subject: README: mx28_common: Do not hardcode the SSP port MX28 can boot from SSP0 or SSP1, so it is better not to hardcode the SSP port in the instructions. Signed-off-by: Fabio Estevam --- doc/README.mx28_common | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doc') diff --git a/doc/README.mx28_common b/doc/README.mx28_common index ac824193e3..bba2440922 100644 --- a/doc/README.mx28_common +++ b/doc/README.mx28_common @@ -100,9 +100,7 @@ discussed in the following chapters. ----------------------------------------------------------- To boot a MX28 based board from SD, set the boot mode DIP switches according -to i.MX28 manual chapter 12.2.1 (Table 12-2), PORT=SSP0, SD/MMC master on -SSP0, 3.3V. - +to i.MX28 manual chapter 12.2.1 (Table 12-2). An SD card the i.MX28 CPU can use to boot U-Boot must contain a DOS partition table, which in turn carries a partition of special type and which contains a -- cgit v1.2.3 From 7333eca5f4929be6ea75de86ba95f129f06ead62 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:07:59 -0300 Subject: README: mx28_common: Fix structure of sentence Re-structure the sentence a bit so that it can clearer. Signed-off-by: Fabio Estevam --- doc/README.mx28_common | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'doc') diff --git a/doc/README.mx28_common b/doc/README.mx28_common index bba2440922..5289ee4597 100644 --- a/doc/README.mx28_common +++ b/doc/README.mx28_common @@ -102,10 +102,9 @@ discussed in the following chapters. To boot a MX28 based board from SD, set the boot mode DIP switches according to i.MX28 manual chapter 12.2.1 (Table 12-2). -An SD card the i.MX28 CPU can use to boot U-Boot must contain a DOS partition -table, which in turn carries a partition of special type and which contains a -special header. The rest of partitions in the DOS partition table can be used -by the user. +The SD card used to boot U-Boot must contain a DOS partition table, which in +turn carries a partition of special type and which contains a special header. +The rest of partitions in the DOS partition table can be used by the user. To prepare such partition, use your favourite partitioning tool. The partition must have the following parameters: -- cgit v1.2.3 From 54965b61360f888bd576b80fe8c4e3882616479f Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:08:00 -0300 Subject: README: mxs: Introduce README.mxs Create a README.mxs file that contains instructions on how to use U-boot for both MX23 and MX28. As boot from NAND has only been tested on mx28, make it clear that it only applies to MX28. While at it, do some small cleanups for the sake of consistency: - Use "MX28" instead of "i.MX28" - Use "section" instead of "chapter" when referring to specific parts of the reference manual chapters. Signed-off-by: Fabio Estevam --- doc/README.m28 | 4 ++-- doc/README.mx28_common | 60 ++++++++++++++++++++++++++++++-------------------- doc/README.mx28evk | 3 +-- 3 files changed, 39 insertions(+), 28 deletions(-) (limited to 'doc') diff --git a/doc/README.m28 b/doc/README.m28 index 2a92226feb..cb3ae20f86 100644 --- a/doc/README.m28 +++ b/doc/README.m28 @@ -9,5 +9,5 @@ arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 board/denx/m28evk/ - M28EVK board specific files include/configs/m28evk.h - M28EVK configuration file -Follow the instructions from doc/README.mx28_common to generate a bootable SD -card or to boot from NAND flash. +Follow the instructions from doc/README.mxs to generate a bootable SD card or to +boot from NAND flash. diff --git a/doc/README.mx28_common b/doc/README.mx28_common index 5289ee4597..5d9e72f958 100644 --- a/doc/README.mx28_common +++ b/doc/README.mx28_common @@ -1,12 +1,15 @@ -Booting U-boot on a MX28 processor -================================== +Booting U-boot on a MXS processor +================================= -This document describes the MX28 U-Boot port. This document mostly -covers topics related to making the module/board bootable. +This document describes the MXS U-Boot port. This document mostly covers topics +related to making the module/board bootable. Terminology ----------- +The term "MXS" refers to a family of Freescale SoCs that is composed by MX23 +and MX28. + The dollar symbol ($) introduces a snipped of shell code. This shall be typed into the unix command prompt in U-Boot source code root directory. @@ -17,16 +20,16 @@ Contents -------- 1) Prerequisites -2) Compiling U-Boot for a MX28 based board -3) Installation of U-Boot for a MX28 based board to SD card -4) Installation of U-Boot into NAND flash +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 1) Prerequisites ---------------- -To make a MX28 based board bootable, some tools are necessary. The first one -is the "elftosb" tool distributed by Freescale Semiconductor. The other one -is the "mxsboot" tool found in U-Boot source tree. +To make a MXS based board bootable, some tools are necessary. The first one is +the "elftosb" tool distributed by Freescale Semiconductor. The other one is the +"mxsboot" tool found in U-Boot source tree. Firstly, obtain the elftosb archive from the following location: @@ -60,18 +63,18 @@ copy the binary by hand: Make sure the "elftosb" binary can be found in your $PATH, in this case this means "/usr/local/bin/" has to be in your $PATH. -2) Compiling U-Boot for a MX28 based board +2) Compiling U-Boot for a MXS based board ------------------------------------------- -Compiling the U-Boot for a MX28 board is straightforward and done as compiling +Compiling the U-Boot for a MXS board is straightforward and done as compiling U-Boot for any other ARM device. For cross-compiler setup, please refer to ELDK5.0 documentation. First, clean up the source code: $ make mrproper -Next, configure U-Boot for a MX28 based board +Next, configure U-Boot for a MXS based board - $ make _config + $ make _config Examples: @@ -83,8 +86,16 @@ Examples: $ make mx28evk_config +3. For building U-boot for Freescale MX23EVK board: + + $ make mx23evk_config + +4. For building U-boot for Olimex MX23 Olinuxino board: + + $ make mx23_olinuxino_config + Lastly, compile U-Boot and prepare a "BootStream". The "BootStream" is a special -type of file, which the i.MX28 CPU can boot. This is handled by the following +type of file, which MXS CPUs can boot. This is handled by the following command: $ make u-boot.sb @@ -96,11 +107,12 @@ The code produces "u-boot.sb" file. This file needs to be augmented with a proper header to allow successful boot from SD or NAND. Adding the header is discussed in the following chapters. -3) Installation of U-Boot for a MX28 based board to SD card ------------------------------------------------------------ +3) Installation of U-Boot for a MXS based board to SD card +---------------------------------------------------------- -To boot a MX28 based board from SD, set the boot mode DIP switches according -to i.MX28 manual chapter 12.2.1 (Table 12-2). +To boot a MXS based board from SD, set the boot mode DIP switches according to +to MX28 manual, section 12.2.1 (Table 12-2) or MX23 manual, section 35.1.2 +(Table 35-3). The SD card used to boot U-Boot must contain a DOS partition table, which in turn carries a partition of special type and which contains a special header. @@ -138,17 +150,17 @@ case, we assume the first partition of the SD card is /dev/mmcblk0p1: $ dd if=u-boot.sd of=/dev/mmcblk0p1 -Last step is to insert the card into MX28 based board and boot. +Last step is to insert the card into the MXS based board and boot. NOTE: If the user needs to adjust the start sector, the "mxsboot" tool contains a "-p" switch for that purpose. The "-p" switch takes the sector number as an argument. -4) Installation of U-Boot into NAND flash ------------------------------------------ +4) Installation of U-Boot into NAND flash on a MX28 based board +--------------------------------------------------------------- To boot a MX28 based board from NAND, set the boot mode DIP switches according -to i.MX28 manual chapter 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V. +to MX28 manual section 12.2.1 (Table 12-2), PORT=GPMI, NAND 1.8 V. There are two possibilities when preparing an image writable to NAND flash. @@ -211,7 +223,7 @@ There are two possibilities when preparing an image writable to NAND flash. -------------------------------------------- There is a slight possibility of the user wanting to adjust the STRIDE and COUNT options of the NAND boot. For description of these, - see i.MX28 manual section 12.12.1.2 and 12.12.1.3. + see MX28 manual section 12.12.1.2 and 12.12.1.3. The update scripts take this possibility into account. In case the user changes STRIDE by blowing fuses, the user also has to change diff --git a/doc/README.mx28evk b/doc/README.mx28evk index 76db474bfb..524f3fc494 100644 --- a/doc/README.mx28evk +++ b/doc/README.mx28evk @@ -41,7 +41,6 @@ Note: The mx28evk board does not come with a NAND flash populated from the factory. It comes with an empty slot (U23), which allows the insertion of a 48-pin TSOP flash device. -Follow the instructions from doc/README.mx28_common to generate a bootable SD -card. +Follow the instructions from doc/README.mxs to generate a bootable SD card. Insert the SD card in slot 0, power up the board and U-boot will boot. -- cgit v1.2.3 From 17f3f366528230da68e08b3b01a048fefa4c5752 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:08:01 -0300 Subject: mx28evk: Move README file inside board directory Board specific READMEs should be located inside the respective board directory. Signed-off-by: Fabio Estevam --- doc/README.mx28evk | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 doc/README.mx28evk (limited to 'doc') diff --git a/doc/README.mx28evk b/doc/README.mx28evk deleted file mode 100644 index 524f3fc494..0000000000 --- a/doc/README.mx28evk +++ /dev/null @@ -1,46 +0,0 @@ -FREESCALE MX28EVK -================== - -Supported hardware: only MX28EVK rev D is supported in U-boot. - -Files of the MX28EVK port --------------------------- - -arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28 -arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 -board/freescale/mx28evk/ - MX28EVK board specific files -include/configs/mx28evk.h - MX28EVK configuration file - -Jumper configuration ---------------------- - -To boot MX28EVK from an SD card, set the boot mode DIP switches as: - - * Boot Mode Select: 1 0 0 1 (Boot from SD card Slot 0 - U42) - * JTAG PSWITCH RESET: To the right (reset disabled) - * Battery Source: Down - * Wall 5V: Up - * VDD 5V: To the left (off) - * Hold Button: Down (off) - - -Environment Storage -------------------- - -There are two targets for mx28evk: - -"make mx28evk_config" - store enviroment variables into MMC - -or - -"make mx28evk_nand_config" - store enviroment variables into NAND flash - -Choose the target accordingly. - -Note: The mx28evk board does not come with a NAND flash populated from the -factory. It comes with an empty slot (U23), which allows the insertion of a -48-pin TSOP flash device. - -Follow the instructions from doc/README.mxs to generate a bootable SD card. - -Insert the SD card in slot 0, power up the board and U-boot will boot. -- cgit v1.2.3 From 53071888898aa9d8ee32137abfe34336a928d8e9 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Fri, 3 May 2013 15:08:02 -0300 Subject: m28evk: Move README file inside board directory Board specific READMEs should be located inside the respective board directory. Signed-off-by: Fabio Estevam --- doc/README.m28 | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 doc/README.m28 (limited to 'doc') diff --git a/doc/README.m28 b/doc/README.m28 deleted file mode 100644 index cb3ae20f86..0000000000 --- a/doc/README.m28 +++ /dev/null @@ -1,13 +0,0 @@ -DENX M28EVK -=========== - -Files of the M28/M28EVK port ----------------------------- - -arch/arm/cpu/arm926ejs/mxs/ - The CPU support code for the Freescale i.MX28 -arch/arm/include/asm/arch-mxs/ - Header files for the Freescale i.MX28 -board/denx/m28evk/ - M28EVK board specific files -include/configs/m28evk.h - M28EVK configuration file - -Follow the instructions from doc/README.mxs to generate a bootable SD card or to -boot from NAND flash. -- cgit v1.2.3