Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Development/Building Linux kernel

558 bytes removed, 16:18, 28 December 2021
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"|X1.Y0.Z0|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"|Month YearJan 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"|TBD|-|-|style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;borderFirst DESK-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fb; padding:5px; color:#000000"|[TBD_link X.Y.Z]|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"|Month Year|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"|TBDMX8M release
|-
|}
|-
! URL
| git@git.dave.eu:desk-mx-l/linux-'''TBD'''imx.git
|-
! stable branch
|-
! stable tag
| desk-mx-l-12.x.x
|}
|-
! defconfig
| colspan="2" | ''<defconfig>''imx_v8_defconfig
|-
! Kernel binary
| colspan="2" | UIMAGE_LOADADDR=''<loadaddr>'' uImageImage
|-
! rowspan="3" | Device trees
! DTB
|-
| ''SBC''SBCX| ''<carrier>'' imx8mm-mito8mmini.dtbdtsb
|-
| EVBSBC ORCA| ''<carrier>''imx8mp-mito8mplus-cb1001.dtbdts
|-
|}
<pre class="workstation-terminal">
cd {{{kitdesk-repo}}}mx-l/linux
</pre>
<pre class="workstation-terminal">
make imx_v7_{{{kit-repo}}}_defconfigimx_v8_defconfigmake UIMAGE_LOADADDR=''<loadaddr>'' uImage ''<carrier>''Image freescale/imx8mm-mito8mmini.dtb freescale/imx8mp-mito8mplus-cb1001.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 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/uImageImage</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">
cp arch/arm/boot/uImage Image /tftpboot/{{{kitdesk-repo}}}mx-l/cp arch/arm/boot/dts/*.dtb /tftpboot/{{{kitdesk-mx-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
----
 [[Category:MITO 8M]] [[Category:MITO 8M Mini]] [[Category:ORCA]]
8,253
edits