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