1*4882a593SmuzhiyunU-Boot for the Congatec QMX6 boards 2*4882a593Smuzhiyun 3*4882a593SmuzhiyunThis file contains information for the port of U-Boot to the Congatec 4*4882a593SmuzhiyunQMX6 boards. 5*4882a593Smuzhiyun 6*4882a593Smuzhiyun1. Building U-Boot 7*4882a593Smuzhiyun------------------ 8*4882a593Smuzhiyun 9*4882a593Smuzhiyun- Build U-Boot for Congatec QMX6 boards: 10*4882a593Smuzhiyun 11*4882a593Smuzhiyun$ make mrproper 12*4882a593Smuzhiyun$ make cgtqmx6eval_defconfig 13*4882a593Smuzhiyun$ make 14*4882a593Smuzhiyun 15*4882a593SmuzhiyunThis will generate the following binaries: 16*4882a593Smuzhiyun 17*4882a593Smuzhiyun- SPL 18*4882a593Smuzhiyun- u-boot.img 19*4882a593Smuzhiyun 20*4882a593Smuzhiyun2. Flashing U-Boot in the SPI NOR 21*4882a593Smuzhiyun--------------------------------- 22*4882a593Smuzhiyun 23*4882a593SmuzhiyunCopy SPL and u-boot.img to the exported TFTP directory of the 24*4882a593Smuzhiyunhost PC (/tftpboot , for example). 25*4882a593Smuzhiyun 26*4882a593Smuzhiyun=> sf probe 27*4882a593Smuzhiyun 28*4882a593Smuzhiyun=> setenv serverip <server_ip_address> 29*4882a593Smuzhiyun 30*4882a593Smuzhiyun=> setenv ipaddr <board_ip_address> 31*4882a593Smuzhiyun 32*4882a593Smuzhiyun=> tftp 0x12000000 SPL 33*4882a593Smuzhiyun 34*4882a593Smuzhiyun=> sf erase 0x0 0x10000 35*4882a593Smuzhiyun 36*4882a593Smuzhiyun=> sf write 0x12000000 0x400 0x10000 37*4882a593Smuzhiyun 38*4882a593Smuzhiyun=> tftp 0x12000000 u-boot.img 39*4882a593Smuzhiyun 40*4882a593Smuzhiyun=> sf erase 0x10000 0x70000 41*4882a593Smuzhiyun 42*4882a593Smuzhiyun=> sf write 0x12000000 0x10000 0x70000 43*4882a593Smuzhiyun 44*4882a593SmuzhiyunReboot the board and the new U-Boot should come up. 45*4882a593Smuzhiyun 46*4882a593Smuzhiyun3. Booting from the SD card 47*4882a593Smuzhiyun--------------------------- 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun- Flash the SPL image into the SD card: 50*4882a593Smuzhiyun 51*4882a593Smuzhiyunsudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync 52*4882a593Smuzhiyun 53*4882a593Smuzhiyun- Flash the u-boot.img image into the SD card: 54*4882a593Smuzhiyun 55*4882a593Smuzhiyunsudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync 56*4882a593Smuzhiyun 57*4882a593Smuzhiyun- Insert the SD card into the big slot. 58*4882a593Smuzhiyun 59*4882a593SmuzhiyunThe boot medium of Congatec QMX6 boards is the SPI NOR flash, so boot 60*4882a593Smuzhiyunthe board from SPI first. 61*4882a593Smuzhiyun 62*4882a593SmuzhiyunIt is also possible to boot from the SD card slot by using the 'bmode' 63*4882a593Smuzhiyuncommand: 64*4882a593Smuzhiyun 65*4882a593Smuzhiyun=> bmode esdhc4 66*4882a593Smuzhiyun 67*4882a593SmuzhiyunAnd then the U-Boot from the big slot will boot. 68*4882a593Smuzhiyun 69*4882a593SmuzhiyunNote: If the "bmode" command is not available from your pre-installed U-Boot, 70*4882a593Smuzhiyunthese instruction will produce the same effect: 71*4882a593Smuzhiyun 72*4882a593Smuzhiyun=> mw.l 0x20d8040 0x3850 73*4882a593Smuzhiyun=> mw.l 0x020d8044 0x10000000 74*4882a593Smuzhiyun=> reset 75