xref: /openbmc/u-boot/board/warp7/README (revision 3d7891d3)
1How 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
20This will generate the U-Boot binary called u-boot-dtb.imx.
21
22Put warp7 board in USB download mode:
23
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
31Copy u-boot-dtb.imx to the imx_usb_loader folder.
32
33Load u-boot-dtb.imx via USB:
34
35$ sudo ./imx_usb u-boot-dtb.imx
36
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
49Transfer u-boot-dtb.imx that will be flashed into the eMMC:
50
51$ sudo dfu-util -D u-boot-dtb.imx -a boot
52
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
64