X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fcongatec%2Fcgtqmx6eval%2FREADME;h=0777c781c26f15934008b98e6a9d9596b6aaca6a;hb=9c6115822e894ead72fa4c094bf718eaabb9e103;hp=5e76d2ac5e8a3ecec1eb203cbbffb7b4759619bd;hpb=3be2bdf5dc69b3142c1162a59bc67191c9077567;p=oweals%2Fu-boot.git diff --git a/board/congatec/cgtqmx6eval/README b/board/congatec/cgtqmx6eval/README index 5e76d2ac5e..0777c781c2 100644 --- a/board/congatec/cgtqmx6eval/README +++ b/board/congatec/cgtqmx6eval/README @@ -1,28 +1,74 @@ -U-Boot for the Congatec Conga-QEVAl Evaluation Carrier board with -qmx6 quad module. +U-Boot for the Congatec QMX6 boards This file contains information for the port of U-Boot to the Congatec -Conga-QEVAl Evaluation Carrier board with qmx6 quad module. +QMX6 boards. -1. Boot source, boot from SD card +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 --------------------------------- -By default, the Congatec board can boot only from the SPI-NOR. -But, with the u-boot version provided with the board you can write boot -registers to force the board to reboot and boot from the SD slot. If -"bmode" command is not available from your pre-installed u-boot, these -instruction will produce the same effect: +Copy SPL and u-boot.img to the exported TFTP directory of the +host PC (/tftpboot , for example). + +=> sf probe + +=> setenv serverip + +=> setenv ipaddr + +=> tftp 0x12000000 SPL + +=> sf erase 0x0 0x10000 + +=> sf write 0x12000000 0x400 0x10000 + +=> 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. -conga-QMX6 U-Boot > mw.l 0x20d8040 0x3850 -conga-QMX6 U-Boot > mw.l 0x020d8044 0x10000000 -conga-QMX6 U-Boot > reset -resetting ... +It is also possible to boot from the SD card slot by using the 'bmode' +command: -The the board will reboot and, if you have written your SD correctly -the board will use u-boot that live into the SD +=> bmode esdhc4 -To copy the resulting u-boot.imx to the SD card: +And then the U-Boot from the big slot will boot. - dd if=u-boot.imx of=/dev/xxx bs=512 seek=2 +Note: If the "bmode" command is not available from your pre-installed U-Boot, +these instruction will produce the same effect: -Note: Replace xxx with the device representing the SD card in your system. +=> mw.l 0x20d8040 0x3850 +=> mw.l 0x020d8044 0x10000000 +=> reset