Difference between revisions of "Building Linux kernel (SDVX)"

From DAVE Developer's Wiki
Jump to: navigation, search
(Created page with "== History == {| class="wikitable" border="1" !Version !Date !SDVX version !Notes |- |1.0.0 |Sep 2018 |SDVX 1.0.0 | |- |} == Quick reference == {| class="wikitable" border="...")
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{InfoBoxTop}}
 
{{Applies To SDVX}}
 
{{InfoBoxBottom}}
 
 
 
== History ==
 
== History ==
  
Line 57: Line 53:
 
|-
 
|-
 
! defconfig
 
! defconfig
| colspan=5 | imx_v7_lynx_defconfig
+
| colspan=5 | imx_v7_axel_defconfig
 
|-
 
|-
 
! Kernel binary
 
! Kernel binary
| colspan=5 | UIMAGE_LOADADDR=0x80008000 uImage
+
| colspan=5 | UIMAGE_LOADADDR=0x10008000 uImage
 
|-
 
|-
 
! rowspan=5 | Device trees
 
! rowspan=5 | Device trees
Line 67: Line 63:
 
! DTB
 
! DTB
 
|-
 
|-
| SDVx-Ul
+
| SDVx-Lite
| imx6ul-axelulite-cb0042.dtb imx6ul-axelulite-cb0044.dtb
+
| imx6dl-sfczg-cb0043.dtb, imx6dl-sfczg-cb0045.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>
 

Revision as of 07:48, 6 September 2018

History[edit | edit source]

Version Date SDVX version Notes
1.0.0 Sep 2018 SDVX 1.0.0

Quick reference[edit | edit source]

Repository Information
URL git@git.dave.eu:sdvx/inux-2.6-imx.git
stable branch sdvx
stable tag sdvx-1.0.0

SDVx-Lite[edit | edit source]

Build Information
defconfig imx_v7_axel_defconfig
Kernel binary UIMAGE_LOADADDR=0x10008000 uImage
Device trees Platform DTB
SDVx-Lite imx6dl-sfczg-cb0043.dtb, imx6dl-sfczg-cb0045.dtb

SDVx-Ul[edit | edit source]

Build Information
defconfig imx_v7_axel_defconfig
Kernel binary UIMAGE_LOADADDR=0x10008000 uImage
Device trees Platform DTB
SDVx-Lite imx6dl-sfczg-cb0043.dtb, imx6dl-sfczg-cb0045.dtb