Open main menu

DAVE Developer's Wiki β

Changes

no edit summary
<section begin="History" />
{| style="border-collapse:collapse; "
!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"|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:#edf8fb; padding:5px; color:#000000"|X.Y.Z{{oldid|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"14123|Month Year2021/07/16}}|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"|TBDFirst DESK 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" |{{oldid|16987|2022/03/04}}
| 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" |DESK-MX6-L 3.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:#edf8fbededed; padding:5px; color:#000000"|[TBD_link X{{oldid|17061|2022/09/26}}| 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-MX6-L 3.Y0.Z]1 minor update|-! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|Month Year2023/04/06|! style="border-left:solid 2px #73B2C7; border-right:solid 2px #73B2C7;border-top:solid 2px #73B2C7; border-bottom:solid 2px #73B2C7; background-color:#edf8fbededed; padding:5px; color:#000000"|TBDDESK-MX6-L 4.0.0 release
|-
|}
<section end="History" />__FORCETOC__<section begin="Body" />
==Building Linux==
===Quick reference===
{| class="wikitable" border="1"
! colspan="2" |+Repository Information
|-
! URL
| git@git.dave.eu:desk-mx-l/linux-'''TBD'''imx.git
|-
! stable branch
| desk-mxmx6-l-4.x.x
|-
! stable tag
| desk-mxmx6-l-14.x0.x0
|}
{| class="wikitable" border="1"
! colspan="2" |+Build Information
|-
! defconfig
| colspan="2" | ''<defconfig>''imx_v7_desk_defconfig
|-
! Kernel binary
| colspan="2" | UIMAGE_LOADADDR=''<loadaddr>'' 0x10008000 uImage
|-
! rowspan="4" | Device trees
! Platform
! | DTB|-| ''SBC''| ''<carrier>''.dtb|-| EVB| ''<carrier>''.dtb
|-
! SBCX
| imx6dl-sbcx-cb0012.dtb
|}
<pre class="workstation-terminal">
cd {{{kit~/desk-repo}}}mx-l/linux
</pre>
<pre class="workstation-terminal">
source ~/envdesk-mx-l/desk-mx6-l-4.0.0_env.sh
</pre>
<pre class="workstation-terminal">
make imx_v7_{{{kit-repo}}}_defconfigimx_v7_desk_defconfigmake UIMAGE_LOADADDR=''<loadaddr>'' 0x10008000 uImage ''<carrier>''imx6dl-sbcx-cb0012.dtb
</pre>
'''NOTE''': this is the default configuration suitable for latest target.
:The former command selects the default DESK-MX6-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>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-mx-l/</code> with the following commands:
<pre class="workstation-terminal">
cp arch/arm/boot/uImage /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
<pre class="workstation-terminal">
make modules
mkdir modules-install
make INSTALL_MOD_PATH=modules-install modules_install
8,254
edits