Building Linux kernel (SDVX)

From DAVE Developer's Wiki
Revision as of 16:32, 17 September 2018 by U0007 (talk | contribs)$7

(diff) ← Older revision | Approved revision (diff) | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Info Box
SDVX.png Applies to SDVX

History

Version Date SDVX version Notes
1.0.0 Sep 2018 SDVX 1.0.0

Quick reference

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

SDVx-Lite

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

Build Information
defconfig imx_v7_lynx_defconfig
Kernel binary UIMAGE_LOADADDR=0x80008000 uImage
Device trees Platform DTB
SDVx-Ul imx6ul-axelulite-cb0042.dtb imx6ul-axelulite-cb0044.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
cd sdvx/linux/
  • in case of needs you can update your local repository with the following git command
git pull
  • configure the build environment
source ~/env-lite.sh


  • to build the binaries run the following commands:
make imx_v7_axel_defconfig
make UIMAGE_LOADADDR=0x10008000 uImage imx6dl-sfczg-cb0043.dtb
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 menuconfig, xconfig, or gconfig make target. Subsequent builds just require uImage make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the arch/arm/boot/uImage file. Both this file and the kernel device tree can be copied to the tftp root directory /tftpboot/sdvx/ with the following commands:

cp arch/arm/boot/uImage /tftpboot/sdvx/linux/
cp arch/arm/boot/dts/*.dtb /tftpboot/sdvx/linux/