mx6ul_14x14_evk.rst 2.4 KB

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