1*d7140351SOtavio SalvadorU-Boot for the Congatec QMX6 boards
29b75bad0SSARTRE Leo
39b75bad0SSARTRE LeoThis file contains information for the port of U-Boot to the Congatec
4*d7140351SOtavio SalvadorQMX6 boards.
59b75bad0SSARTRE Leo
6*d7140351SOtavio Salvador1. Building U-boot
7*d7140351SOtavio Salvador------------------
8*d7140351SOtavio Salvador
9*d7140351SOtavio Salvador- Build U-boot for Congatec QMX6 boards:
10*d7140351SOtavio Salvador
11*d7140351SOtavio Salvador$ make mrproper
12*d7140351SOtavio Salvador$ make cgtqmx6eval_defconfig
13*d7140351SOtavio Salvador$ make
14*d7140351SOtavio Salvador
15*d7140351SOtavio SalvadorThis will generate the following binaries:
16*d7140351SOtavio Salvador
17*d7140351SOtavio Salvador- SPL
18*d7140351SOtavio Salvador- u-boot.img
19*d7140351SOtavio Salvador
20*d7140351SOtavio Salvador2. Flashing U-boot in the SPI NOR
219b75bad0SSARTRE Leo---------------------------------
229b75bad0SSARTRE Leo
23*d7140351SOtavio SalvadorCopy SPL and u-boot.img to the exported TFTP directory of the
24*d7140351SOtavio Salvadorhost PC (/tftpboot , for example).
259b75bad0SSARTRE Leo
26*d7140351SOtavio Salvador=> sf probe
279b75bad0SSARTRE Leo
28*d7140351SOtavio Salvador=> tftp 0x12000000 SPL
299b75bad0SSARTRE Leo
30*d7140351SOtavio Salvador=> sf erase 0x0 0x10000
319b75bad0SSARTRE Leo
32*d7140351SOtavio Salvador=> sf write 0x12000000 0x400 0x100
339b75bad0SSARTRE Leo
34*d7140351SOtavio Salvador=> tftp 0x12000000 u-boot.img
35*d7140351SOtavio Salvador
36*d7140351SOtavio Salvador=> sf erase 0x10000 0x70000
37*d7140351SOtavio Salvador
38*d7140351SOtavio Salvador=> sf write 0x12000000 0x10000 0x70000
39*d7140351SOtavio Salvador
40*d7140351SOtavio SalvadorReboot the board and the new U-boot should come up.
41*d7140351SOtavio Salvador
42*d7140351SOtavio Salvador3. Booting from the SD card
43*d7140351SOtavio Salvador---------------------------
44*d7140351SOtavio Salvador
45*d7140351SOtavio Salvador- Flash the SPL image into the SD card:
46*d7140351SOtavio Salvador
47*d7140351SOtavio Salvadorsudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
48*d7140351SOtavio Salvador
49*d7140351SOtavio Salvador- Flash the u-boot.img image into the SD card:
50*d7140351SOtavio Salvador
51*d7140351SOtavio Salvadorsudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
52*d7140351SOtavio Salvador
53*d7140351SOtavio Salvador- Insert the SD card into the big slot.
54*d7140351SOtavio Salvador
55*d7140351SOtavio SalvadorThe boot medium of Congatec QMX6 boards is the SPI NOR flash, so boot
56*d7140351SOtavio Salvadorthe board from SPI first.
57*d7140351SOtavio Salvador
58*d7140351SOtavio SalvadorIt is also possible to boot from the SD card slot by using the 'bmode'
59*d7140351SOtavio Salvadorcommand:
60*d7140351SOtavio Salvador
61*d7140351SOtavio Salvador=> bmode esdhc4
62*d7140351SOtavio Salvador
63*d7140351SOtavio SalvadorAnd then the U-boot from the big slot will boot.
64*d7140351SOtavio Salvador
65*d7140351SOtavio SalvadorNote: If the "bmode" command is not available from your pre-installed U-boot,
66*d7140351SOtavio Salvadorthese instruction will produce the same effect:
67*d7140351SOtavio Salvador
68*d7140351SOtavio Salvador=> mw.l 0x20d8040 0x3850
69*d7140351SOtavio Salvador=> mw.l 0x020d8044 0x10000000
70*d7140351SOtavio Salvador=> reset
71