Changes

Jump to: navigation, search

Building Linux kernel (XELK)

2,707 bytes added, 09:32, 6 November 2017
no edit summary
== History ==
 
{| class="wikitable" border="1"
!Version
!Date
!XELK version
!Notes
|-
|1.0.0
|Nov 2013
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 1.0.0 | XELK 1.0.0]]
|
|-
|1.2.0
|May 2014
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 1.2.0 | XELK 1.2.0]]
|
|-
|2.0.0
|Nov 2014
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 2.0.0 | XELK 2.0.0]]
|
|-
|2.1.0
|May 2015
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 2.1.0 | XELK 2.1.0]]
|
|-
|2.2.0
|Feb 2016
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 2.2.0 | XELK 2.2.0]]
|
|-
|2.3.1
|Oct 2016
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 2.3.1 | XELK 2.3.1]]
|
|-
|3.0.0
|Nov 2017
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK 3.0.0 | XELK 3.0.0]]
|
|-
|}
 
== Quick reference ==
 
{| class="wikitable" border="1"
|+Repository Information
|-
! URL
| git@git.dave.eu:axel/u-boot-imx.git
|-
! stable branch
| axel
|-
! stable tag
| xelk-2.3.2
|}
 
{| class="wikitable" border="1"
|+Build Information
|-
! defconfig
| colspan=5 | imx_v7_axel_defconfig
|-
! Kernel binary
| colspan=5 | UIMAGE_LOADADDR=0x80008000 uImage
|-
! rowspan=5 | Device trees
! Platform
 
! DTB
|-
| SBC-AXEL
| imx6q-sbcx-cb0012.dtb, imx6dl-sbcx-cb0012.dtb
|-
| EVB
| imx6q-xelk-l.dtb, imx6dl-xelk-l.dtb
|-
| EVB OLD
| imx6q-xelk-l-2.0.0.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 axel/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.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-sbcx-cb0012.dtb
</pre>
 
:The former command selects the default XELK 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/axel/</code> with the following commands:
 
<pre class="workstation-terminal">
cp arch/arm/boot/uImage /tftpboot/axel/
cp arch/arm/boot/dts/*.dtb /tftpboot/axel/
</pre>
116
edits

Navigation menu