xref: /openbmc/u-boot/board/warp7/README (revision a0d12cd2392af52000790739df3fc8ddbd4db460)
172a868f1SMarco FranchiHow to Update U-Boot on Warp7 board
272a868f1SMarco Franchi----------------------------------
372a868f1SMarco Franchi
472a868f1SMarco FranchiRequired software on the host PC:
572a868f1SMarco Franchi
672a868f1SMarco Franchi- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
772a868f1SMarco Franchi
872a868f1SMarco Franchi- dfu-util: http://dfu-util.sourceforge.net/releases/ (if you are in a
972a868f1SMarco FranchiDebian distribution then you can get it via libdfu-dev package)
1072a868f1SMarco Franchi
1172a868f1SMarco Franchi- libusb: http://libusb.org/ (if you are in a Debian distribution
1272a868f1SMarco Franchithen you can get it via libusb-dev and libusb-1.0-0-dev)
1372a868f1SMarco Franchi
1472a868f1SMarco FranchiIn U-Boot folder, build U-Boot for Warp7:
1572a868f1SMarco Franchi
1672a868f1SMarco Franchi$ make mrproper
1772a868f1SMarco Franchi$ make warp7_config
1872a868f1SMarco Franchi$ make
1972a868f1SMarco Franchi
20*4a2d09acSFabio EstevamThis will generate the U-Boot binary called u-boot-dtb.imx.
2172a868f1SMarco Franchi
2272a868f1SMarco FranchiPut warp7 board in USB download mode:
2372a868f1SMarco Franchi
2472a868f1SMarco FranchiRemove the CPU board from the base board then put switch 2 in the upper
2572a868f1SMarco Franchiposition
2672a868f1SMarco Franchi
2772a868f1SMarco FranchiConnect a USB to serial adapter between the host PC and warp7
2872a868f1SMarco Franchi
2972a868f1SMarco FranchiConnect a USB cable between the OTG warp7 port and the host PC
3072a868f1SMarco Franchi
31*4a2d09acSFabio EstevamCopy u-boot-dtb.imx to the imx_usb_loader folder.
3272a868f1SMarco Franchi
33*4a2d09acSFabio EstevamLoad u-boot-dtb.imx via USB:
3472a868f1SMarco Franchi
35*4a2d09acSFabio Estevam$ sudo ./imx_usb u-boot-dtb.imx
3672a868f1SMarco Franchi
3772a868f1SMarco FranchiThen U-Boot should start and its messages will appear in the console program.
3872a868f1SMarco Franchi
3972a868f1SMarco FranchiOpen a terminal program such as minicom
4072a868f1SMarco Franchi
4172a868f1SMarco FranchiUse the default environment variables:
4272a868f1SMarco Franchi
4372a868f1SMarco Franchi=> env default -f -a
4472a868f1SMarco Franchi=> saveenv
4572a868f1SMarco Franchi
4672a868f1SMarco FranchiRun the DFU command:
4772a868f1SMarco Franchi=> dfu 0 mmc 0
4872a868f1SMarco Franchi
49*4a2d09acSFabio EstevamTransfer u-boot-dtb.imx that will be flashed into the eMMC:
5072a868f1SMarco Franchi
51*4a2d09acSFabio Estevam$ sudo dfu-util -D u-boot-dtb.imx -a boot
5272a868f1SMarco Franchi
5372a868f1SMarco FranchiThen on the U-Boot prompt the following message should be seen after a
5472a868f1SMarco Franchisuccessful upgrade:
5572a868f1SMarco Franchi
5672a868f1SMarco Franchi#DOWNLOAD ... OK
5772a868f1SMarco FranchiCtrl+C to exit ...
5872a868f1SMarco Franchi
5972a868f1SMarco FranchiRemove power from the warp7 board.
6072a868f1SMarco Franchi
6172a868f1SMarco FranchiPut warp7 board into normal boot mode (put the switch 2 in the lower position)
6272a868f1SMarco Franchi
6372a868f1SMarco FranchiPower up the board and the new updated U-Boot should boot from eMMC
64