README 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. How to use U-Boot on Freescale MX6UL 14x14 EVK
  2. -----------------------------------------------
  3. - Build U-Boot for MX6UL 14x14 EVK:
  4. $ make mrproper
  5. $ make mx6ul_14x14_evk_defconfig
  6. $ make
  7. This will generate the SPL image called SPL and the u-boot.img.
  8. 1. Booting via SDCard
  9. ---------------------
  10. - Flash the SPL image into the micro SD card:
  11. sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
  12. - Flash the u-boot.img image into the micro SD card:
  13. sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
  14. - Jumper settings:
  15. SW601: 0 0 1 0
  16. Sw602: 1 0
  17. where 0 means bottom position and 1 means top position (from the
  18. switch label numbers reference).
  19. - Connect the USB cable between the EVK and the PC for the console.
  20. (The USB console connector is the one close the push buttons)
  21. - Insert the micro SD card in the board, power it up and U-Boot messages should
  22. come up.
  23. 2. Booting via Serial Download Protocol (SDP)
  24. ---------------------------------------------
  25. The mx6ulevk board can boot from USB OTG port using the SDP, target will
  26. enter in SDP mode in case an SD Card is not connect or boot switches are
  27. set as below:
  28. Sw602: 0 1
  29. SW601: x x x x
  30. The following tools can be used to boot via SDP, for both tools you must
  31. connect an USB cable in USB OTG port.
  32. - Method 1: Universal Update Utility (uuu)
  33. The UUU binary can be downloaded in release tab from link below:
  34. https://github.com/NXPmicro/mfgtools
  35. The following script should be created to boot SPL + u-boot-dtb.img binaries:
  36. $ cat uuu_script
  37. uuu_version 1.1.4
  38. SDP: boot -f SPL
  39. SDPU: write -f u-boot-dtb.img -addr 0x877fffc0
  40. SDPU: jump -addr 0x877fffc0
  41. SDPU: done
  42. Please note that the address above is calculated based on SYS_TEXT_BASE address:
  43. 0x877fffc0 = 0x87800000 (SYS_TEXT_BASE) - 0x40 (U-Boot proper Header size)
  44. Power on the target and run the following command from U-Boot root directory:
  45. $ sudo ./uuu uuu_script
  46. - Method 2: imx usb loader tool (imx_usb):
  47. The imx_usb_loader tool can be downloaded in link below:
  48. https://github.com/boundarydevices/imx_usb_loader
  49. Build the source code and run the following commands from U-Boot root
  50. directory:
  51. $ sudo ./imx_usb SPL
  52. $ sudo ./imx_usb u-boot-dtb.img