Building U-Boot (DIVELK)

From DAVE Developer's Wiki
Revision as of 09:09, 2 November 2018 by U0007 (talk | contribs)

Jump to: navigation, search
Info Box
Diva-am335x-overview.png Applies to Diva

History[edit | edit source]

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

Quick reference[edit | edit source]

Repository Information
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[edit | edit source]

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
  • configure the build environment
source ~/
  • enter the source tree directory and run the following commands:
make diva_defconfig

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.