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