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