blob: e101abe48c7892e6c0be2e99c642016968059719 [file] [log] [blame]
Bin Meng75574052016-02-05 19:30:11 -08001How to use U-Boot on Freescale MX6UL 14x14 EVK
Fabio Estevam73916242015-09-08 14:43:12 -03002-----------------------------------------------
3
Bin Meng75574052016-02-05 19:30:11 -08004- Build U-Boot for MX6UL 14x14 EVK:
Fabio Estevam73916242015-09-08 14:43:12 -03005
6$ make mrproper
7$ make mx6ul_14x14_evk_defconfig
8$ make
9
10This will generate the SPL image called SPL and the u-boot.img.
11
Breno Matheus Lima24af0b92019-07-18 20:44:31 +0000121. Booting via SDCard
13---------------------
14
Fabio Estevam73916242015-09-08 14:43:12 -030015- Flash the SPL image into the micro SD card:
16
17sudo dd if=SPL of=/dev/mmcblk0 bs=1k seek=1; sync
18
19- Flash the u-boot.img image into the micro SD card:
20
21sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync
22
23- Jumper settings:
24
25SW601: 0 0 1 0
26Sw602: 1 0
27
28where 0 means bottom position and 1 means top position (from the
29switch label numbers reference).
30
31- Connect the USB cable between the EVK and the PC for the console.
32(The USB console connector is the one close the push buttons)
33
Bin Meng75574052016-02-05 19:30:11 -080034- Insert the micro SD card in the board, power it up and U-Boot messages should
Fabio Estevam73916242015-09-08 14:43:12 -030035come up.
Breno Matheus Lima24af0b92019-07-18 20:44:31 +000036
372. Booting via Serial Download Protocol (SDP)
38---------------------------------------------
39
40The mx6ulevk board can boot from USB OTG port using the SDP, target will
41enter in SDP mode in case an SD Card is not connect or boot switches are
42set as below:
43
44Sw602: 0 1
45SW601: x x x x
46
47The following tools can be used to boot via SDP, for both tools you must
48connect an USB cable in USB OTG port.
49
50- Method 1: Universal Update Utility (uuu)
51
52The UUU binary can be downloaded in release tab from link below:
53https://github.com/NXPmicro/mfgtools
54
55The following script should be created to boot SPL + u-boot-dtb.img binaries:
56
57 $ cat uuu_script
58 uuu_version 1.1.4
59
60 SDP: boot -f SPL
61 SDPU: write -f u-boot-dtb.img -addr 0x877fffc0
62 SDPU: jump -addr 0x877fffc0
63 SDPU: done
64
65Please note that the address above is calculated based on SYS_TEXT_BASE address:
66
670x877fffc0 = 0x87800000 (SYS_TEXT_BASE) - 0x40 (U-Boot proper Header size)
68
69Power on the target and run the following command from U-Boot root directory:
70
71 $ sudo ./uuu uuu_script
72
73- Method 2: imx usb loader tool (imx_usb):
74
75The imx_usb_loader tool can be downloaded in link below:
76https://github.com/boundarydevices/imx_usb_loader
77
78Build the source code and run the following commands from U-Boot root
79directory:
80
81 $ sudo ./imx_usb SPL
82 $ sudo ./imx_usb u-boot-dtb.img