Changes

Jump to: navigation, search

Building Linux kernel (SDVX)

1,524 bytes added, 07:53, 6 September 2018
no edit summary
|-
! defconfig
| colspan=5 | imx_v7_axel_defconfigimx_v7_lynx_defconfig
|-
! Kernel binary
| colspan=5 | UIMAGE_LOADADDR=0x10008000 0x80008000 uImage
|-
! rowspan=5 | Device trees
! DTB
|-
| SDVx-LiteUl| imx6dlimx6ul-sfczgaxelulite-cb0043cb0042.dtb, imx6dlimx6ul-sfczgaxelulite-cb0045cb0044.dtb
|-
|}
 
== Detailed Instructions ==
 
It is assumed that the development environment has been set up.
* start the Linux development VM and login into the system
* open a terminal window and ''cd'' into Linux kernel source code
 
<pre class="workstation-terminal">
cd sdvx/linux/
</pre>
 
* in case of needs you can update your local repository with the following git command
 
<pre class="workstation-terminal">
git pull
</pre>
 
* configure the build environment
 
<pre class="workstation-terminal">
source ~/env-lite.sh
</pre>
 
 
* to build the binaries run the following commands:
 
<pre class="workstation-terminal">
make imx_v7_axel_defconfig
make UIMAGE_LOADADDR=0x10008000 uImage imx6dl-sfczg-cb0043.dtb
</pre>
 
:The former command selects the default SDVx 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/sdvx/</code> with the following commands:
 
<pre class="workstation-terminal">
cp arch/arm/boot/uImage /tftpboot/sdvx/linux/
cp arch/arm/boot/dts/*.dtb /tftpboot/sdvx/linux/
</pre>
170
edits

Navigation menu