Difference between revisions of "i.MX53 SODIMM PC Linux"
Jump to navigation
Jump to search
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | [[Category:i.MX53 SODIMM PC - Development | + | [[Category:i.MX53 SODIMM PC - Development Kit]] |
[[Category:Linux]] | [[Category:Linux]] | ||
<!-- --> | <!-- --> | ||
Line 34: | Line 34: | ||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
cd ~/workdir/vmx53/kernel/ | cd ~/workdir/vmx53/kernel/ | ||
− | wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC- | + | wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/sources/linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch |
− | wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC- | + | wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/sources/linux-${LK_VERSION}_vmx53_${SW_VERSION}.cfg |
cd ~/workdir/vmx53/kernel/linux-${LK_VNAME}.work | cd ~/workdir/vmx53/kernel/linux-${LK_VNAME}.work | ||
patch -p1 < ../linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch | patch -p1 < ../linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch | ||
Line 58: | Line 58: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | '''''Note:''''' | + | '''''Note:''''' Configuration files related to Voipac i.MX53_SODIMM_PC Modules: |
* imx53.dtsi | * imx53.dtsi | ||
* imx53-vmx53.dtsi | * imx53-vmx53.dtsi |
Latest revision as of 22:09, 23 October 2021
This section shows basic steps how to compile a custom Linux kernel.
Building images
Set toolchain
Export toolchain variables for every related terminal session.
Set shell variables
LK_VERSION=3.12.13 #SW_VERSION=20140817 #SW_VERSION=20140909 #SW_VERSION=20150308 SW_VERSION=20151129 LK_VNAME=${LK_VERSION%[-.]*}
Download and extract source code
mkdir -pv ~/workdir/vmx53/kernel/ 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
Download and apply Voipac patches
cd ~/workdir/vmx53/kernel/ wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/sources/linux-${LK_VERSION}_vmx53_${SW_VERSION}.patch wget http://downloads.voipac.com/files/i.MX53_SODIMM_PC-Development_Kit/module/software/linux/sources/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
Output files are called arch/arm/boot/zImage and arch/arm/boot/dts/imx53-vmx53-*.dtb .:
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
Compile 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: Configuration files related to Voipac i.MX53_SODIMM_PC Modules:
- imx53.dtsi
- imx53-vmx53.dtsi
- imx53-vmx53-557.dts
- imx53-vmx53-668.dts
- imx53-vmx53-779.dts