README 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. U-Boot for the Congatec QMX6 boards
  2. This file contains information for the port of U-Boot to the Congatec
  3. QMX6 boards.
  4. 1. Building U-Boot
  5. ------------------
  6. - Build U-Boot for Congatec QMX6 boards:
  7. $ make mrproper
  8. $ make cgtqmx6eval_defconfig
  9. $ make
  10. This will generate the following binaries:
  11. - SPL
  12. - u-boot.img
  13. 2. Flashing U-Boot in the SPI NOR
  14. ---------------------------------
  15. Copy SPL and u-boot.img to the exported TFTP directory of the
  16. host PC (/tftpboot , for example).
  17. => sf probe
  18. => setenv serverip <server_ip_address>
  19. => setenv ipaddr <board_ip_address>
  20. => tftp 0x12000000 SPL
  21. => sf erase 0x0 0x10000
  22. => sf write 0x12000000 0x400 0x10000
  23. => tftp 0x12000000 u-boot.img
  24. => sf erase 0x10000 0x70000
  25. => sf write 0x12000000 0x10000 0x70000
  26. Reboot the board and the new U-Boot should come up.
  27. 3. Booting from the SD card
  28. ---------------------------
  29. - Flash the SPL image into the SD card:
  30. sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
  31. - Flash the u-boot.img image into the SD card:
  32. sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
  33. - Insert the SD card into the big slot.
  34. The boot medium of Congatec QMX6 boards is the SPI NOR flash, so boot
  35. the board from SPI first.
  36. It is also possible to boot from the SD card slot by using the 'bmode'
  37. command:
  38. => bmode esdhc4
  39. And then the U-Boot from the big slot will boot.
  40. Note: If the "bmode" command is not available from your pre-installed U-Boot,
  41. these instruction will produce the same effect:
  42. => mw.l 0x20d8040 0x3850
  43. => mw.l 0x020d8044 0x10000000
  44. => reset