Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 1 | How to Update U-Boot on Warp board |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 2 | ---------------------------------- |
| 3 | |
| 4 | Required software on the host PC: |
| 5 | |
| 6 | - imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader |
| 7 | |
| 8 | - dfu-util: http://dfu-util.sourceforge.net/releases/ |
| 9 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 10 | Build U-Boot for Warp: |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 11 | |
| 12 | $ make mrproper |
| 13 | $ make warp_config |
| 14 | $ make |
| 15 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 16 | This will generate the U-Boot binary called u-boot.imx. |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 17 | |
| 18 | Put warp board in USB download mode |
| 19 | |
| 20 | Connect a USB to serial adapter between the host PC and warp |
| 21 | |
| 22 | Connect a USB cable between the OTG warp port and the host PC |
| 23 | |
| 24 | Open a terminal program such as minicom |
| 25 | |
| 26 | Copy u-boot.imx to the imx_usb_loader folder. |
| 27 | |
| 28 | Load u-boot.imx via USB: |
| 29 | |
| 30 | $ sudo ./imx_usb u-boot.imx |
| 31 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 32 | Then U-Boot should start and its messages will appear in the console program. |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 33 | |
| 34 | Use the default environment variables: |
| 35 | |
| 36 | => env default -f -a |
Fabio Estevam | 68006ae | 2015-05-27 01:11:48 -0300 | [diff] [blame] | 37 | => saveenv |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 38 | |
| 39 | Run the DFU command: |
| 40 | => dfu 0 mmc 0 |
| 41 | |
| 42 | Transfer u-boot.imx that will be flashed into the eMMC: |
| 43 | |
| 44 | $ sudo dfu-util -D u-boot.imx -a boot |
| 45 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 46 | Then on the U-Boot prompt the following message should be seen after a |
Fabio Estevam | e719cdd | 2015-05-12 13:19:06 -0300 | [diff] [blame] | 47 | successful upgrade: |
Fabio Estevam | 1f9d1cf | 2015-03-02 12:57:22 -0300 | [diff] [blame] | 48 | |
| 49 | #DOWNLOAD ... OK |
| 50 | Ctrl+C to exit ... |
| 51 | |
| 52 | Remove power from the warp board. |
| 53 | |
| 54 | Put warp board into normal boot mode |
| 55 | |
Bin Meng | a187559 | 2016-02-05 19:30:11 -0800 | [diff] [blame] | 56 | Power up the board and the new updated U-Boot should boot from eMMC |