Building U-Boot (DIVELK)

From DAVE Developer's Wiki
Jump to: navigation, search
Info Box
Diva-am335x-overview.png Applies to Diva

History

Version Date DIVELK version Notes
3.0.0 June 2017 DIVELK 3.0.0 DIVELK release

Quick reference

Repository Information
URL git@git.dave.eu:dave/diva/u-boot-am33x.git
stable branch diva
stable tag divelk-3.0.0

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID defconfig
DIVELK 0x00000001 0x00000001 make diva_defconfig
SBCD 0x00000001 0x00000002 make diva_defconfig

Detailed Instructions

It is assumed that the development environment has been set up properly as described here.

  • start the Linux development VM and login into the system
  • open a terminal window and cd into U-Boot source code
cd diva/u-boot
  • in case of needs you can update your local repository with the following git command
git pull


  • enter the source tree directory and run the following commands:
make diva_defconfig
make

NOTE: this is the default configuration suitable for latest DIVA target. The other defined configs for different boot sources are:

 make diva_defconfig
 make diva_spiboot_defconfig
 make diva_nandboot_defconfig
 make diva_devel_defconfig
The former command selects the default DIVA configuration suitable for latest DIVELK targets , while the latter builds the U-Boot binary image itself (u-boot.img).

u-boot.img can be copied to the tftp root directory /tftpboot/diva/ with the following command:

cp u-boot.img /tftpboot/diva/

Please refer to Flashing Images (DIVELK)#U-Boot for more information in how to update the bootloader on you board.