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