blob: 66dc977d49268f49a4ebbdb2a8e1a6070f8489e2 [file] [log] [blame]
Vanessa Maegimadab14932016-06-15 12:48:15 -03001How to Update U-Boot on Pico-imx6ul board
2-----------------------------------------
3
4Required software on the host PC:
5
6- imx_usb_loader: https://github.com/boundarydevices/imx_usb_loader
7
8- dfu-util: http://dfu-util.sourceforge.net/releases/
9
10Build U-Boot for Pico:
11
12$ make mrproper
13$ make pico-imx6ul_defconfig
14$ make
15
Fabio Estevamc97c9e02018-09-04 10:23:13 -030016This generates the SPL and u-boot.img binaries.
17
181. Loading U-Boot via USB Serial Download Protocol
19
20Note: This method is convenient for development purposes.
21If the eMMC has already a U-Boot flashed with DFU support then
22the user can go to step 2 below in order to update U-Boot.
Vanessa Maegimadab14932016-06-15 12:48:15 -030023
24Put pico board in USB download mode (refer to the document
Otavio Salvador978138f2018-09-04 10:23:17 -030025http://www.wandboard.org/images/hobbit/hobbitboard-imx6ul-reva1.pdf
26page 15).
Vanessa Maegimadab14932016-06-15 12:48:15 -030027
Otavio Salvador978138f2018-09-04 10:23:17 -030028Connect a USB to serial adapter between the host PC and pico.
Vanessa Maegimadab14932016-06-15 12:48:15 -030029
Otavio Salvador978138f2018-09-04 10:23:17 -030030Connect a USB cable between the OTG pico port and the host PC.
Vanessa Maegimadab14932016-06-15 12:48:15 -030031
Otavio Salvador978138f2018-09-04 10:23:17 -030032Open a terminal program such as minicom.
Vanessa Maegimadab14932016-06-15 12:48:15 -030033
Fabio Estevamc97c9e02018-09-04 10:23:13 -030034Copy SPL and u-boot.img to the imx_usb_loader folder.
Vanessa Maegimadab14932016-06-15 12:48:15 -030035
Fabio Estevamc97c9e02018-09-04 10:23:13 -030036Load the SPL binary via USB:
Vanessa Maegimadab14932016-06-15 12:48:15 -030037
Fabio Estevamc97c9e02018-09-04 10:23:13 -030038$ sudo ./imx_usb SPL
39
40Load the u-boot.img binary via USB:
41
42$ sudo ./imx_usb u-boot.img
Vanessa Maegimadab14932016-06-15 12:48:15 -030043
Otavio Salvador978138f2018-09-04 10:23:17 -030044Then U-Boot starts and its messages appear in the console program.
Vanessa Maegimadab14932016-06-15 12:48:15 -030045
46Use the default environment variables:
47
48=> env default -f -a
49=> saveenv
50
Fabio Estevamc97c9e02018-09-04 10:23:13 -0300512. Flashing U-Boot into the eMMC
52
Otavio Salvador978138f2018-09-04 10:23:17 -030053Run the DFU agent so we can flash the new images using dfu-util tool:
54
Vanessa Maegimadab14932016-06-15 12:48:15 -030055=> dfu 0 mmc 0
56
Fabio Estevamc97c9e02018-09-04 10:23:13 -030057Flash SPL and u-boot.img into the eMMC running the following commands on a PC:
Vanessa Maegimadab14932016-06-15 12:48:15 -030058
Fabio Estevamc97c9e02018-09-04 10:23:13 -030059$ sudo dfu-util -D SPL -a spl
60
61$ sudo dfu-util -D u-boot.img -a u-boot
Vanessa Maegimadab14932016-06-15 12:48:15 -030062
Vanessa Maegimadab14932016-06-15 12:48:15 -030063Remove power from the pico board.
64
Otavio Salvador978138f2018-09-04 10:23:17 -030065Put pico board into normal boot mode.
Vanessa Maegimadab14932016-06-15 12:48:15 -030066
67Power up the board and the new updated U-Boot should boot from eMMC.