Difference between revisions of "Template:Building-U-Boot"
Template>U0007 |
m (1 revision imported) |
(No difference)
|
Revision as of 09:21, 15 September 2020
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]
URL | git@git.dave.eu:{{{kit-repo}}}/u-boot-TBD.git |
---|---|
stable branch | {{{kit-repo}}} |
stable tag | {{{kit-repo}}}-1.x.x |
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
andu-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}}}]]