Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 1 | How to use U-Boot on Freescale MX6UL 14x14 EVK |
Fabio Estevam | 7391624 | 2015-09-08 14:43:12 -0300 | [diff] [blame] | 2 | ----------------------------------------------- |
| 3 | |
Bin Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 4 | - Build U-Boot for MX6UL 14x14 EVK: |
Fabio Estevam | 7391624 | 2015-09-08 14:43:12 -0300 | [diff] [blame] | 5 | |
| 6 | $ make mrproper |
| 7 | $ make mx6ul_14x14_evk_defconfig |
| 8 | $ make |
| 9 | |
| 10 | This will generate the SPL image called SPL and the u-boot.img. |
| 11 | |
Breno Matheus Lima | 24af0b9 | 2019-07-18 20:44:31 +0000 | [diff] [blame] | 12 | 1. Booting via SDCard |
| 13 | --------------------- |
| 14 | |
Fabio Estevam | 7391624 | 2015-09-08 14:43:12 -0300 | [diff] [blame] | 15 | - Flash the SPL image into the micro SD card: |
| 16 | |
| 17 | sudo 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 | |
| 21 | sudo dd if=u-boot.img of=/dev/mmcblk0 bs=1k seek=69; sync |
| 22 | |
| 23 | - Jumper settings: |
| 24 | |
| 25 | SW601: 0 0 1 0 |
| 26 | Sw602: 1 0 |
| 27 | |
| 28 | where 0 means bottom position and 1 means top position (from the |
| 29 | switch 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 Meng | 7557405 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 34 | - Insert the micro SD card in the board, power it up and U-Boot messages should |
Fabio Estevam | 7391624 | 2015-09-08 14:43:12 -0300 | [diff] [blame] | 35 | come up. |
Breno Matheus Lima | 24af0b9 | 2019-07-18 20:44:31 +0000 | [diff] [blame] | 36 | |
| 37 | 2. Booting via Serial Download Protocol (SDP) |
| 38 | --------------------------------------------- |
| 39 | |
| 40 | The mx6ulevk board can boot from USB OTG port using the SDP, target will |
| 41 | enter in SDP mode in case an SD Card is not connect or boot switches are |
| 42 | set as below: |
| 43 | |
| 44 | Sw602: 0 1 |
| 45 | SW601: x x x x |
| 46 | |
| 47 | The following tools can be used to boot via SDP, for both tools you must |
| 48 | connect an USB cable in USB OTG port. |
| 49 | |
| 50 | - Method 1: Universal Update Utility (uuu) |
| 51 | |
| 52 | The UUU binary can be downloaded in release tab from link below: |
| 53 | https://github.com/NXPmicro/mfgtools |
| 54 | |
| 55 | The 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 | |
| 65 | Please note that the address above is calculated based on SYS_TEXT_BASE address: |
| 66 | |
| 67 | 0x877fffc0 = 0x87800000 (SYS_TEXT_BASE) - 0x40 (U-Boot proper Header size) |
| 68 | |
| 69 | Power 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 | |
| 75 | The imx_usb_loader tool can be downloaded in link below: |
| 76 | https://github.com/boundarydevices/imx_usb_loader |
| 77 | |
| 78 | Build the source code and run the following commands from U-Boot root |
| 79 | directory: |
| 80 | |
| 81 | $ sudo ./imx_usb SPL |
| 82 | $ sudo ./imx_usb u-boot-dtb.img |