blob: 3e57ba1ee81ca933a0a7420e4b04637904946936 [file] [log] [blame]
Peng Fan12518a52020-10-14 17:12:09 +08001.. SPDX-License-Identifier: GPL-2.0+
2
3mx6ul_14x14_evk
4===============
5
Bin Meng75574052016-02-05 19:30:11 -08006How to use U-Boot on Freescale MX6UL 14x14 EVK
Fabio Estevam73916242015-09-08 14:43:12 -03007-----------------------------------------------
8
Bin Meng75574052016-02-05 19:30:11 -08009- Build U-Boot for MX6UL 14x14 EVK:
Fabio Estevam73916242015-09-08 14:43:12 -030010
Peng Fan12518a52020-10-14 17:12:09 +080011.. code-block:: bash
12
13 $ make mrproper
14 $ make mx6ul_14x14_evk_defconfig
15 $ make
Fabio Estevam73916242015-09-08 14:43:12 -030016
17This will generate the SPL image called SPL and the u-boot.img.
18
Breno Matheus Lima24af0b92019-07-18 20:44:31 +0000191. Booting via SDCard
20---------------------
21
Fabio Estevam73916242015-09-08 14:43:12 -030022- Flash the SPL image into the micro SD card:
23
Peng Fan12518a52020-10-14 17:12:09 +080024.. code-block:: bash
25
26 sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1 conv=notrunc; sync
Fabio Estevam73916242015-09-08 14:43:12 -030027
28- Flash the u-boot.img image into the micro SD card:
29
Peng Fan12518a52020-10-14 17:12:09 +080030.. code-block:: bash
Fabio Estevam73916242015-09-08 14:43:12 -030031
Peng Fan12518a52020-10-14 17:12:09 +080032 sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69 conv=notrunc; sync
Fabio Estevam73916242015-09-08 14:43:12 -030033
Peng Fan12518a52020-10-14 17:12:09 +080034- Jumper settings::
35
36 SW601: 0 0 1 0
37 Sw602: 1 0
Fabio Estevam73916242015-09-08 14:43:12 -030038
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.
Peng Fan12518a52020-10-14 17:12:09 +080043 The USB console connector is the one close the push buttons
Fabio Estevam73916242015-09-08 14:43:12 -030044
Peng Fan12518a52020-10-14 17:12:09 +080045- Insert the micro SD card in the board, power it up and U-Boot messages should come up.
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000046
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
Peng Fan12518a52020-10-14 17:12:09 +080052set as below::
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000053
Peng Fan12518a52020-10-14 17:12:09 +080054 Sw602: 0 1
55 SW601: x x x x
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000056
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
Peng Fan12518a52020-10-14 17:12:09 +080067.. code-block:: bash
68
69 $ cat uuu_script
70 uuu_version 1.1.4
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000071
Peng Fan12518a52020-10-14 17:12:09 +080072 SDP: boot -f SPL
73 SDPU: write -f u-boot-dtb.img -addr 0x877fffc0
74 SDPU: jump -addr 0x877fffc0
75 SDPU: done
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000076
Simon Glass72cc5382022-10-20 18:22:39 -060077Please note that the address above is calculated based on TEXT_BASE address:
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000078
Simon Glass72cc5382022-10-20 18:22:39 -0600790x877fffc0 = 0x87800000 (TEXT_BASE) - 0x40 (U-Boot proper Header size)
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000080
81Power on the target and run the following command from U-Boot root directory:
82
Peng Fan12518a52020-10-14 17:12:09 +080083.. code-block:: bash
84
85 $ sudo ./uuu uuu_script
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000086
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
Peng Fan12518a52020-10-14 17:12:09 +080095.. code-block:: bash
96
97 $ sudo ./imx_usb SPL
98 $ sudo ./imx_usb u-boot-dtb.img