Open main menu

DAVE Developer's Wiki β

Changes

DESK-MX8M-L/Development/Building Linux kernel

163 bytes added, 16:04, 16 February 2022
no edit summary
* open a terminal window and ''cd'' into Linux kernel source code
<pre class="workstation-terminal">
cd desk-mx-l/linux
</pre>
* in case of needs you can update your local repository with the following git command
<pre class="workstation-terminal">
git pull
</pre>
* checkout the right branch
 <pre class="workstation-terminal">
git checkout desk-mx8m-l-rel-2.0.0
</pre>
* 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
<pre class="workstation-terminal">
source /home/dvdk/desk-mx-l/desk-mx8m-l-2.0.0-rc2_env.sh
</pre>
* enter the source tree directory and run the following commands:
<pre class="workstation-terminal">dvdk@vagrant:~/desk-mx-l/linux$ make imx_v8_defconfigdvdk@vagrant:~/desk-mx-l/linux$ make Image modules freescale/imx8mm-mito8mmini.dtb freescale/imx8mp-mito8mplus-cb1001.dtb
</pre>
<pre class="workstation-terminal">
dvdk@vagrant:~/desk-mx-l$ cp arch/arm64/boot/Image /tftpboot/desk-mx-l/dvdk@vagrant:~/desk-mx-l$ cp arch/arm64/boot/dts/freescale/*.dtb /tftpboot/desk-mx-l/
</pre>
<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-install && 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,221
edits