blob: 1d736dc3515194026d85f540c392c4b695b38f45 [file] [log] [blame]
Otavio Salvadord7140352015-11-19 19:02:36 -02001U-Boot for the Congatec QMX6 boards
SARTRE Leo9b75bad2013-06-03 23:30:36 +00002
3This file contains information for the port of U-Boot to the Congatec
Otavio Salvadord7140352015-11-19 19:02:36 -02004QMX6 boards.
SARTRE Leo9b75bad2013-06-03 23:30:36 +00005
Otavio Salvadord7140352015-11-19 19:02:36 -020061. Building U-boot
7------------------
8
9- Build U-boot for Congatec QMX6 boards:
10
11$ make mrproper
12$ make cgtqmx6eval_defconfig
13$ make
14
15This will generate the following binaries:
16
17- SPL
18- u-boot.img
19
202. Flashing U-boot in the SPI NOR
SARTRE Leo9b75bad2013-06-03 23:30:36 +000021---------------------------------
22
Otavio Salvadord7140352015-11-19 19:02:36 -020023Copy SPL and u-boot.img to the exported TFTP directory of the
24host PC (/tftpboot , for example).
SARTRE Leo9b75bad2013-06-03 23:30:36 +000025
Otavio Salvadord7140352015-11-19 19:02:36 -020026=> sf probe
SARTRE Leo9b75bad2013-06-03 23:30:36 +000027
Otavio Salvadord7140352015-11-19 19:02:36 -020028=> tftp 0x12000000 SPL
SARTRE Leo9b75bad2013-06-03 23:30:36 +000029
Otavio Salvadord7140352015-11-19 19:02:36 -020030=> sf erase 0x0 0x10000
SARTRE Leo9b75bad2013-06-03 23:30:36 +000031
Otavio Salvadord7140352015-11-19 19:02:36 -020032=> sf write 0x12000000 0x400 0x100
SARTRE Leo9b75bad2013-06-03 23:30:36 +000033
Otavio Salvadord7140352015-11-19 19:02:36 -020034=> tftp 0x12000000 u-boot.img
35
36=> sf erase 0x10000 0x70000
37
38=> sf write 0x12000000 0x10000 0x70000
39
40Reboot the board and the new U-boot should come up.
41
423. Booting from the SD card
43---------------------------
44
45- Flash the SPL image into the SD card:
46
47sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
48
49- Flash the u-boot.img image into the SD card:
50
51sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
52
53- Insert the SD card into the big slot.
54
55The boot medium of Congatec QMX6 boards is the SPI NOR flash, so boot
56the board from SPI first.
57
58It is also possible to boot from the SD card slot by using the 'bmode'
59command:
60
61=> bmode esdhc4
62
63And then the U-boot from the big slot will boot.
64
65Note: If the "bmode" command is not available from your pre-installed U-boot,
66these instruction will produce the same effect:
67
68=> mw.l 0x20d8040 0x3850
69=> mw.l 0x020d8044 0x10000000
70=> reset