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}}")
 
Line 7: Line 7:
 
!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"|1.0.0
|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"|Oct 2020
|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"|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_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:#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"|TBD
 
|-
 
 
|}
 
|}
 
<section end=History/>
 
<section end=History/>
Line 27: Line 21:
 
|-
 
|-
 
! 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
 
|-
 
|-
 
! stable tag
 
! stable tag
| desk-mx-l-1.x.x
+
| desk-mx6-l-1.0.0
 
|}
 
|}
  
Line 44: Line 38:
 
! 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 54:
  
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
cd {{{kit-repo}}}/u-boot
+
cd axel/u-boot
 
</pre>
 
</pre>
  
Line 78: Line 72:
  
 
<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/axel/
 
</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 [[AXEL_Lite_SOM/DESK-MX6-L/Deployment/Standalone_boot|this page]] for more information on how to update the bootloader on your board.
  
  

Revision as of 09:53, 9 October 2020

History
Version Issue Date Notes
1.0.0 Oct 2020 First DESK 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
stable tag desk-mx6-l-1.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 axel/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 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/axel/

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