• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..29-Apr-2021-

KconfigH A D29-Apr-2021186 1610

MAINTAINERSH A D29-Apr-2021429 1714

MakefileH A D29-Apr-2021106 51

READMEH A D29-Apr-20211.5 KiB6536

pico-imx7d.cH A D29-Apr-20218 KiB316239

spl.cH A D29-Apr-20212.4 KiB123103

README

1How to update U-Boot on pico-imx7d board
2----------------------------------------
3
4Required software on the host PC:
5
6- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
7
8Build U-Boot for pico:
9
10$ make mrproper
11$ make pico-imx7d_defconfig
12$ make
13
14This generates the SPL and u-boot.img binaries.
15
161. Loading U-Boot via USB Serial Download Protocol
17
18Note: This method is convenient for development purposes.
19If the eMMC has already a U-Boot flashed with DFU support then
20the user can go to step 2 below in order to update U-Boot.
21
22Put pico board in USB download mode (refer to the PICO-iMX7D Quick Start Guide
23page 3)
24
25Connect a USB to serial adapter between the host PC and pico.
26
27Connect a USB cable between the OTG pico port and the host PC.
28
29Open a terminal program such as minicom.
30
31Copy SPL and u-boot.img to the imx_usb_loader folder.
32
33Load the SPL binary via USB:
34
35$ sudo ./imx_usb SPL
36
37Load the u-boot.img binary via USB:
38
39$ sudo ./imx_usb u-boot.img
40
41Then U-Boot starts and its messages appear in the console program.
42
43Use the default environment variables:
44
45=> env default -f -a
46=> saveenv
47
482. Flashing U-Boot into the eMMC
49
50Run the DFU agent so we can flash the new images using dfu-util tool:
51
52=> dfu 0 mmc 0
53
54Flash SPL and u-boot.img into the eMMC running the following commands on a PC:
55
56$ sudo dfu-util -D SPL -a spl
57
58$ sudo dfu-util -D u-boot.img -a u-boot
59
60Remove power from the pico board.
61
62Put pico board into normal boot mode.
63
64Power up the board and the new updated U-Boot should boot from eMMC.
65