Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 1 | How to Update U-Boot on Warp7 board |
| 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/ (if you are in a |
| 9 | Debian distribution then you can get it via libdfu-dev package) |
| 10 | |
| 11 | - libusb: http://libusb.org/ (if you are in a Debian distribution |
| 12 | then you can get it via libusb-dev and libusb-1.0-0-dev) |
| 13 | |
| 14 | In U-Boot folder, build U-Boot for Warp7: |
| 15 | |
| 16 | $ make mrproper |
| 17 | $ make warp7_config |
| 18 | $ make |
| 19 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 20 | This will generate the U-Boot binary called u-boot-dtb.imx. |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 21 | |
Wolfgang Denk | 0a50b3c | 2021-09-27 17:42:38 +0200 | [diff] [blame] | 22 | Put warp7 board in USB download mode: |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 23 | |
| 24 | Remove the CPU board from the base board then put switch 2 in the upper |
| 25 | position |
| 26 | |
| 27 | Connect a USB to serial adapter between the host PC and warp7 |
| 28 | |
| 29 | Connect a USB cable between the OTG warp7 port and the host PC |
| 30 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 31 | Copy u-boot-dtb.imx to the imx_usb_loader folder. |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 32 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 33 | Load u-boot-dtb.imx via USB: |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 34 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 35 | $ sudo ./imx_usb u-boot-dtb.imx |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 36 | |
| 37 | Then U-Boot should start and its messages will appear in the console program. |
| 38 | |
| 39 | Open a terminal program such as minicom |
| 40 | |
| 41 | Use the default environment variables: |
| 42 | |
| 43 | => env default -f -a |
| 44 | => saveenv |
| 45 | |
| 46 | Run the DFU command: |
| 47 | => dfu 0 mmc 0 |
| 48 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 49 | Transfer u-boot-dtb.imx that will be flashed into the eMMC: |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 50 | |
Fabio Estevam | 4a2d09a | 2019-02-09 12:01:59 -0200 | [diff] [blame] | 51 | $ sudo dfu-util -D u-boot-dtb.imx -a boot |
Marco Franchi | 72a868f | 2016-06-10 14:56:23 -0300 | [diff] [blame] | 52 | |
| 53 | Then on the U-Boot prompt the following message should be seen after a |
| 54 | successful upgrade: |
| 55 | |
| 56 | #DOWNLOAD ... OK |
| 57 | Ctrl+C to exit ... |
| 58 | |
| 59 | Remove power from the warp7 board. |
| 60 | |
| 61 | Put warp7 board into normal boot mode (put the switch 2 in the lower position) |
| 62 | |
| 63 | Power up the board and the new updated U-Boot should boot from eMMC |