aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'board/boundary/nitrogen6x/README.mx6qsabrelite')
-rw-r--r--board/boundary/nitrogen6x/README.mx6qsabrelite119
1 files changed, 83 insertions, 36 deletions
diff --git a/board/boundary/nitrogen6x/README.mx6qsabrelite b/board/boundary/nitrogen6x/README.mx6qsabrelite
index 12a9c856cf..6283c9575e 100644
--- a/board/boundary/nitrogen6x/README.mx6qsabrelite
+++ b/board/boundary/nitrogen6x/README.mx6qsabrelite
@@ -1,72 +1,119 @@
1U-Boot for the Freescale i.MX6q SabreLite board 1U-Boot for the Freescale i.MX6q SabreLite board
2===============================================
2 3
3This file contains information for the port of U-Boot to the Freescale 4This file contains information for the port of U-Boot to the Freescale
4i.MX6q SabreLite board. 5i.MX6q SabreLite board.
5 6
61. Boot source, boot from SD card
7---------------------------------
8 7
9The recent mainline U-Boot for the Freescale i.MX6q SabreLite board supports 81. Build
10boot from SD card only. However, by default, the SabreLite 9--------
11boards boot from the SPI NOR flash. These boards need to be reflashed with 10
12a small SD card loader to support boot from SD card. This small SD card loader 11To build U-Boot for the SabreLite board:
13will be flashed into the SPI NOR. The board will still boot from SPI NOR, but 12
14the loader will in turn request the BootROM to load the U-Boot from SD card. 13 make mx6qsabrelite_config
14 make
15
16
172. Boot from SD card
18--------------------
19
20The SabreLite boards boot from the SPI NOR flash. These boards need their SPI
21to be reflashed with a small SD card loader to support boot from SD card. The
22board will still boot from SPI NOR, but the loader will in turn request the
23BootROM to load the U-Boot from SD card.
15 24
16The SD card loader is available from 25The SD card loader is available from
17 26
18https://wiki.linaro.org/Boards/MX6QSabreLite 27https://wiki.linaro.org/Boards/MX6QSabreLite
19 28
20under a open-source 3-clause BSD license. 29This is provided under a open-source 3-clause BSD license.
21 30
22To update the SPI-NOR on the SabreLite board without the Freescale 31To following procedure can be used to update the SPI-NOR on the SabreLite
23manufacturing tool use the following procedure: 32board:
24 33
251. Write this SD card loader onto a large SD card using: 341. Write this SD card loader onto a large SD card using:
26 35
27 sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sXx 36 sudo dd if=iMX6DQ_SPI_to_uSDHC3.bin of=/dev/sXx
28 37
29Note: Replace sXx with the device representing the SD card in your system. 38 Note: Replace sXx with the device representing the SD card in your system.
30 39
31Note: This writes SD card loader at address 0 40 Note: This writes SD card loader at address 0
32 41
332. Put this SD card into the slot for the large SD card (SD3 on the bottom of 422. Put this SD card into the slot for the large SD card (SD3 on the bottom of
34the board). Make sure SW1 switch is at position "00", so that it can boot 43 the board). Make sure SW1 switch is at position "00", so that it can boot
35from the fuses. 44 from the fuses.
36 45
373. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot 463. 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 47 (the default one the board is shipped with, starting from the SPI NOR) and
39enter the following commands: 48 enter the following commands:
49
50 MX6Q SABRELITE U-Boot > mmc dev 0
51 MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200
52 MX6Q SABRELITE U-Boot > sf probe
53 MX6Q SABRELITE U-Boot > sf erase 0 0x40000
54 MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000
40 55
41 MX6Q SABRELITE U-Boot > mmc dev 0 564. Write the u-boot.imx produced during the U-Boot build to the SD card:
42 MX6Q SABRELITE U-Boot > mmc read 0x10800000 0 200
43 MX6Q SABRELITE U-Boot > sf probe
44 MX6Q SABRELITE U-Boot > sf erase 0 0x40000
45 MX6Q SABRELITE U-Boot > sf write 0x10800000 0 0x40000
46 57
474. done. 58 sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2 && sudo sync
48 59
49In case you somehow do not succeed with this procedure you will have to use 60 Note: Replace sXx with the device representing the SD card in your system.
50the Freescale manufacturing tool in order to reflash the SPI-NOR. 61
625. Re-insert the SD card back in the slot for the large SD card and power-cycle
63 the board.
51 64
52Note: The board now boots from full size SD3 on the bottom of the board. NOT 65Note: 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 66 the micro SD4/BOOT slot on the top of the board. I.e. you have to use
54 full size SD cards. 67 full size SD cards.
55 68
56This information is taken from 69This information originally taken from:
57 70
58https://wiki.linaro.org/Boards/MX6QSabreLite 71 https://wiki.linaro.org/Boards/MX6QSabreLite
59 72
602. Build
61--------
62 73
63To build U-Boot for the SabreLite board: 743. Boot from SPI NOR
75--------------------
64 76
65 make mx6qsabrelite_config 77The SabreLite board can also boot U-Boot directly from the SPI NOR flash:
66 make 78
791. Power-up the SabreLite, press 'space' to enter command mode in the U-Boot
80 and enter the following commands:
81
82 => mmc dev 0
83 => mmc read 0x10800000 0x400 0x80000
84 => sf probe 0
85 => sf erase 0 0xc0000
86 => sf write 0x10800000 0x400 0x80000
87
88Note: This procedure assumes you have booted using the desired U-Boot from an
89 SD card as prepared in the previous section. Alternative mechanisms, such
90 as using tftpboot to copy an alternative U-Boot image into memory can
91 also be used.
92
93
944. Recovering SPI-NOR
95---------------------
96
97In case you somehow do not succeed with this procedure you can upload U-Boot
98via USB:
99
1001. Download and install the imx_loader following the instructions provided:
101
102 https://github.com/boundarydevices/imx_usb_loader
103
1042. Connect the board to USB via the USB OTG port.
105
1063. Make sure SW1 switch is at position "01", so that it can boot from USB OTG.
107
1084. Power-up the SabreLite and run the imx_loader to upload the U-Boot image:
109
110 sudo imx_usb u-boot.imx
111
112Note: This will upload and run the U-Boot image in memory, the SPI will not be
113 reprogrammed and this procedure will need to be repeated if the board is
114 reset.
67 115
68To copy the resulting u-boot.imx to the SD card: 1165. Use one of previous descriptions to re-flash the SPI-NOR as required.
69 117
70 sudo dd if=u-boot.imx of=/dev/sXx bs=512 seek=2&&sudo sync 1186. Ensure SW1 is returned to "00" to boot from the fuses once done.
71 119
72Note: Replace sXx with the device representing the SD card in your system.