Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
!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"|{{oldid|xxxx|Year2024/Month01/Day}}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"|TBD|-|-!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"|Year/Month/Day!style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; borderFirst DESK-bottom:solid 2px #73B2C7; backgroundMX9-color:#ededed; padding:5px; color:#000000"|TBDL release
|-
 
|}
<section end=History/>
|-
! URL
| git@git.dave.eu:desk-mx-l/linux-'''TBD'''imx.git
|-
! stable branch
| desk-mxmx9-l-5.x.x
|-
! stable tag
| desk-mxmx9-l-15.x0.x0
|}
|-
! defconfig
| colspan="2" | ''<defconfig>''imx_v8_defconfig
|-
! Kernel binary
| colspan="2" | UIMAGE_LOADADDR=''<loadaddr>'' uImageImage
|-
! rowspan="32" | Device trees
! Platform
! DTB
|-
| ''SBC''| ''<carrier>''.dtb|freescale/imx93-aura-| EVB| ''<carrier>''cb2001.dtb
|-
|}
<pre class="workstation-terminal">
dvdk@vagrant:~$ cd {{{kit~/desk-mx-l/linuxdvdk@vagrant:~/desk-mx-repo}}}l/linux$
</pre>
 
* in case of needs you can update your local repository with the following git command
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ git pull
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ source ~/envdesk-mx-l/desk-mx8m-l-4.0.0_env.sh
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ make imx_v7_{{{kitimx_v8_defconfigdvdk@vagrant:~/desk-mx-repo}}}_defconfigl/linux$ make UIMAGE_LOADADDR=''<loadaddr>'' uImage ''<carrier>''-j$(nproc) Image modules freescale/imx93-aura-cb2001.dtb
</pre>
:The former command selects the default DESK-MX9-L configuration, while the latter builds the kernel binary image with the required u-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>uImage</code> make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the <code>arch/arm/boot/uImage</code> file. Both this file and the kernel device tree can be copied to the tftp root directory <code>/tftpboot/desk-mxmx9-l/</code> with the following commands:
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ cp arch/armarm64/boot/uImage Image /tftpboot/{{{kitdesk-repo}}}mx9-l/dvdk@vagrant:~/desk-mx-l/linux$ cp arch/armarm64/boot/dts/freescale/*.dtb /tftpboot/{{{kitdesk-mx9-repo}}}l/
</pre>
Usually, kernel modules are installed with <code>make modules_install</code> command, but this method installs the modules into the <code>/lib/modules</code> directory of you your MVM, which is not what you want.
A better way to deploy kernel modules while cross-compiling is
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l/linux$ mkdir modules-installdvdk@vagrant:~/desk-mx-l/linux$ make INSTALL_MOD_PATH=modules-install modules_installdvdk@vagrant:~/desk-mx-l/linux$ cd modules-installcd dvdk@vagrant:~/desk-mx-l/linux/modules-install && $ tar cvzf ../modules.tar.gz . && cd ..dvdk@vagrant:~/desk-mx-l/linux$
</pre>
<pre class="workstation-terminal">
root@desk-mx8mp:~# tar xvzf modules.tar.gz -C /
</pre>
8,226
edits