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

From DAVE Developer's Wiki
Jump to: navigation, search
 
(7 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
!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"|ID#
 
!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"|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"|{{oldid|16136|16136}}
|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"|Jan 2022
+
|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"|17/02/2022
|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-MX8M 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"|First DESK-MX8M-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:#ededed; padding:5px; color:#000000" |{{oldid|17541|17541}}
 +
! 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" |24/02/2023
 +
! 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-MX8M-L-2.0.0 release
 +
 
|}
 
|}
 
<section end=History/>
 
<section end=History/>
Line 26: Line 30:
 
|-
 
|-
 
! stable branch
 
! stable branch
| desk-mx-l
+
| desk-mx8m-l-2.x.x
 
|-
 
|-
 
! stable tag
 
! stable tag
| desk-mx-l-2.x.x
+
| desk-mx-l-2.0.0
 
|}
 
|}
  
Line 44: Line 48:
 
| SBCX
 
| SBCX
 
| 0x00000002
 
| 0x00000002
| 0x00001003
+
| 0x0000100a
 
| imx8mm_mito8mmini_defconfig
 
| imx8mm_mito8mmini_defconfig
 
|-
 
|-
 
| SBC ORCA
 
| SBC ORCA
 
| 0x00000005
 
| 0x00000005
| 0x00001001
+
| 0x00001008
 
| imx8mp_mito8mplus_defconfig
 
| imx8mp_mito8mplus_defconfig
 
|}
 
|}
Line 60: Line 64:
 
* open a terminal window and ''cd'' into U-Boot source code
 
* open a terminal window and ''cd'' into U-Boot source code
  
<pre class="workstation-terminal">
+
<pre>
 
cd desk-mx-l/u-boot
 
cd desk-mx-l/u-boot
 
</pre>
 
</pre>
Line 66: Line 70:
 
* in case of needs you can update your local repository with the following git command
 
* in case of needs you can update your local repository with the following git command
  
<pre class="workstation-terminal">
+
<pre>
 
git pull
 
git pull
 +
</pre>
 +
 +
* checkout the required branch
 +
<pre>
 +
git checkout desk-mx8m-l-2.0.0
 
</pre>
 
</pre>
  
 
* configure the build environment
 
* configure the build environment
  
<pre class="workstation-terminal">
+
<pre>
source ~/env.sh
+
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0_env.sh
 
</pre>
 
</pre>
  
*enter the source tree directory and run the following commands:
+
*enter the source tree directory and run the following commands (please refer to the [[#u-boot_defconfigs|U-Boot defconfigs table above]]):
  
For [[MITO 8M Mini SOM | MITO 8M Mini]]
+
For [[ORCA SOM | ORCA]]
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
make imx8mm_mito8mmini_defconfig
+
make imx8mp_mito8mplus_defconfig
 
make
 
make
 
</pre>
 
</pre>
  
For [[ORCA SOM | ORCA]]
+
For [[MITO 8M Mini SOM | MITO 8M Mini]]
 
<pre class="workstation-terminal">
 
<pre class="workstation-terminal">
make imx8mp_mito8mplus_defconfig
+
make imx8mm_mito8mmini_defconfig
 
make
 
make
 
</pre>
 
</pre>
 
NOTE: this is the default configuration suitable for latest <SOM> target.
 
 
:The former command selects the default DESK-MX8M-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>).
 
  
 
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>
<pre class="workstation-terminal">
+
cp spl/u-boot-spl.bin /tftpboot/desk-mx-l/
cp SPL u-boot.img /tftpboot/desk-mx-l/
+
cp u-boot.bin /tftpboot/desk-mx-l/
 
</pre>
 
</pre>
  
Please refer to [[/DESK-MX8M-L/Deployment/Standalone_boot|this page]] for more information on how to update the bootloader on your board.
+
Please refer to [[DESK-MX8M-L/Deployment/Standalone_boot|this page]] for more information on how to update the bootloader on your board.
  
  
 
----
 
----
 
+
[[Category:ORCA]] [[Category:MITO 8M Mini]]
[[Category:MITO 8M]] [[Category:MITO 8M Mini]] [[Category:ORCA]]
 

Latest revision as of 13:21, 24 February 2023

History
ID# Issue Date Notes

16136

17/02/2022 First DESK-MX8M-L release

17541

24/02/2023 DESK-MX8M-L-2.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-mx8m-l-2.x.x
stable tag desk-mx-l-2.0.0

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID defconfig
SBCX 0x00000002 0x0000100a imx8mm_mito8mmini_defconfig
SBC ORCA 0x00000005 0x00001008 imx8mp_mito8mplus_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
  • checkout the required branch
git checkout desk-mx8m-l-2.0.0
  • configure the build environment
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0_env.sh

For ORCA

make imx8mp_mito8mplus_defconfig
make

For MITO 8M Mini

make imx8mm_mito8mmini_defconfig
make

Binary files can be copied to the tftp root directory /tftpboot/desk-mx-l/ with the following command:

cp spl/u-boot-spl.bin /tftpboot/desk-mx-l/
cp u-boot.bin /tftpboot/desk-mx-l/

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