1*72a868f1SMarco FranchiHow to Update U-Boot on Warp7 board 2*72a868f1SMarco Franchi---------------------------------- 3*72a868f1SMarco Franchi 4*72a868f1SMarco FranchiRequired software on the host PC: 5*72a868f1SMarco Franchi 6*72a868f1SMarco Franchi- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader 7*72a868f1SMarco Franchi 8*72a868f1SMarco Franchi- dfu-util: http://dfu-util.sourceforge.net/releases/ (if you are in a 9*72a868f1SMarco FranchiDebian distribution then you can get it via libdfu-dev package) 10*72a868f1SMarco Franchi 11*72a868f1SMarco Franchi- libusb: http://libusb.org/ (if you are in a Debian distribution 12*72a868f1SMarco Franchithen you can get it via libusb-dev and libusb-1.0-0-dev) 13*72a868f1SMarco Franchi 14*72a868f1SMarco FranchiIn U-Boot folder, build U-Boot for Warp7: 15*72a868f1SMarco Franchi 16*72a868f1SMarco Franchi$ make mrproper 17*72a868f1SMarco Franchi$ make warp7_config 18*72a868f1SMarco Franchi$ make 19*72a868f1SMarco Franchi 20*72a868f1SMarco FranchiThis will generate the U-Boot binary called u-boot.imx. 21*72a868f1SMarco Franchi 22*72a868f1SMarco FranchiPut warp7 board in USB download mode: 23*72a868f1SMarco Franchi 24*72a868f1SMarco FranchiRemove the CPU board from the base board then put switch 2 in the upper 25*72a868f1SMarco Franchiposition 26*72a868f1SMarco Franchi 27*72a868f1SMarco FranchiConnect a USB to serial adapter between the host PC and warp7 28*72a868f1SMarco Franchi 29*72a868f1SMarco FranchiConnect a USB cable between the OTG warp7 port and the host PC 30*72a868f1SMarco Franchi 31*72a868f1SMarco FranchiCopy u-boot.imx to the imx_usb_loader folder. 32*72a868f1SMarco Franchi 33*72a868f1SMarco FranchiLoad u-boot.imx via USB: 34*72a868f1SMarco Franchi 35*72a868f1SMarco Franchi$ sudo ./imx_usb u-boot.imx 36*72a868f1SMarco Franchi 37*72a868f1SMarco FranchiThen U-Boot should start and its messages will appear in the console program. 38*72a868f1SMarco Franchi 39*72a868f1SMarco FranchiOpen a terminal program such as minicom 40*72a868f1SMarco Franchi 41*72a868f1SMarco FranchiUse the default environment variables: 42*72a868f1SMarco Franchi 43*72a868f1SMarco Franchi=> env default -f -a 44*72a868f1SMarco Franchi=> saveenv 45*72a868f1SMarco Franchi 46*72a868f1SMarco FranchiRun the DFU command: 47*72a868f1SMarco Franchi=> dfu 0 mmc 0 48*72a868f1SMarco Franchi 49*72a868f1SMarco FranchiTransfer u-boot.imx that will be flashed into the eMMC: 50*72a868f1SMarco Franchi 51*72a868f1SMarco Franchi$ sudo dfu-util -D u-boot.imx -a boot 52*72a868f1SMarco Franchi 53*72a868f1SMarco FranchiThen on the U-Boot prompt the following message should be seen after a 54*72a868f1SMarco Franchisuccessful upgrade: 55*72a868f1SMarco Franchi 56*72a868f1SMarco Franchi#DOWNLOAD ... OK 57*72a868f1SMarco FranchiCtrl+C to exit ... 58*72a868f1SMarco Franchi 59*72a868f1SMarco FranchiRemove power from the warp7 board. 60*72a868f1SMarco Franchi 61*72a868f1SMarco FranchiPut warp7 board into normal boot mode (put the switch 2 in the lower position) 62*72a868f1SMarco Franchi 63*72a868f1SMarco FranchiPower up the board and the new updated U-Boot should boot from eMMC 64