blob: 05cdfd00275a6f26d7c36aa429ce340ed35b70d5 [file] [log] [blame]
Marco Franchi72a868f2016-06-10 14:56:23 -03001How to Update U-Boot on Warp7 board
2----------------------------------
3
4Required 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
9Debian distribution then you can get it via libdfu-dev package)
10
11- libusb: http://libusb.org/ (if you are in a Debian distribution
12then you can get it via libusb-dev and libusb-1.0-0-dev)
13
14In U-Boot folder, build U-Boot for Warp7:
15
16$ make mrproper
17$ make warp7_config
18$ make
19
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020020This will generate the U-Boot binary called u-boot-dtb.imx.
Marco Franchi72a868f2016-06-10 14:56:23 -030021
Wolfgang Denk0a50b3c2021-09-27 17:42:38 +020022Put warp7 board in USB download mode:
Marco Franchi72a868f2016-06-10 14:56:23 -030023
24Remove the CPU board from the base board then put switch 2 in the upper
25position
26
27Connect a USB to serial adapter between the host PC and warp7
28
29Connect a USB cable between the OTG warp7 port and the host PC
30
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020031Copy u-boot-dtb.imx to the imx_usb_loader folder.
Marco Franchi72a868f2016-06-10 14:56:23 -030032
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020033Load u-boot-dtb.imx via USB:
Marco Franchi72a868f2016-06-10 14:56:23 -030034
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020035$ sudo ./imx_usb u-boot-dtb.imx
Marco Franchi72a868f2016-06-10 14:56:23 -030036
37Then U-Boot should start and its messages will appear in the console program.
38
39Open a terminal program such as minicom
40
41Use the default environment variables:
42
43=> env default -f -a
44=> saveenv
45
46Run the DFU command:
47=> dfu 0 mmc 0
48
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020049Transfer u-boot-dtb.imx that will be flashed into the eMMC:
Marco Franchi72a868f2016-06-10 14:56:23 -030050
Fabio Estevam4a2d09a2019-02-09 12:01:59 -020051$ sudo dfu-util -D u-boot-dtb.imx -a boot
Marco Franchi72a868f2016-06-10 14:56:23 -030052
53Then on the U-Boot prompt the following message should be seen after a
54successful upgrade:
55
56#DOWNLOAD ... OK
57Ctrl+C to exit ...
58
59Remove power from the warp7 board.
60
61Put warp7 board into normal boot mode (put the switch 2 in the lower position)
62
63Power up the board and the new updated U-Boot should boot from eMMC