u-boot-brain/board/congatec/cgtqmx6eval
Michael Schanz a1ed155298 cgtqmx6eval: fix pad configuration for SPI bus
Use the macro SETUP_IOMUX_PAD(...) rather than imx_iomux_v3_setup_multiple_pads(...) in order to setup
the pin configuration for ECSPI1.

ARRAY_SIZE(pads) provides the wrong size for imx_iomux_v3_setup_multiple_pads(pads, ARRAY_SIZE(pads)) in
case of MX6QDL. In the particular case, the content of GPR12 is overwritten and the IPG/AHB/ATB/ATP clocks
are deactivated. Therefore, the connection to the system via JTAG is not possible anymore. Furthermore,
kernel version 3.0.35 hangs during bootprocess in the function etm_init().

Signed-off-by: Michael Schanz <michael.schanz@congatec.com>
Acked-by: Otavio Salvador <otavio@ossystems.com.br>
2016-01-03 15:28:56 +01:00
..
cgtqmx6eval.c cgtqmx6eval: fix pad configuration for SPI bus 2016-01-03 15:28:56 +01:00
Kconfig mx6: remove SYS_SOC from board Kconfig 2015-09-13 10:37:29 +02:00
MAINTAINERS cgtqmx6eval: Fix defconfig name 2015-12-07 14:48:02 +01:00
Makefile board: arm: convert makefiles to Kbuild style 2013-11-01 11:42:12 -04:00
README cgtqmx6eval: Add SPL support 2015-11-25 09:41:29 +01:00

U-Boot for the Congatec QMX6 boards

This file contains information for the port of U-Boot to the Congatec
QMX6 boards.

1. Building U-boot
------------------

- Build U-boot for Congatec QMX6 boards:

$ make mrproper
$ make cgtqmx6eval_defconfig
$ make

This will generate the following binaries:

- SPL
- u-boot.img

2. Flashing U-boot in the SPI NOR
---------------------------------

Copy SPL and u-boot.img to the exported TFTP directory of the
host PC (/tftpboot , for example).

=> sf probe

=> tftp 0x12000000 SPL

=> sf erase 0x0 0x10000

=> sf write 0x12000000 0x400 0x100

=> tftp 0x12000000 u-boot.img

=> sf erase 0x10000 0x70000

=> sf write 0x12000000 0x10000 0x70000

Reboot the board and the new U-boot should come up.

3. Booting from the SD card
---------------------------

- Flash the SPL image into the SD card:

sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync

- Flash the u-boot.img image into the SD card:

sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync

- Insert the SD card into the big slot.

The boot medium of Congatec QMX6 boards is the SPI NOR flash, so boot
the board from SPI first.

It is also possible to boot from the SD card slot by using the 'bmode'
command:

=> bmode esdhc4

And then the U-boot from the big slot will boot.

Note: If the "bmode" command is not available from your pre-installed U-boot,
these instruction will produce the same effect:

=> mw.l 0x20d8040 0x3850
=> mw.l 0x020d8044 0x10000000
=> reset