1dab14934SVanessa MaegimaHow to Update U-Boot on Pico-imx6ul board 2dab14934SVanessa Maegima----------------------------------------- 3dab14934SVanessa Maegima 4dab14934SVanessa MaegimaRequired software on the host PC: 5dab14934SVanessa Maegima 6dab14934SVanessa Maegima- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader 7dab14934SVanessa Maegima 8dab14934SVanessa Maegima- dfu-util: http://dfu-util.sourceforge.net/releases/ 9dab14934SVanessa Maegima 10dab14934SVanessa MaegimaBuild U-Boot for Pico: 11dab14934SVanessa Maegima 12dab14934SVanessa Maegima$ make mrproper 13dab14934SVanessa Maegima$ make pico-imx6ul_defconfig 14dab14934SVanessa Maegima$ make 15dab14934SVanessa Maegima 16*c97c9e08SFabio EstevamThis generates the SPL and u-boot.img binaries. 17*c97c9e08SFabio Estevam 18*c97c9e08SFabio Estevam1. Loading U-Boot via USB Serial Download Protocol 19*c97c9e08SFabio Estevam 20*c97c9e08SFabio EstevamNote: This method is convenient for development purposes. 21*c97c9e08SFabio EstevamIf the eMMC has already a U-Boot flashed with DFU support then 22*c97c9e08SFabio Estevamthe user can go to step 2 below in order to update U-Boot. 23dab14934SVanessa Maegima 24dab14934SVanessa MaegimaPut pico board in USB download mode (refer to the document 25dab14934SVanessa Maegimahttp://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf page 15) 26dab14934SVanessa Maegima 27dab14934SVanessa MaegimaConnect a USB to serial adapter between the host PC and pico 28dab14934SVanessa Maegima 29dab14934SVanessa MaegimaConnect a USB cable between the OTG pico port and the host PC 30dab14934SVanessa Maegima 31dab14934SVanessa MaegimaOpen a terminal program such as minicom 32dab14934SVanessa Maegima 33*c97c9e08SFabio EstevamCopy SPL and u-boot.img to the imx_usb_loader folder. 34dab14934SVanessa Maegima 35*c97c9e08SFabio EstevamLoad the SPL binary via USB: 36dab14934SVanessa Maegima 37*c97c9e08SFabio Estevam$ sudo ./imx_usb SPL 38*c97c9e08SFabio Estevam 39*c97c9e08SFabio EstevamLoad the u-boot.img binary via USB: 40*c97c9e08SFabio Estevam 41*c97c9e08SFabio Estevam$ sudo ./imx_usb u-boot.img 42dab14934SVanessa Maegima 43dab14934SVanessa MaegimaThen U-Boot should start and its messages will appear in the console program. 44dab14934SVanessa Maegima 45dab14934SVanessa MaegimaUse the default environment variables: 46dab14934SVanessa Maegima 47dab14934SVanessa Maegima=> env default -f -a 48dab14934SVanessa Maegima=> saveenv 49dab14934SVanessa Maegima 50*c97c9e08SFabio Estevam2. Flashing U-Boot into the eMMC 51*c97c9e08SFabio Estevam 52dab14934SVanessa MaegimaRun the DFU command: 53dab14934SVanessa Maegima=> dfu 0 mmc 0 54dab14934SVanessa Maegima 55*c97c9e08SFabio EstevamFlash SPL and u-boot.img into the eMMC running the following commands on a PC: 56dab14934SVanessa Maegima 57*c97c9e08SFabio Estevam$ sudo dfu-util -D SPL -a spl 58*c97c9e08SFabio Estevam 59*c97c9e08SFabio Estevam$ sudo dfu-util -D u-boot.img -a u-boot 60dab14934SVanessa Maegima 61dab14934SVanessa MaegimaThen on the U-Boot prompt the following message should be seen after a 62dab14934SVanessa Maegimasuccessful upgrade: 63dab14934SVanessa Maegima 64dab14934SVanessa Maegima#DOWNLOAD ... OK 65dab14934SVanessa MaegimaCtrl+C to exit ... 66dab14934SVanessa Maegima 67dab14934SVanessa MaegimaRemove power from the pico board. 68dab14934SVanessa Maegima 69dab14934SVanessa MaegimaPut pico board into normal boot mode 70dab14934SVanessa Maegima 71dab14934SVanessa MaegimaPower up the board and the new updated U-Boot should boot from eMMC. 72