1 How to update U-Boot on pico-imx7d board
2 ----------------------------------------
4 Required software on the host PC:
6 - imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
11 $ make pico-imx7d_defconfig
14 This generates the SPL and u-boot.img binaries.
16 1. Loading U-Boot via USB Serial Download Protocol
18 Note: This method is convenient for development purposes.
19 If the eMMC has already a U-Boot flashed with DFU support then
20 the user can go to step 2 below in order to update U-Boot.
22 Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
25 Connect a USB to serial adapter between the host PC and pico.
27 Connect a USB cable between the OTG pico port and the host PC.
29 Open a terminal program such as minicom.
31 Copy SPL and u-boot.img to the imx_usb_loader folder.
33 Load the SPL binary via USB:
37 Load the u-boot.img binary via USB:
39 $ sudo ./imx_usb u-boot.img
41 Then U-Boot starts and its messages appear in the console program.
43 Use the default environment variables:
48 2. Flashing U-Boot into the eMMC
50 Run the DFU agent so we can flash the new images using dfu-util tool:
54 Flash SPL and u-boot.img into the eMMC running the following commands on a PC:
56 $ sudo dfu-util -D SPL -a spl
58 $ sudo dfu-util -D u-boot.img -a u-boot
60 Remove power from the pico board.
62 Put pico board into normal boot mode.
64 Power up the board and the new updated U-Boot should boot from eMMC.