From: Stefan Kisdaroczi <kisda@domain.hid>
To: Leopold Palomo-Avellaneda <leo@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Xenomai patches
Date: Wed, 28 Oct 2009 16:10:26 +0100 [thread overview]
Message-ID: <4AE85EE2.60209@domain.hid> (raw)
In-Reply-To: <200910281314.00378.leo@domain.hid>
[-- Attachment #1: Type: text/plain, Size: 3210 bytes --]
Hi,
Leopold Palomo-Avellaneda schrieb:
> Hi,
>
> I'm having a trouble installing xenomai in a debian machines. Actually the
> official debian package is not useful. You cannot use it because there's no
> kernel package that could be patched.
>
> Anyway, I would like to ask about if, for example, a patch against a 2.6.30
> could be used against 2.6.30.4 for example or reverse. I don't understand why
> this four numbers instead of the classical 3. Or, how can I modify it to use
> it.
Try to modify the line starting with KVERSION=... in the file
/usr/src/kernel-patches/$ARCH/apply/xenomai
Replace the 4 digit version numbers with 3 digits.
However, if suggest to download the kernel source from kernel.org, this will work
without changing the above mentioned file.
Im using Debian Lenny and the following is working for me:
(replace the version numbers...)
First: build the xenomai deb packages:
--------------------------------------
1) install needed packages as root:
# apt-get install debhelper devscripts dh-kpatches findutils
2) create a new directory:
~$ mkdir -p src/xenomai && cd src/xenomai
3) download xenomai:
~/src/xenomai$ wget http://download.gna.org/xenomai/stable/xenomai-2.4.7.tar.bz2
4) repack the archive (*tar.bz2 -> *orig.tar.gz):
~/src/xenomai$ bzcat xenomai-2.4.7.tar.bz2 | gzip > xenomai_2.4.7.orig.tar.gz && rm xenomai-2.4.7.tar.bz2
5) extract the archive:
~/src/xenomai$ tar -zxf xenomai_2.4.7.orig.tar.gz
6) change dir:
~/src/xenomai$ cd xenomai-2.4.7/
7) update debian/changelog:
~/src/xenomai/xenomai-2.4.7$ debchange -v 2.4.7-0 Release 2.4.7
8) build:
~/src/xenomai/xenomai-2.4.7$ debuild
9) as root: install the deb's:
/..../src/xenomai# dpkg -i *.deb
Second: download, patch and build the kernel:
---------------------------------------------
1) install needed packages:
# apt-get install kernel-package libncurses-dev fakeroot zlib1g-dev
2) create a new directory:
~$ mkdir -p src/linux && cd src/linux
3) download kernel source:
~/src/linux$ wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.28.7.tar.bz2
4) extract it:
~/src/linux$ tar -jxf linux-2.6.28.7.tar.bz2
5) enter directory:
~/src/linux$ cd linux-2.6.28.7/
6) patch the kernel with xenomai:
~/src/linux/linux-2.6.28.7$ /usr/src/kernel-patches/i386/apply/xenomai
7) configure the kernel:
[optional] copy a kernel config to .config and run "make oldconfig" [/optional]
~/src/linux/linux-2.6.28.7$ make menuconfig
8) compile the kernel with make-kpkg:
~/src/linux/linux-2.6.28.7$ fakeroot make-kpkg --initrd --append-to-version -xenomai-2.4.7 --revision 1.0 binary-arch
if you have a multicore box, use CONCURRENCY_LEVEL= to speed up the build:
~/src/linux/linux-2.6.28.7$ CONCURRENCY_LEVEL=2 fakeroot make-kpkg --initrd --append-to-version -xenomai-2.4.7 --revision 1.0
binary-arch
9) as root: install the deb's:
/..../src/linux# dpkg -i *.deb
thats all folks...
regards, kisda
>
> Regards,
>
> Leo
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 251 bytes --]
next prev parent reply other threads:[~2009-10-28 15:10 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-28 12:13 [Xenomai-help] Xenomai patches Leopold Palomo-Avellaneda
2009-10-28 13:45 ` Gilles Chanteperdrix
2009-10-28 14:53 ` Leopold Palomo Avellaneda
2009-10-28 15:10 ` Stefan Kisdaroczi [this message]
2009-10-29 10:05 ` Leopold Palomo-Avellaneda
2009-10-29 10:13 ` Gilles Chanteperdrix
2009-10-29 10:14 ` Gilles Chanteperdrix
2009-10-29 10:21 ` Leopold Palomo-Avellaneda
2009-10-29 10:23 ` Leopold Palomo-Avellaneda
2009-10-29 10:55 ` Gilles Chanteperdrix
2009-10-29 11:25 ` Leopold Palomo-Avellaneda
2009-10-29 11:40 ` Jan Kiszka
2009-10-29 12:17 ` Stefan Kisdaroczi
2009-10-29 14:00 ` Leopold Palomo-Avellaneda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4AE85EE2.60209@domain.hid \
--to=kisda@domain.hid \
--cc=leo@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.