Wiki Home » vmx53 » linux

linux

Last modified by Administrator on 2018/10/21 17:34
Linux kernel.

Build

Set toolchain

Export toolchain variables for every related terminal session.

Initial steps

Create working directory

mkdir -pv ~/workdir/vmx53/kernel/

Set shell variables

LK_VERSION=3.12.13
#SW_VERSION=20140817
#SW_VERSION=20140909
SW_VERSION=20150308
LK_VNAME=${LK_VERSION%[-.]*}

Download & Extract source code

cd ~/workdir/vmx53/kernel
wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-${LK_VERSION}.tar.xz
tar -xvJf linux-${LK_VERSION}.tar.xz
mv linux-${LK_VERSION} linux-${LK_VNAME}.orig
cp -rv linux-${LK_VNAME}.orig linux-${LK_VNAME}.work

Patch

cd ~/workdir/vmx53/kernel/
wget https://www.voipac.com/downloads/imx/53/src/linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch
wget https://www.voipac.com/downloads/imx/53/src/linux-${LK_VERSION}_vmx53_${SW_VERSION}.cfg
cd ~/workdir/vmx53/kernel/linux-${LK_VNAME}.work
patch -p1  < ../linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch
cp ../linux-${LK_VERSION}_vmx53_${SW_VERSION}.cfg .config

Compile

cd ~/workdir/vmx53/kernel/linux-${LK_VNAME}.work
#make ARCH=arm menuconfig
make -j4 zImage modules imx53-vmx53-557.dtb imx53-vmx53-668.dtb imx53-vmx53-779.dtb
#sudo make ARCH=arm INSTALL_MOD_PATH=/srv/nfs/vmx53-rootfs modules_install
Note: Output file is called arch/arm/boot/zImage and arch/arm/boot/dts/imx53-vmx53-*.dtb .

How to

Custom DTB file

cd ~/workdir/vmx53/kernel/linux-${LK_VNAME}.work
#Edit arch/arm/boot/dts/imx53-vmx53-779.dts
#Save
make -j4 imx53-vmx53-779.dtb
 Note: Editable files related to vmx53 module are imx53.dtsi imx53-vmx53.dtsi imx53-vmx53-557.dts imx53-vmx53-668.dts imx53-vmx53-779.dts
Tags:
Created by Administrator on 2014/08/20 18:14

This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 6.1 - Documentation