Difference between revisions of "DESK-MX9-L/Development/Building Boot Image"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "<section begin=History/> {| style="border-collapse:collapse; " !colspan="4" style="width:100%; text-align:left"; border-bottom:solid 2px #ededed"|History |- !style="border-le...")
 
 
(5 intermediate revisions by 2 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"|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"|2024/01/xx
+
| 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" |2024/01/30
|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-MX9-L 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" |DESK-MX9-L-5.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:#ededed; padding:5px; color:#000000" |2024/04/09
 +
| 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-MX9-L-5.1.0 release
 
|-
 
|-
 
|}
 
|}
<section end=History/>
+
<section end="History" />
 +
 
 
__FORCETOC__
 
__FORCETOC__
<section begin=Body/>
 
 
''Fare riferimento a [[DESK-MX8M-L/Development/Building_Boot_Image | Building Boot Image]] ed apportare le modifiche del caso a seconda del modo di gerenazione della Boot Image''
 
 
<section begin=Body/>
 
 
==Building Boot Image==
 
 
{{ImportantMessage|text=The following procedure may be used just during the development stage (as an example, for modifying and testing just some part of the overall binary like u-boot).
 
  
The Yocto build should be used for creating the deployment or production binary artifacts.}}
+
== Building Boot Image ==
  
===Quick reference===
+
=== Quick reference ===
 
{| class="wikitable" border="1"
 
{| class="wikitable" border="1"
!colspan="2"|Repository Information
+
! colspan="2" |Repository Information
 
|-
 
|-
 
! URL
 
! URL
| git@git.dave.eu:desk-mx-l/desk-mx8-mkimage.git
+
| git@git.dave.eu:desk-mx-l/u-boot-imx.git
 
|-
 
|-
 
! stable branch
 
! stable branch
Line 35: Line 30:
 
|-
 
|-
 
! stable tag
 
! stable tag
| desk-mx9-l-5.0.0  
+
| desk-mx9-l-5.1.0  
 
|}
 
|}
  
...
+
=== Build boot image ===
...
+
 
...
+
To build the binary boot Image is pretty complex. Too much component are needed and the image structure may change if the <code>optee</code> or other security features are used.
 +
 
 +
To make an easier boot Image build we '''strongly''' suggest to use the Yocto build system.
 +
 
 +
Before execute the setup of Yocto, see [[DESK-MX9-L/Development/Building_the_Yocto_BSP | this page]].
 +
 
 +
Each time there are some changes on u-boot, the u-boot references in the Yocto recipes have to be changed. Edit the u-boot reference on:
 +
* <code>sources/meta-desk-mx/recipes-bsp/u-boot/u-boot-desk_git.bb</code>
 +
* <code>sources/meta-desk-mx/conf/machine/include/desk-common-mx93.inc</code>
 +
* <code>build-*/conf/local.conf</code>
 +
 
 +
Remember to update the follow variables:
 +
 
 +
* <code>SRCREV:pn-u-boot-desk</code>
 +
* <code>SRCBRANCH:pn-u-boot-desk</code>
 +
* <code>UBOOT_SRC:pn-u-boot-desk</code>
 +
 
 +
to use the different repository/branch and revision.
 +
 
 +
After the u-boot sources has been updated, execute the build of boot binary with the following steps
 +
 
 +
* setup the Yocto environment if not already up
 +
* execute the build of boot binary with follow command <code>bitbake imx-boot</code>.
 +
* the binary generated is present on <code>tmp/deploy/images/<machine-name>/imx-boot</code>.
  
 +
=== Flash boot image ===
  
<section end=Body/>
+
To flash the boot image on uSD execute the following steps:
 +
* connect the uSD to the MVM
 +
* get the device name with <code>lsblk</code> command.
 +
* flash the binary to the uSD with follow command <code>sudo dd if=imx-boot.bin of=/dev/sdX bs=1k seek=32 conv=fsync</code> (replace <code>sdX</code> with your device)
  
 +
<section end="Body" />
  
 
[[Category:AURA]]
 
[[Category:AURA]]

Latest revision as of 12:43, 12 April 2024

History
Issue Date Notes
2024/01/30 DESK-MX9-L-5.0.0 release
2024/04/09 DESK-MX9-L-5.1.0 release



Building Boot Image[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-mx9-l-5.x.x
stable tag desk-mx9-l-5.1.0

Build boot image[edit | edit source]

To build the binary boot Image is pretty complex. Too much component are needed and the image structure may change if the optee or other security features are used.

To make an easier boot Image build we strongly suggest to use the Yocto build system.

Before execute the setup of Yocto, see this page.

Each time there are some changes on u-boot, the u-boot references in the Yocto recipes have to be changed. Edit the u-boot reference on:

  • sources/meta-desk-mx/recipes-bsp/u-boot/u-boot-desk_git.bb
  • sources/meta-desk-mx/conf/machine/include/desk-common-mx93.inc
  • build-*/conf/local.conf

Remember to update the follow variables:

  • SRCREV:pn-u-boot-desk
  • SRCBRANCH:pn-u-boot-desk
  • UBOOT_SRC:pn-u-boot-desk

to use the different repository/branch and revision.

After the u-boot sources has been updated, execute the build of boot binary with the following steps

  • setup the Yocto environment if not already up
  • execute the build of boot binary with follow command bitbake imx-boot.
  • the binary generated is present on tmp/deploy/images/<machine-name>/imx-boot.

Flash boot image[edit | edit source]

To flash the boot image on uSD execute the following steps:

  • connect the uSD to the MVM
  • get the device name with lsblk command.
  • flash the binary to the uSD with follow command sudo dd if=imx-boot.bin of=/dev/sdX bs=1k seek=32 conv=fsync (replace sdX with your device)