Changes between Initial Version and Version 1 of BuildingAKernel/Ubuntu12.04.5-Kernel3.10.32-Xenomai2.6.4


Ignore:
Timestamp:
Mar 30, 2016, 2:07:11 AM (8 years ago)
Author:
cv
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BuildingAKernel/Ubuntu12.04.5-Kernel3.10.32-Xenomai2.6.4

    v1 v1  
     1= Building Kernel 3.10.32 with Xenomai 2.6.4 for Ubuntu 12.04.5 =
     2
     3# References:
     4# https://sites.google.com/site/drckmu/simulation/xenomai
     5# http://support.barrett.com/wiki/BuildingAPC/Precise64Install
     6
     7# Ubuntu Version: 12.04.5
     8# Kernel Version: 3.10.32
     9# Xenomai Version: 2.6.4
     10
     11== Section 1: Building Xenomai Packages ==
     12
     13# Install Prereq's:
     14
     15apt-get install devscripts debhelper dh-kpatches findutils
     16apt-get install devscripts debhelper dh-kpatches autotools-dev autoconf automake libtool
     17
     18# Get and unpack the tar.bz2 archive:
     19
     20wget -O - http://download.gna.org/xenomai/stable/xenomai-2.6.4.tar.bz2 | tar -jxf -
     21cd xenomai-2.6.4
     22DEBEMAIL="your@email" DEBFULLNAME="Your Name" debchange -v 2.6.4 Release 2.6.4
     23debuild -uc -us
     24
     25# Install the packages
     26
     27cd
     28dpkg -i *.deb
     29
     30== Section 2: Building a patched Linux kernel package ==
     31
     32# Install Prereq's:
     33
     34apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev
     35
     36# Locate and copy the correct ipipe patch from Xenomai:
     37
     38cp /usr/src/xenomai-2.6.4/ksrc/arch/x86/patches/ipipe-core-3.10.32-x86-4.patch ~/ipipe-core-3.10.32-x86-4.patch
     39
     40# Download the kernel source archive and extract:
     41
     42wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.32.tar.xz
     43tar -xf linux-3.10.32.tar.xz && cd linux-3.10.32
     44
     45# Patch the Kernel!! :D
     46
     47/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh --arch=amd64 --linux=. --adeos=../ipipe-core-3.10.32-x86-4.patch
     48
     49# Recycle an old realtime config and make it (most if not all of the defaults for new params are ok, but AUDITSYSCALL and KGDB should be disabled, and be careful of anything to do with IRQ's):
     50
     51cp /your/old/linux/config .config
     52make oldconfig
     53# OR make menuconfig
     54
     55# Build the Kernel:
     56
     57CONCURRENCY_LEVEL=8 fakeroot make-kpkg --initrd --append-to-version -xenomai-2.6.4 --revision 1.0 kernel_image kernel_headers
     58
     59# Image and Headers will be in the home directory.  Follow the steps at http://support.barrett.com/wiki/BuildingAPC/Precise64Install2 to complete the PC installation.