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
> [email protected]
> https://mail.gna.org/listinfo/xenomai-help
> 


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Reply via email to