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