Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 1 | U-Boot for the Freescale i.MX6q SabreLite board |
| 2 | |
| 3 | This file contains information for the port of U-Boot to the Freescale |
| 4 | i.MX6q SabreLite board. |
| 5 | |
| 6 | 1. Boot source, boot from SD card |
| 7 | --------------------------------- |
| 8 | |
| 9 | The recent mainline U-Boot for the Freescale i.MX6q SabreLite board supports |
Dirk Behme | 03dc0bb | 2012-02-12 21:29:47 +0000 | [diff] [blame] | 10 | boot from SD card only. However, by default, the SabreLite |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 11 | boards boot from the SPI NOR flash. These boards need to be reflashed with |
| 12 | a small SD card loader to support boot from SD card. This small SD card loader |
| 13 | will be flashed into the SPI NOR. The board will still boot from SPI NOR, but |
| 14 | the loader will in turn request the BootROM to load the U-Boot from SD card. |
Dirk Behme | 03dc0bb | 2012-02-12 21:29:47 +0000 | [diff] [blame] | 15 | |
| 16 | The SD card loader is available from |
| 17 | |
| 18 | https://wiki.linaro.org/Boards/MX6QSabreLite |
| 19 | |
| 20 | under a open-source 3-clause BSD license. |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 21 | |
| 22 | To update the SPI-NOR on the SabreLite board without the Freescale |
| 23 | manufacturing tool use the following procedure: |
| 24 | |
| 25 | 1. Write this SD card loader onto a large SD card using: |
| 26 | |
Dirk Behme | 03dc0bb | 2012-02-12 21:29:47 +0000 | [diff] [blame] | 27 | sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sXx |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 28 | |
| 29 | Note: Replace sXx with the device representing the SD card in your system. |
| 30 | |
| 31 | Note: This writes SD card loader at address 0 |
| 32 | |
| 33 | 2. Put this SD card into the slot for the large SD card (SD3 on the bottom of |
Fabio Estevam | 70c633f | 2012-03-29 02:22:50 +0000 | [diff] [blame] | 34 | the board). Make sure SW1 switch is at position "00", so that it can boot |
| 35 | from the fuses. |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 36 | |
| 37 | 3. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot |
| 38 | (the default one the board is shipped with, starting from the SPI NOR) and |
| 39 | enter the following commands: |
| 40 | |
| 41 | MX6Q SABRELITE U-Boot > mmc dev 0 |
| 42 | MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200 |
Javier Martinez Canillas | adfb488 | 2013-04-02 23:57:23 +0000 | [diff] [blame] | 43 | MX6Q SABRELITE U-Boot > sf probe |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 44 | MX6Q SABRELITE U-Boot > sf erase 0 0x40000 |
| 45 | MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000 |
| 46 | |
| 47 | 4. done. |
| 48 | |
| 49 | In case you somehow do not succeed with this procedure you will have to use |
| 50 | the Freescale manufacturing tool in order to reflash the SPI-NOR. |
| 51 | |
| 52 | Note: The board now boots from full size SD3 on the bottom of the board. NOT |
| 53 | the micro SD4/BOOT slot on the top of the board. I.e. you have to use |
| 54 | full size SD cards. |
| 55 | |
| 56 | This information is taken from |
| 57 | |
| 58 | https://wiki.linaro.org/Boards/MX6QSabreLite |
| 59 | |
| 60 | 2. Build |
| 61 | -------- |
| 62 | |
| 63 | To build U-Boot for the SabreLite board: |
| 64 | |
| 65 | make mx6qsabrelite_config |
Fabio Estevam | eb31a40 | 2013-03-20 04:07:58 +0000 | [diff] [blame] | 66 | make |
Jason Liu | 0238468 | 2011-12-29 06:34:19 +0000 | [diff] [blame] | 67 | |
| 68 | To copy the resulting u-boot.imx to the SD card: |
| 69 | |
| 70 | sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2&&sudo sync |
| 71 | |
| 72 | Note: Replace sXx with the device representing the SD card in your system. |