From macro@ds2.pg.gda.pl  Thu Feb  8 13:52:31 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id NAA25985; Thu, 8 Feb 2001 13:52:31 +0100 (MET)
Received-Date: Thu, 8 Feb 2001 13:52:31 +0100 (MET)
Received: from delta.ds2.pg.gda.pl(153.19.144.1)
 via SMTP by guadalquivir.fnet.fr, id smtpd025920; Thu Feb  8 13:52:21 2001
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id NAA03970;
	Thu, 8 Feb 2001 13:34:38 +0100 (MET)
Date: Thu, 8 Feb 2001 13:34:36 +0100 (MET)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>, linux-mips@fnet.fr,
        linux-mips@oss.sgi.com
Subject: An IRQ handler fix for arch/mips/dec/irq.c
Message-ID: <Pine.GSO.3.96.1010208131342.29177J-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Length: 1123
Lines: 31

Hi,

 The epilogue for the DECstation's IRQ handler is buggy -- it permits
infinite interrupt recursion which may lead to a stack overflow.  I wasn't
able to check if that's the reason of random crashes I get when I run
strace at the console, yet, but it might be -- the load might be up to 10k
interrupts per second if data is available in time.

 Please apply.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

patch-mips-2.4.0-do_irq-0
diff -up --recursive --new-file linux-mips-2.4.0-20010126.macro/arch/mips/dec/irq.c linux-mips-2.4.0-20010126/arch/mips/dec/irq.c
--- linux-mips-2.4.0-20010126.macro/arch/mips/dec/irq.c	Sun Dec  3 05:26:46 2000
+++ linux-mips-2.4.0-20010126/arch/mips/dec/irq.c	Thu Feb  8 07:44:10 2001
@@ -136,8 +136,8 @@ asmlinkage void do_IRQ(int irq, struct p
 	} while (action);
 	if (do_random & SA_SAMPLE_RANDOM)
 	    add_interrupt_randomness(irq);
-	unmask_irq(irq);
 	__cli();
+	unmask_irq(irq);
     }
     irq_exit(cpu, irq);
 

From C.Meier@helfrecht.de  Thu Feb  8 14:04:31 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id OAA27499; Thu, 8 Feb 2001 14:04:31 +0100 (MET)
Received-Date: Thu, 8 Feb 2001 14:04:31 +0100 (MET)
Received: from mail2.wwl.de(62.157.220.92), claiming to be "post.wwl.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd027497; Thu Feb  8 14:04:28 2001
Received: from (hruserver.helfrecht.de) [62.157.222.195] 
	by post.wwl.de with esmtp (Exim 3.12 #1)
	id 14QqkE-0007EW-00 (Debian); Thu, 08 Feb 2001 14:04:18 +0100
Received: by drueben.wwl.de with Internet Mail Service (5.5.2448.0)
	id <1NPA4SA5>; Thu, 8 Feb 2001 14:04:04 +0100
Message-ID: <3118D67FCC0AD411927D204C4F4F50200A3119@drueben.wwl.de>
From: "Meier, Carsten" <C.Meier@helfrecht.de>
To: "'linux-mips@fnet.fr'" <linux-mips@fnet.fr>
Subject: Question of a Newbie
Date: Thu, 8 Feb 2001 14:04:03 +0100 
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C091CF.9C6A21C0"
Content-Length: 1251
Lines: 54

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C091CF.9C6A21C0
Content-Type: text/plain;
	charset="iso-8859-1"

Hello,

I have a little question.

I have a RM600 (Siemens) with an R10000 - Processor. Ist there a Linux or a
Kernel available?

Thanks

Carsten Meier

P.S. My English is bad, I know!

------_=_NextPart_001_01C091CF.9C6A21C0
Content-Type: text/html;
	charset="iso-8859-1"

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Question of a Newbie</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2 FACE="Arial">Hello,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a little question.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have a RM600 (Siemens) with an R10000 - Processor. Ist there a Linux or a Kernel available?</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Thanks</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Carsten Meier</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">P.S. My English is bad, I know!</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C091CF.9C6A21C0--

From macro@ds2.pg.gda.pl  Tue Feb 13 17:15:50 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA26899; Tue, 13 Feb 2001 17:15:50 +0100 (MET)
Received-Date: Tue, 13 Feb 2001 17:15:50 +0100 (MET)
Received: from delta.ds2.pg.gda.pl(153.19.144.1)
 via SMTP by guadalquivir.fnet.fr, id smtpd026822; Tue Feb 13 17:11:15 2001
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id QAA22691;
	Tue, 13 Feb 2001 16:00:28 +0100 (MET)
Date: Tue, 13 Feb 2001 16:00:28 +0100 (MET)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Ralf Baechle <ralf@uni-koblenz.de>
cc: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>, linux-mips@fnet.fr,
        linux-mips@oss.sgi.com
Subject: An IRQ handler fix for arch/mips/dec/irq.c (fwd)
Message-ID: <Pine.GSO.3.96.1010213155128.20214B-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Content-Length: 1766
Lines: 50

Ralf,

 The fix does make crashes go away indeed.  Please apply.  Thanks.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

---------- Forwarded message ----------
Message-ID: <Pine.GSO.3.96.1010208131342.29177J-100000@delta.ds2.pg.gda.pl>
Date: Thu, 8 Feb 2001 13:34:36 +0100 (MET)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Harald Koerfgen <Harald.Koerfgen@home.ivm.de>, linux-mips@fnet.fr,
    linux-mips@oss.sgi.com
Subject: An IRQ handler fix for arch/mips/dec/irq.c

Hi,

 The epilogue for the DECstation's IRQ handler is buggy -- it permits
infinite interrupt recursion which may lead to a stack overflow.  I wasn't
able to check if that's the reason of random crashes I get when I run
strace at the console, yet, but it might be -- the load might be up to 10k
interrupts per second if data is available in time.

 Please apply.

  Maciej

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

patch-mips-2.4.0-do_irq-0
diff -up --recursive --new-file linux-mips-2.4.0-20010126.macro/arch/mips/dec/irq.c linux-mips-2.4.0-20010126/arch/mips/dec/irq.c
--- linux-mips-2.4.0-20010126.macro/arch/mips/dec/irq.c	Sun Dec  3 05:26:46 2000
+++ linux-mips-2.4.0-20010126/arch/mips/dec/irq.c	Thu Feb  8 07:44:10 2001
@@ -136,8 +136,8 @@ asmlinkage void do_IRQ(int irq, struct p
 	} while (action);
 	if (do_random & SA_SAMPLE_RANDOM)
 	    add_interrupt_randomness(irq);
-	unmask_irq(irq);
 	__cli();
+	unmask_irq(irq);
     }
     irq_exit(cpu, irq);
 

From jfree@sovereign.org  Wed Feb 14 22:20:10 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id WAA10753; Wed, 14 Feb 2001 22:20:10 +0100 (MET)
Received-Date: Wed, 14 Feb 2001 22:20:10 +0100 (MET)
Received: from sovereign.org(209.180.91.170), claiming to be "lux.homenet"
 via SMTP by guadalquivir.fnet.fr, id smtpd010751; Wed Feb 14 22:20:06 2001
Received: (from jfree@localhost)
	by lux.homenet (8.11.2/8.11.2/Debian 8.11.2-1) id f1ELKOM05658;
	Wed, 14 Feb 2001 14:20:24 -0700
From: Jim Freeman <jfree@sovereign.org>
Date: Wed, 14 Feb 2001 14:20:24 -0700
To: linux-mips@oss.sgi.com, linux-mips@fnet.fr
Subject: bi-endian toolchain switches
Message-ID: <20010214142024.A5614@sovereign.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
Content-Length: 647
Lines: 20

For bi-endian cross-compiler toolchains, something akin to the following
patch can be helpful for setting endianness switches according to
CONFIG_CPU_LITTLE_ENDIAN :

	--- linux/arch/mips/Makefile	2001/02/14 21:04:31	1.1
	+++ linux/arch/mips/Makefile	2001/02/14 21:07:00
	@@ -18,9 +18,13 @@
	 ifdef CONFIG_CPU_LITTLE_ENDIAN
	 tool-prefix	= mipsel-linux-
	 output-format	= elf32-littlemips
	+export LD		= $(CROSS_COMPILE)ld -EL
	+export CC		= $(CROSS_COMPILE)cc -EL
	 else
	 tool-prefix	= mips-linux-
	 output-format	= elf32-bigmips
	+export LD		= $(CROSS_COMPILE)ld -EB
	+export CC		= $(CROSS_COMPILE)cc -EB
	 endif
	 
	 ifdef CONFIG_CROSSCOMPILE

From rabeeh@galileo.co.il  Sun Feb 18 15:03:40 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id PAA14589; Sun, 18 Feb 2001 15:03:40 +0100 (MET)
Received-Date: Sun, 18 Feb 2001 15:03:40 +0100 (MET)
Received: from pop3.galileo.co.il(199.203.130.130), claiming to be "galileo5.galileo.co.il"
 via SMTP by guadalquivir.fnet.fr, id smtpd014587; Sun Feb 18 15:03:35 2001
Received: from galileo.co.il (rabeeh@linux2.galileo.co.il [10.2.40.2])
	by galileo.co.il (8.8.5/8.8.5) with ESMTP id QAA15206
	for <linux-mips@fnet.fr>; Sun, 18 Feb 2001 16:03:53 +0200 (GMT-2)
Message-ID: <3A8FD593.7030508@galileo.co.il>
Date: Sun, 18 Feb 2001 16:00:51 +0200
From: Rabeeh Khoury <rabeeh@galileo.co.il>
Organization: Galileo Technology
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.14-5.0 i686; en-US; m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Subject: binaries on kernel 2.4.1
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Length: 1084
Lines: 28

<html><head></head><body>Hi everyone,<br>
<br>
I'm porting kernel 2.4.1 to galileo evaluation boards, I'v used an old binaries
from oss.sgi.com ftp site (Redhat version 5.0 RPMs) and worked great on kernel
2.2.14 with QED 5271 CPU.<br>
Now i'm testing the system with kernel 2.4.1 with QED 7000A CPU but when
trying to run /bin/sh for example it writes - (I'v added init=/bin/sh in
the command line) -<br>
<br>
IP-Config: Guessing netmask 255.0.0.0<br>
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.<br>
Looking up port of RPC 100003/2 on 10.2.40.2<br>
Looking up port of RPC 100005/2 on 10.2.40.2<br>
VFS: Mounted root (nfs filesystem).<br>
Freeing unused kernel memory: 44k freed<br>
[sh:1] Illegal instruction 8fe30014 at 7ffffc34 ra=00000001<br>
<br>
it is really weird because at address 7ffffc34 is the stack for the process,
and no instruction should run from there !!! That means that the kernel shouldn't
have printed the 'Illegal instruction' message !<br>
<br>
<br>
Did any one had this problem ? Any suggestions ?<br>
<br>
Regards,<br>
Rabeeh<br>
<br>
</body></html>

From ppopov@pacbell.net  Sun Feb 18 19:56:58 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id TAA17809; Sun, 18 Feb 2001 19:56:58 +0100 (MET)
Received-Date: Sun, 18 Feb 2001 19:56:58 +0100 (MET)
From: ppopov@pacbell.net
Received: from mta6.snfc21.pbi.net(206.13.28.240)
 via SMTP by guadalquivir.fnet.fr, id smtpd017807; Sun Feb 18 19:56:54 2001
Received: from pacbell.net ([63.194.214.47])
 by mta6.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9)
 with ESMTP id <0G8Y00MN7UOYQ7@mta6.snfc21.pbi.net> for linux-mips@fnet.fr;
 Sun, 18 Feb 2001 10:43:47 -0800 (PST)
Date: Sun, 18 Feb 2001 10:47:23 -0800
Subject: Re: binaries on kernel 2.4.1
Sender: pete@mta6.snfc21.pbi.net
To: Rabeeh Khoury <rabeeh@galileo.co.il>
Cc: "linux-mips@fnet.fr" <linux-mips@fnet.fr>
Message-id: <3A9018BB.14BE83E7@pacbell.net>
MIME-version: 1.0
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.18 i686)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: bg, en
References: <3A8FD593.7030508@galileo.co.il>
Content-Length: 1567
Lines: 39

Rabeeh Khoury wrote:
> 
> Hi everyone,
> 
> I'm porting kernel 2.4.1 to galileo evaluation boards, I'v used an old
> binaries from oss.sgi.com ftp site (Redhat version 5.0 RPMs) and
> worked great on kernel 2.2.14 with QED 5271 CPU.
> Now i'm testing the system with kernel 2.4.1 with QED 7000A CPU but
> when trying to run /bin/sh for example it writes - (I'v added
> init=/bin/sh in the command line) -
> 
> IP-Config: Guessing netmask 255.0.0.0
> NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
> Looking up port of RPC 100003/2 on 10.2.40.2
> Looking up port of RPC 100005/2 on 10.2.40.2
> VFS: Mounted root (nfs filesystem).
> Freeing unused kernel memory: 44k freed
> [sh:1] Illegal instruction 8fe30014 at 7ffffc34 ra=00000001
> 
> it is really weird because at address 7ffffc34 is the stack for the
> process, and no instruction should run from there !!! That means that
> the kernel shouldn't have printed the 'Illegal instruction' message !

What eval board is this?

> Did any one had this problem ? Any suggestions ?

Yes, with the ev96100. I had to modify rm7k.c to add r4k-like cache
routines for the r7k. With those routines, the ev96100 (r7k cpu) runs
with the seconday cache enabled. I recently sent a newer ev96100 patch
to Ralf, which brought the ev96100 support up to 2.4.1, but the patch
did not include rm7k.c because Ralf says that those routines are not
necessary.  The rest of the patch doesn't seem to have been committed
yet.

There is a test9 based linux support package for the ev96100 on
ftp.mvista.com:/pub/Area51/ev96100.   

Pete

From ralf@dea.waldorf-gmbh.de  Tue Feb 20 20:28:41 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id UAA11279; Tue, 20 Feb 2001 20:28:41 +0100 (MET)
Received-Date: Tue, 20 Feb 2001 20:28:41 +0100 (MET)
Received: from u-12-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.12), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd011277; Tue Feb 20 20:28:29 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f1J2pJk02022;
	Mon, 19 Feb 2001 03:51:19 +0100
Date: Sun, 18 Feb 2001 20:51:19 -0600
From: Ralf Baechle <ralf@oss.sgi.com>
To: Jim Freeman <jfree@sovereign.org>
Cc: linux-mips@oss.sgi.com, linux-mips@fnet.fr
Subject: Re: bi-endian toolchain switches
Message-ID: <20010218205119.C1644@bacchus.dhis.org>
References: <20010214142024.A5614@sovereign.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010214142024.A5614@sovereign.org>; from jfree@sovereign.org on Wed, Feb 14, 2001 at 02:20:24PM -0700
X-Accept-Language: de,en,fr
Content-Length: 501
Lines: 12

On Wed, Feb 14, 2001 at 02:20:24PM -0700, Jim Freeman wrote:

> For bi-endian cross-compiler toolchains, something akin to the following
> patch can be helpful for setting endianness switches according to
> CONFIG_CPU_LITTLE_ENDIAN :

We don't do this because -EB and -EL options don't affect the default
SEARCH_DIR statements in the default linker scripts yet we have to get
ld searching these directories without additional options.  In other words
multilib support is less than perfect ...

  Ralf

From wichert@cistron.nl  Mon Feb 19 14:35:43 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id OAA26652; Mon, 19 Feb 2001 14:35:43 +0100 (MET)
Received-Date: Mon, 19 Feb 2001 14:35:43 +0100 (MET)
Received: from home174.liacs.nl(132.229.210.174), claiming to be "fog.mors.wiggy.net"
 via SMTP by guadalquivir.fnet.fr, id smtpd026375; Mon Feb 19 14:35:30 2001
Received: (from wichert@localhost)
	by fog.mors.wiggy.net (8.11.2/8.11.2/Debian 8.11.2-1) id f1JCXk617400;
	Mon, 19 Feb 2001 13:33:46 +0100
Date: Mon, 19 Feb 2001 13:33:46 +0100
From: Wichert Akkerman <wichert@cistron.nl>
To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
Message-ID: <20010219133346.A17354@cistron.nl>
Mail-Followup-To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
	linux-mips <linux-mips@fnet.fr>
References: <20010116134453.B12858@bacchus.dhis.org> <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl>; from macro@ds2.pg.gda.pl on Tue, Jan 16, 2001 at 05:18:46PM +0100
Content-Length: 982
Lines: 24

Previously Maciej W. Rozycki wrote:
>  Well, here is most of the information available from the site...
> 
>                  Welcome to http://strace.sourceforge.net/
> 
>       We're Sorry but this Project hasn't yet uploaded their personal
>                                 webpage yet.
>           Please check back soon for updates or visit SourceForge

Hmm, I guess I should fix that :)

I've started looking at strace again after not having had any time for
it in a while, and strace 4.3 should appear in a week or so. If there
are any problems with the MIPS support now is the time to tell me.
I'm especially interesting in strace reporting umoven() errors while
tracing a program.

Wichert.

-- 
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert@cistron.nl                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |

From wichert@cistron.nl  Mon Feb 19 14:35:02 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id OAA26346; Mon, 19 Feb 2001 14:35:02 +0100 (MET)
Received-Date: Mon, 19 Feb 2001 14:35:02 +0100 (MET)
Received: from home174.liacs.nl(132.229.210.174), claiming to be "fog.mors.wiggy.net"
 via SMTP by guadalquivir.fnet.fr, id smtpd026338; Mon Feb 19 14:34:54 2001
Received: (from wichert@localhost)
	by fog.mors.wiggy.net (8.11.2/8.11.2/Debian 8.11.2-1) id f1JCYMH17405;
	Mon, 19 Feb 2001 13:34:22 +0100
Date: Mon, 19 Feb 2001 13:34:22 +0100
From: Wichert Akkerman <wichert@cistron.nl>
To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
Message-ID: <20010219133422.B17354@cistron.nl>
Mail-Followup-To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
	linux-mips <linux-mips@fnet.fr>
References: <3A5E75C4.2020203@redhat.com> <3A5E7F3A.4BD57AC5@mvista.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <3A5E7F3A.4BD57AC5@mvista.com>; from jsun@mvista.com on Thu, Jan 11, 2001 at 07:51:22PM -0800
Content-Length: 551
Lines: 14

Previously Jun Sun wrote:
> strace is included in the MontaVista HHL distribution.  You can find the rpm
> and srpm under ftp.mvista.com/pub/CDK?? and/or ftp.mvista.com/pub/area51.

Do you happen to know if those have any patches that are not already in
CVS?

Wichert.

-- 
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert@cistron.nl                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |

From ralf@dea.waldorf-gmbh.de  Tue Feb 20 21:37:31 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id VAA12834; Tue, 20 Feb 2001 21:37:31 +0100 (MET)
Received-Date: Tue, 20 Feb 2001 21:37:31 +0100 (MET)
Received: from u-12-18.karlsruhe.ipdial.viaginterkom.de(62.180.18.12), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd012832; Tue Feb 20 21:37:26 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f1KKb3h04162;
	Tue, 20 Feb 2001 21:37:03 +0100
Date: Tue, 20 Feb 2001 21:37:03 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
Message-ID: <20010220213703.B2086@bacchus.dhis.org>
References: <20010116134453.B12858@bacchus.dhis.org> <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl> <20010219133346.A17354@cistron.nl>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010219133346.A17354@cistron.nl>; from wichert@cistron.nl on Mon, Feb 19, 2001 at 01:33:46PM +0100
X-Accept-Language: de,en,fr
Content-Length: 774
Lines: 18

On Mon, Feb 19, 2001 at 01:33:46PM +0100, Wichert Akkerman wrote:

> Hmm, I guess I should fix that :)
> 
> I've started looking at strace again after not having had any time for
> it in a while, and strace 4.3 should appear in a week or so. If there
> are any problems with the MIPS support now is the time to tell me.
> I'm especially interesting in strace reporting umoven() errors while
> tracing a program.

Conincidentally I today built strace-cvs for MIPS before receiving your
message and found it to be working just fine.  The only bug which my
last several month old build from an older snapshot doesn't have is
that syscall 4129 (from memory, number may be incorrect) gets decoded
as a syscall with very many arguments (~ 20).  Will have to look into
it.

  Ralf

From greeen@iii.org.tw  Fri Feb 23 04:46:34 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id EAA06739; Fri, 23 Feb 2001 04:46:34 +0100 (MET)
Received-Date: Fri, 23 Feb 2001 04:46:34 +0100 (MET)
Received: from h179-210-243-135.iii.org.tw(210.243.135.179), claiming to be "mta0.iii.org.tw"
 via SMTP by guadalquivir.fnet.fr, id smtpd006737; Fri Feb 23 04:46:31 2001
Received: from [140.92.66.45] (helo=iiidns.iii.org.tw)
	by mta0.iii.org.tw with esmtp (Exim 3.16 #1)
	id 14W9BP-0004e8-00; Fri, 23 Feb 2001 11:46:15 +0800
Received: from Green ([140.92.12.76])
	by iiidns.iii.org.tw (8.10.2/8.10.2) with SMTP id f1N3k8U19312;
	Fri, 23 Feb 2001 11:46:08 +0800 (CST)
Message-ID: <000e01c09d4a$d91ef7c0$4c0c5c8c@trd.iii.org.tw>
From: "Greeen-III" <greeen@iii.org.tw>
To: "LinuxEmbeddedMailList" <linux-embedded@waste.org>,
        "MipsMailList" <linux-mips@fnet.fr>
Subject: Why can't run /sbin/init !!
Date: Fri, 23 Feb 2001 11:43:23 +0800
MIME-Version: 1.0
Content-Type: text/plain;
	charset="big5"
Content-Transfer-Encoding: 8bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Content-Length: 536
Lines: 21

I am porting Linux to MIPS (r3912).

When The /init/main.c run to this line
"execve("/sbin/init",argv_init,envp_init);",
there is nothing happened.
Then Kernel showed the panic message "Not find init".

I checked if there is init program in the directory
"/sbin/". And I make sure that there is a file "init"
there.



************************************
* It's Green!! (萬林明)
* TEL: 886-2-23776100  ext.620
* mailto:greeen@iii.org.tw
* Working at III(資策會)
* 台北市大安區敦化南路二段216號12F
************************************


From wichert@cistron.nl  Sat Feb 24 15:12:06 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id PAA01070; Sat, 24 Feb 2001 15:12:06 +0100 (MET)
Received-Date: Sat, 24 Feb 2001 15:12:06 +0100 (MET)
Received: from cabal.wiggy.net(195.64.66.141), claiming to be "fog.mors.wiggy.net"
 via SMTP by guadalquivir.fnet.fr, id smtpd001068; Sat Feb 24 15:12:01 2001
Received: (from wichert@localhost)
	by fog.mors.wiggy.net (8.11.2/8.11.2/Debian 8.11.2-1) id f1OCfLu04948;
	Sat, 24 Feb 2001 13:41:21 +0100
Date: Sat, 24 Feb 2001 13:41:21 +0100
From: Wichert Akkerman <wichert@cistron.nl>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
Message-ID: <20010224134121.A4925@cistron.nl>
Mail-Followup-To: Ralf Baechle <ralf@oss.sgi.com>,
	"'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
	linux-mips <linux-mips@fnet.fr>
References: <20010116134453.B12858@bacchus.dhis.org> <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl> <20010219133346.A17354@cistron.nl> <20010220213703.B2086@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <20010220213703.B2086@bacchus.dhis.org>; from ralf@oss.sgi.com on Tue, Feb 20, 2001 at 09:37:03PM +0100
Content-Length: 912
Lines: 22

Previously Ralf Baechle wrote:
> Conincidentally I today built strace-cvs for MIPS before receiving your
> message and found it to be working just fine.

Good!

> The only bug which my last several month old build from an older
> snapshot doesn't have is that syscall 4129 (from memory, number may be
> incorrect) gets decoded as a syscall with very many arguments (~ 20).

Hmm, 4129 is delete_module, which is handled exactly like sys_chdir
(syscal with one string argument). Looking at the syscall table I
can't find any syscall with that many argument, the highest number
I can find is 6 (mmap, recvfrom and sendto).

Wichert.

-- 
  _________________________________________________________________
 /       Nothing is fool-proof to a sufficiently talented fool     \
| wichert@cistron.nl                  http://www.liacs.nl/~wichert/ |
| 1024D/2FA3BC2D 576E 100B 518D 2F16 36B0  2805 3CB8 9250 2FA3 BC2D |

From michaels@jungo.com  Sun Feb 25 09:15:10 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id JAA08589; Sun, 25 Feb 2001 09:15:10 +0100 (MET)
Received-Date: Sun, 25 Feb 2001 09:15:10 +0100 (MET)
From: michaels@jungo.com
Received: from UNKNOWN(194.90.113.98), claiming to be "yes.home.krftech.com"
 via SMTP by guadalquivir.fnet.fr, id smtpd008580; Sun Feb 25 09:15:03 2001
Received: from jungo.com (michaels@kobie.home.krftech.com [199.204.71.69])
	by yes.home.krftech.com (8.8.7/8.8.7) with ESMTP id LAA01522;
	Sun, 25 Feb 2001 11:19:33 +0200
Sender: michaels@yes.home.krftech.com
Message-ID: <3A98BEAA.E055B1EB@jungo.com>
Date: Sun, 25 Feb 2001 10:13:30 +0200
Organization: Jungo LTD
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdk i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Greeen-III <greeen@iii.org.tw>
CC: LinuxEmbeddedMailList <linux-embedded@waste.org>,
        MipsMailList <linux-mips@fnet.fr>
Subject: Re: Why can't run /sbin/init !!
References: <000e01c09d4a$d91ef7c0$4c0c5c8c@trd.iii.org.tw>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by yes.home.krftech.com id LAA01522
Content-Length: 1244
Lines: 40

Hi,

As a wild guess, I'd say you're missing the right dynamic linker. On
some systems it is called ld.so.1(2), but on other versions of glibc it
must be called ld-lunux.so.1(2). Try to add those links to standard
ld-$(VERSION).so in your /lib directory. I have seen the problem with my
system too.=20

Greeen-III wrote:
>=20
> I am porting Linux to MIPS (r3912).
>=20
> When The /init/main.c run to this line
> "execve("/sbin/init",argv_init,envp_init);",
> there is nothing happened.
> Then Kernel showed the panic message "Not find init".
>=20
> I checked if there is init program in the directory
> "/sbin/". And I make sure that there is a file "init"
> there.
>=20
> ************************************
> * It's Green!! (=B8U=AAL=A9=FA)
> * TEL: 886-2-23776100  ext.620
> * mailto:greeen@iii.org.tw
> * Working at III(=B8=EA=B5=A6=B7|)
> * =A5x=A5_=A5=AB=A4j=A6w=B0=CF=B4=B0=A4=C6=ABn=B8=F4=A4G=ACq216=B8=B912=
F
> ************************************

--=20
Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D=20
email: michaels@jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA)  +972-9-8859365(Worldwide) ext. 233
Fax:   1-877-514-0538(USA)  +972-9-8859366(Worldwide)

From michaels@jungo.com  Sun Feb 25 10:39:20 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id KAA09403; Sun, 25 Feb 2001 10:39:20 +0100 (MET)
Received-Date: Sun, 25 Feb 2001 10:39:20 +0100 (MET)
From: michaels@jungo.com
Received: from UNKNOWN(194.90.113.98), claiming to be "yes.home.krftech.com"
 via SMTP by guadalquivir.fnet.fr, id smtpd009401; Sun Feb 25 10:39:09 2001
Received: from jungo.com (michaels@kobie.home.krftech.com [199.204.71.69])
	by yes.home.krftech.com (8.8.7/8.8.7) with ESMTP id MAA13516;
	Sun, 25 Feb 2001 12:43:48 +0200
Sender: michaels@yes.home.krftech.com
Message-ID: <3A98D268.90A2D50B@jungo.com>
Date: Sun, 25 Feb 2001 11:37:44 +0200
Organization: Jungo LTD
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-21mdk i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Wichert Akkerman <wichert@cistron.nl>
CC: Ralf Baechle <ralf@oss.sgi.com>,
        "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
References: <20010116134453.B12858@bacchus.dhis.org> <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl> <20010219133346.A17354@cistron.nl> <20010220213703.B2086@bacchus.dhis.org> <20010224134121.A4925@cistron.nl>
Content-Type: text/plain; charset=koi8-r
Content-Transfer-Encoding: 7bit
Content-Length: 4226
Lines: 106

Wichert Akkerman wrote:
> 
> Previously Ralf Baechle wrote:
> > Conincidentally I today built strace-cvs for MIPS before receiving your
> > message and found it to be working just fine.
> 
> Good!
> 

I wonder whether it is my sillines, or something is wrong with strace or
my mips tools. Checked out clean version from
cvs.strace.sourceforge.net:/cvsroot/strace, run configure "NATIVELY" on
mips32 system and got a whole bunch of errors on strace.c :

gcc -Wall -DHAVE_CONFIG_H   -I. -Ilinux/mips -I./linux/mips -Ilinux
-I./linux -D_GNU_SOURCE  -c syscall.c
syscall.c: In function `sys_sysmips':
syscall.c:103: parameter `sysent0' is initialized
syscall.c:106: parameter `nsyscalls0' is initialized
syscall.c:132: parameter `errnoent0' is initialized
In file included from syscall.c:133:
linux/mips/errnoent.h:1: warning: initialization from incompatible
pointer type linux/mips/errnoent.h:2: warning: excess elements in scalar
initializer after `errnoent0'
linux/mips/errnoent.h:3: warning: excess elements in scalar initializer
after `errnoent0'
linux/mips/errnoent.h:4: warning: excess elements in scalar initializer
after `errnoent0'
linux/mips/errnoent.h:5: warning: excess elements in scalar initializer
after `errnoent0'
linux/mips/errnoent.h:6: warning: excess elements in scalar initializer
after `errnoent0'
... < aroud 1000 errors like these >
syscall.c:135: parameter `nerrnos0' is initialized
syscall.c:158: warning: parameter names (without types) in function
declaration
syscall.c:158: parse error before `int'
syscall.c:158: declaration for parameter `set_personality' but no such
parameter
syscall.c:154: declaration for parameter `current_personality' but no
such parameter
syscall.c:152: declaration for parameter `nerrnos' but no such parameter
syscall.c:151: declaration for parameter `errnoent' but no such
parameter
syscall.c:135: declaration for parameter `nerrnos0' but no such
parameter
syscall.c:132: declaration for parameter `errnoent0' but no such
parameter
syscall.c:123: declaration for parameter `nsyscalls' but no such
parameter
syscall.c:122: declaration for parameter `sysent' but no such parameter
syscall.c:106: declaration for parameter `nsyscalls0' but no such
parameter
syscall.c:103: declaration for parameter `sysent0' but no such parameter
linux/syscall.h:183: declaration for parameter `sys_capset' but no such
parameter
linux/syscall.h:183: declaration for parameter `sys_capget' but no such
parameter
linux/syscall.h:182: declaration for parameter `sys_utimes' but no such
parameter
linux/syscall.h:182: declaration for parameter `sys_getdtablesize' but
no such parameter
linux/syscall.h:182: declaration for parameter `sys_gethostname' but no
such parameter
linux/syscall.h:182: declaration for parameter `sys_setpgrp' but no such
parameter
syscall.c:160: `personality' undeclared (first use this function)
syscall.c:160: (Each undeclared identifier is reported only once
syscall.c:160: for each function it appears in.)

Here's the info:
[michaels@verdi strace]$ gcc --version
egcs-2.90.27 980315 (egcs-1.0.2
release)                                        
[michaels@verdi strace]$ rpm -q glibc
glibc-2.0.6-4                                                                   
[michaels@verdi strace]$ uname -a
Linux verdi.home.krftech.com 2.2.12-MIPS-01.05 #1 Thu Sep 7 11:36:42
CEST 2000 mips unknown 
[michaels@verdi strace]$ cat /proc/cpuinfo
cpu                     : MIPS
cpu model               : MIPS 5Kc V0.1
system type             : unknown unknown
BogoMIPS                : 39.94
byteorder               : big endian
unaligned accesses      : 0
wait instruction        : no
microsecond timers      : no
extra interrupt vector  : yes
hardware watchpoint     : yes
VCED exceptions         : not available
VCEI exceptions         : not
available                                         

Exactly same code compiles on i386 silently and clean.
Audience, please, what seems to be my problem?

Sincerely yours,
Michael Shmulevich
______________________________________
Software Developer
Jungo - R&D 
email: michaels@jungo.com
web: http://www.jungo.com
Phone: 1-877-514-0537(USA)  +972-9-8859365(Worldwide) ext. 233
Fax:   1-877-514-0538(USA)  +972-9-8859366(Worldwide)

From K.H.C.vanHouten@research.kpn.com  Sun Feb 25 12:46:19 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id MAA10435; Sun, 25 Feb 2001 12:46:19 +0100 (MET)
Received-Date: Sun, 25 Feb 2001 12:46:19 +0100 (MET)
Received: from hermes.research.kpn.com(139.63.192.8)
 via SMTP by guadalquivir.fnet.fr, id smtpd010433; Sun Feb 25 12:46:11 2001
Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6])
 by research.kpn.com (PMDF V5.2-31 #42699)
 with ESMTP id <01K0J0CB2U2I000EYY@research.kpn.com> for linux-mips@fnet.fr;
 Sun, 25 Feb 2001 12:46:07 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id MAA19634; Sun, 25 Feb 2001 12:46:07 +0100 (MET)
X-URL: http://www-lsdm.research.kpn.com/~karel
Date: Sun, 25 Feb 2001 12:46:07 +0100 (MET)
From: Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Why can't run /sbin/init !!
In-reply-to: <3A98BEAA.E055B1EB@jungo.com> from <"michaels@jungo.com"@Feb>
To: michaels@jungo.com
Cc: greeen@iii.org.tw (Greeen-III),
        linux-embedded@waste.org (LinuxEmbeddedMailList),
        linux-mips@fnet.fr (MipsMailList)
Message-id: <200102251146.MAA19634@sparta.research.kpn.com>
MIME-version: 1.0
X-Mailer: ELM [version 2.5 PL2]
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
Content-Length: 688
Lines: 18

Hi,

> As a wild guess, I'd say you're missing the right dynamic linker. On
> some systems it is called ld.so.1(2), but on other versions of glibc it
> must be called ld-lunux.so.1(2). Try to add those links to standard
> ld-$(VERSION).so in your /lib directory. I have seen the problem with my
> system too. 

I've seen the same problem when I forgot to run ldconfig. The symlinks
for the libraries are missing, as wel as /etc/ld.so.cache.

-- 
Karel van Houten

----------------------------------------------------------
The box said "Requires Windows 95 or better."
I can't understand why it won't work on my Linux computer. 
----------------------------------------------------------

From ralf@dea.waldorf-gmbh.de  Sun Feb 25 23:18:05 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id XAA16181; Sun, 25 Feb 2001 23:18:05 +0100 (MET)
Received-Date: Sun, 25 Feb 2001 23:18:05 +0100 (MET)
Received: from u-220-10.karlsruhe.ipdial.viaginterkom.de(62.180.10.220), claiming to be "dea.waldorf-gmbh.de"
 via SMTP by guadalquivir.fnet.fr, id smtpd016179; Sun Feb 25 23:18:03 2001
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f1PCPnH11106;
	Sun, 25 Feb 2001 13:25:49 +0100
Date: Sun, 25 Feb 2001 13:25:49 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: michaels@jungo.com
Cc: Wichert Akkerman <wichert@cistron.nl>,
        "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>,
        linux-mips <linux-mips@fnet.fr>
Subject: Re: strace package
Message-ID: <20010225132549.A10624@bacchus.dhis.org>
References: <20010116134453.B12858@bacchus.dhis.org> <Pine.GSO.3.96.1010116171558.5546M-100000@delta.ds2.pg.gda.pl> <20010219133346.A17354@cistron.nl> <20010220213703.B2086@bacchus.dhis.org> <20010224134121.A4925@cistron.nl> <3A98D268.90A2D50B@jungo.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3A98D268.90A2D50B@jungo.com>; from michaels@jungo.com on Sun, Feb 25, 2001 at 11:37:44AM +0200
X-Accept-Language: de,en,fr
Content-Length: 208
Lines: 8

On Sun, Feb 25, 2001 at 11:37:44AM +0200, michaels@jungo.com wrote:

> Exactly same code compiles on i386 silently and clean.
> Audience, please, what seems to be my problem?

I've used glibc 2.1.95.

  Ralf

From aj@suse.de  Sun Feb 25 17:24:47 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id RAA13408; Sun, 25 Feb 2001 17:24:47 +0100 (MET)
Received-Date: Sun, 25 Feb 2001 17:24:47 +0100 (MET)
Received: from mail.kdt.de(195.8.224.4)
 via SMTP by guadalquivir.fnet.fr, id smtpd013406; Sun Feb 25 17:24:39 2001
Received: from arthur.inka.de (arthur.kdt.de [195.8.250.5])
	by mail.kdt.de (8.11.1/8.11.0) with ESMTP id f1PGOIt15454;
	Sun, 25 Feb 2001 17:24:20 +0100
Received: from gromit.rhein-neckar.de ([192.168.27.3] ident=postfix)
	by arthur.inka.de with esmtp (Exim 3.14 #1)
	id 14X3vL-0000uH-00; Sun, 25 Feb 2001 17:21:27 +0100
Received: by gromit.rhein-neckar.de (Postfix, from userid 207)
	id 0044D1EA2E; Sun, 25 Feb 2001 17:21:25 +0100 (CET)
Sender: aj@suse.de
Mail-Copies-To: never
To: michaels@jungo.com
Cc: Greeen-III <greeen@iii.org.tw>,
        LinuxEmbeddedMailList <linux-embedded@waste.org>,
        MipsMailList <linux-mips@fnet.fr>
Subject: Re: Why can't run /sbin/init !!
References: <000e01c09d4a$d91ef7c0$4c0c5c8c@trd.iii.org.tw>
	<3A98BEAA.E055B1EB@jungo.com>
From: Andreas Jaeger <aj@suse.de>
Date: 25 Feb 2001 17:21:25 +0100
In-Reply-To: <3A98BEAA.E055B1EB@jungo.com> (michaels@jungo.com's message of "Sun, 25 Feb 2001 10:13:30 +0200")
Message-ID: <u88zmuzqbe.fsf@gromit.rhein-neckar.de>
User-Agent: Gnus/5.090001 (Oort Gnus v0.01) XEmacs/21.1 (Channel Islands)
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mail.kdt.de id f1PGOIt15454
Content-Length: 1734
Lines: 54

michaels@jungo.com writes:

> Hi,
>=20
> As a wild guess, I'd say you're missing the right dynamic linker. On
> some systems it is called ld.so.1(2), but on other versions of glibc it
> must be called ld-lunux.so.1(2). Try to add those links to standard

That's wrong! The name of the dynamic linker is different on different
Linux systems.  Here's the complete list:

i.86-.*-linux.*		ld=3Dld-linux.so.2
sparc64-.*-linux.*	ld=3Dld-linux.so.2	GLIBC_2.2
sparc.*-.*-linux.*	ld=3Dld-linux.so.2
alpha.*-.*-linux.*	ld=3Dld-linux.so.2
arm.*-.*-linux.*	ld=3Dld-linux.so.2
sh.*-.*-linux.*		ld=3Dld-linux.so.2	GLIBC_2.2
ia64-.*-linux.*		ld=3Dld-linux-ia64.so.2	GLIBC_2.2
mips.*-.*-linux.*	ld=3Dld.so.1		GLIBC_2.0 GLIBC_2.2
hppa.*-.*-.*		ld=3Dld.so.1		GLIBC_2.2
# We use the ELF ABI standard name for the default.
.*-.*-.*		ld=3Dld.so.1

Andreas

> ld-$(VERSION).so in your /lib directory. I have seen the problem with m=
y
> system too.=20
>=20
> Greeen-III wrote:
> >=20
> > I am porting Linux to MIPS (r3912).
> >=20
> > When The /init/main.c run to this line
> > "execve("/sbin/init",argv_init,envp_init);",
> > there is nothing happened.
> > Then Kernel showed the panic message "Not find init".
> >=20
> > I checked if there is init program in the directory
> > "/sbin/". And I make sure that there is a file "init"
> > there.
> >=20
> > ************************************
> > * It's Green!! (=B8U=AAL=A9=FA)
> > * TEL: 886-2-23776100  ext.620
> > * mailto:greeen@iii.org.tw
> > * Working at III(=B8=EA=B5=A6=B7|)
> > * =A5x=A5_=A5=AB=A4j=A6w=B0=CF=B4=B0=A4=C6=ABn=B8=F4=A4G=ACq216=B8=B9=
12F
> > ************************************

--=20
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj

From kaos@ocs.com.au  Mon Feb 26 04:58:54 2001
Received: (uucp@localhost) by guadalquivir.fnet.fr (8.8.8/97.02.12/Guadalquivir); id EAA19895; Mon, 26 Feb 2001 04:58:54 +0100 (MET)
Received-Date: Mon, 26 Feb 2001 04:58:54 +0100 (MET)
Received: from sgi.SGI.COM(192.48.153.1), claiming to be "sgi.com"
 via SMTP by guadalquivir.fnet.fr, id smtpd019893; Mon Feb 26 04:58:43 2001
Received: from sydney.sydney.sgi.com ([134.14.48.2]) 
	by sgi.com (980327.SGI.8.8.8-aspam/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via SMTP id TAA01773; Sun, 25 Feb 2001 19:58:01 -0800 (PST)
	mail_from (kaos@ocs.com.au)
Received: from kao2.melbourne.sgi.com by sydney.sydney.sgi.com via ESMTP (950413.SGI.8.6.12/930416.SGI)
	 id OAA04501; Mon, 26 Feb 2001 14:57:46 +1100
X-Mailer: exmh version 2.1.1 10/15/1999
From: Keith Owens <kaos@ocs.com.au>
To: linux-kernel@vger.rutgers.edu
Cc: linuxppc-dev@lists.linuxppc.org, linux-m68k@lists.linux-m68k.org,
        linux-arm-kernel@lists.arm.linux.org.uk, linux-mips@fnet.fr,
        sparclinux@vger.kernel.org, linux-sh@m17n.org,
        linux-ia64@linuxia64.org
Subject: [patch] 2.4.2 softirq cleanup
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 26 Feb 2001 14:57:48 +1100
Message-ID: <14885.983159868@kao2.melbourne.sgi.com>
Content-Length: 14977
Lines: 338

This patch hits all architectures, please trim replies.

Patch against 2.4.2 to remove cpu_bh_enable/disable, now it is only
called from the same include file.

Define *_current versions of softirq_active, softirq_mask,
local_irq_count, local_bh_count, syscall_count, nmi_count.  Some
architectures can access the current cpu's data without doing an array
lookup, they will be able to use the *_current form for speed after
this patch is in.

diff -ur 2.4.2-pristine/include/asm-alpha/softirq.h 2.4.2-softirq/include/asm-alpha/softirq.h
--- 2.4.2-pristine/include/asm-alpha/softirq.h	Mon Aug  7 05:42:21 2000
+++ 2.4.2-softirq/include/asm-alpha/softirq.h	Mon Feb 26 14:37:46 2001
@@ -5,21 +5,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-extern inline void cpu_bh_disable(int cpu)
-{
-	local_bh_count(cpu)++;
-	mb();
-}
-
-extern inline void cpu_bh_enable(int cpu)
-{
-	mb();
-	local_bh_count(cpu)--;
-}
-
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_enable()	{ local_bh_count_current()++; mb(); }
+#define local_bh_disable()	{ mb(); local_bh_count_current()--; }
 
 #endif /* _ALPHA_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-arm/softirq.h 2.4.2-softirq/include/asm-arm/softirq.h
--- 2.4.2-pristine/include/asm-arm/softirq.h	Tue May 16 05:00:34 2000
+++ 2.4.2-softirq/include/asm-arm/softirq.h	Mon Feb 26 14:37:46 2001
@@ -4,12 +4,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq()		(local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-cris/softirq.h 2.4.2-softirq/include/asm-cris/softirq.h
--- 2.4.2-pristine/include/asm-cris/softirq.h	Thu Feb 22 15:20:47 2001
+++ 2.4.2-softirq/include/asm-cris/softirq.h	Mon Feb 26 14:37:46 2001
@@ -4,9 +4,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define local_bh_disable()      (local_bh_count(smp_processor_id())++)
-#define local_bh_enable()       (local_bh_count(smp_processor_id())--)
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()      (local_bh_count_current()++)
+#define local_bh_enable()       (local_bh_count_current()--)
 
 #endif	/* __ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-i386/softirq.h 2.4.2-softirq/include/asm-i386/softirq.h
--- 2.4.2-pristine/include/asm-i386/softirq.h	Fri Jan  5 09:50:47 2001
+++ 2.4.2-softirq/include/asm-i386/softirq.h	Mon Feb 26 14:37:46 2001
@@ -4,12 +4,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-ia64/softirq.h 2.4.2-softirq/include/asm-ia64/softirq.h
--- 2.4.2-pristine/include/asm-ia64/softirq.h	Sat Mar 11 10:24:02 2000
+++ 2.4.2-softirq/include/asm-ia64/softirq.h	Mon Feb 26 14:37:46 2001
@@ -7,12 +7,7 @@
  */
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq()		(local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif /* _ASM_IA64_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-m68k/softirq.h 2.4.2-softirq/include/asm-m68k/softirq.h
--- 2.4.2-pristine/include/asm-m68k/softirq.h	Tue Nov 28 13:00:49 2000
+++ 2.4.2-softirq/include/asm-m68k/softirq.h	Mon Feb 26 14:37:46 2001
@@ -7,12 +7,7 @@
 
 #include <asm/atomic.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif
diff -ur 2.4.2-pristine/include/asm-mips/softirq.h 2.4.2-softirq/include/asm-mips/softirq.h
--- 2.4.2-pristine/include/asm-mips/softirq.h	Sun May 14 01:31:25 2000
+++ 2.4.2-softirq/include/asm-mips/softirq.h	Mon Feb 26 14:37:46 2001
@@ -13,12 +13,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif /* _ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-mips64/softirq.h 2.4.2-softirq/include/asm-mips64/softirq.h
--- 2.4.2-pristine/include/asm-mips64/softirq.h	Sun May 14 01:31:25 2000
+++ 2.4.2-softirq/include/asm-mips64/softirq.h	Mon Feb 26 14:37:46 2001
@@ -13,12 +13,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif /* _ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-parisc/softirq.h 2.4.2-softirq/include/asm-parisc/softirq.h
--- 2.4.2-pristine/include/asm-parisc/softirq.h	Wed Dec  6 07:29:39 2000
+++ 2.4.2-softirq/include/asm-parisc/softirq.h	Mon Feb 26 14:37:46 2001
@@ -4,12 +4,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-ppc/softirq.h 2.4.2-softirq/include/asm-ppc/softirq.h
--- 2.4.2-pristine/include/asm-ppc/softirq.h	Sun Nov 12 13:23:11 2000
+++ 2.4.2-softirq/include/asm-ppc/softirq.h	Mon Feb 26 14:37:46 2001
@@ -5,10 +5,8 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define local_bh_disable()	do { local_bh_count(smp_processor_id())++; barrier(); } while (0)
-#define local_bh_enable()	do { barrier(); local_bh_count(smp_processor_id())--; } while (0)
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
 #endif /* __KERNEL__ */
diff -ur 2.4.2-pristine/include/asm-s390/softirq.h 2.4.2-softirq/include/asm-s390/softirq.h
--- 2.4.2-pristine/include/asm-s390/softirq.h	Sat Aug  5 09:15:37 2000
+++ 2.4.2-softirq/include/asm-s390/softirq.h	Mon Feb 26 14:37:46 2001
@@ -17,13 +17,11 @@
 #include <asm/hardirq.h>
 #include <asm/lowcore.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
+#undef  local_bh_count_current
+#define local_bh_count_current()	(S390_lowcore.__local_bh_count)
 
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
 
diff -ur 2.4.2-pristine/include/asm-s390x/softirq.h 2.4.2-softirq/include/asm-s390x/softirq.h
--- 2.4.2-pristine/include/asm-s390x/softirq.h	Thu Feb 22 15:20:49 2001
+++ 2.4.2-softirq/include/asm-s390x/softirq.h	Mon Feb 26 14:37:46 2001
@@ -1,7 +1,7 @@
 /*
- *  include/asm-s390/softirq.h
+ *  include/asm-s390x/softirq.h
  *
- *  S390 version
+ *  S390x version
  *
  *  Derived from "include/asm-i386/softirq.h"
  */
@@ -17,13 +17,11 @@
 #include <asm/hardirq.h>
 #include <asm/lowcore.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
+#undef  local_bh_count_current
+#define local_bh_count_current()	(S390_lowcore.__local_bh_count)
 
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif	/* __ASM_SOFTIRQ_H */
 
diff -ur 2.4.2-pristine/include/asm-sh/softirq.h 2.4.2-softirq/include/asm-sh/softirq.h
--- 2.4.2-pristine/include/asm-sh/softirq.h	Sat Aug  5 09:15:37 2000
+++ 2.4.2-softirq/include/asm-sh/softirq.h	Mon Feb 26 14:37:46 2001
@@ -4,12 +4,7 @@
 #include <asm/atomic.h>
 #include <asm/hardirq.h>
 
-#define cpu_bh_disable(cpu)	do { local_bh_count(cpu)++; barrier(); } while (0)
-#define cpu_bh_enable(cpu)	do { barrier(); local_bh_count(cpu)--; } while (0)
-
-#define local_bh_disable()	cpu_bh_disable(smp_processor_id())
-#define local_bh_enable()	cpu_bh_enable(smp_processor_id())
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	do { local_bh_count_current()++; barrier(); } while (0)
+#define local_bh_enable()	do { barrier(); local_bh_count_current()--; } while (0)
 
 #endif /* __ASM_SH_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-sparc/softirq.h 2.4.2-softirq/include/asm-sparc/softirq.h
--- 2.4.2-pristine/include/asm-sparc/softirq.h	Mon Aug  7 05:42:21 2000
+++ 2.4.2-softirq/include/asm-sparc/softirq.h	Mon Feb 26 14:37:46 2001
@@ -13,9 +13,7 @@
 #include <asm/smp.h>
 #include <asm/hardirq.h>
 
-#define local_bh_disable()	(local_bh_count(smp_processor_id())++)
-#define local_bh_enable()	(local_bh_count(smp_processor_id())--)
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	(local_bh_count_current()++)
+#define local_bh_enable()	(local_bh_count_current()--)
 
 #endif	/* __SPARC_SOFTIRQ_H */
diff -ur 2.4.2-pristine/include/asm-sparc64/softirq.h 2.4.2-softirq/include/asm-sparc64/softirq.h
--- 2.4.2-pristine/include/asm-sparc64/softirq.h	Mon Aug  7 05:42:21 2000
+++ 2.4.2-softirq/include/asm-sparc64/softirq.h	Mon Feb 26 14:37:46 2001
@@ -10,9 +10,7 @@
 #include <asm/hardirq.h>
 #include <asm/system.h>		/* for membar() */
 
-#define local_bh_disable()	(local_bh_count(smp_processor_id())++)
-#define local_bh_enable()	(local_bh_count(smp_processor_id())--)
-
-#define in_softirq() (local_bh_count(smp_processor_id()) != 0)
+#define local_bh_disable()	(local_bh_count_current()++)
+#define local_bh_enable()	(local_bh_count_current()--)
 
 #endif /* !(__SPARC64_SOFTIRQ_H) */
diff -ur 2.4.2-pristine/include/linux/irq_cpustat.h 2.4.2-softirq/include/linux/irq_cpustat.h
--- 2.4.2-pristine/include/linux/irq_cpustat.h	Fri Jan  5 09:50:46 2001
+++ 2.4.2-softirq/include/linux/irq_cpustat.h	Mon Feb 26 14:37:46 2001
@@ -7,6 +7,11 @@
  * they define their own mappings for irq_stat.
  *
  * Keith Owens <kaos@ocs.com.au> July 2000.
+ *
+ * Added _current forms to allow architectures with per cpu pages to take
+ * advantage of the optimizations that allows.
+ *
+ * Keith Owens <kaos@ocs.com.au> February 2001.
  */
 
 #include <linux/config.h>
@@ -26,12 +31,21 @@
 #endif	
 
   /* arch independent irq_stat fields */
-#define softirq_active(cpu)	__IRQ_STAT((cpu), __softirq_active)
-#define softirq_mask(cpu)	__IRQ_STAT((cpu), __softirq_mask)
-#define local_irq_count(cpu)	__IRQ_STAT((cpu), __local_irq_count)
-#define local_bh_count(cpu)	__IRQ_STAT((cpu), __local_bh_count)
-#define syscall_count(cpu)	__IRQ_STAT((cpu), __syscall_count)
+#define softirq_active(cpu)		__IRQ_STAT((cpu), __softirq_active)
+#define softirq_active_current()	softirq_active(smp_processor_id())
+#define softirq_mask(cpu)		__IRQ_STAT((cpu), __softirq_mask)
+#define softirq_mask_current()		softirq_mask(smp_processor_id())
+#define local_irq_count(cpu)		__IRQ_STAT((cpu), __local_irq_count)
+#define local_irq_count_current()	local_irq_count(smp_processor_id())
+#define local_bh_count(cpu)		__IRQ_STAT((cpu), __local_bh_count)
+#define local_bh_count_current()	local_bh_count(smp_processor_id())
+#define syscall_count(cpu)		__IRQ_STAT((cpu), __syscall_count)
+#define syscall_count_current()		syscall_count(smp_processor_id())
   /* arch dependent irq_stat fields */
-#define nmi_count(cpu)		__IRQ_STAT((cpu), __nmi_count)		/* i386, ia64 */
+#define nmi_count(cpu)			__IRQ_STAT((cpu), __nmi_count)		/* i386, ia64 */
+#define nmi_count_current()		nmi_count(smp_processor_id())
+
+/* When this gets expanded, local_bh_count_current() may have been redefined */
+#define in_softirq()			(local_bh_count_current() != 0)
 
 #endif	/* __irq_cpustat_h */

