Changes between Version 1 and Version 2 of BuildingAKernel/Ubuntu12.04.5-Kernel3.10.32-Xenomai2.6.4
- Timestamp:
- Mar 30, 2016, 2:13:40 AM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BuildingAKernel/Ubuntu12.04.5-Kernel3.10.32-Xenomai2.6.4
v1 v2 1 1 = Building Kernel 3.10.32 with Xenomai 2.6.4 for Ubuntu 12.04.5 = 2 2 3 # References: 4 # https://sites.google.com/site/drckmu/simulation/xenomai 5 # http://support.barrett.com/wiki/BuildingAPC/Precise64Install 3 == Notes == 6 4 7 # Ubuntu Version: 12.04.5 8 # Kernel Version: 3.10.32 9 # Xenomai Version: 2.6.4 5 Useful References: 6 https://sites.google.com/site/drckmu/simulation/xenomai 7 http://support.barrett.com/wiki/BuildingAPC/Precise64Install 10 8 11 == Section 1: Building Xenomai Packages == 9 Ubuntu Version: 12.04.5 10 Kernel Version: 3.10.32 11 Xenomai Version: 2.6.4 12 12 13 # Install Prereq's: 13 These instructions assume that you start from the home directory. 14 14 15 == Building Xenomai Packages == 16 17 Install Prereq's: 18 {{{ 15 19 apt-get install devscripts debhelper dh-kpatches findutils 16 20 apt-get install devscripts debhelper dh-kpatches autotools-dev autoconf automake libtool 21 }}} 17 22 18 #Get and unpack the tar.bz2 archive:19 23 Get and unpack the tar.bz2 archive: 24 {{{ 20 25 wget -O - http://download.gna.org/xenomai/stable/xenomai-2.6.4.tar.bz2 | tar -jxf - 21 26 cd xenomai-2.6.4 22 27 DEBEMAIL="your@email" DEBFULLNAME="Your Name" debchange -v 2.6.4 Release 2.6.4 23 28 debuild -uc -us 29 }}} 24 30 25 #Install the packages26 31 Install the packages 32 {{{ 27 33 cd 28 34 dpkg -i *.deb 35 }}} 29 36 30 == Section 2:Building a patched Linux kernel package ==37 == Building a patched Linux kernel package == 31 38 32 # Install Prereq's: 39 Install Prereq's: 40 {{{ 41 apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev 42 }}} 33 43 34 apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev 44 Locate and copy the correct ipipe patch from Xenomai: 45 {{{ 46 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 47 }}} 35 48 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 49 Download the kernel source archive and extract: 50 {{{ 42 51 wget https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.32.tar.xz 43 52 tar -xf linux-3.10.32.tar.xz && cd linux-3.10.32 53 }}} 44 54 45 # Patch the Kernel!! :D 55 Patch 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 }}} 46 59 47 /usr/src/xenomai-kernel-source/scripts/prepare-kernel.sh --arch=amd64 --linux=. --adeos=../ipipe-core-3.10.32-x86-4.patch 60 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): 61 {{{ 62 cp /your/old/linux/config .config 63 }}} 48 64 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): 65 If you want to only change settings that aren't already defined: 66 {{{ 67 make oldconfig 68 }}} 50 69 51 cp /your/old/linux/config .config 52 make oldconfig 53 # OR make menuconfig 70 If you want the graphical interface to make changes: 71 {{{ 72 make menuconfig 73 }}} 54 74 55 # Build the Kernel: 75 Build the Kernel: 76 {{{ 77 CONCURRENCY_LEVEL=8 fakeroot make-kpkg --initrd --append-to-version -xenomai-2.6.4 --revision 1.0 kernel_image kernel_headers 78 }}} 56 79 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. 80 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.