Template:Building-U-Boot

From DAVE Developer's Wiki
Jump to: navigation, search
History
Version Issue Date Notes
X.Y.Z Month Year TBD
[TBD_link X.Y.Z] Month Year TBD



Building U-Boot[edit source]

Quick reference[edit source]

Repository Information
URL git@git.dave.eu:{{{kit-repo}}}/u-boot-TBD.git
stable branch {{{kit-repo}}}
stable tag {{{kit-repo}}}-1.x.x

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID defconfig
<SOM> 0x000000xx 0x000000xx TBD

Instructions[edit source]

It is assumed that the development environment has been set up properly as described [[DESK-{{{kit-code}}}-L#Quick_start_guide|here]].

  • start the Linux development VM and login into the system
  • open a terminal window and cd into U-Boot source code
cd {{{kit-repo}}}/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 {{{kit}}}_defconfig
make

NOTE: this is the default configuration suitable for latest <SOM> target.

The former command selects the default DESK-{{{kit-code}}}-L configuration suitable for latest <SOM> targets (for additional defconfig please refer to the U-Boot defconfigs table above), while the latter builds the U-Boot binary image files (SPL and u-boot.img).

Binary files can be copied to the tftp root directory /tftpboot/{{{kit-repo}}}/ with the following command:

cp SPL u-boot.img /tftpboot/{{{kit-repo}}}/

Please refer to [[Standalone_boot_(DESK-{{{kit-code}}}-L)#Storing_boot_images_...|this page]] for more information on how to update the bootloader on your board.



[[Category:{{{nome-som}}}]]