blob: 0498cba8cc9c79abc6916c0afc4ed3f47e3a2112 [file] [log] [blame]
Jason Liubc5833c2011-12-29 06:34:19 +00001U-Boot for the Freescale i.MX6q SabreLite board
2
3This file contains information for the port of U-Boot to the Freescale
4i.MX6q SabreLite board.
5
61. Boot source, boot from SD card
7---------------------------------
8
9The recent mainline U-Boot for the Freescale i.MX6q SabreLite board supports
Dirk Behme4e187fb2012-02-12 21:29:47 +000010boot from SD card only. However, by default, the SabreLite
Jason Liubc5833c2011-12-29 06:34:19 +000011boards boot from the SPI NOR flash. These boards need to be reflashed with
12a small SD card loader to support boot from SD card. This small SD card loader
13will be flashed into the SPI NOR. The board will still boot from SPI NOR, but
14the loader will in turn request the BootROM to load the U-Boot from SD card.
Dirk Behme4e187fb2012-02-12 21:29:47 +000015
16The SD card loader is available from
17
18https://wiki.linaro.org/Boards/MX6QSabreLite
19
20under a open-source 3-clause BSD license.
Jason Liubc5833c2011-12-29 06:34:19 +000021
22To update the SPI-NOR on the SabreLite board without the Freescale
23manufacturing tool use the following procedure:
24
251. Write this SD card loader onto a large SD card using:
26
Dirk Behme4e187fb2012-02-12 21:29:47 +000027 sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sXx
Jason Liubc5833c2011-12-29 06:34:19 +000028
29Note: Replace sXx with the device representing the SD card in your system.
30
31Note: This writes SD card loader at address 0
32
332. Put this SD card into the slot for the large SD card (SD3 on the bottom of
34the board)
35
363. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot
37(the default one the board is shipped with, starting from the SPI NOR) and
38enter the following commands:
39
40 MX6Q SABRELITE U-Boot > mmc dev 0
41 MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200
42 MX6Q SABRELITE U-Boot > sf probe 1
43 MX6Q SABRELITE U-Boot > sf erase 0 0x40000
44 MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000
45
464. done.
47
48In case you somehow do not succeed with this procedure you will have to use
49the Freescale manufacturing tool in order to reflash the SPI-NOR.
50
51Note: The board now boots from full size SD3 on the bottom of the board. NOT
52 the micro SD4/BOOT slot on the top of the board. I.e. you have to use
53 full size SD cards.
54
55This information is taken from
56
57https://wiki.linaro.org/Boards/MX6QSabreLite
58
592. Build
60--------
61
62To build U-Boot for the SabreLite board:
63
64 make mx6qsabrelite_config
65 make u-boot.imx
66
67To copy the resulting u-boot.imx to the SD card:
68
69 sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2&&sudo sync
70
71Note: Replace sXx with the device representing the SD card in your system.