How to compile Kernel 2.6.32 on Debian Wheezy?

2013-10-22 Thread Benedikt Wildenhain
Hi,

I would to like to use the rtai kernel patches on Debian Wheezy
(Debian-Package rtai-source) on the i386 architecture, which are
currently only available for various releases of Linux 2.6.

As the most recent kernel patch included in rtai-source was
hal-linux-2.6.32.11-x86-2.6-03.patch.gz, I first tried to compile the
vanilla kernel 2.6.32.11 with gcc-4.7 from Wheezy and using make-kpkg
(with .config copied from linux-image-2.6.32-5-686). It failed compiling
ptrace.c (the problem has already been described in
https://lkml.org/lkml/2012/8/9/281).

Using the patch from the linux-kernel-mailinglist from above the compile
process got further, but it fails at

gcc -nostdlib -o arch/x86/vdso/vdso32-int80.so.dbg -fPIC -shared
-Wl,--hash-style=sysv -m elf_i386 -Wl,-soname=linux-gate.so.1
-Wl,-T,arch/x86/vdso/vdso32/vdso32.lds arch/x86/vdso/vdso32/note.o
arch/x86/vdso/vdso32/int80.o
gcc: error: unrecognized command line option '-m'
gcc: error: elf_i386: No such file or directory

As I am using an i386 system anyway, I simply patched -m elf_i386 away
(which probably the Makefile when crosscompiling from amd64 to i386, see
attached patch for details). I assume -march=i386 would be a proper
replacement, but I am not sure about that.

Next problem occured at compiling an Intel network driver:

  gcc -Wp,-MD,drivers/net/igbvf/.ethtool.o.d  -nostdinc -isystem 
/usr/lib/gcc/i486-linux-gnu/4.7/include -nostdinc -isystem 
/usr/lib/gcc/i486-linux-gnu/4.7/include -Iinclude  
-I/home/ceet/benedikt/vanilla-linux/linux-2.6.32.11/arch/x86/include -include 
include/linux/autoconf.h -D__KERNEL__ -Wall -Wundef -Wstrict-prototypes 
-Wno-trigraphs -fno-strict-aliasing -fno-common 
-Werror-implicit-function-declaration -Wno-format-security 
-fno-delete-null-pointer-checks -Os -m32 -msoft-float -mregparm=3 
-freg-struct-return -mpreferred-stack-boundary=2 -march=i686 -mtune=generic 
-Wa,-mtune=generic32 -ffreestanding -fstack-protector -DCONFIG_AS_CFI=1 
-DCONFIG_AS_CFI_SIGNAL_FRAME=1 -pipe -Wno-sign-compare 
-fno-asynchronous-unwind-tables -mno-sse -mno-mmx -mno-sse2 -mno-3dnow 
-Wframe-larger-than=1024 -fomit-frame-pointer -Wdeclaration-after-statement 
-Wno-pointer-sign -fno-strict-overflow -fno-dwarf2-cfi-asm -fconserve-stack  
-DMODULE -DKBUILD_STR(s)=#s -DKBUILD_BASENAME=KBUILD_STR(ethtool)  
-DKBUILD_MODNAME=KBUILD_STR(igbvf)  -c -o drivers/net/igbvf/.tmp_ethtool.o 
drivers/net/igbvf/ethtool.c
In file included from include/linux/irq.h:29:0,
 from 
/home/ceet/benedikt/vanilla-linux/linux-2.6.32.11/arch/x86/include/asm/hardirq.h:5,
 from include/linux/hardirq.h:10,
 from include/linux/interrupt.h:12,
 from include/linux/netdevice.h:1070,
 from drivers/net/igbvf/ethtool.c:30:
/home/ceet/benedikt/vanilla-linux/linux-2.6.32.11/arch/x86/include/asm/irq_regs.h:
 In function 'set_irq_regs':
/home/ceet/benedikt/vanilla-linux/linux-2.6.32.11/arch/x86/include/asm/irq_regs.h:26:2:
 warning: variable 'tmp__' set but not used [-Wunused-but-set-variable]
In file included from 
/home/ceet/benedikt/vanilla-linux/linux-2.6.32.11/arch/x86/include/asm/hardirq.h:5:0,
 from include/linux/hardirq.h:10,
 from include/linux/interrupt.h:12,
 from include/linux/netdevice.h:1070,
 from drivers/net/igbvf/ethtool.c:30:
include/linux/irq.h: In function 'alloc_desc_masks':
include/linux/irq.h:441:8: warning: variable 'gfp' set but not used 
[-Wunused-but-set-variable]
In file included from drivers/net/igbvf/ethtool.c:36:0:
drivers/net/igbvf/igbvf.h: At top level:
drivers/net/igbvf/igbvf.h:128:15: error: duplicate member 'page'
make[5]: *** [drivers/net/igbvf/ethtool.o] Error 1
make[4]: *** [drivers/net/igbvf] Error 2
make[3]: *** [drivers/net] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2

Of course I could find some way to go around this error, but I assume I
either did something fundamentally wrong or I'll have to file a bug
against some package (gcc?). Does anybody have an idea?

Regards,
Benedikt Wildenhain

P.S.: Compiling this kernel using gcc-4.4 from oldstable works, I am
currently trying to compile it together with the rtai-patches, but that
doesn't feel like the way rtai-source is meant to be used.

-- 
Benedikt Wildenhain, M.Sc., Wiss. Mitarbeiter - Hardwarenahe IT-Systeme
Hochschule Bochum - Bochum University of Applied Sciences
Campus Velbert/Heiligenhaus - http://www.hs-bochum.de/cvh/
Höseler Platz 2, Heiligenhaus, Raum 2.28, Tel +49 (0)2056 158744
--- a/arch/x86/vdso/Makefile	2013-10-22 14:14:38.0 +0200
+++ b/arch/x86/vdso/Makefile	2013-10-22 14:14:09.0 +0200
@@ -69,7 +69,7 @@
 vdso32-images			= $(vdso32.so-y:%=vdso32-%.so)
 
 CPPFLAGS_vdso32.lds = $(CPPFLAGS_vdso.lds)
-VDSO_LDFLAGS_vdso32.lds = -m elf_i386 -Wl,-soname=linux-gate.so.1
+VDSO_LDFLAGS_vdso32.lds = -Wl,-soname=linux-gate.so.1
 
 # This makes sure the $(obj) subdirectory

Re: squid: localhost wird zum squid-host ...hmmm.

2002-08-17 Thread Benedikt Wildenhain

On Sat, Aug 17, 2002 at 02:11:31AM +0200, Adrian Zaugg wrote:
 Hallo Liste
 
 Wenn ich mein Squid auf dem Server als Proxy angegeben habe und von
 einem Client eine Anfrage an den host localhost stelle,  so antwortet
 der angesprochene Dienst des Squid-Servers statt des Clienten. Schalte
 ich die Proxyeinstellung des Browsers wieder ab, so antwortet der Dienst
 des Clienten (was ich eigentlich auch erwarten würde) verhalten sich
 alle Proxies so? Wie kann ich das ggf. umstellen?
Warum das so ist wurde ja bereits erklaert. Um das zu loesen musst du
die Noproxy - Einstellung deines Clients um localhost ergaenzen.

-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg15757/pgp0.pgp
Description: PGP signature


Re: Was ist das fr ein Logeintrag?

2002-07-14 Thread Benedikt Wildenhain

On Sun, Jul 14, 2002 at 03:54:39PM +0200, Arne Braun wrote:
 Warum läuft iptables nicht dauerhaft ? Ich starte 
 das script in ip-up.d und flushe es in ip-down.d warum
 sollte es dann aufhören solange die Verbindung noch steht.
 woody, Kernel 2.4.17
Weil iptables nur ein Programm ist, mit dem du Netfilter, einem Teil des
Kernels, mitteilst welche Regeln es auf den Netzwerkverkehr anwenden
sollst. Die eigentliche Arbeit macht also der Kernel.


-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg12732/pgp0.pgp
Description: PGP signature


Re: Debian-Betriebssysteme

2002-07-13 Thread Benedikt Wildenhain

On Thu, Jul 11, 2002 at 05:49:03PM +0200, Dieter Schuster wrote:
 Tach auch!
 
 Weiss ich nicht mehr, ist schon länger her. Es ist mir nur geblieben,
 das es schnell startet (zumidenstens als mein Linux, das nicht auf
 schnelles Starten optimiert ist).
Koennte es daran liegen, das Hurd standardmaessig (als ich es dass
letzte Mal nutzte) keine Daemons, gettys oder aehnliches und auch nur
wenige Treiber startet?

-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg12624/pgp0.pgp
Description: PGP signature


Re: group=wheel und ssh

2002-07-13 Thread Benedikt Wildenhain

On Sat, Jun 29, 2002 at 04:05:22PM +0200, Udo Mueller wrote:
 sudo ist nicht installiert. Und login bringt mir oberes. Kann man
 da noch was machen?
Du koenntest ueberpruefen, ob fuer die installierten Programme, die als
root laufen, exploits vorhanden sind, aber sonst gibts wahrscheinlich
wenig Hoffnung, ausser du hast einen kompetenten Serverhoster, der
koennte das dann lokal machen.

-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg12654/pgp0.pgp
Description: PGP signature


Securityupdate fuer Potato

2002-07-10 Thread Benedikt Wildenhain

Hallo,

ich habe immer noch ein paar Systeme, die unter Potato laufen und auch in
naechster Zeit nicht auf Woody umgestellt werden sollen. Irgendwie
scheinen keine Securityupdates mehr zu kommen (obwohl der enstsprechende
Eintrag in der sources.list steht). Den neuen Bind fuer Potato konnte
ich dort problemlos kompilieren, mit ssh und apache-ssl gabs aber
Probleme, wo kriege ich dafuer aktuelle Pakete (apache 1.3.26 + ssh
3.4p1)?

-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg12388/pgp0.pgp
Description: PGP signature


Re: Securityupdate fr Potato

2002-07-10 Thread Benedikt Wildenhain

On Wed, Jul 10, 2002 at 11:11:08PM +0200, Niklas Deutschmann wrote:
 Hallo Benedikt,
 
 Verwendest du als apt-Quelle
 deb http://security.debian.org stable/updates main contrib non-free?
Statt stable steht da potato.

 Hast du vor apt-get upgrade auch apt-get update ausgeführt, um die 
Klar.

-- 
Benedikt Wildenhain
May the tux be with you.
:wq




msg12393/pgp0.pgp
Description: PGP signature


Re: dynamische nameserver-zuweisung

2002-06-22 Thread Benedikt Wildenhain

Hallo Nico,

On Fri, Jun 21, 2002 at 11:58:35PM +0200, Nico Schumann wrote:
 Ich will mich erstmal für die zahlreichen Antworten bedanken.
 Leider habe ich vergessen zu sagen, dass ich ISDN habe. Sorry.
 Mit m Modem scheint die Sache ja ganz einfach zu sein.
Da ich diald bei isdn nicht benutze, nehme ich inzwischen auch pppconfig
fuer ISDN. Mit isdnconfig kannst du ein virtuelles Modem anlegen und es
dann mit pppconfig ansprechen (statt /dev/ttySn z.B. /dev/ttyIn).

 Bei ISDN muss man die Providereinstellungen in der Datei
 /etc/isdn/ipppd.ippp0 machen.
 Da giebts die Schalter ms-get-dns, bzw. ms-get-wins.
 Das bewirkt, dass die vorgeschlagenen nameserver-IPs in den
 Variablen MS_DNS1 , ...2   bzw.   MS_WINS1 , ...2 gespeichert
 werden und für  /etc/ppp/ip-up  zur Verfügung stehen. -soweit mein
 Kenntnisstand.
Ich wuerde sagen:
echo $MS_DNS1  /etc/resolv.conf
echo $MS_DNS2  /etc/resolv.conf

-- 
Benedikt Wildenhain
May the tux be with you.
:wq



msg10988/pgp0.pgp
Description: PGP signature


Re: problems with running remote X programs

2002-06-14 Thread Benedikt Wildenhain
Hello,

On Fri, Jun 14, 2002 at 11:48:08AM -0500, Ron Johnson wrote:
 Over a local, switched fast ethernet connection, what kind of
 performance drain will I see tunneling through ssh?  Both boxen
 are GHz+.
I only have an 650 MHz, so I cannot say how it will work on your system.
Most programs can be used without any seeable delay, but there are speed
problems with videos and some games (100 MBit). On a wireless lan with
eleven megabit, it takes some time to start programs, but then they are
usable without much problems.

-- 
Benedikt Wildenhain
May the tux be with you.
:wq


pgp00QeqZn0PZ.pgp
Description: PGP signature


Re: Debian + other distribution

2000-07-11 Thread Benedikt Wildenhain
And more, I have a /boot partition of 16MB to boot my Conectiva Linux.
 (said that because it can be an important information.)   
You can put the file /boot/vmlinuz (kernel) in that partition. Then you can add
the entry to your /etc/lilo.conf.