Difference between revisions of "Building U-Boot (DIVELK)"

From DAVE Developer's Wiki
Jump to: navigation, search
(Quick reference)
 
(6 intermediate revisions by 3 users not shown)
Line 11: Line 11:
 
!Notes
 
!Notes
 
|-
 
|-
|3.0.0
+
|{{oldid|8318|3.0.0}}
 
|June 2017
 
|June 2017
 
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_3.0.0|DIVELK 3.0.0]]
 
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_3.0.0|DIVELK 3.0.0]]
Line 17: Line 17:
 
|-
 
|-
 
|4.0.0
 
|4.0.0
|April 2018
+
|April 2018 <br/><hr/> March 2019
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.0|DIVELK 4.0.0]]
+
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.0|DIVELK 4.0.0]] <br/><hr/> [[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_4.0.1|DIVELK 4.0.1]]
 
|DIVELK release
 
|DIVELK release
 
|-
 
|-
Line 76: Line 76:
 
</pre>
 
</pre>
  
 +
* configure the build environment
 +
 +
<pre class="workstation-terminal">
 +
source ~/env.sh
 +
</pre>
  
 
*enter the source tree directory and run the following commands:
 
*enter the source tree directory and run the following commands:
Line 93: Line 98:
 
</pre>
 
</pre>
  
:The former command selects the default DIVA configuration suitable for latest DIVELK targets , while the latter builds the U-Boot binary image itself (<code>u-boot.img</code>).
+
:The former command selects the default DIVA configuration suitable for latest DIVELK targets, while the latter builds the U-Boot binaries (<code>MLO</code>, <code>MLO.byteswap</code>. <code>u-boot.img</code>).
  
u-boot.img can be copied to the tftp root directory <code>/tftpboot/diva/</code> with the following command:
+
u-boot binaries can be copied to the tftp root directory <code>/tftpboot/diva/</code> with the following command:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
 +
cp MLO /tftpboot/diva/
 +
cp MLO.byteswap /tftpboot/diva/
 
cp u-boot.img /tftpboot/diva/
 
cp u-boot.img /tftpboot/diva/
 
</pre>
 
</pre>
  
Please refer to [[Flashing Images (DIVELK)#U-Boot]] for more information in how to update the bootloader on you board.
+
Please refer to [[Standalone_boot_(DIVELK)]] for more information in how to update the bootloader on you board.

Latest revision as of 12:08, 8 March 2019

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.