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


Ignore:
Timestamp:
Mar 30, 2016, 2:13:40 AM (4 years ago)
Author:
cv
Comment:

--

Legend:

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

    v1 v2  
    11= Building Kernel 3.10.32 with Xenomai 2.6.4 for Ubuntu 12.04.5 =
    22
    3 # References:
    4 # https://sites.google.com/site/drckmu/simulation/xenomai
    5 # http://support.barrett.com/wiki/BuildingAPC/Precise64Install
     3== Notes ==
    64
    7 # Ubuntu Version: 12.04.5
    8 # Kernel Version: 3.10.32
    9 # Xenomai Version: 2.6.4
     5Useful References:
     6https://sites.google.com/site/drckmu/simulation/xenomai
     7http://support.barrett.com/wiki/BuildingAPC/Precise64Install
    108
    11 == Section 1: Building Xenomai Packages ==
     9Ubuntu Version: 12.04.5
     10Kernel Version: 3.10.32
     11Xenomai Version: 2.6.4
    1212
    13 # Install Prereq's:
     13These instructions assume that you start from the home directory.
    1414
     15== Building Xenomai Packages ==
     16
     17Install Prereq's:
     18{{{
    1519apt-get install devscripts debhelper dh-kpatches findutils
    1620apt-get install devscripts debhelper dh-kpatches autotools-dev autoconf automake libtool
     21}}}
    1722
    18 # Get and unpack the tar.bz2 archive:
    19 
     23Get and unpack the tar.bz2 archive:
     24{{{
    2025wget -O - http://download.gna.org/xenomai/stable/xenomai-2.6.4.tar.bz2 | tar -jxf -
    2126cd xenomai-2.6.4
    2227DEBEMAIL="your@email" DEBFULLNAME="Your Name" debchange -v 2.6.4 Release 2.6.4
    2328debuild -uc -us
     29}}}
    2430
    25 # Install the packages
    26 
     31Install the packages
     32{{{
    2733cd
    2834dpkg -i *.deb
     35}}}
    2936
    30 == Section 2: Building a patched Linux kernel package ==
     37== Building a patched Linux kernel package ==
    3138
    32 # Install Prereq's:
     39Install Prereq's:
     40{{{
     41apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev
     42}}}
    3343
    34 apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev
     44Locate and copy the correct ipipe patch from Xenomai:
     45{{{
     46cp /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
     47}}}
    3548
    36 # Locate and copy the correct ipipe patch from Xenomai:
    37 
    38 cp /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 
     49Download the kernel source archive and extract:
     50{{{
    4251wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.32.tar.xz
    4352tar -xf linux-3.10.32.tar.xz && cd linux-3.10.32
     53}}}
    4454
    45 # Patch the Kernel!! :D
     55Patch the Kernel!! :D
     56{{{
     57/usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh --arch=amd64 --linux=. --adeos=../ipipe-core-3.10.32-x86-4.patch
     58}}}
    4659
    47 /usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh --arch=amd64 --linux=. --adeos=../ipipe-core-3.10.32-x86-4.patch
     60Recycle 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):
     61{{{
     62cp /your/old/linux/config .config
     63}}}
    4864
    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):
     65If you want to only change settings that aren't already defined:
     66{{{
     67make oldconfig
     68}}}
    5069
    51 cp /your/old/linux/config .config
    52 make oldconfig
    53 # OR make menuconfig
     70If you want the graphical interface to make changes:
     71{{{
     72make menuconfig
     73}}}
    5474
    55 # Build the Kernel:
     75Build the Kernel:
     76{{{
     77CONCURRENCY_LEVEL=8 fakeroot make-kpkg --initrd --append-to-version -xenomai-2.6.4 --revision 1.0 kernel_image kernel_headers
     78}}}
    5679
    57 CONCURRENCY_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.
     80Image and Headers will be in the home directory.  Follow the steps at http://support.barrett.com/wiki/BuildingAPC/Precise64Install2 to complete the PC installation.