1*a187559eSBin MengHow to Update U-Boot on Warp board 21f9d1cf6SFabio Estevam---------------------------------- 31f9d1cf6SFabio Estevam 41f9d1cf6SFabio EstevamRequired software on the host PC: 51f9d1cf6SFabio Estevam 61f9d1cf6SFabio Estevam- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader 71f9d1cf6SFabio Estevam 81f9d1cf6SFabio Estevam- dfu-util: http://dfu-util.sourceforge.net/releases/ 91f9d1cf6SFabio Estevam 10*a187559eSBin MengBuild U-Boot for Warp: 111f9d1cf6SFabio Estevam 121f9d1cf6SFabio Estevam$ make mrproper 131f9d1cf6SFabio Estevam$ make warp_config 141f9d1cf6SFabio Estevam$ make 151f9d1cf6SFabio Estevam 16*a187559eSBin MengThis will generate the U-Boot binary called u-boot.imx. 171f9d1cf6SFabio Estevam 181f9d1cf6SFabio EstevamPut warp board in USB download mode 191f9d1cf6SFabio Estevam 201f9d1cf6SFabio EstevamConnect a USB to serial adapter between the host PC and warp 211f9d1cf6SFabio Estevam 221f9d1cf6SFabio EstevamConnect a USB cable between the OTG warp port and the host PC 231f9d1cf6SFabio Estevam 241f9d1cf6SFabio EstevamOpen a terminal program such as minicom 251f9d1cf6SFabio Estevam 261f9d1cf6SFabio EstevamCopy u-boot.imx to the imx_usb_loader folder. 271f9d1cf6SFabio Estevam 281f9d1cf6SFabio EstevamLoad u-boot.imx via USB: 291f9d1cf6SFabio Estevam 301f9d1cf6SFabio Estevam$ sudo ./imx_usb u-boot.imx 311f9d1cf6SFabio Estevam 32*a187559eSBin MengThen U-Boot should start and its messages will appear in the console program. 331f9d1cf6SFabio Estevam 341f9d1cf6SFabio EstevamUse the default environment variables: 351f9d1cf6SFabio Estevam 361f9d1cf6SFabio Estevam=> env default -f -a 3768006aebSFabio Estevam=> saveenv 381f9d1cf6SFabio Estevam 391f9d1cf6SFabio EstevamRun the DFU command: 401f9d1cf6SFabio Estevam=> dfu 0 mmc 0 411f9d1cf6SFabio Estevam 421f9d1cf6SFabio EstevamTransfer u-boot.imx that will be flashed into the eMMC: 431f9d1cf6SFabio Estevam 441f9d1cf6SFabio Estevam$ sudo dfu-util -D u-boot.imx -a boot 451f9d1cf6SFabio Estevam 46*a187559eSBin MengThen on the U-Boot prompt the following message should be seen after a 47e719cddeSFabio Estevamsuccessful upgrade: 481f9d1cf6SFabio Estevam 491f9d1cf6SFabio Estevam#DOWNLOAD ... OK 501f9d1cf6SFabio EstevamCtrl+C to exit ... 511f9d1cf6SFabio Estevam 521f9d1cf6SFabio EstevamRemove power from the warp board. 531f9d1cf6SFabio Estevam 541f9d1cf6SFabio EstevamPut warp board into normal boot mode 551f9d1cf6SFabio Estevam 56*a187559eSBin MengPower up the board and the new updated U-Boot should boot from eMMC 57