Difference between revisions of "DESK-MX6-L/Development/Building U-Boot"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "{{subst:Building-U-Boot  | nome-som=AXEL Lite | kit-code=MX6 | kit = mx6 | kit-repo = desk-mx-l}}")
 
 
(18 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<section begin=History/>
+
<section begin="History" />
 
{| style="border-collapse:collapse; "
 
{| style="border-collapse:collapse; "
!colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History
+
! colspan="4" style="width:100%; text-align:left" ; border-bottom:solid 2px #ededed" |History
 
|-  
 
|-  
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Version
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Issue Date
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Issue Date
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white" |Notes
!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#73B2C7; padding:5px; color:white"|Notes
 
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|X.Y.Z
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|13746|2021/06/04}}
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
+
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |First DESK release
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
 
 
|-
 
|-
 +
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |{{oldid|16986|2022/03/07}}
 +
| style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000" |DESK-MX6-L 3.0.0 release
 
|-
 
|-
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[TBD_link X.Y.Z]
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |2023/04/06
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|Month Year
+
! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#ededed; padding:5px; color:#000000" |DESK-MX6-L 4.0.0 release
|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|TBD
 
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
<section begin=Body/>
+
__FORCETOC__
 +
<section begin="Body" />
  
 
==Building U-Boot==
 
==Building U-Boot==
Line 24: Line 24:
 
===Quick reference===
 
===Quick reference===
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
|+Repository Information
+
! colspan="2" |Repository Information
 
|-
 
|-
 
! URL
 
! URL
| git@git.dave.eu:desk-mx-l/u-boot-''TBD''.git
+
| git@git.dave.eu:desk-mx-l/u-boot-imx.git
 
|-
 
|-
 
! stable branch
 
! stable branch
| desk-mx-l
+
| desk-mx6-l-4.x.x
 
|-
 
|-
 
! stable tag
 
! stable tag
| desk-mx-l-1.x.x
+
| desk-mx6-l-4.0.0
 
|}
 
|}
  
Line 39: Line 39:
  
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
|+U-Boot defconfigs
+
! colspan="4" |U-Boot defconfigs
 
|-
 
|-
 
! Platform
 
! Platform
 
! SOM ConfigID
 
! SOM ConfigID
 
! CB ConfigID
 
! CB ConfigID
! ''defconfig''
+
! Building-U-Boot
 
|-
 
|-
| <SOM>
+
| SBCX
| 0x000000xx
+
| 0x00000003
| 0x000000xx
+
| 0x00000012
| TBD
+
| mx6qdldesk_defconfig
 
|}
 
|}
 
</span>
 
</span>
Line 60: Line 60:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
cd {{{kit-repo}}}/u-boot
+
cd ~/desk-mx-l/u-boot
 
</pre>
 
</pre>
  
Line 72: Line 72:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
source ~/env.sh
+
source ~/desk-mx-l/desk-mx6-l-4.0.0_env.sh
 
</pre>
 
</pre>
  
Line 78: Line 78:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
make {{{kit}}}_defconfig
+
make mx6qdldesk_defconfig
 
make
 
make
 
</pre>
 
</pre>
  
NOTE: this is the default configuration suitable for latest <SOM> target.
+
NOTE: this is the default configuration suitable for latest AXEL Lite target.
  
:The former command selects the default DESK-MX6-L configuration suitable for latest <SOM> targets (for additional defconfig please refer to the [[#u-boot_defconfigs|U-Boot defconfigs table above]]), while the latter builds the U-Boot binary image files (<code>SPL</code> and <code>u-boot.img</code>).
+
:The former command selects the default DESK-MX6-L configuration suitable for latest AXEL Lite targets (for additional defconfig please refer to the [[#u-boot_defconfigs|U-Boot defconfigs table above]]), while the latter builds the U-Boot binary image files (<code>SPL</code> and <code>u-boot.img</code>).
  
 
Binary files can be copied to the tftp root directory <code>/tftpboot/desk-mx-l/</code> with the following command:
 
Binary files can be copied to the tftp root directory <code>/tftpboot/desk-mx-l/</code> with the following command:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
cp SPL u-boot.img /tftpboot/{{{kit-repo}}}/
+
cp SPL u-boot.img /tftpboot/desk-mx-l/
 
</pre>
 
</pre>
  
Please refer to [[Standalone_boot_(DESK-MX6-L)#Storing_boot_images_...|this page]] for more information on how to update the bootloader on your board.
+
Please refer to [[DESK-MX6-L/Deployment/Standalone_boot|this page]] for more information on how to update the bootloader on your board.
  
  

Latest revision as of 16:52, 8 January 2024

History
Issue Date Notes

2021/06/04

First DESK release

2022/03/07

DESK-MX6-L 3.0.0 release
2023/04/06 DESK-MX6-L 4.0.0 release



Building U-Boot[edit | edit source]

Quick reference[edit | edit source]

Repository Information
URL git@git.dave.eu:desk-mx-l/u-boot-imx.git
stable branch desk-mx6-l-4.x.x
stable tag desk-mx6-l-4.0.0

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID Building-U-Boot
SBCX 0x00000003 0x00000012 mx6qdldesk_defconfig

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 ~/desk-mx-l/u-boot
  • in case of needs you can update your local repository with the following git command
git pull
  • configure the build environment
source ~/desk-mx-l/desk-mx6-l-4.0.0_env.sh
  • enter the source tree directory and run the following commands:
make mx6qdldesk_defconfig
make

NOTE: this is the default configuration suitable for latest AXEL Lite target.

The former command selects the default DESK-MX6-L configuration suitable for latest AXEL Lite 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/desk-mx-l/ with the following command:

cp SPL u-boot.img /tftpboot/desk-mx-l/

Please refer to this page for more information on how to update the bootloader on your board.