1 How to Update U-Boot on pico-imx6q/dl boards
2 --------------------------------------------
4 Required software on the host PC:
6 - UUU: https://github.com/NXPmicro/mfgtools
11 $ make pico-imx6_defconfig
14 This generates the SPL and u-boot-dtb.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 then the user can
20 go to step 2 below in order to update U-Boot.
22 Put pico board in USB download mode (Refer to the following link for details:
23 https://www.technexion.com/support/knowledgebase/boot-configuration-settings-for-pico-baseboards/).
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-dtb.img to the uuu folder.
33 Load the U-Boot via USB:
35 $ sudo ./uuu -v uuu_script
37 where uuu_script contains the following:
40 SDPU: write -f u-boot-dtb.img -addr 0x10000000
41 SDPU: jump -addr 0x10000000
43 Then U-Boot starts and its messages appear in the console program.
45 Use the default environment variables:
50 2. Flashing U-Boot into the eMMC
52 The default U-Boot environment expects the use of eMMC user
53 partition. To ensure we are using the proper eMMC partition for boot,
56 => mmc partconf 0 0 0 0
58 Next, run the DFU agent so we can flash the new images using dfu-util
63 Flash SPL and u-boot-dtb.img into the eMMC running the following commands on a PC:
65 $ sudo dfu-util -D SPL -a spl
67 $ sudo dfu-util -D u-boot-dtb.img -a u-boot
69 Remove power from the pico board.
71 Put pico board into normal boot mode.
73 Power up the board and the new updated U-Boot should boot from eMMC.