Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Development/Building Linux kernel

644 bytes added, 07:33, 25 July 2023
Updates for DESK-MX8-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"|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|17542|17542}}! | 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|-! 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|18033|18033}}! 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" |25/07/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-24.0.0 release
|-
|}
|-
! stable branch
| desk-mx8m-l-24.x.x
|-
! stable tag
| desk-mx8m-l-24 .0.0
|}
|-
| [[SBC Axel SBC | SBC AXEL]]
| imx8mm-mito8mmini-cb100a.dts
|-
| [[ORCA SBC| SBC ORCA]]
It is assumed that the development environment has been set up properly as described [[DESK-MX8M-L#Quick_start_guide|here]].
* start the Linux development VM and login into the system
* open a terminal window and ''cd'' into Linux kernel source <code>linux</code> directory
<preclass="workstation-terminal">dvdk@vagrant:~$ cd ~/desk-mx-l/linuxdvdk@vagrant:~/desk-mx-l/linux$
</pre>
* in case of needs you can update your local repository with the following git command
<preclass="workstation-terminal">dvdk@vagrant:~/desk-mx-l/linux$ git pull
</pre>
* checkout configure the right branch<pre>git checkout desk-mx8m-l-2.0.0</pre>build environment
* configure the build environment: the '''proper SDK''' has to be installed in the DVDK as described in the [[DESK-MX8M-L/General/DVDK_Virtual_Machine | DVDK Virtual Machine]] wiki page <preclass="workstation-terminal">source dvdk@vagrant:~/homedesk-mx-l/dvdklinux$ source ~/desk-mx-l/desk-mx8m-l-24.0.0_env.sh
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ make imx_v8_defconfig
dvdk@vagrant:~/desk-mx-l/linux$ make -j$(nproc) Image modules freescale/imx8mm-mito8mmini-cb100a.dtb freescale/imx8mp-mito8mplus-cb1008.dtb
</pre>
'''NOTE''': this is the default configuration suitable for the latest target.
:The former command selects the default DESK-MX8M-L configuration, while the latter builds the kernel binary image with the required uU-boot Boot header and the kernel device tree.
Default Linux kernel configuration can be changed by using the standard <code>menuconfig</code>, <code>xconfig</code>, or <code>gconfig</code> make target. Subsequent builds just require <code>uImageImage</code> make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the <code>arch/armarm64/boot/Image</code> file. Both this file and the kernel device tree can be copied to the tftp root directory <code>/tftpboot/desk-mx-l/</code> with the following commands:
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ cp arch/arm64/boot/Image /tftpboot/desk-mxmx8m-l/dvdk@vagrant:~/desk-mx-l/linux$ cp arch/arm64/boot/dts/freescale/*.dtb /tftpboot/desk-mxmx8m-l/
</pre>
devwiki_user
120
edits