]> git.sur5r.net Git - u-boot/blob - doc/README.mx6qsabrelite
Merge branch 'master' of git://git.denx.de/u-boot-cfi-flash
[u-boot] / doc / README.mx6qsabrelite
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
10 boot from SD card only. However, by default, the early version of SabreLite
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.
15 At the moment of writing, please check with Freescale on the availablity of
16 this small SD loader binary.
17
18 To update the SPI-NOR on the SabreLite board without the Freescale
19 manufacturing tool use the following procedure:
20
21 1. Write this SD card loader onto a large SD card using:
22
23  sudo dd if=MX6_SPI_to_SD_loader.bin of=/dev/sXx
24
25 Note: Replace sXx with the device representing the SD card in your system.
26
27 Note: This writes SD card loader at address 0
28
29 2. Put this SD card into the slot for the large SD card (SD3 on the bottom of
30 the board)
31
32 3. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot
33 (the default one the board is shipped with, starting from the SPI NOR) and
34 enter the following commands:
35
36  MX6Q SABRELITE U-Boot > mmc dev 0
37  MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200
38  MX6Q SABRELITE U-Boot > sf probe 1
39  MX6Q SABRELITE U-Boot > sf erase 0 0x40000
40  MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000
41
42 4. done.
43
44 In case you somehow do not succeed with this procedure you will have to use
45 the Freescale manufacturing tool in order to reflash the SPI-NOR.
46
47 Note: The board now boots from full size SD3 on the bottom of the board. NOT
48       the micro SD4/BOOT slot on the top of the board. I.e. you have to use
49       full size SD cards.
50
51 This information is taken from
52
53 https://wiki.linaro.org/Boards/MX6QSabreLite
54
55 2. Build
56 --------
57
58 To build U-Boot for the SabreLite board:
59
60  make mx6qsabrelite_config
61  make u-boot.imx
62
63 To copy the resulting u-boot.imx to the SD card:
64
65  sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2&&sudo sync
66
67 Note: Replace sXx with the device representing the SD card in your system.