Building U-Boot (DIVELK)

From DAVE Developer's Wiki
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
4.0.0 April 2018

March 2019
DIVELK 4.0.0

DIVELK 4.0.1
DIVELK release

Quick reference[edit | edit source]

Repository Information
URL git@git.dave.eu:dave/diva/u-boot-am33x.git
stable branch diva
stable tag divelk-4.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 ~/env.sh
  • 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 binaries (MLO, MLO.byteswap. u-boot.img).

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

cp MLO /tftpboot/diva/
cp MLO.byteswap /tftpboot/diva/
cp u-boot.img /tftpboot/diva/

Please refer to Standalone_boot_(DIVELK) for more information in how to update the bootloader on you board.