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

From DAVE Developer's Wiki
Jump to: navigation, search
(Instructions)
Line 60: Line 60:
 
* 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 66:
 
* 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>
 
</pre>
  
 
* checkout the required branch
 
* checkout the required branch
<pre class="workstation-terminal">
+
<pre>
git checkout desk-mx8m-l-rel-2.0.0  
+
git checkout desk-mx8m-l-rel-2.0.0  
 
</pre>
 
</pre>
  
 
* configure the build environment
 
* configure the build environment
  
<pre class="workstation-terminal">
+
<pre>
 
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0-rc2_env.sh
 
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0-rc2_env.sh
 
</pre>
 
</pre>
Line 83: Line 83:
 
*enter the source tree directory and run the following commands:
 
*enter the source tree directory and run the following commands:
  
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>
Line 101: Line 101:
 
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>
cp SPL u-boot.img /tftpboot/desk-mx-l/
+
cp spl/u-boot-spl.bin /tftpboot/desk-mx-l/
 +
cp u-boot.bin /tftpboot/desk-mx-l/
 
</pre>
 
</pre>
  

Revision as of 17:40, 17 February 2022

History
Version Issue Date Notes
1.0.0 Jan 2022 First DESK-MX8M 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-mx-l
stable tag desk-mx-l-2.x.x

U-Boot defconfigs
Platform SOM ConfigID CB ConfigID defconfig
SBCX 0x00000002 0x00001003 imx8mm_mito8mmini_defconfig
SBC ORCA 0x00000005 0x00001001 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-rel-2.0.0 
  • configure the build environment
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0-rc2_env.sh
  • enter the source tree directory and run the following commands:

For ORCA

make imx8mp_mito8mplus_defconfig
make

For MITO 8M Mini

make imx8mm_mito8mmini_defconfig
make

NOTE: this is the default configuration suitable for the 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 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-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.