Errors compiling kernel 2.6.20 with xenomai 2.3.1
-------- Original-Nachricht --------
Datum: Thu, 26 Apr 2007 18:38:46 +0200
Von: Jan Kiszka <[email protected]>
An: Karl Reichert <[email protected]>
CC: [email protected]
Betreff: Re: [Xenomai-help] Errors compiling kernel 2.6.20 with xenomai 2.3.1
Quoted 11 lines
Quoted 3 lines · Karl Reichert
Hello,
I'm trying to compile my kernel with xenomai 2.3.1 and I get lots of
errors.
Quoted 1 line
I'm using standard kernel (from kernel.org), version 2.6.20 and ubuntu
7.04 and gcc 5.97
gcc-what? Please try "gcc --version". Should be something with 3.x or 4.x (+some Ubuntu/Debian sub-revision).
It's gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4). Sorry for the mistake.
Quoted 6 lines
Quoted 1 line
I used the guide from http://www.captain.at/xenomai-2.1-installation.php
and patching kernel sources works fine, but when I do a "make menuconfig", I get a lot of errors (see below).
[looking...] Where? Please try again. :)
Link is working for me. But used now tutorial from http://www.rcode.net/blog/tlaurenzo/2007/03/
Quoted 6 lines
Quoted 3 lines
Does anybody has an idea what's the problem here?
Maybe I'm using wrong kernel or gcc version? I saw that xenomai 2.3.1supports kernel 2.6.20 so maybe gcc is in wrong version? Which one do I have to use?
Quoted 9 lines
Any gcc that is fine with the kernel (4.1 is said to make troubles, sometimes) should also work with Xenomai.
Quoted 1 line
Which system do you use out there running xenomai 2.3.1?
OpenSUSE and home-brewed, but Ubuntu must work as well.
Jan
Solved the problem now. It didn't installed all dependencies.
But now I have a different problem. When compiling (building deb-package), I get the following error:
====== making target install/linux-image-2.6.20 [new prereqs: ]====== This is kernel package version 10.065ubuntu5.
echo "The UTS Release version in include/linux/utsrelease.h"; echo " \"2.6.20-adeos-xenomai2.3.0\" "; echo "does not match current version:"; echo " \"2.6.20\" "; echo "Please correct this."; exit 2
The UTS Release version in include/linux/utsrelease.h
"2.6.20-adeos-xenomai2.3.0"
does not match current version:
"2.6.20" Please correct this.
make: *** [install/linux-image-2.6.20] Fehler 2
Thanks a lot for the fast reply!
Karl
Signature · 4 lines
von Karl Reichert "Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ... Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
Quoted 47 lines · Karl Reichert
-------- Original-Nachricht --------
Datum: Thu, 26 Apr 2007 18:38:46 +0200
Von: Jan Kiszka <[email protected]>
An: Karl Reichert <[email protected]>
CC: [email protected]
Betreff: Re: [Xenomai-help] Errors compiling kernel 2.6.20 with xenomai 2.3.1Quoted 11 lines
Quoted 3 lines · Karl Reichert
Hello,
I'm trying to compile my kernel with xenomai 2.3.1 and I get lots of
errors.
Quoted 1 line
I'm using standard kernel (from kernel.org), version 2.6.20 and ubuntu
7.04 and gcc 5.97
gcc-what? Please try "gcc --version". Should be something with 3.x or 4.x (+some Ubuntu/Debian sub-revision).
It's gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4). Sorry for the mistake.
Quoted 6 lines
Quoted 1 line
I used the guide from http://www.captain.at/xenomai-2.1-installation.php
and patching kernel sources works fine, but when I do a "make menuconfig", I get a lot of errors (see below).
[looking...] Where? Please try again. :)
Link is working for me. But used now tutorial from http://www.rcode.net/blog/tlaurenzo/2007/03/
Quoted 5 lines
Quoted 2 lines
Does anybody has an idea what's the problem here?
Maybe I'm using wrong kernel or gcc version? I saw that xenomai 2.3.1supports kernel 2.6.20 so maybe gcc is in wrong version? Which one do I have to use?
Quoted 8 lines
Any gcc that is fine with the kernel (4.1 is said to make troubles, sometimes) should also work with Xenomai.
Quoted 1 line
Which system do you use out there running xenomai 2.3.1?
OpenSUSE and home-brewed, but Ubuntu must work as well.
Jan
Solved the problem now. It didn't installed all dependencies.
But now I have a different problem. When compiling (building deb-package), I get the following error:
====== making target install/linux-image-2.6.20 [new prereqs: ]====== This is kernel package version 10.065ubuntu5.
echo "The UTS Release version ininclude/linux/utsrelease.h"; echo " \"2.6.20-adeos-xenomai2.3.0\" "; echo "does not match current version:"; echo " \"2.6.20\" "; echo "Please correct this."; exit 2
The UTS Release version ininclude/linux/utsrelease.h
Quoted 6 lines
"2.6.20-adeos-xenomai2.3.0" does not match current version: "2.6.20"Please correct this.
make: *** [install/linux-image-2.6.20] Fehler 2
Rules for building debian packages are in trunk only, not yet in 2.3.x. For now just build a plain kernel from the vanilla sources (of course Xenomai-prepared) and run make modules_install and make install.
Jan
Quoted 61 lines · Karl Reichert
-------- Original-Nachricht --------
Datum: Thu, 26 Apr 2007 18:38:46 +0200
Von: Jan Kiszka <[email protected]>
An: Karl Reichert <[email protected]>
CC: [email protected]
Betreff: Re: [Xenomai-help] Errors compiling kernel 2.6.20 with xenomai 2.3.1Quoted 5 lines
Quoted 3 lines · Karl Reichert
Hello,
I'm trying to compile my kernel with xenomai 2.3.1 and I get lots of
Quoted 8 lines
errors.
Quoted 1 line
I'm using standard kernel (from kernel.org), version 2.6.20 and ubuntu
7.04 and gcc 5.97
gcc-what? Please try "gcc --version". Should be something with 3.x or 4.x (+some Ubuntu/Debian sub-revision).
It's gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4). Sorry for the mistake.
Quoted 7 lines
Quoted 2 lines
I used the guide from
http://www.captain.at/xenomai-2.1-installation.phpand patching kernel sources works fine, but when I do a "make menuconfig", I get a lot of errors (see below).
[looking...] Where? Please try again. :)
Link is working for me. But used now tutorial from
http://www.rcode.net/blog/tlaurenzo/2007/03/Quoted 6 lines
Quoted 2 lines
Does anybody has an idea what's the problem here?
Maybe I'm using wrong kernel or gcc version? I saw that xenomai 2.3.1supports kernel 2.6.20 so maybe gcc is in wrong version? Which one do I have to use?
Quoted 8 lines
Any gcc that is fine with the kernel (4.1 is said to make troubles, sometimes) should also work with Xenomai.
Quoted 1 line
Which system do you use out there running xenomai 2.3.1?
OpenSUSE and home-brewed, but Ubuntu must work as well.
Jan
Solved the problem now. It didn't installed all dependencies.
But now I have a different problem. When compiling (building deb-package), I get the following error:
====== making target install/linux-image-2.6.20 [new prereqs: ]====== This is kernel package version 10.065ubuntu5.
echo "The UTS Release version ininclude/linux/utsrelease.h"; echo " \"2.6.20-adeos-xenomai2.3.0\" "; echo "does not match current version:";
echo " \"2.6.20\" "; echo "Please correct this."; exit 2 The UTS
Release version ininclude/linux/utsrelease.h
Quoted 5 lines
"2.6.20-adeos-xenomai2.3.0" does not match current version: "2.6.20"Please correct this.
make: *** [install/linux-image-2.6.20] Fehler 2
Looks like you are running make-kpkg on a tree that has previously been used to build another package. Either start afresh with a virgin source (as Jan has already mentions) or try debian/rules clean.
One tip - Don't use "xeno" in your versioning. When it comes to installing, the Debian scripts filter on "xeno" and treat them as Xen VM kernels and won't add them to grub's menu.
Take a look at my notes:
http://www.xenomai.org/index.php/Building_Debian_packages on building debs.
Quoted 3 lines
Thanks a lot for the fast reply!
Karl
Regards, Paul.