Changes

Jump to: navigation, search

Building Linux kernel (XUELK)

2,371 bytes added, 07:33, 29 August 2016
Created page with "{{InfoBoxTop}} {{AppliesToAXELULite}} {{AppliesToSBCLynx}} {{InfoBoxBottom}} == History == {| class="wikitable" border="1" !Version !Date !XUELK version !Notes |- |1.0.0 |Au..."
{{InfoBoxTop}}
{{AppliesToAXELULite}}
{{AppliesToSBCLynx}}
{{InfoBoxBottom}}

== History ==

{| class="wikitable" border="1"
!Version
!Date
!XUELK version
!Notes
|-
|1.0.0
|August 2015
|[[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#XUELK_1.0.0|XUELK 1.0.0]]
|
|-
|}

== Quick reference ==

{| class="wikitable" border="1"
|+Repository Information
|-
! URL
| git@git.dave.eu:lynx/linux-2.6-imx.git
|-
! stable branch
| lynx
|-
! stable tag
| xuelk-1.0.0
|}

{| class="wikitable" border="1"
|+Build Information
|-
! defconfig
| colspan=4 | imx_v7_lynx_defconfig
|-
! Kernel binary
| colspan=4 | UIMAGE_LOADADDR=0x80008000 uImage
|-
! rowspan=4 | Device trees
! Platform
! SOM ConfigID
! CB ConfigID
! DTB
|-
| SBC Lynx
| 0x00000008
| N/A
| imx6ul-lynx.dtb
|-
| SBC Lynx
| 0x0000000C
| N/A
| imx6ul-lynx-som000c.dtb
|-
| Axel ULite
| 0x0000000B
| 0x00000010
| imx6ul-axelulite-cb0010.dtb
|}


== Detailed Instructions ==

It is assumed that the development environment has been set up properly as described [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#Quick_start_guide|here]].
* 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 lynx/linux/
</pre>

* in case of needs you can update your local repository with the following git command

<pre>
git pull
</pre>


*enter the source tree directory and run the following commands:

<pre>
make imx_v7_lynx_defconfig
make IMAGE_LOADADDR=0x80008000 uImage mx6ul-lynx.dtb imx6ul-lynx-som000c.dtb imx6ul-axelulite-cb0010.dtb
</pre>

:The former command selects the default XUELK 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/lynx/</code> with the following commands:

<pre>
cp arch/arm/boot/uImage /tftpboot/lynx/
cp arch/arm/boot/dts/*.dtb /tftpboot/lynx/
</pre>
768
edits

Navigation menu