From owner-linux-mips@oss.sgi.com Thu Mar  1 01:29:31 2001
Received:  by oss.sgi.com id <S553870AbRCAJ3W>;
	Thu, 1 Mar 2001 01:29:22 -0800
Received: from haliga.physik.TU-Cottbus.De ([141.43.75.9]:22797 "HELO
        haliga.physik.tu-cottbus.de") by oss.sgi.com with SMTP
	id <S553865AbRCAJ3H>; Thu, 1 Mar 2001 01:29:07 -0800
Received: by haliga.physik.tu-cottbus.de (Postfix, from userid 7215)
	id 8D42F8EFE; Thu,  1 Mar 2001 10:24:46 +0100 (MET)
Date:   Thu, 1 Mar 2001 10:24:46 +0100
To:     linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010301102446.B3177@physik.tu-cottbus.de>
References: <OF67407876.E19EEFE1-ON88256A02.000F849E@taec.toshiba.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <OF67407876.E19EEFE1-ON88256A02.000F849E@taec.toshiba.com>; from Lisa.Hsu@taec.toshiba.com on Wed, Feb 28, 2001 at 07:00:13PM -0800
From:   heinold@physik.tu-cottbus.de (H.Heinold)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Wed, Feb 28, 2001 at 07:00:13PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
> 
> Hi, All
> 
> For using NFS boot, I've already edited the /etc/hosts, /etc/exports to add
> the entry for my target board.  The command line that I use in our EPROM
> based bootloader  is as follows:
> 
> root=/dev/nfs rw ip=::::::rarp console=ttyS2
> nfsroot=209.243.136.151:/work/nfsroot
> 
> I need to setup the NFSROOT filesystem on the server for my target board
> (which is running in Big-endian mode),  what are the steps that I have to
> do?
>
For big endian you need big endian complied packages, you can retrieve the debian base2_2.2.tgz
under ftp.uni-mainz.de/pub/Linux/debian-local/mips, which should work fine as nfsroot. I have some
problems with open a console beacause on Indigo2 you only have output on the serial console.

> There is a FTP site for getting RPM packages for little endian mode:
> 
>          tp://ftp.linux.sgi.com/[ig/linux/mips/mipsel-linux/RedHat-6.1/RPMS
> 
> I could not find similar one for big-endian.    Can anybody give me a
> pointer to where the RPM packages reside on the web?
> 
> 
> Thanks,
> 
No prob.

> Lisa
> 
> 
> 



-- 


Henning Heinold

From owner-linux-mips@oss.sgi.com Thu Mar  1 08:05:05 2001
Received:  by oss.sgi.com id <S553853AbRCAQEz>;
	Thu, 1 Mar 2001 08:04:55 -0800
Received: from stereotomy.lineo.com ([64.50.107.151]:27399 "HELO
        stereotomy.lineo.com") by oss.sgi.com with SMTP id <S553661AbRCAQEi>;
	Thu, 1 Mar 2001 08:04:38 -0800
Received: from Lineo.COM (localhost.localdomain [127.0.0.1])
	by stereotomy.lineo.com (Postfix) with ESMTP
	id 158104C92B; Thu,  1 Mar 2001 09:04:36 -0700 (MST)
Message-ID: <3A9E7313.5090608@Lineo.COM>
Date:   Thu, 01 Mar 2001 09:04:35 -0700
From:   Quinn Jensen <jensenq@Lineo.COM>
Organization: Lineo, Inc.
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To:     jsun@hermes.mvista.com
Cc:     linux-mips@oss.sgi.com
Subject: Re: Patch allowing GDB to ignore misaligned data faults
References: <000a01c0a0cf$849efbe0$dde0490a@BANANA> <3A9D70C2.6010504@Lineo.COM> <3A9D793E.4063ED17@mvista.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

jsun@hermes.mvista.com wrote

> This does not sound right:  this is already fixed long time ago by not
> installing traps for exception 4&5.  What kernel are you using

You're right;  I let my patch ferment too long and it rotted.

Quinn


From owner-linux-mips@oss.sgi.com Thu Mar  1 13:38:26 2001
Received:  by oss.sgi.com id <S553714AbRCAViR>;
	Thu, 1 Mar 2001 13:38:17 -0800
Received: from mailhost.taec.com ([209.243.128.33]:23499 "EHLO
        mailhost.taec.toshiba.com") by oss.sgi.com with ESMTP
	id <S553692AbRCAVhx>; Thu, 1 Mar 2001 13:37:53 -0800
Received: from hdqmta.taec.toshiba.com (hdqmta [209.243.180.59])
	by mailhost.taec.toshiba.com (8.8.8+Sun/8.8.8) with ESMTP id NAA26829;
	Thu, 1 Mar 2001 13:37:14 -0800 (PST)
Subject: Re: NFSROOT filesystem
To:     heinold@physik.tu-cottbus.de (H.Heinold)
Cc:     linux-mips@oss.sgi.com, owner-linux-mips@oss.sgi.com
X-Mailer: Lotus Notes Release 5.0.3  March 21, 2000
Message-ID: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>
From:   Lisa.Hsu@taec.toshiba.com
Date:   Thu, 1 Mar 2001 13:30:57 -0800
X-MIMETrack: Serialize by Router on HDQMTA/TOSHIBA_TAEC(Release 5.0.5 |September 22, 2000) at
 03/01/2001 01:36:00 PM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Thanks to Henning for showing me where to get the big-endian compiled
packages and it works.   Now, I need big-endian compiled "ash".
Is anybody know where I can get it?

Thanks,

Lisa



                                                                                                                       
                    heinold@physik.tu-                                                                                 
                    cottbus.de                To:     linux-mips@oss.sgi.com                                           
                    (H.Heinold)               cc:                                                                      
                    Sent by:                  Subject:     Re: NFSROOT filesystem                                      
                    owner-linux-mips@o                                                                                 
                    ss.sgi.com                                                                                         
                                                                                                                       
                                                                                                                       
                    03/01/01 01:24 AM                                                                                  
                                                                                                                       
                                                                                                                       




On Wed, Feb 28, 2001 at 07:00:13PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
>
> Hi, All
>
> For using NFS boot, I've already edited the /etc/hosts, /etc/exports to
add
> the entry for my target board.  The command line that I use in our EPROM
> based bootloader  is as follows:
>
> root=/dev/nfs rw ip=::::::rarp console=ttyS2
> nfsroot=209.243.136.151:/work/nfsroot
>
> I need to setup the NFSROOT filesystem on the server for my target board
> (which is running in Big-endian mode),  what are the steps that I have to
> do?
>
For big endian you need big endian complied packages, you can retrieve the
debian base2_2.2.tgz
under ftp.uni-mainz.de/pub/Linux/debian-local/mips, which should work fine
as nfsroot. I have some
problems with open a console beacause on Indigo2 you only have output on
the serial console.

> There is a FTP site for getting RPM packages for little endian mode:
>
>
tp://ftp.linux.sgi.com/[ig/linux/mips/mipsel-linux/RedHat-6.1/RPMS
>
> I could not find similar one for big-endian.    Can anybody give me a
> pointer to where the RPM packages reside on the web?
>
>
> Thanks,
>
No prob.

> Lisa
>
>
>



--


Henning Heinold




From owner-linux-mips@oss.sgi.com Thu Mar  1 13:47:25 2001
Received:  by oss.sgi.com id <S553738AbRCAVrQ>;
	Thu, 1 Mar 2001 13:47:16 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:40694 "EHLO
        hermes.mvista.com") by oss.sgi.com with ESMTP id <S553705AbRCAVrF>;
	Thu, 1 Mar 2001 13:47:05 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f21Lg8G24303;
	Thu, 1 Mar 2001 13:42:08 -0800
Message-ID: <3A9EC293.F301E8D5@mvista.com>
Date:   Thu, 01 Mar 2001 13:43:47 -0800
From:   Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     Lisa.Hsu@taec.toshiba.com
CC:     "H.Heinold" <heinold@physik.tu-cottbus.de>, linux-mips@oss.sgi.com,
        owner-linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Lisa.Hsu@taec.toshiba.com wrote:
> 
> Thanks to Henning for showing me where to get the big-endian compiled
> packages and it works.   Now, I need big-endian compiled "ash".
> Is anybody know where I can get it?
> 
> Thanks,
> 
> Lisa
> 
> 
>                     heinold@physik.tu-
>                     cottbus.de                To:     linux-mips@oss.sgi.com
>                     (H.Heinold)               cc:
>                     Sent by:                  Subject:     Re: NFSROOT filesystem
>                     owner-linux-mips@o
>                     ss.sgi.com
> 
> 
>                     03/01/01 01:24 AM
> 
> 
> 
> On Wed, Feb 28, 2001 at 07:00:13PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
> >
> > Hi, All
> >
> > For using NFS boot, I've already edited the /etc/hosts, /etc/exports to
> add
> > the entry for my target board.  The command line that I use in our EPROM
> > based bootloader  is as follows:
> >
> > root=/dev/nfs rw ip=::::::rarp console=ttyS2
> > nfsroot=209.243.136.151:/work/nfsroot
> >
> > I need to setup the NFSROOT filesystem on the server for my target board
> > (which is running in Big-endian mode),  what are the steps that I have to
> > do?
> >
> For big endian you need big endian complied packages, you can retrieve the
> debian base2_2.2.tgz
> under ftp.uni-mainz.de/pub/Linux/debian-local/mips, which should work fine
> as nfsroot. I have some
> problems with open a console beacause on Indigo2 you only have output on
> the serial console.
> 
> > There is a FTP site for getting RPM packages for little endian mode:
> >
> >
> tp://ftp.linux.sgi.com/[ig/linux/mips/mipsel-linux/RedHat-6.1/RPMS
> >
> > I could not find similar one for big-endian.    Can anybody give me a
> > pointer to where the RPM packages reside on the web?
> >
> >
> > Thanks,
> >
> No prob.
> 
> > Lisa
> >
> >
> >

Lisa,

You can get either big endian or little endian NFS root fs on the following
site.  

ftp://ftp.mvista.com/pub/Area51/mips_fp_le
ftp://ftp.mvista.com/pub/Area51/mips_fp_be

Jun

From owner-linux-mips@oss.sgi.com Thu Mar  1 14:57:15 2001
Received:  by oss.sgi.com id <S553721AbRCAW5G>;
	Thu, 1 Mar 2001 14:57:06 -0800
Received: from gandalf.physik.uni-konstanz.de ([134.34.144.69]:3588 "EHLO
        gandalf.physik.uni-konstanz.de") by oss.sgi.com with ESMTP
	id <S553656AbRCAW4s>; Thu, 1 Mar 2001 14:56:48 -0800
Received: from bilbo.physik.uni-konstanz.de [134.34.144.81] 
	by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian))
	id 14Ybzo-0005Ny-00; Thu, 01 Mar 2001 23:56:28 +0100
Received: from agx by bilbo.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian))
	id 14Yc0O-0001JT-00; Thu, 01 Mar 2001 23:57:04 +0100
Date:   Thu, 1 Mar 2001 23:57:04 +0100
From:   Guido Guenther <guido.guenther@gmx.net>
To:     Lisa.Hsu@taec.toshiba.com
Cc:     "H.Heinold" <heinold@physik.tu-cottbus.de>, linux-mips@oss.sgi.com,
        owner-linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010301235704.A5036@bilbo.physik.uni-konstanz.de>
Mail-Followup-To: Lisa.Hsu@taec.toshiba.com,
	"H.Heinold" <heinold@physik.tu-cottbus.de>, linux-mips@oss.sgi.com,
	owner-linux-mips@oss.sgi.com
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>; from Lisa.Hsu@taec.toshiba.com on Thu, Mar 01, 2001 at 01:30:57PM -0800
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 01, 2001 at 01:30:57PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
> 
> Thanks to Henning for showing me where to get the big-endian compiled
> packages and it works.   Now, I need big-endian compiled "ash".
> Is anybody know where I can get it?
"apt-get install ash" should download and install ash. Welcome to the
wonderfull world of debian :)
 --Guido


From owner-linux-mips@oss.sgi.com Thu Mar  1 18:05:36 2001
Received:  by oss.sgi.com id <S553656AbRCBCF0>;
	Thu, 1 Mar 2001 18:05:26 -0800
Received: from mail.isd.atr.co.jp ([133.186.81.186]:46596 "EHLO
        mail.isd.atr.co.jp") by oss.sgi.com with ESMTP id <S553646AbRCBCFB>;
	Thu, 1 Mar 2001 18:05:01 -0800
Received: from isd.atr.co.jp (jhart@hart [133.186.80.158])
	by mail.isd.atr.co.jp (8.10.1/3.7W) with ESMTP id f2225EH89594
	for <linux-mips@oss.sgi.com>; Fri, 2 Mar 2001 11:05:14 +0900 (JST)
Message-ID: <3A9F016E.C0F7E19D@isd.atr.co.jp>
Date:   Fri, 02 Mar 2001 11:11:58 +0900
From:   "J. Hart" <jhart@isd.atr.co.jp>
X-Mailer: Mozilla 4.51 [en] (X11; I; Linux 2.2.6 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mips@oss.sgi.com
Subject: Introduction
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


     I would like to take this opportunity to introduce myself if I may.

     My name is Joseph Hart.  I work at ATR ISD Labs in Kyoto as a programmer
and research assistant to Dr. Tom Ray on the ALife program Tierra, with which
some of you may be familiar.  I have been a programmer for about thirty years,
and have worked with the Tierra project for about the last seven years.  I
finally moved to Kyoto five years ago to avoid commuting from Niagara Falls
NY....:-)

     We are currently engaged in research using the network model of Tierra.  My
responsibilities include making upgrades and bug fixes to the Tierra code,
maintaining and monitoring the Tierra network, sampling the "organisms" which
"live" on it, and providing analyses of these.

     When another department at ATR finished operations recently, they discarded
much of their equipment, and I thereby came into possession of what appears to
be a perfectly functional Indigo2 Impact 10000.  The hard drive seems to have
been formatted, so I do not have IRIX for it.  I would like to be able to set up
Linux on it if that is possible, hence my interest in your project.  I
understand that there is quite a lot of work to be done to get Linux running on
this machine, so since I have one, may I be of any assistance ?

With Thanks,
     J. Hart
     ATR ISD Labs
     Kyoto, Japan
     jhart@isd.atr.co.jp

From owner-linux-mips@oss.sgi.com Fri Mar  2 00:15:48 2001
Received:  by oss.sgi.com id <S553747AbRCBIPi>;
	Fri, 2 Mar 2001 00:15:38 -0800
Received: from haliga.physik.TU-Cottbus.De ([141.43.75.9]:47629 "HELO
        haliga.physik.tu-cottbus.de") by oss.sgi.com with SMTP
	id <S553733AbRCBIPY>; Fri, 2 Mar 2001 00:15:24 -0800
Received: by haliga.physik.tu-cottbus.de (Postfix, from userid 7215)
	id BBAC28D67; Fri,  2 Mar 2001 09:15:16 +0100 (MET)
Date:   Fri, 2 Mar 2001 09:15:16 +0100
To:     linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010302091516.A12824@physik.tu-cottbus.de>
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com> <3A9EC293.F301E8D5@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: <3A9EC293.F301E8D5@mvista.com>; from jsun@mvista.com on Thu, Mar 01, 2001 at 01:43:47PM -0800
From:   heinold@physik.tu-cottbus.de (H.Heinold)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 01, 2001 at 01:43:47PM -0800, Jun Sun wrote:
> Lisa,
> 
> You can get either big endian or little endian NFS root fs on the following
> site.  
> 
> ftp://ftp.mvista.com/pub/Area51/mips_fp_le
> ftp://ftp.mvista.com/pub/Area51/mips_fp_be
> 
> Jun


Hi Jun,

I looked at your site and can only find rpm's. Dont yo have an packed
nfs-root.tar.gz?




-- 


Henning Heinold

From owner-linux-mips@oss.sgi.com Fri Mar  2 00:17:37 2001
Received:  by oss.sgi.com id <S553753AbRCBIRS>;
	Fri, 2 Mar 2001 00:17:18 -0800
Received: from haliga.physik.TU-Cottbus.De ([141.43.75.9]:47885 "HELO
        haliga.physik.tu-cottbus.de") by oss.sgi.com with SMTP
	id <S553746AbRCBIRM>; Fri, 2 Mar 2001 00:17:12 -0800
Received: by haliga.physik.tu-cottbus.de (Postfix, from userid 7215)
	id 030228D67; Fri,  2 Mar 2001 09:17:10 +0100 (MET)
Date:   Fri, 2 Mar 2001 09:17:10 +0100
To:     linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010302091710.B12824@physik.tu-cottbus.de>
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com>; from Lisa.Hsu@taec.toshiba.com on Thu, Mar 01, 2001 at 01:30:57PM -0800
From:   heinold@physik.tu-cottbus.de (H.Heinold)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 01, 2001 at 01:30:57PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
> 
> Thanks to Henning for showing me where to get the big-endian compiled
> packages and it works.   Now, I need big-endian compiled "ash".
> Is anybody know where I can get it?
> 
> Thanks,
> 
> Lisa
> 

Hm why you need the ash? You can give the kernel the follwing via the
commandoline init=/bin/bash.
-- 


Henning Heinold

From owner-linux-mips@oss.sgi.com Fri Mar  2 07:39:41 2001
Received:  by oss.sgi.com id <S553721AbRCBPjV>;
	Fri, 2 Mar 2001 07:39:21 -0800
Received: from galt.foobazco.org ([198.144.194.227]:51586 "EHLO
        galt.foobazco.org") by oss.sgi.com with ESMTP id <S553790AbRCBPiz>;
	Fri, 2 Mar 2001 07:38:55 -0800
Received: (from wesolows@localhost)
	by galt.foobazco.org (8.9.3/8.9.3) id HAA19165;
	Fri, 2 Mar 2001 07:38:30 -0800
Date:   Fri, 2 Mar 2001 07:38:30 -0800
From:   Keith M Wesolowski <wesolows@foobazco.org>
To:     "H.Heinold" <heinold@physik.tu-cottbus.de>
Cc:     linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010302073830.A17373@foobazco.org>
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com> <3A9EC293.F301E8D5@mvista.com> <20010302091516.A12824@physik.tu-cottbus.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010302091516.A12824@physik.tu-cottbus.de>; from heinold@physik.tu-cottbus.de on Fri, Mar 02, 2001 at 09:15:16AM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Fri, Mar 02, 2001 at 09:15:16AM +0100, H.Heinold wrote:

> I looked at your site and can only find rpm's. Dont yo have an packed
> nfs-root.tar.gz?

For those interested, a small big-endian filesystem suitable for this
type of thing (and containing a static ash no less) is at
ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple/userland-0.2b
(glibc 2.2-pre based) or
ftp://ftp.foobazco.org/pub/people/wesolows/mips-linux/userland-0.1/.

See http://foobazco.org/~wesolows/Install-HOWTO.html.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Fri Mar  2 08:39:42 2001
Received:  by oss.sgi.com id <S553790AbRCBQjd>;
	Fri, 2 Mar 2001 08:39:33 -0800
Received: from mailhost.taec.com ([209.243.128.33]:44934 "EHLO
        mailhost.taec.toshiba.com") by oss.sgi.com with ESMTP
	id <S553787AbRCBQjR>; Fri, 2 Mar 2001 08:39:17 -0800
Received: from hdqmta.taec.toshiba.com (hdqmta [209.243.180.59])
	by mailhost.taec.toshiba.com (8.8.8+Sun/8.8.8) with ESMTP id IAA27885;
	Fri, 2 Mar 2001 08:38:39 -0800 (PST)
Subject: Re: NFSROOT filesystem
To:     heinold@physik.tu-cottbus.de (H.Heinold)
Cc:     linux-mips@oss.sgi.com, owner-linux-mips@oss.sgi.com
X-Mailer: Lotus Notes Release 5.0.3  March 21, 2000
Message-ID: <OF4628F9A8.67E419FF-ON88256A03.005A3DC5@taec.toshiba.com>
From:   Lisa.Hsu@taec.toshiba.com
Date:   Fri, 2 Mar 2001 08:31:41 -0800
X-MIMETrack: Serialize by Router on HDQMTA/TOSHIBA_TAEC(Release 5.0.5 |September 22, 2000) at
 03/02/2001 08:37:24 AM
MIME-Version: 1.0
Content-type: text/plain; charset=us-ascii
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


As I understand, ash requires mush  less memory than other shells.  I am
working on an embedded system and memory is crucial to us.

Thanks,

Lisa



                                                                                                                       
                    heinold@physik.tu-                                                                                 
                    cottbus.de                To:     linux-mips@oss.sgi.com                                           
                    (H.Heinold)               cc:                                                                      
                    Sent by:                  Subject:     Re: NFSROOT filesystem                                      
                    owner-linux-mips@o                                                                                 
                    ss.sgi.com                                                                                         
                                                                                                                       
                                                                                                                       
                    03/02/01 12:17 AM                                                                                  
                                                                                                                       
                                                                                                                       




On Thu, Mar 01, 2001 at 01:30:57PM -0800, Lisa.Hsu@taec.toshiba.com wrote:
>
> Thanks to Henning for showing me where to get the big-endian compiled
> packages and it works.   Now, I need big-endian compiled "ash".
> Is anybody know where I can get it?
>
> Thanks,
>
> Lisa
>

Hm why you need the ash? You can give the kernel the follwing via the
commandoline init=/bin/bash.
--


Henning Heinold




From owner-linux-mips@oss.sgi.com Fri Mar  2 08:57:32 2001
Received:  by oss.sgi.com id <S553798AbRCBQ5W>;
	Fri, 2 Mar 2001 08:57:22 -0800
Received: from mx.mips.com ([206.31.31.226]:2551 "EHLO mx.mips.com")
	by oss.sgi.com with ESMTP id <S553787AbRCBQ5P>;
	Fri, 2 Mar 2001 08:57:15 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id IAA11382
	for <linux-mips@oss.sgi.com>; Fri, 2 Mar 2001 08:57:15 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id IAA09692
	for <linux-mips@oss.sgi.com>; Fri, 2 Mar 2001 08:57:12 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id RAA25898
	for <linux-mips@oss.sgi.com>; Fri, 2 Mar 2001 17:56:49 +0100 (MET)
Message-ID: <3A9FD0D0.887E372F@mips.com>
Date:   Fri, 02 Mar 2001 17:56:48 +0100
From:   Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mips@oss.sgi.com
Subject: Bug in get_insn_opcode.
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

There is a bug in the function get_insn_opcode in traps.c

As 'epc' is an int pointer here, it should only be increased by 1 (4
byte) and not by 4 (4*4 = 16 bytes).
See the patch below.

/Carsten

Index: arch/mips/kernel/traps.c
===================================================================
RCS file: /home/repository/sw/linux-2.4.0/arch/mips/kernel/traps.c,v
retrieving revision 1.10
diff -u -r1.10 traps.c
--- traps.c     2001/02/28 13:46:43     1.10
+++ traps.c     2001/03/02 16:50:27
@@ -410,7 +410,7 @@

        epc = (unsigned int *) (unsigned long) regs->cp0_epc;
        if (regs->cp0_cause & CAUSEF_BD)
-               epc += 4;
+               epc++;

        if (verify_area(VERIFY_READ, epc, 4)) {
                force_sig(SIGSEGV, current);
Index: arch/mips64/kernel/traps.c
===================================================================
RCS file: /home/repository/sw/linux-2.4.0/arch/mips64/kernel/traps.c,v
retrieving revision 1.5
diff -u -r1.5 traps.c
--- traps.c     2001/02/19 16:02:52     1.5
+++ traps.c     2001/03/02 16:50:13
@@ -371,7 +371,7 @@

        epc = (unsigned int *) (unsigned long) regs->cp0_epc;
        if (regs->cp0_cause & CAUSEF_BD)
-               epc += 4;
+               epc++;

        if (verify_area(VERIFY_READ, epc, 4)) {
                force_sig(SIGSEGV, current);




--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Fri Mar  2 09:03:02 2001
Received:  by oss.sgi.com id <S553797AbRCBRCm>;
	Fri, 2 Mar 2001 09:02:42 -0800
Received: from u-175-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.175]:7941
        "EHLO u-175-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553788AbRCBRCd>; Fri, 2 Mar 2001 09:02:33 -0800
Received: from dea ([193.98.169.28]:14976 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S870762AbRCBRCZ>;
	Fri, 2 Mar 2001 09:02:25 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f22H1uH02713;
	Fri, 2 Mar 2001 18:01:56 +0100
Date:	Fri, 2 Mar 2001 18:01:56 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Lisa.Hsu@taec.toshiba.com
Cc:	heinold@physik.tu-cottbus.de (H.Heinold), linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010302180156.B2656@bacchus.dhis.org>
References: <OF4628F9A8.67E419FF-ON88256A03.005A3DC5@taec.toshiba.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <OF4628F9A8.67E419FF-ON88256A03.005A3DC5@taec.toshiba.com>; from Lisa.Hsu@taec.toshiba.com on Fri, Mar 02, 2001 at 08:31:41AM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Fri, Mar 02, 2001 at 08:31:41AM -0800, Lisa.Hsu@taec.toshiba.com wrote:
> Subject: Re: NFSROOT filesystem
> To: heinold@physik.tu-cottbus.de (H.Heinold)
> Cc: linux-mips@oss.sgi.com, owner-linux-mips@oss.sgi.com

Mind not cc'ing the owner-* address?  That's the list admin who isn't
necessarily interested in reading the discussion ...

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar  2 10:34:22 2001
Received:  by oss.sgi.com id <S553808AbRCBSeB>;
	Fri, 2 Mar 2001 10:34:01 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:47353 "EHLO
        orion.mvista.com") by oss.sgi.com with ESMTP id <S553801AbRCBSdv>;
	Fri, 2 Mar 2001 10:33:51 -0800
Received: (from jsun@localhost)
	by orion.mvista.com (8.9.3/8.9.3) id KAA16942;
	Fri, 2 Mar 2001 10:30:33 -0800
Date:   Fri, 2 Mar 2001 10:30:33 -0800
From:   Jun Sun <jsun@mvista.com>
To:     "H.Heinold" <heinold@physik.tu-cottbus.de>
Cc:     linux-mips@oss.sgi.com
Subject: Re: NFSROOT filesystem
Message-ID: <20010302103033.A16933@mvista.com>
References: <OF68B1111A.E5F36BC9-ON88256A02.0074F726@taec.toshiba.com> <3A9EC293.F301E8D5@mvista.com> <20010302091516.A12824@physik.tu-cottbus.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010302091516.A12824@physik.tu-cottbus.de>; from heinold@physik.tu-cottbus.de on Fri, Mar 02, 2001 at 09:15:16AM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Fri, Mar 02, 2001 at 09:15:16AM +0100, H.Heinold wrote:
> On Thu, Mar 01, 2001 at 01:43:47PM -0800, Jun Sun wrote:
> > Lisa,
> > 
> > You can get either big endian or little endian NFS root fs on the following
> > site.  
> > 
> > ftp://ftp.mvista.com/pub/Area51/mips_fp_le
> > ftp://ftp.mvista.com/pub/Area51/mips_fp_be
> > 
> > Jun
> 
> 
> Hi Jun,
> 
> I looked at your site and can only find rpm's. Dont yo have an packed
> nfs-root.tar.gz?
> 
>

Unfortunately no.

Well you are welcome to create one based on those rpms. :-)  For a list of 
suggested rpms for install, you can see 

ftp://ftp.mvista.com/pub/CDK/1.2/latest/MIPS/install/ddb5476/

You only need to install *.noarch.rpm and *.i386.rpm packages.

Jun

From owner-linux-mips@oss.sgi.com Fri Mar  2 10:38:01 2001
Received:  by oss.sgi.com id <S553812AbRCBShw>;
	Fri, 2 Mar 2001 10:37:52 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:50173 "EHLO
        orion.mvista.com") by oss.sgi.com with ESMTP id <S553802AbRCBShh>;
	Fri, 2 Mar 2001 10:37:37 -0800
Received: (from jsun@localhost)
	by orion.mvista.com (8.9.3/8.9.3) id KAA16949;
	Fri, 2 Mar 2001 10:34:49 -0800
Date:   Fri, 2 Mar 2001 10:34:49 -0800
From:   Jun Sun <jsun@mvista.com>
To:     Carsten Langgaard <carstenl@mips.com>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Bug in get_insn_opcode.
Message-ID: <20010302103449.B16933@mvista.com>
References: <3A9FD0D0.887E372F@mips.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3A9FD0D0.887E372F@mips.com>; from carstenl@mips.com on Fri, Mar 02, 2001 at 05:56:48PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Fri, Mar 02, 2001 at 05:56:48PM +0100, Carsten Langgaard wrote:
> There is a bug in the function get_insn_opcode in traps.c
> 
> As 'epc' is an int pointer here, it should only be increased by 1 (4
> byte) and not by 4 (4*4 = 16 bytes).
> See the patch below.
> 
> /Carsten
>

Good catch!

I am surprised that trap on branch delay slot is rare that we only discover
this bug now ...

Jun 

From owner-linux-mips@oss.sgi.com Fri Mar  2 15:48:02 2001
Received:  by oss.sgi.com id <S553852AbRCBXrx>;
	Fri, 2 Mar 2001 15:47:53 -0800
Received: from stereotomy.lineo.com ([64.50.107.151]:9994 "HELO
        stereotomy.lineo.com") by oss.sgi.com with SMTP id <S553847AbRCBXrc>;
	Fri, 2 Mar 2001 15:47:32 -0800
Received: from Lineo.COM (localhost.localdomain [127.0.0.1])
	by stereotomy.lineo.com (Postfix) with ESMTP
	id C6D564C92E; Fri,  2 Mar 2001 16:47:25 -0700 (MST)
Message-ID: <3AA0310D.7050206@Lineo.COM>
Date:   Fri, 02 Mar 2001 16:47:25 -0700
From:   Quinn Jensen <jensenq@Lineo.COM>
Organization: Lineo, Inc.
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-9mdk i686; en-US; m18) Gecko/20001107 Netscape6/6.0
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mips@oss.sgi.com
Subject: loopback broken in 2.4.2
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

FYI - watch out for loopback problems in 2.4.2.
See http://kt.zork.net/kernel-traffic/latest.html#11

I tried the patch,

ftp://ftp.kernel.org/pub/linux/kernel/people/axboe/patches/2.4.2-pre4/loop-6.gz

and it does fix it at least on a mipsel build.


Quinn


From owner-linux-mips@oss.sgi.com Fri Mar  2 18:48:45 2001
Received:  by oss.sgi.com id <S553702AbRCCCs0>;
	Fri, 2 Mar 2001 18:48:26 -0800
Received: from smtp.psdc.com ([209.125.203.83]:57924 "EHLO smtp.psdc.com")
	by oss.sgi.com with ESMTP id <S553652AbRCCCsD>;
	Fri, 2 Mar 2001 18:48:03 -0800
Received: from BANANA ([209.125.203.85])
	by smtp.psdc.com (8.8.8/8.8.8) with SMTP id SAA24492;
	Fri, 2 Mar 2001 18:31:39 -0800
Message-ID: <001b01c0a328$11736b50$dde0490a@BANANA>
From:   "Steven Liu" <stevenliu@psdc.com>
To:     <Franz.Sirl-kernel@lauterbach.com>
Cc:     <linux-mips@oss.sgi.com>, "Kevin D. Kissell" <kevink@paralogos.com>
Subject: libgcc2.a and mips-tfile
Date:   Fri, 2 Mar 2001 06:50:00 -0800
MIME-Version: 1.0
Content-Type: multipart/mixed;
	boundary="----=_NextPart_000_0017_01C0A2E5.00ECE6F0"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

This is a multi-part message in MIME format.

------=_NextPart_000_0017_01C0A2E5.00ECE6F0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_0018_01C0A2E5.00ECE6F0"


------=_NextPart_001_0018_01C0A2E5.00ECE6F0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, Franz:

I am doing cross-compiler for mips r3000 now and meet alot of problems.

My host system is i386 with Rad Hat 7.0 installed.=20

First, I successfully built and installed binutils-2.8.1 by using =
binutils-2.8.1.tar.gz and egcs-mips-linux-1.1.2-2.i386.rpm. This created =
bin, lib, mips-linux subdirectories.

Second, I installed the linux kernel source code for mips by using =
linux-2.2.14-000715.tar.gz and configured it and enabled =
CONFIG_CROSSCOMPILE.  Made soft links: let  mips-linux/include/asm =
pointd to linux-2.2.14-000715/include/asm-mips and=20
mips-linux/include/linux pointd to linux-2.2.14-000715/include/linux.

Third, unziped the egcs-1.1.2.tar.gz, added the patch =
egcs-mips-linux-1.1.2-2.i386.rpm and configured it as following:
     ./configure --prefix=3D/home/sliu --with-newlib =
--target=3Dmips-linux
and made it this way:
     make SUBDIRS=3D"libiberty texinfo gcc" ALL_TARGET_MODULES=3D =
CONFIGURE_TARGET_MODULES=3D INSTALL_TARGET_MODULES=3D LANGUAGES=3D"c"

Then, it gave the following errors in gcc subdirectory:

xgcc: installation problem, cannot exec `mips-tfile': No such file or =
directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/gcc'
make: *** [all-gcc] Error 2


If you could give me any help, I would be greatly appreciated.

Regards,


Steven Liu


------=_NextPart_001_0018_01C0A2E5.00ECE6F0
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, Franz:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am doing cross-compiler for mips =
r3000 now and=20
meet alot of problems.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My host system is i386 with Rad Hat 7.0 =
installed.=20
</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>First, I successfully built and =
installed=20
binutils-2.8.1 by using <STRONG>binutils-2.8.1.tar.gz </STRONG>and=20
<STRONG>egcs-mips-linux-1.1.2-2.i386.rpm</STRONG>. This created bin, =
lib,=20
mips-linux subdirectories.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Second, I installed the linux kernel =
source code=20
for mips by using <STRONG>linux-2.2.14-000715.tar.gz </STRONG>and=20
configured&nbsp;it&nbsp;and enabled </FONT><FONT face=3DArial=20
size=3D2>CONFIG_CROSSCOMPILE.&nbsp; <STRONG>Made soft links</STRONG>: =
let =20
mips-linux/include/asm pointd to linux-2.2.14-000715/include/asm-mips =
and=20
</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mips-linux/include/linux pointd to=20
linux-2.2.14-000715/include/linux.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Third,&nbsp;unziped the=20
<STRONG>egcs-1.1.2.tar.gz</STRONG>, added the patch=20
<STRONG>egcs-mips-linux-1.1.2-2.i386.rpm </STRONG>and configured =
it&nbsp;as=20
following:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; =
<STRONG>./configure=20
--prefix=3D/home/sliu --with-newlib =
--target=3Dmips-linux</STRONG></FONT><FONT=20
face=3DArial size=3D2></FONT></DIV>
<DIV><FONT face=3DArial size=3D2>and made it this way:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>make=20
SUBDIRS=3D"libiberty texinfo gcc" ALL_TARGET_MODULES=3D =
CONFIGURE_TARGET_MODULES=3D=20
INSTALL_TARGET_MODULES=3D LANGUAGES=3D"c"</STRONG></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then, it gave the following errors in =
gcc=20
subdirectory:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><STRONG><FONT face=3DArial size=3D2>xgcc: installation problem, =
cannot exec=20
`mips-tfile': No such file or directory<BR>make[1]: *** [libgcc2.a] =
Error=20
1<BR>make[1]: Leaving directory `/home/sliu/egcs-1.1.2/gcc'<BR>make: *** =

[all-gcc] Error 2<BR></FONT></STRONG><FONT face=3DArial =
size=3D2></DIV></FONT>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>If you could give me any help, I would =
be greatly=20
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Steven =
Liu<BR></DIV></FONT></BODY></HTML>

------=_NextPart_001_0018_01C0A2E5.00ECE6F0--

------=_NextPart_000_0017_01C0A2E5.00ECE6F0
Content-Type: text/plain;
	name="liu.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="liu.txt"

make[1]: Entering directory `/home/sliu/egcs-1.1.2/libiberty'=0A=
f=3D" "; \=0A=
case $f in \=0A=
  *alloca.o*) f=3D"$f xmalloc.o xexit.o" ;; \=0A=
esac; \=0A=
echo $f > needed-list=0A=
echo argv.o choose-temp.o concat.o cplus-dem.o fdmatch.o fnmatch.o =
getopt.o getopt1.o getruntime.o hex.o floatformat.o objalloc.o obstack.o =
pexecute.o spaces.o strerror.o strsignal.o xatexit.o xexit.o xmalloc.o =
xstrdup.o xstrerror.o > required-list=0A=
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/libiberty'=0A=
make[1]: Entering directory `/home/sliu/egcs-1.1.2/texinfo'=0A=
make all-recursive=0A=
make[2]: Entering directory `/home/sliu/egcs-1.1.2/texinfo'=0A=
Making all in intl=0A=
make[3]: Entering directory `/home/sliu/egcs-1.1.2/texinfo/intl'=0A=
make[3]: Nothing to be done for `all'.=0A=
make[3]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo/intl'=0A=
Making all in lib=0A=
make[3]: Entering directory `/home/sliu/egcs-1.1.2/texinfo/lib'=0A=
make[3]: Nothing to be done for `all'.=0A=
make[3]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo/lib'=0A=
Making all in makeinfo=0A=
make[3]: Entering directory `/home/sliu/egcs-1.1.2/texinfo/makeinfo'=0A=
make[3]: Nothing to be done for `all'.=0A=
make[3]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo/makeinfo'=0A=
Making all in util=0A=
make[3]: Entering directory `/home/sliu/egcs-1.1.2/texinfo/util'=0A=
make[3]: Nothing to be done for `all'.=0A=
make[3]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo/util'=0A=
make[2]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo'=0A=
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/texinfo'=0A=
make[1]: Entering directory `/home/sliu/egcs-1.1.2/etc'=0A=
make[1]: Nothing to be done for `all'.=0A=
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/etc'=0A=
make[1]: Entering directory `/home/sliu/egcs-1.1.2/gcc'=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I. =
-I./config \=0A=
  =
-DGCC_INCLUDE_DIR=3D\"/home/sliu/lib/gcc-lib/mips-linux/egcs-2.91.66/incl=
ude\" \=0A=
  -DGPLUSPLUS_INCLUDE_DIR=3D\"/home/sliu/include/g++\" \=0A=
  -DOLD_GPLUSPLUS_INCLUDE_DIR=3D\"/home/sliu/lib/g++-include\" \=0A=
  -DLOCAL_INCLUDE_DIR=3D\"/usr/local/include\" \=0A=
  -DCROSS_INCLUDE_DIR=3D\"/home/sliu/mips-linux/sys-include\" \=0A=
  -DTOOL_INCLUDE_DIR=3D\"/home/sliu/mips-linux/include\" \=0A=
  -c `echo ./cccp.c | sed 's,^\./,,'`=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I. =
-I./config \=0A=
-DPREFIX=3D\"/home/sliu\" \=0A=
  -c `echo ./prefix.c | sed 's,^\./,,'`=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H   -o cccp cccp.o =
cexp.o prefix.o \=0A=
  version.o obstack.o     =0A=
rm -f cpp=0A=
ln cccp cpp=0A=
gcc -c -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I. =
-I./config ./gencheck.c=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H   -o gencheck \=0A=
 gencheck.o ` case "obstack.o" in ?*) echo obstack.o ;; esac ` ` case "" =
in ?*) echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` ` case "" in ?*) =
echo  ;; esac ` ` case "" in ?*) echo  ;; esac ` =0A=
./gencheck > tmp-check.h=0A=
./move-if-change tmp-check.h tree-check.h=0A=
tree-check.h is unchanged=0A=
touch s-check=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I. =
-I./config  \=0A=
  -DTARGET_NAME=3D\"mips-linux\" \=0A=
  -c `echo ./toplev.c | sed 's,^\./,,'`=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H   -o cc1 =
c-parse.o c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o =
c-aux-info.o c-common.o c-iterate.o  toplev.o version.o tree.o =
print-tree.o stor-layout.o fold-const.o function.o stmt.o except.o =
expr.o calls.o expmed.o explow.o optabs.o varasm.o rtl.o print-rtl.o =
rtlanal.o emit-rtl.o genrtl.o real.o regmove.o dbxout.o sdbout.o =
dwarfout.o dwarf2out.o xcoffout.o bitmap.o alias.o integrate.o jump.o =
cse.o loop.o unroll.o flow.o stupid.o combine.o varray.o regclass.o =
local-alloc.o global.o reload.o reload1.o caller-save.o gcse.o =
insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o insn-opinit.o =
insn-recog.o insn-extract.o insn-output.o insn-emit.o profile.o =
insn-attrtab.o mips.o getpwd.o  convert.o dyn-string.o obstack.o     =0A=
/bin/sh ./genmultilib \=0A=
  "" \=0A=
  "" \=0A=
  "" \=0A=
  "" \=0A=
  "" > tmp-mlib.h=0A=
./move-if-change tmp-mlib.h multilib.h=0A=
multilib.h is unchanged=0A=
touch s-mlib=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H     -I. -I. =
-I./config \=0A=
  -DSTANDARD_STARTFILE_PREFIX=3D\"/home/sliu/lib/\" =
-DSTANDARD_EXEC_PREFIX=3D\"/home/sliu/lib/gcc-lib/\" =
-DDEFAULT_TARGET_VERSION=3D\"egcs-2.91.66\" =
-DDEFAULT_TARGET_MACHINE=3D\"mips-linux\" =
-DTOOLDIR_BASE_PREFIX=3D\"/home/sliu/\" \=0A=
  -c `echo ./gcc.c | sed 's,^\./,,'`=0A=
gcc -DCROSS_COMPILE -DIN_GCC    -g -O2  -DHAVE_CONFIG_H   -o xgcc gcc.o =
prefix.o version.o \=0A=
  choose-temp.o pexecute.o mkstemp.o  obstack.o     =0A=
echo "int xxy_us_dummy;" >tmp-dum.c=0A=
/home/sliu/egcs-1.1.2/gcc/xgcc -B/home/sliu/egcs-1.1.2/gcc/ -S tmp-dum.c=0A=
echo '/*WARNING: This file is automatically generated!*/' >tmp-under.c=0A=
if grep _xxy_us_dummy tmp-dum.s > /dev/null ; then \=0A=
  echo "int prepends_underscore =3D 1;" >>tmp-under.c; \=0A=
else \=0A=
  echo "int prepends_underscore =3D 0;" >>tmp-under.c; \=0A=
fi=0A=
./move-if-change tmp-under.c underscore.c=0A=
underscore.c is unchanged=0A=
rm -f tmp-dum.c tmp-dum.s=0A=
touch s-under=0A=
cp xgcc gcc-cross=0A=
/home/sliu/egcs-1.1.2/gcc/xgcc -B/home/sliu/egcs-1.1.2/gcc/ -dumpspecs > =
tmp-specs=0A=
mv tmp-specs specs=0A=
if [ -f libgcc2.ready ] ; then \=0A=
	true; \=0A=
else \=0A=
	touch libgcc2.ready; \=0A=
fi=0A=
rm -f tmplibgcc2.a=0A=
for name in _muldi3 _divdi3 _moddi3 _udivdi3 _umoddi3 _negdi2 _lshrdi3 =
_ashldi3 _ashrdi3 _ffsdi2 _udiv_w_sdiv _udivmoddi4 _cmpdi2 _ucmpdi2 =
_floatdidf _floatdisf _fixunsdfsi _fixunssfsi _fixunsdfdi _fixdfdi =
_fixunssfdi _fixsfdi _fixxfdi _fixunsxfdi _floatdixf _fixunsxfsi =
_fixtfdi _fixunstfdi _floatditf __gcc_bcmp _varargs __dummy _eprintf _bb =
_shtab _clear_cache _trampoline __main _exit _ctors _pure; \=0A=
do \=0A=
  echo ${name}; \=0A=
  /home/sliu/egcs-1.1.2/gcc/xgcc -B/home/sliu/egcs-1.1.2/gcc/ -O2  =
-DCROSS_COMPILE -DIN_GCC    -g -O2 -I./include   -g1  -DIN_LIBGCC2 =
-D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc  -I. -I. -I./config -c =
-DL${name} \=0A=
      ./libgcc2.c -o ${name}.o; \=0A=
  if [ $? -eq 0 ] ; then true; else exit 1; fi; \=0A=
  mips-linux-ar rc tmplibgcc2.a ${name}.o; \=0A=
  rm -f ${name}.o; \=0A=
done=0A=
_muldi3=0A=
xgcc: installation problem, cannot exec `mips-tfile': No such file or =
directory=0A=
make[1]: *** [libgcc2.a] Error 1=0A=
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/gcc'=0A=
make: *** [all-gcc] Error 2=0A=

------=_NextPart_000_0017_01C0A2E5.00ECE6F0--


From owner-linux-mips@oss.sgi.com Fri Mar  2 23:23:08 2001
Received:  by oss.sgi.com id <S553828AbRCCHW6>;
	Fri, 2 Mar 2001 23:22:58 -0800
Received: from u-162-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.162]:19205
        "EHLO u-162-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553795AbRCCHWo>; Fri, 2 Mar 2001 23:22:44 -0800
Received: from dea ([193.98.169.28]:17280 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S870761AbRCCHWb>;
	Fri, 2 Mar 2001 23:22:31 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f237LFp05873;
	Sat, 3 Mar 2001 08:21:15 +0100
Date:	Sat, 3 Mar 2001 08:21:15 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Carsten Langgaard <carstenl@mips.com>
Cc:	linux-mips@oss.sgi.com
Subject: Re: Bug in get_insn_opcode.
Message-ID: <20010303082115.B5750@bacchus.dhis.org>
References: <3A9FD0D0.887E372F@mips.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3A9FD0D0.887E372F@mips.com>; from carstenl@mips.com on Fri, Mar 02, 2001 at 05:56:48PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Fri, Mar 02, 2001 at 05:56:48PM +0100, Carsten Langgaard wrote:
> Date:   Fri, 02 Mar 2001 17:56:48 +0100
> From: Carsten Langgaard <carstenl@mips.com>
> To: linux-mips@oss.sgi.com
> Subject: Bug in get_insn_opcode.
> 
> There is a bug in the function get_insn_opcode in traps.c
> 
> As 'epc' is an int pointer here, it should only be increased by 1 (4
> byte) and not by 4 (4*4 = 16 bytes).
> See the patch below.

> Index: arch/mips/kernel/traps.c
> ===================================================================
> RCS file: /home/repository/sw/linux-2.4.0/arch/mips/kernel/traps.c,v
> retrieving revision 1.10
> diff -u -r1.10 traps.c
> --- traps.c     2001/02/28 13:46:43     1.10
> +++ traps.c     2001/03/02 16:50:27

Patch will behave (un-)funny on a cvs diff generated patch like this which
lacks full pathnames in the --- and +++ lines.  Patches for this
behaviour are available on ftp.cyclic.com (so it still exists ...) or in
more recent cvs rpms.

Applied anyway, of course.

  Ralf

From owner-linux-mips@oss.sgi.com Sun Mar  4 10:13:00 2001
Received:  by oss.sgi.com id <S553720AbRCDSMk>;
	Sun, 4 Mar 2001 10:12:40 -0800
Received: from hermes.cs.kuleuven.ac.be ([134.58.40.3]:38318 "EHLO
        hermes.cs.kuleuven.ac.be") by oss.sgi.com with ESMTP
	id <S553715AbRCDSM3>; Sun, 4 Mar 2001 10:12:29 -0800
Received: from cassiopeia.home (root@dialup004.cs.kuleuven.ac.be [134.58.47.133])
	by hermes.cs.kuleuven.ac.be (A_Good_MTA/8.11.1) with ESMTP id f24ICQT21536;
	Sun, 4 Mar 2001 19:12:26 +0100 (MET)
Received: from localhost (geert@localhost)
	by cassiopeia.home (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id QAA01687;
	Sat, 3 Mar 2001 16:15:07 +0100
X-Authentication-Warning: cassiopeia.home: geert owned process doing -bs
Date:   Sat, 3 Mar 2001 16:15:05 +0100 (CET)
From:   Geert Uytterhoeven <geert@linux-m68k.org>
To:     Ralf Baechle <ralf@oss.sgi.com>
cc:     Carsten Langgaard <carstenl@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Bug in get_insn_opcode.
In-Reply-To: <20010303082115.B5750@bacchus.dhis.org>
Message-ID: <Pine.LNX.4.10.10103031614440.455-100000@cassiopeia.home>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sat, 3 Mar 2001, Ralf Baechle wrote:
> On Fri, Mar 02, 2001 at 05:56:48PM +0100, Carsten Langgaard wrote:
> > Index: arch/mips/kernel/traps.c
> > ===================================================================
> > RCS file: /home/repository/sw/linux-2.4.0/arch/mips/kernel/traps.c,v
> > retrieving revision 1.10
> > diff -u -r1.10 traps.c
> > --- traps.c     2001/02/28 13:46:43     1.10
> > +++ traps.c     2001/03/02 16:50:27
> 
> Patch will behave (un-)funny on a cvs diff generated patch like this which
> lacks full pathnames in the --- and +++ lines.  Patches for this
> behaviour are available on ftp.cyclic.com (so it still exists ...) or in
> more recent cvs rpms.

Isn't patch supposed to look at the `Index' line?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


From owner-linux-mips@oss.sgi.com Sun Mar  4 11:50:50 2001
Received:  by oss.sgi.com id <S553715AbRCDTub>;
	Sun, 4 Mar 2001 11:50:31 -0800
Received: from u-155-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.155]:1796
        "EHLO u-155-18.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553738AbRCDTuM>; Sun, 4 Mar 2001 11:50:12 -0800
Received: from dea ([193.98.169.28]:8832 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867210AbRCDTt7>;
	Sun, 4 Mar 2001 20:49:59 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f24JmQn16937;
	Sun, 4 Mar 2001 20:48:26 +0100
Date:	Sun, 4 Mar 2001 20:48:26 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Geert Uytterhoeven <geert@linux-m68k.org>
Cc:	Carsten Langgaard <carstenl@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Bug in get_insn_opcode.
Message-ID: <20010304204826.B15182@bacchus.dhis.org>
References: <20010303082115.B5750@bacchus.dhis.org> <Pine.LNX.4.10.10103031614440.455-100000@cassiopeia.home>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.10.10103031614440.455-100000@cassiopeia.home>; from geert@linux-m68k.org on Sat, Mar 03, 2001 at 04:15:05PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sat, Mar 03, 2001 at 04:15:05PM +0100, Geert Uytterhoeven wrote:

> > > Index: arch/mips/kernel/traps.c
> > > ===================================================================
> > > RCS file: /home/repository/sw/linux-2.4.0/arch/mips/kernel/traps.c,v
> > > retrieving revision 1.10
> > > diff -u -r1.10 traps.c
> > > --- traps.c     2001/02/28 13:46:43     1.10
> > > +++ traps.c     2001/03/02 16:50:27
> > 
> > Patch will behave (un-)funny on a cvs diff generated patch like this which
> > lacks full pathnames in the --- and +++ lines.  Patches for this
> > behaviour are available on ftp.cyclic.com (so it still exists ...) or in
> > more recent cvs rpms.
> 
> Isn't patch supposed to look at the `Index' line?

Only when the environment variable POSIXLY_CORRECT is set to y which has
a ton of other unwanted side effects, so patch would need wrapper scripts
or what not else.

  Ralf

From owner-linux-mips@oss.sgi.com Sun Mar  4 12:24:21 2001
Received:  by oss.sgi.com id <S553742AbRCDUYB>;
	Sun, 4 Mar 2001 12:24:01 -0800
Received: from aeon.tvd.be ([195.162.196.20]:21801 "EHLO aeon.tvd.be")
	by oss.sgi.com with ESMTP id <S553739AbRCDUXc>;
	Sun, 4 Mar 2001 12:23:32 -0800
Received: from callisto.of.borg (root@cable-195-162-216-133.upc.chello.be [195.162.216.133])
	by aeon.tvd.be (8.9.3/8.9.3/RELAY-1.1) with ESMTP id VAA22146
	for <linux-mips@oss.sgi.com>; Sun, 4 Mar 2001 21:23:29 +0100 (MET)
Received: from localhost (geert@localhost)
	by callisto.of.borg (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id VAA13141
	for <linux-mips@oss.sgi.com>; Sun, 4 Mar 2001 21:21:16 +0100
X-Authentication-Warning: callisto.of.borg: geert owned process doing -bs
Date:   Sun, 4 Mar 2001 21:21:16 +0100 (CET)
From:   Geert Uytterhoeven <geert@linux-m68k.org>
To:     Linux/MIPS Development <linux-mips@oss.sgi.com>
Subject: drivers/sgi/char/linux_logo.h
Message-ID: <Pine.LNX.4.05.10103042119540.12571-100000@callisto.of.borg>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

	Hi,

I'm cleaning up the logo code and found a penguin-with-beer logo (the
politically incorrect version) in drivers/sgi/char/linux_logo.h.

However, it looks like this file is not used anymore. Can I remove it?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


From owner-linux-mips@oss.sgi.com Sun Mar  4 12:36:52 2001
Received:  by oss.sgi.com id <S553746AbRCDUgn>;
	Sun, 4 Mar 2001 12:36:43 -0800
Received: from cassidy.nuernberg.linuxtag.net ([212.204.83.80]:44303 "HELO
        cassidy.nuernberg.linuxtag.net") by oss.sgi.com with SMTP
	id <S553740AbRCDUg3>; Sun, 4 Mar 2001 12:36:29 -0800
Received: from hydra.linuxtag.uni-kl.de (hydra.hq.linuxtag.net [192.168.0.1])
	by cassidy.nuernberg.linuxtag.net (Postfix) with ESMTP id 5859EEC2AB
	for <linux-mips@oss.sgi.com>; Sun,  4 Mar 2001 21:33:33 +0100 (CET)
Received: by hydra.linuxtag.uni-kl.de (Postfix, from userid 1034)
	id 50C4F1B65; Sun,  4 Mar 2001 21:36:09 +0100 (CET)
Date:   Sun, 4 Mar 2001 21:36:09 +0100
From:   Karsten Merker <karsten@excalibur.cologne.de>
To:     linux-mips@oss.sgi.com
Subject: build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2
Message-ID: <20010304213609.B25825@linuxtag.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hallo everyone,

I am trying to get the components for a Debian mipsel-base.tgz built,
based on glibc-2.2.2. I am working in a chroot()-environment, where I have
installed glibc 2.2.2, binutils 2.10.91 and gcc 2.95.3 as precompiled
binaries, all from Maciej's packages (glibc-2.2.2-2.mipsel.rpm,
gcc-2.95.3-14.mipsel.rpm, binutils-2.10.91-1.mipsel.rpm plus devel and
dependency packages). Gawk and perl are self-compiled inside the
chroot()-environment. When trying to compile fileutils, the ./configure
starts ok, but when coming to "checking for working mktime..." the script
just hangs forever, and according to top there is nothing consuming CPU
time (except for top itself). Compiling the fileutils on the "host
system", i.e. outside the chroot()-environment using egcs-1.0.3a and
glibc-2.0.6 the problem does not appear. Can anybody confirm this on
another system? Any ideas what can be the reason for this?

The system:

bash> cat /proc/cpuinfo
cpu                     : MIPS
cpu model               : R4000SC V3.0
system type             : Digital DECstation 5000/1xx
BogoMIPS                : 49.75
byteorder               : little endian
unaligned accesses      : 0
wait instruction        : no
microsecond timers      : no
extra interrupt vector  : no
hardware watchpoint     : yes
VCED exceptions         : 360569
VCEI exceptions         : 14106

bash> gcc -v
Reading specs from /usr/lib/gcc-lib/mipsel-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)

Kernel is 2.4.1 fresh from cvs.

The output from ./configure:
creating cache ./config.cache
checking host system type... mipsel-unknown-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for mawk... no
checking for gawk... gawk
checking whether make sets ${MAKE}... yes
checking for perl5.003 or newer... yes
checking for gcc... gcc
checking whether the C compiler (gcc   ) works... yes
checking whether the C compiler (gcc   ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking how to run the C preprocessor... gcc -E
checking dependency style of gcc... gcc
checking how to run the C preprocessor... gcc -E
checking whether gcc needs -traditional... no
checking for ranlib... ranlib
checking for AIX... no
checking for minix/config.h... no
checking build system type... mipsel-unknown-linux-gnu
checking for getconf... getconf
checking for CFLAGS value to request large file support... -D_FILE_OFFSET_BITS=64
checking for LDFLAGS value to request large file support... 
checking for LIBS value to request large file support... 
checking for _FILE_OFFSET_BITS... 64
checking for _LARGEFILE_SOURCE... no
checking for _LARGE_FILES... no
checking for gcc option to accept ANSI C... none needed
checking for function prototypes... yes
checking whether sys/types.h defines makedev... yes
checking for dirent.h that defines DIR... yes
checking for opendir in -ldir... no
checking whether closedir returns void... no
checking for inttypes.h... yes
checking for unsigned long long... yes
checking for gcc option to accept ANSI C... none needed
checking for uid_t in sys/types.h... yes
checking whether byte ordering is bigendian... no
checking for an ANSI C conforming const... yes
checking for inline... inline
checking for long double... yes
checking for dirent.h that defines DIR... (cached) yes
checking for opendir in -ldir... (cached) no
checking for ANSI C header files... yes
checking for struct stat.st_blksize... no
checking for struct stat.st_blocks... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking whether time.h and sys/time.h may both be included... yes
checking for struct tm.tm_zone... yes
checking whether stat file-mode macros are broken... no
checking for nanoseconds member of struct stat.st_mtim... no
checking for st_dm_mode in struct stat... no
checking type of array argument to getgroups... gid_t
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... (cached) yes
checking for ino_t... yes
checking for ssize_t... yes
checking for library containing clock_gettime... -lrt
checking for fdatasync... yes
checking for clock_gettime... yes
checking for long file names... yes
checking for pathconf... yes
checking for string.h... yes
checking for fcntl.h... yes
checking for limits.h... yes
checking for sys/time.h... yes
checking for sys/timeb.h... yes
checking for errno.h... yes
checking for unistd.h... yes
checking for stdlib.h... yes
checking for sys/param.h... yes
checking for sys/statfs.h... yes
checking for sys/fstyp.h... no
checking for mnttab.h... no
checking for mntent.h... yes
checking for utime.h... yes
checking for sys/statvfs.h... yes
checking for sys/vfs.h... yes
checking for sys/mntent.h... no
checking for sys/mount.h... yes
checking for sys/filsys.h... no
checking for sys/fs_types.h... no
checking for sys/acl.h... no
checking for sys/wait.h... yes
checking for sys/ioctl.h... yes
checking for sys/fs/s5param.h... no
checking for termios.h... yes
checking for values.h... yes
checking for euidaccess... yes
checking for memcpy... yes
checking for memcmp... yes
checking for memset... yes
checking for sys/time.h... (cached) yes
checking for unistd.h... (cached) yes
checking for alarm... yes
checking for working mktime... 
[hanging forever]

Greetings,
Karsten
-- 
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der
Nutzung oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die
Markt- oder Meinungsforschung.

From owner-linux-mips@oss.sgi.com Sun Mar  4 14:17:13 2001
Received:  by oss.sgi.com id <S553752AbRCDWRE>;
	Sun, 4 Mar 2001 14:17:04 -0800
Received: from u-155-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.155]:4612
        "EHLO u-155-18.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553747AbRCDWQg>; Sun, 4 Mar 2001 14:16:36 -0800
Received: from dea ([193.98.169.28]:21376 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCDWQX>;
	Sun, 4 Mar 2001 23:16:23 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f24MFYY18180;
	Sun, 4 Mar 2001 23:15:34 +0100
Date:	Sun, 4 Mar 2001 23:15:34 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Karsten Merker <karsten@excalibur.cologne.de>
Cc:	linux-mips@oss.sgi.com
Subject: Re: build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2
Message-ID: <20010304231534.B17775@bacchus.dhis.org>
References: <20010304213609.B25825@linuxtag.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010304213609.B25825@linuxtag.org>; from karsten@excalibur.cologne.de on Sun, Mar 04, 2001 at 09:36:09PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sun, Mar 04, 2001 at 09:36:09PM +0100, Karsten Merker wrote:

> I am trying to get the components for a Debian mipsel-base.tgz built,
> based on glibc-2.2.2. I am working in a chroot()-environment, where I have
> installed glibc 2.2.2, binutils 2.10.91 and gcc 2.95.3 as precompiled
> binaries, all from Maciej's packages (glibc-2.2.2-2.mipsel.rpm,
> gcc-2.95.3-14.mipsel.rpm, binutils-2.10.91-1.mipsel.rpm plus devel and
> dependency packages). Gawk and perl are self-compiled inside the
> chroot()-environment. When trying to compile fileutils, the ./configure
> starts ok, but when coming to "checking for working mktime..." the script
> just hangs forever, and according to top there is nothing consuming CPU
> time (except for top itself). Compiling the fileutils on the "host
> system", i.e. outside the chroot()-environment using egcs-1.0.3a and
> glibc-2.0.6 the problem does not appear. Can anybody confirm this on
> another system? Any ideas what can be the reason for this?

Does you chroot environment have a mounted /proc filesystem?  In the past
we had obscure libc bugs which were triggered when /proc were not
mounted.

  Ralf

From owner-linux-mips@oss.sgi.com Sun Mar  4 18:01:55 2001
Received:  by oss.sgi.com id <S553768AbRCECBf>;
	Sun, 4 Mar 2001 18:01:35 -0800
Received: from short.adgrafix.com ([63.79.128.2]:4042 "EHLO short.adgrafix.com")
	by oss.sgi.com with ESMTP id <S553702AbRCECBU>;
	Sun, 4 Mar 2001 18:01:20 -0800
Received: from ppan2 (c534317-a.stcla1.sfba.home.com [24.20.134.153])
	by short.adgrafix.com (8.9.3/8.9.3) with SMTP id VAA20699;
	Sun, 4 Mar 2001 21:03:36 -0500 (EST)
From:   "Mike Klar" <mfklar@ponymail.com>
To:     <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: FPU context clobbered by signals
Date:   Sun, 4 Mar 2001 17:56:38 -0800
Message-ID: <NDBBIDGAOKMNJNDAHDDMEEHOCOAA.mfklar@ponymail.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Back in September, Atsushi Nemoto reported a problem with the way signal
handling was handling FPU contexts in the 2.2 kernel.  I think I'm seeing
the same thing in the 2.4 kernel.  The behavior I observe is that a user
process that is using floating point registers sees those registers get
whacked when another process gets a signal.  Just executing an arbitrary
command from a bash shell (while running floating point test app in the
background) is enough to demonstrate this.

Looking at setup_sigcontext() and restore_sigcontext() in
arch/mips/kernel/signal.c, the handling of FPU context certainly looks
wrong.  If nothing else, setting current->used_math to 0 will cause FPU
context to be reinitialized the next time that process reacquires the FPU
context.  I was going to fix this, but I really can't figure out what this
code is trying to do.

Currently setup_sigcontext() appears to behave as follows:
If the current process owns the FPU context, sc_ownedfp is set to 1 in the
sigcontext passed to the signal handler, and the floating point registers
are saved in that sigcontext.  This makes sense.
If the current process does not own the FPU context, but did at one point
execute FPU operations (which all glibc apps will do for initialization),
sc_ownedfp in the sigcontext is set to 0, and the floating point registers
are still saved.  This is, at the very least, a security hole, since those
registers belong to a different process at that point.

And restore_sigcontext() appears to behave thusly:
If sc_ownedfp is set in the sigcontext that is passed back from the signal
handler, the FPU context is restored from the sigcontext, and FPU context
ownership is given to the current process, without saving the old context.
Either I'm misunderstanding this, or there is a possibility that this will
simply forget about some other process' FPU context.

So what _is_ the desired behavior here?  The current behavior (again, unless
I'm misunderstanding something) gives the signal handler access to some
other process' FPU context in the case that the signaled process did not own
the FPU.  Should it:
1) Only pass the floating point registers in sigcontext if the signaled
process owned the FPU.  or
2) Always pass the signaled process' floating point registers if it had ever
used FPU operations.  This would require getting those registers from the
context saved on the stack instead of the current FP registers if the
current process does not own the FPU.

I guess what I'm trying to figure out here is the significance of sc_ownedfp
in struct sigcontext.  Option 1 would have it mean whether or not the
floating point register values in sigcontext are meaningful, but this seems
wrong.  The signal handler may want to know what the process' floating point
registers were at the time of the signal, unconditionally of whether it
owned the FPU context at the time.  Option 2 would have it mean... ummm...
I'm not sure.  I'm not sure why the signal handler would really care about
whether or not this process owned the FPU or some other process did, as long
as the floating point registers saved in sigcontext belong to the signaled
process.  It also doesn't seem all that useful to have the signal handler be
able to change the FPU ownership by changing the value of sc_ownedfp.

Mike Klar


From owner-linux-mips@oss.sgi.com Sun Mar  4 19:40:55 2001
Received:  by oss.sgi.com id <S553765AbRCEDkg>;
	Sun, 4 Mar 2001 19:40:36 -0800
Received: from agile-50.OntheNet.com.au ([203.144.13.50]:38150 "EHLO
        surfers.oz.agile.tv") by oss.sgi.com with ESMTP id <S553652AbRCEDkM>;
	Sun, 4 Mar 2001 19:40:12 -0800
Received: from agile.tv (IDENT:ldavies@tugun.oz.agile.tv [192.168.16.20])
	by surfers.oz.agile.tv (8.11.0/8.11.0) with ESMTP id f253e1O16740;
	Mon, 5 Mar 2001 13:40:01 +1000
Message-ID: <3AA30A91.B5842678@agile.tv>
Date:   Mon, 05 Mar 2001 13:40:01 +1000
From:   Liam Davies <ldavies@agile.tv>
Reply-To: ldavies@oz.agile.tv
Organization: Agile TV
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mips@oss.sgi.com
Subject: Troubles with TLB refills
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

I am trying to get the 2.4 kernel up and running on the Cobalt boxes.
At the moment I am trying to get the initial transition from kernel
to user mode working.

The elf loader is trying to put stuff in the stack for the new user
process and *each* call to NEW_AUX_ENTRY is generating a page fault
that cannot be resolved. The address generated by the BadVAddr on the
TLBS exception is not correct. Also, I never receive a TLBrefill
exception on the accesses. It is using the except_vec0_nevada handler.

All that I can think of is that the handler at 0x80000000 is getting
smashed after it is copied in -- ala troubles with _kd_mksound last
year.
Any ideas on what is happening?? how to fix it??


Thanks
Liam


elf_entry=4000b0
elf_bss=10010130
elf_brk=10010130
start_code=400000
end_code =400130
start_data=10010130
end_data =10010130

[sh:1:10004f4c:1:8005f504]
Dump TLB all:

Dump TLB wired:
Wired: 0
Dump TLB address 10004f4c :
No entry for address 0x10004f4c in TLB

vma: start=10010000
vma: flags=    1873
Bad_Area:
no_context:



From owner-linux-mips@oss.sgi.com Mon Mar  5 01:04:29 2001
Received:  by oss.sgi.com id <S553778AbRCEJEI>;
	Mon, 5 Mar 2001 01:04:08 -0800
Received: from mx.mips.com ([206.31.31.226]:30615 "EHLO mx.mips.com")
	by oss.sgi.com with ESMTP id <S553729AbRCEJDq>;
	Mon, 5 Mar 2001 01:03:46 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA28018;
	Mon, 5 Mar 2001 01:03:35 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id BAA26292;
	Mon, 5 Mar 2001 01:03:31 -0800 (PST)
Message-ID: <002e01c0a553$b5c48e00$0deca8c0@Ulysses>
From:   "Kevin D. Kissell" <kevink@mips.com>
To:     "Mike Klar" <mfklar@ponymail.com>, <linux-mips@oss.sgi.com>,
        <linux-mips@fnet.fr>
References: <NDBBIDGAOKMNJNDAHDDMEEHOCOAA.mfklar@ponymail.com>
Subject: Re: FPU context clobbered by signals
Date:   Mon, 5 Mar 2001 10:07:20 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

> Currently setup_sigcontext() appears to behave as follows:
> If the current process owns the FPU context, sc_ownedfp is set to 1 in the
> sigcontext passed to the signal handler, and the floating point registers
> are saved in that sigcontext.  This makes sense.
> If the current process does not own the FPU context, but did at one point
> execute FPU operations (which all glibc apps will do for initialization),
> sc_ownedfp in the sigcontext is set to 0, and the floating point registers
> are still saved.  This is, at the very least, a security hole, since those
> registers belong to a different process at that point.

I'm speaking from first principles here, not from an analysis
of the code on non-MIPS architectures, but what *should*
happen on a signal to a process that is not the current/latest
user of the FPU is that the FPU sigcontext information should
be copied from the saved thread context state.

> And restore_sigcontext() appears to behave thusly:
> If sc_ownedfp is set in the sigcontext that is passed back from the signal
> handler, the FPU context is restored from the sigcontext, and FPU context
> ownership is given to the current process, without saving the old context.
> Either I'm misunderstanding this, or there is a possibility that this will
> simply forget about some other process' FPU context.

The behavior described sort-of makes sense, if one is willing
to take it on faith that the signal handler did not trash the
sigcontext information (which I personally consider unwise).
If the signal was sent to the current owner of the FPU, the
post-signal thread FPU  state needs to represent the pre-signal
state of the FPU, which was saved in the sigcontext structure.

> So what _is_ the desired behavior here?

The desired behavior (IMHO) is that signals are dispatched
with the FPU state corresponding to the last known FPU
state of the thread taking the signal.  If the only copy of that
state prior to signal dispatch resides in the FPU, that state
needs to be saved before signal dispatch and restored
after signal return.

Or, to put it another way, the semantics of signals with
respect to FP registers should be the same as the
semantics with respect to general purpose registers.
The only wrinkle is the lazy FPU context switch logic,
which creates two anomolous situations: one where
the current contents of the FPU does not belong to
the current thread (because the current thread has
not executed any FP instructions), and one where the
FP register state of a non-current thread is not yet saved
in the thread state of that thread (because no subsequent
thread has executed any FP instructions).

            Kevin K.


From owner-linux-mips@oss.sgi.com Mon Mar  5 03:54:49 2001
Received:  by oss.sgi.com id <S553787AbRCELyj>;
	Mon, 5 Mar 2001 03:54:39 -0800
Received: from u-179-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.179]:9988
        "EHLO u-179-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553782AbRCELyO>; Mon, 5 Mar 2001 03:54:14 -0800
Received: from dea ([193.98.169.28]:20354 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCELx4>;
	Mon, 5 Mar 2001 12:53:56 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f25AnRU27018;
	Mon, 5 Mar 2001 11:49:27 +0100
Date:	Mon, 5 Mar 2001 11:49:27 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	ldavies@oz.agile.tv
Cc:	linux-mips@oss.sgi.com
Subject: Re: Troubles with TLB refills
Message-ID: <20010305114926.A26862@bacchus.dhis.org>
References: <3AA30A91.B5842678@agile.tv>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AA30A91.B5842678@agile.tv>; from ldavies@agile.tv on Mon, Mar 05, 2001 at 01:40:01PM +1000
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 05, 2001 at 01:40:01PM +1000, Liam Davies wrote:

> I am trying to get the 2.4 kernel up and running on the Cobalt boxes.
> At the moment I am trying to get the initial transition from kernel
> to user mode working.
> 
> The elf loader is trying to put stuff in the stack for the new user
> process and *each* call to NEW_AUX_ENTRY is generating a page fault
> that cannot be resolved. The address generated by the BadVAddr on the
> TLBS exception is not correct. Also, I never receive a TLBrefill
> exception on the accesses. It is using the except_vec0_nevada handler.

The fault address 0x10004f4c looks wrong; NEW_AUX_ENTRY should access
something near the top of stack, that is a value a few bytes below
0x80000000.  I wonder if this behaviour is related to this CPU bug -
one which btw. was never acknowledged by QED but identified independantly
by sever Cobalt people back at the time.

[head.S]
	/* TLB refill, EXL == 0, R52x0 "Nevada" version */
        /*
         * This version has a bug workaround for the Nevada.  It seems
         * as if under certain circumstances the move from cp0_context
         * might produce a bogus result when the mfc0 instruction and
         * it's consumer are in a different cacheline or a load instruction,
         * probably any memory reference, is between them.  This is
         * potencially slower than the R4000 version, so we use this
         * special version.
         */
	.set	noreorder
	.set	noat
	LEAF(except_vec0_nevada)
	.set	mips3
	mfc0	k0, CP0_BADVADDR		# Get faulting address
	srl	k0, k0, 22			# get pgd only bits
	lw	k1, current_pgd			# get pgd pointer
	sll	k0, k0, 2
	addu	k1, k1, k0			# add in pgd offset
	lw	k1, (k1)
	mfc0	k0, CP0_CONTEXT			# get context reg
	srl	k0, k0, 1			# get pte offset
	and	k0, k0, 0xff8
	addu	k1, k1, k0			# add in offset
	lw	k0, 0(k1)			# get even pte
	lw	k1, 4(k1)			# get odd pte
	srl	k0, k0, 6			# convert to entrylo0
	mtc0	k0, CP0_ENTRYLO0		# load it
	srl	k1, k1, 6			# convert to entrylo1
	mtc0	k1, CP0_ENTRYLO1		# load it
	nop					# QED specified nops
	nop
	tlbwr					# write random tlb entry
	nop					# traditional nop
	eret					# return from trap
	END(except_vec0_nevada)
[...]

This exception handler has been modified since the version tested in the
Cobalt Qube and I'm not sure if the bug workaround actually got tested
since then.

(Bonus points to whoever writes a good probe for this bug!)

handle_page_fault got called and printed something; therefore the
exception handler cannot possibly have been trashed.  do_page_fault gets
called by via the generic exception handler.  The TLB vectors there are only
taken if there is a TLB entry matching the address in the TLB.  Therefore
your theory about no tlb refill exception cannot be right.  The TLB
dump only displays entries where at least on of the entry0 / entry1
entries is valid, therefore you get an empty dump; maybe that made you
believe you didn't get a TLB reload exception.

  Ralf

From owner-linux-mips@oss.sgi.com Mon Mar  5 16:47:34 2001
Received:  by oss.sgi.com id <S553822AbRCFArY>;
	Mon, 5 Mar 2001 16:47:24 -0800
Received: from smtp.psdc.com ([209.125.203.83]:51788 "EHLO smtp.psdc.com")
	by oss.sgi.com with ESMTP id <S553819AbRCFArX>;
	Mon, 5 Mar 2001 16:47:23 -0800
Received: from BANANA ([209.125.203.85])
	by smtp.psdc.com (8.8.8/8.8.8) with SMTP id QAA01895
	for <linux-mips@oss.sgi.com>; Mon, 5 Mar 2001 16:31:02 -0800
Message-ID: <000801c0a572$b7471e40$dde0490a@BANANA>
From:   "Steven Liu" <stevenliu@psdc.com>
To:     <linux-mips@oss.sgi.com>
Subject: mips-tfile
Date:   Mon, 5 Mar 2001 04:49:28 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----=_NextPart_000_0005_01C0A52F.A8FAAB60"
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C0A52F.A8FAAB60
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, All:

Hi, All:

I am working on cross-compiler for mips R3000 on Linux now and meet a =
problem in egcs.

My host system is i386 with Rad Hat 7.0 installed.

First, I successfully built and installed binutils-2.8.1 by using=20
binutils-2.8.1.tar.gz and egcs-mips-linux-1.1.2-2.i386.rpm. This created =

bin, lib, mips-linux subdirectories.

Second, I installed the linux kernel source code for mips by using=20
linux-2.2.14-000715.tar.gz and configured it and enabled=20
CONFIG_CROSSCOMPILE.  Made soft links: let  mips-linux/include/asm=20
pointd to linux-2.2.14-000715/include/asm-mips and
mips-linux/include/linux pointd to linux-2.2.14-000715/include/linux.

Third, unziped the egcs-1.1.2.tar.gz, added the patch=20
egcs-mips-linux-1.1.2-2.i386.rpm and configured it as following:
     ./configure --prefix=3D3D/home/sliu --with-newlib =
--target=3Dmips-linux
and made it this way:
     make SUBDIRS=3D3D"libiberty texinfo gcc" ALL_TARGET_MODULES=3D3D =
=3D
CONFIGURE_TARGET_MODULES=3D3D INSTALL_TARGET_MODULES=3D3D =
LANGUAGES=3D3D"c"

Then, it gave the following errors in gcc subdirectory:

xgcc: installation problem, cannot exec `mips-tfile': No such file or =
=3D
directory
make[1]: *** [libgcc2.a] Error 1
make[1]: Leaving directory `/home/sliu/egcs-1.1.2/gcc'
make: *** [all-gcc] Error 2

Any help would be greatly appreciated.

Regards,


Steven

------=_NextPart_000_0005_01C0A52F.A8FAAB60
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3103.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi, All:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Hi, All:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am working on cross-compiler for mips =
R3000 on=20
Linux now and meet a problem in egcs.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>My host system is i386 with Rad Hat 7.0 =

installed.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>First, I successfully built and =
installed=20
binutils-2.8.1 by using <BR>binutils-2.8.1.tar.gz and=20
egcs-mips-linux-1.1.2-2.i386.rpm. This created <BR>bin, lib, mips-linux=20
subdirectories.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Second, I installed the linux kernel =
source code=20
for mips by using <BR>linux-2.2.14-000715.tar.gz and configured it and =
enabled=20
<BR>CONFIG_CROSSCOMPILE.&nbsp; Made soft links: let&nbsp; =
mips-linux/include/asm=20
<BR>pointd to linux-2.2.14-000715/include/asm-mips=20
and<BR>mips-linux/include/linux pointd to=20
linux-2.2.14-000715/include/linux.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Third, unziped the egcs-1.1.2.tar.gz, =
added the=20
patch <BR>egcs-mips-linux-1.1.2-2.i386.rpm and configured it as=20
following:<BR>&nbsp;&nbsp;&nbsp;&nbsp; ./configure =
--prefix=3D3D/home/sliu=20
--with-newlib --target=3Dmips-linux<BR>and made it this=20
way:<BR>&nbsp;&nbsp;&nbsp;&nbsp; make SUBDIRS=3D3D"libiberty texinfo =
gcc"=20
ALL_TARGET_MODULES=3D3D =3D<BR>CONFIGURE_TARGET_MODULES=3D3D =
INSTALL_TARGET_MODULES=3D3D=20
LANGUAGES=3D3D"c"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Then, it gave the following errors in =
gcc=20
subdirectory:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>xgcc: installation problem, cannot exec =

`mips-tfile': No such file or =3D<BR>directory<BR>make[1]: *** =
[libgcc2.a] Error=20
1<BR>make[1]: Leaving directory `/home/sliu/egcs-1.1.2/gcc'<BR>make: *** =

[all-gcc] Error 2</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Any help would be greatly =
appreciated.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Regards,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><BR>Steven</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C0A52F.A8FAAB60--


From owner-linux-mips@oss.sgi.com Mon Mar  5 19:10:54 2001
Received:  by oss.sgi.com id <S553856AbRCFDKe>;
	Mon, 5 Mar 2001 19:10:34 -0800
Received: from agile-50.OntheNet.com.au ([203.144.13.50]:32011 "EHLO
        surfers.oz.agile.tv") by oss.sgi.com with ESMTP id <S553852AbRCFDKa>;
	Mon, 5 Mar 2001 19:10:30 -0800
Received: from agile.tv (IDENT:ldavies@tugun.oz.agile.tv [192.168.16.20])
	by surfers.oz.agile.tv (8.11.0/8.11.0) with ESMTP id f263ARO23880;
	Tue, 6 Mar 2001 13:10:27 +1000
Message-ID: <3AA45523.CDF351CB@agile.tv>
Date:   Tue, 06 Mar 2001 13:10:27 +1000
From:   Liam Davies <ldavies@agile.tv>
Reply-To: ldavies@oz.agile.tv
Organization: Agile TV
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     Ralf Baechle <ralf@oss.sgi.com>
CC:     linux-mips@oss.sgi.com
Subject: Re: Troubles with TLB refills
References: <3AA30A91.B5842678@agile.tv> <20010305114926.A26862@bacchus.dhis.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Ralf Baechle wrote:

> This exception handler has been modified since the version tested in the
> Cobalt Qube and I'm not sure if the bug workaround actually got tested
> since then.
>

It seems to work now.

> handle_page_fault got called and printed something; therefore the
> exception handler cannot possibly have been trashed.  do_page_fault gets
> called by via the generic exception handler.  The TLB vectors there are only
> taken if there is a TLB entry matching the address in the TLB.  Therefore
> your theory about no tlb refill exception cannot be right.

And this is the way I understood the workings as well.

> The TLB
> dump only displays entries where at least on of the entry0 / entry1
> entries is valid, therefore you get an empty dump; maybe that made you
> believe you didn't get a TLB reload exception.

No, this is what I expected in the TLB since this was the first kuseg access.

Not long after posting this message I found the problem.  The exception handler

had been trashed, *before* it was copied to 0x80000000. I'm not sure what
trashed it yet, that is a job for later. What made this whole thing more
puzzling
is the actual stuff that was in 0x80000000 was absolute trash, it made no sense

in terms of instruction encodings. I would have thought the cpu would have
crapped out when it hit bad instructions. So it would seem the
exceptions were occurring but the code that it was executing wasn't even code.
Hence my assumption that we never got a TLB refill., even though the fault
handler was being called.

Liam




From owner-linux-mips@oss.sgi.com Mon Mar  5 20:56:15 2001
Received:  by oss.sgi.com id <S553874AbRCFE4E>;
	Mon, 5 Mar 2001 20:56:04 -0800
Received: from galt.foobazco.org ([198.144.194.227]:26257 "EHLO
        galt.foobazco.org") by oss.sgi.com with ESMTP id <S553646AbRCFEzl>;
	Mon, 5 Mar 2001 20:55:41 -0800
Received: (from wesolows@localhost)
	by galt.foobazco.org (8.9.3/8.9.3) id UAA26202;
	Mon, 5 Mar 2001 20:55:16 -0800
Date:   Mon, 5 Mar 2001 20:55:16 -0800
From:   Keith M Wesolowski <wesolows@foobazco.org>
To:     Steven Liu <stevenliu@psdc.com>
Cc:     linux-mips@oss.sgi.com
Subject: Re: mips-tfile
Message-ID: <20010305205516.A25870@foobazco.org>
References: <000801c0a572$b7471e40$dde0490a@BANANA>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <000801c0a572$b7471e40$dde0490a@BANANA>; from stevenliu@psdc.com on Mon, Mar 05, 2001 at 04:49:28AM -0800
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 05, 2001 at 04:49:28AM -0800, Steven Liu wrote:

> I am working on cross-compiler for mips R3000 on Linux now and meet a problem in egcs.
> 
> My host system is i386 with Rad Hat 7.0 installed.
> 
> First, I successfully built and installed binutils-2.8.1 by using 
> binutils-2.8.1.tar.gz and egcs-mips-linux-1.1.2-2.i386.rpm. This created 
> bin, lib, mips-linux subdirectories.

This makes no sense...how/why did you use an rpm of egcs to build
binutils from source?  That doesn't really make any sense.  Could you
please indicate what exact files you are using and where you got them
from?  If you are applying patches, please mention those as well.

> Second, I installed the linux kernel source code for mips by using 
> linux-2.2.14-000715.tar.gz and configured it and enabled 
> CONFIG_CROSSCOMPILE.  Made soft links: let  mips-linux/include/asm 
> pointd to linux-2.2.14-000715/include/asm-mips and
> mips-linux/include/linux pointd to linux-2.2.14-000715/include/linux.

This is not needed to build either gcc or the kernel.

> Third, unziped the egcs-1.1.2.tar.gz, added the patch 
> egcs-mips-linux-1.1.2-2.i386.rpm and configured it as following:
>      ./configure --prefix=3D/home/sliu --with-newlib --target=mips-linux
> and made it this way:
>      make SUBDIRS=3D"libiberty texinfo gcc" ALL_TARGET_MODULES=3D =
> CONFIGURE_TARGET_MODULES=3D INSTALL_TARGET_MODULES=3D LANGUAGES=3D"c"

What are you doing with both an rpm and a source tarball?  An RPM is
surely not a patch.  Also, it is traditional to build gcc outside the
source directory; it's possible that that is a source of trouble.  The
random "3D" in your output there is either another source of trouble
or an artifact of your mailer; in either case it should be fixed.

If you are having trouble building a cross-toolchain, you might
consider getting make-cross from
ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple/crossdev - it takes
most of the hard parts out of it.  There's also a source toolchain
there that seems to work fairly well; it compiles glibc, for example,
which no version of egcs 1.1.2 I have seen will.  Of course, if you
want to use different versions you can do that as well.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Mon Mar  5 21:57:05 2001
Received:  by oss.sgi.com id <S553887AbRCFF4z>;
	Mon, 5 Mar 2001 21:56:55 -0800
Received: from [62.145.23.107] ([62.145.23.107]:26416 "HELO
        fileserv2.Cologne.DE") by oss.sgi.com with SMTP id <S553882AbRCFF4h>;
	Mon, 5 Mar 2001 21:56:37 -0800
Received: from localhost (1929 bytes) by fileserv2.Cologne.DE
	via rmail with P:stdio/R:bind/T:smtp
	(sender: <excalibur.cologne.de!karsten>) (ident <excalibur.cologne.de!karsten> using unix)
	id <m14aASZ-0007clC@fileserv2.Cologne.DE>
	for <linux-mips@oss.sgi.com>; Tue, 6 Mar 2001 06:56:35 +0100 (CET)
	(Smail-3.2.0.101 1997-Dec-17 #5 built 1998-Jan-19)
Received: (from karsten@localhost)
	by excalibur.cologne.de (8.9.3/8.8.7) id TAA01480
	for linux-mips@oss.sgi.com; Mon, 5 Mar 2001 19:59:39 +0100
Date:   Mon, 5 Mar 2001 19:59:39 +0100
From:   Karsten Merker <karsten@excalibur.cologne.de>
To:     linux-mips@oss.sgi.com
Subject: Re: build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2
Message-ID: <20010305195939.A1476@excalibur.cologne.de>
Mail-Followup-To: linux-mips@oss.sgi.com
References: <20010304213609.B25825@linuxtag.org> <20010304231534.B17775@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0.1i
In-Reply-To: <20010304231534.B17775@bacchus.dhis.org>; from ralf@oss.sgi.com on Sun, Mar 04, 2001 at 11:15:34PM +0100
X-No-Archive: yes
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sun, Mar 04, 2001 at 11:15:34PM +0100, Ralf Baechle wrote:

[glibc-2.2.2, gcc-2.95.3]
> > chroot()-environment. When trying to compile fileutils, the ./configure
> > starts ok, but when coming to "checking for working mktime..." the script
> > just hangs forever, and according to top there is nothing consuming CPU
> > time (except for top itself). Compiling the fileutils on the "host
> > system", i.e. outside the chroot()-environment using egcs-1.0.3a and
> > glibc-2.0.6 the problem does not appear. Can anybody confirm this on
> > another system? Any ideas what can be the reason for this?
> 
> Does you chroot environment have a mounted /proc filesystem?  In the past
> we had obscure libc bugs which were triggered when /proc were not
> mounted.

I had not mounted /proc, but doing so does not make any difference :-(.

Greetings,
Karsten
-- 
#include <standard_disclaimer>
Nach Paragraph 28 Abs. 3 Bundesdatenschutzgesetz widerspreche ich der Nutzung
oder Uebermittlung meiner Daten fuer Werbezwecke oder fuer die Markt- oder
Meinungsforschung.

From owner-linux-mips@oss.sgi.com Mon Mar  5 22:34:06 2001
Received:  by oss.sgi.com id <S553891AbRCFGds>;
	Mon, 5 Mar 2001 22:33:48 -0800
Received: from galt.foobazco.org ([198.144.194.227]:29329 "EHLO
        galt.foobazco.org") by oss.sgi.com with ESMTP id <S553888AbRCFGdS>;
	Mon, 5 Mar 2001 22:33:18 -0800
Received: (from wesolows@localhost)
	by galt.foobazco.org (8.9.3/8.9.3) id WAA26892;
	Mon, 5 Mar 2001 22:32:58 -0800
Date:   Mon, 5 Mar 2001 22:32:58 -0800
From:   Keith M Wesolowski <wesolows@foobazco.org>
To:     Karsten Merker <karsten@excalibur.cologne.de>
Cc:     linux-mips@oss.sgi.com
Subject: Re: build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2
Message-ID: <20010305223258.B25870@foobazco.org>
References: <20010304213609.B25825@linuxtag.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010304213609.B25825@linuxtag.org>; from karsten@excalibur.cologne.de on Sun, Mar 04, 2001 at 09:36:09PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sun, Mar 04, 2001 at 09:36:09PM +0100, Karsten Merker wrote:

> starts ok, but when coming to "checking for working mktime..." the script
> just hangs forever, and according to top there is nothing consuming CPU
...
> glibc-2.0.6 the problem does not appear. Can anybody confirm this on
> another system? Any ideas what can be the reason for this?

I can confirm that this does *not* happen for me with the same C
library but current CVS binutils and gcc (3.0 branch) on a big-endian
system.  I have observed a definite and reproducible problem, however,
with the version of binutils you described; in my case, the symptom
was insertion of garbage instructions into my kernel.  The problem
went away when I upgraded binutils.  I have no idea whether this is
related to the problem you are seeing.

I would suggest that you extract the test that configure is running
into a small C program (the tests are usually C programs); try to
compile, link, and run that program, and see what happens.  It could
be that the compiler or linker is hanging trying to build it, or that
the program itself hangs for some reason.  If the program hangs, run
it in a debugger and/or use strace.  Then post a minimal testcase.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Mon Mar  5 22:46:07 2001
Received:  by oss.sgi.com id <S553893AbRCFGp5>;
	Mon, 5 Mar 2001 22:45:57 -0800
Received: from agile-50.OntheNet.com.au ([203.144.13.50]:23052 "EHLO
        surfers.oz.agile.tv") by oss.sgi.com with ESMTP id <S553890AbRCFGpe>;
	Mon, 5 Mar 2001 22:45:34 -0800
Received: from agile.tv (IDENT:ldavies@tugun.oz.agile.tv [192.168.16.20])
	by surfers.oz.agile.tv (8.11.0/8.11.0) with ESMTP id f266jXO24529;
	Tue, 6 Mar 2001 16:45:33 +1000
Message-ID: <3AA4878C.F10825DE@agile.tv>
Date:   Tue, 06 Mar 2001 16:45:32 +1000
From:   Liam Davies <ldavies@agile.tv>
Reply-To: ldavies@oz.agile.tv
Organization: Agile TV
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     Ralf Baechle <ralf@oss.sgi.com>
CC:     linux-mips@oss.sgi.com
Subject: Re: Troubles with TLB refills
References: <3AA30A91.B5842678@agile.tv> <20010305114926.A26862@bacchus.dhis.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Ralf,

>From the change 1.42 to 1.43 on file arch/mips/kernel/traps.c some code was
added
to copy the EJTAG exception vector

+ /*
+  * Copy the EJTAG debug exception vector handler code to it's final
+  * destination.
+  */
+ memcpy((void *)(KSEG0 + 0x300), &except_vec_ejtag_debug, 0x80);

This code indescriminatly smashes the end of except_vec0_r4600 and
all of except_vec0_nevada handlers with the .fill set to only 0x280
00000000800002d4 T except_vec0_r4600
0000000080000328 T except_vec0_nevada
0000000080000380 T except_vec0_r45k_bvahwbug

I'm not sure under what platform we need to load JTAG support, but we can
just increase the fill area in head.S to say 0x400

Cheers
Liam

=-------------=
Agile TV Corporation



From owner-linux-mips@oss.sgi.com Tue Mar  6 05:00:04 2001
Received:  by oss.sgi.com id <S553792AbRCFM7y>;
	Tue, 6 Mar 2001 04:59:54 -0800
Received: from u-91-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.91]:26884
        "EHLO u-91-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553651AbRCFM7b>; Tue, 6 Mar 2001 04:59:31 -0800
Received: from dea ([193.98.169.28]:7552 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCFM7U>;
	Tue, 6 Mar 2001 13:59:20 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f26CwuB05839;
	Tue, 6 Mar 2001 13:58:56 +0100
Date:	Tue, 6 Mar 2001 13:58:56 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	ldavies@oz.agile.tv
Cc:	linux-mips@oss.sgi.com
Subject: Re: Troubles with TLB refills
Message-ID: <20010306135856.E1184@bacchus.dhis.org>
References: <3AA30A91.B5842678@agile.tv> <20010305114926.A26862@bacchus.dhis.org> <3AA45523.CDF351CB@agile.tv>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AA45523.CDF351CB@agile.tv>; from ldavies@agile.tv on Tue, Mar 06, 2001 at 01:10:27PM +1000
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Tue, Mar 06, 2001 at 01:10:27PM +1000, Liam Davies wrote:

> in terms of instruction encodings. I would have thought the cpu would have
> crapped out when it hit bad instructions. So it would seem the
> exceptions were occurring but the code that it was executing wasn't even code.
> Hence my assumption that we never got a TLB refill., even though the fault
> handler was being called.

Probably somewhere in the garbage there was another memory reference
which resulted in a second TLB exception, at that time a store to 0x10004f4c
which then got handled via the general exception handler and resulted in
do_page_fault being called.

  Ralf

From owner-linux-mips@oss.sgi.com Tue Mar  6 06:00:54 2001
Received:  by oss.sgi.com id <S553898AbRCFOAf>;
	Tue, 6 Mar 2001 06:00:35 -0800
Received: from u-91-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.91]:28932
        "EHLO u-91-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553820AbRCFOAF>; Tue, 6 Mar 2001 06:00:05 -0800
Received: from dea ([193.98.169.28]:10112 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867058AbRCFN7p>;
	Tue, 6 Mar 2001 14:59:45 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f26DxIr06239;
	Tue, 6 Mar 2001 14:59:18 +0100
Date:	Tue, 6 Mar 2001 14:59:18 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Keith M Wesolowski <wesolows@foobazco.org>
Cc:	Karsten Merker <karsten@excalibur.cologne.de>,
        linux-mips@oss.sgi.com
Subject: Re: build-problems: GNU fileutils 4.01 on mipsel with glibc 2.2.2
Message-ID: <20010306145917.B5846@bacchus.dhis.org>
References: <20010304213609.B25825@linuxtag.org> <20010305223258.B25870@foobazco.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010305223258.B25870@foobazco.org>; from wesolows@foobazco.org on Mon, Mar 05, 2001 at 10:32:58PM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 05, 2001 at 10:32:58PM -0800, Keith M Wesolowski wrote:

Did you need any patches for current CVS binutils / gcc?

  Ralf

From owner-linux-mips@oss.sgi.com Tue Mar  6 19:37:39 2001
Received:  by oss.sgi.com id <S553937AbRCGDhU>;
	Tue, 6 Mar 2001 19:37:20 -0800
Received: from ns.snowman.net ([63.80.4.34]:15877 "EHLO ns.snowman.net")
	by oss.sgi.com with ESMTP id <S553934AbRCGDgu>;
	Tue, 6 Mar 2001 19:36:50 -0800
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id WAA25833
	for <linux-mips@oss.sgi.com>; Tue, 6 Mar 2001 22:36:45 -0500
Date:   Tue, 6 Mar 2001 22:36:45 -0500 (EST)
From:   <nick@snowman.net>
X-Sender: nick@ns
cc:     linux-mips@oss.sgi.com
Subject: Problem makeing an O2 run bootp
In-Reply-To: <20010306135856.E1184@bacchus.dhis.org>
Message-ID: <Pine.LNX.4.21.0103062231010.23542-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
To:     unlisted-recipients:; (no To-header on input)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

I've got an o2 that I'm trying to make netboot, and it seems to work,
however the o2 never acks the tftp packets.  The tcpdump is attached.  If
anyone has suggestions/ideas I'd love to hear them.  I booted the o2 and
ran "bootp():" from the arc prompt.
	Thanks
		Nick
22:31:26.697102 arp who-has 10.1.1.3 tell 10.1.1.3
22:31:26.697348 10.1.1.3.bootpc > 255.255.255.255.bootps: xid:0xbbb2
secs:5 C:10.1.1.3 [|bootp]
22:31:26.698900 10.1.1.1.bootps > 10.1.1.3.bootpc: xid:0xbbb2 secs:5
C:10.1.1.3 Y:10.1.1.3 S:10.1.1.1 [|bootp] [tos 0x10]
22:31:26.699191 arp who-has 10.1.1.3 tell 10.1.1.3
22:31:26.710600 10.1.1.3.15283 > 10.1.1.1.tftp: 22 RRQ "vmlinuxo2"
22:31:26.741123 10.1.1.1.35447 > 10.1.1.3.15283: udp 516 (DF)
22:31:31.734006 arp who-has 10.1.1.3 tell 10.1.1.1
22:31:31.734156 arp reply 10.1.1.3 is-at 8:0:69:5:b8:cb
22:31:31.734291 10.1.1.1.35447 > 10.1.1.3.15283: udp 516 (DF)
22:31:36.734065 10.1.1.1.35447 > 10.1.1.3.15283: udp 516 (DF)
22:31:41.734046 10.1.1.1.35447 > 10.1.1.3.15283: udp 516 (DF)
22:31:46.734050 10.1.1.1.35447 > 10.1.1.3.15283: udp 516 (DF)
22:31:56.072778 10.1.1.3.15284 > 10.1.1.1.tftp: 22 RRQ "vmlinuxo2"
22:31:56.102821 10.1.1.1.35447 > 10.1.1.3.15284: udp 516 (DF)
22:32:01.094154 10.1.1.1.35447 > 10.1.1.3.15284: udp 516 (DF)
22:32:06.094045 10.1.1.1.35447 > 10.1.1.3.15284: udp 516 (DF)
22:32:11.094043 10.1.1.1.35447 > 10.1.1.3.15284: udp 516 (DF)
22:32:16.094071 10.1.1.1.35447 > 10.1.1.3.15284: udp 516 (DF)
22:32:21.094002 arp who-has 10.1.1.3 tell 10.1.1.1
22:32:21.094142 arp reply 10.1.1.3 is-at 8:0:69:5:b8:cb
22:32:26.000316 10.1.1.3.15285 > 10.1.1.1.tftp: 22 RRQ "vmlinuxo2"
22:32:26.030369 10.1.1.1.35447 > 10.1.1.3.15285: udp 516 (DF)
22:32:31.024092 10.1.1.1.35447 > 10.1.1.3.15285: udp 516 (DF)
22:32:36.024044 10.1.1.1.35447 > 10.1.1.3.15285: udp 516 (DF)
22:32:41.024045 10.1.1.1.35447 > 10.1.1.3.15285: udp 516 (DF)
22:32:46.024055 10.1.1.1.35447 > 10.1.1.3.15285: udp 516 (DF)
22:32:51.023999 arp who-has 10.1.1.3 tell 10.1.1.1
22:32:51.024138 arp reply 10.1.1.3 is-at 8:0:69:5:b8:cb
22:32:55.927938 10.1.1.3.15286 > 10.1.1.1.tftp: 22 RRQ "vmlinuxo2"
22:32:55.957167 10.1.1.1.35447 > 10.1.1.3.15286: udp 516 (DF)
22:33:00.954096 10.1.1.1.35447 > 10.1.1.3.15286: udp 516 (DF)
22:33:05.954047 10.1.1.1.35447 > 10.1.1.3.15286: udp 516 (DF)
22:33:10.954056 10.1.1.1.35447 > 10.1.1.3.15286: udp 516 (DF)
22:33:15.954051 10.1.1.1.35447 > 10.1.1.3.15286: udp 516 (DF)
22:33:20.954008 arp who-has 10.1.1.3 tell 10.1.1.1
22:33:20.954142 arp reply 10.1.1.3 is-at 8:0:69:5:b8:cb



From owner-linux-mips@oss.sgi.com Wed Mar  7 01:07:11 2001
Received:  by oss.sgi.com id <S553844AbRCGJGw>;
	Wed, 7 Mar 2001 01:06:52 -0800
Received: from mx.mips.com ([206.31.31.226]:10945 "EHLO mx.mips.com")
	by oss.sgi.com with ESMTP id <S553840AbRCGJGr>;
	Wed, 7 Mar 2001 01:06:47 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA20906;
	Wed, 7 Mar 2001 01:06:43 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id BAA11045;
	Wed, 7 Mar 2001 01:06:41 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id KAA28493;
	Wed, 7 Mar 2001 10:06:15 +0100 (MET)
Message-ID: <3AA5FA06.D9D5277@mips.com>
Date:   Wed, 07 Mar 2001 10:06:14 +0100
From:   Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To:     Pete Popov <ppopov@mvista.com>
CC:     Ralf Baechle <ralf@oss.sgi.com>, David Jez <dave.jez@seznam.cz>,
        ppopov@pacbell.net, linux-mips@oss.sgi.com
Subject: Re: redhat 7.0
References: <3A901B3F.ADADC601@pacbell.net> <20010220074903.A68652@stud.fee.vutbr.cz> <20010220215616.F2086@bacchus.dhis.org> <3A930AB3.3AEAE5BF@mvista.com>
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi Pete

Did you managed to get through the installation of the RedHat 7.0 packages ?
I would like to do something similar.

/Carsten

Pete Popov wrote:

> Ralf Baechle wrote:
> >
> > On Tue, Feb 20, 2001 at 07:49:04AM +0100, David Jez wrote:
> >
> > > > Has anyone tried installing 7.0 that's on oss.sgi.com?  The problem I'm
> > > > running into is that after I netboot and mount simple-0.2b as the root
> > > > fs, and install the rpm-4.0 tarball, rpm doesn't work with the
> > > > libraries, or lack of, of that root fs.  It looks like I need an fs with
> > > > a working rpm-4.0, so that I can mount my second disk somewhere and
> > > > install the 7.0 packages.  Any suggestions?
> > > Yes,
> > > If you download rpm-3.0 (I'm not sure, try get newer version) you'll should
> > > be able to work with rpm 4 packages.
> >
> > Oss has a tarball with statically linked rpm 4 binaries.  Use that to
> > convert your rpm database and then install the rpm 4 rpm package for real.
>
> I tried that; "rpm --rebuilddb" failed because it couldn't find some
> library.  I'll try again.
>
> Pete

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Wed Mar  7 05:02:53 2001
Received:  by oss.sgi.com id <S553665AbRCGNCd>;
	Wed, 7 Mar 2001 05:02:33 -0800
Received: from mta6.snfc21.pbi.net ([206.13.28.240]:6366 "EHLO
        mta6.snfc21.pbi.net") by oss.sgi.com with ESMTP id <S553655AbRCGNCF>;
	Wed, 7 Mar 2001 05:02:05 -0800
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 <0G9T00C5OW6ABZ@mta6.snfc21.pbi.net>; Wed,
 7 Mar 2001 05:01:23 -0800 (PST)
Date:   Wed, 07 Mar 2001 05:01:07 -0800
From:   ppopov@pacbell.net
Subject: Re: redhat 7.0
To:     Carsten Langgaard <carstenl@mips.com>
Cc:     Pete Popov <ppopov@mvista.com>, Ralf Baechle <ralf@oss.sgi.com>,
        David Jez <dave.jez@seznam.cz>, linux-mips@oss.sgi.com
Message-id: <3AA63113.45430090@pacbell.net>
MIME-version: 1.0
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.14-5.0 i686)
Content-type: text/plain; charset=us-ascii
Content-transfer-encoding: 7bit
X-Accept-Language: bg, en
References: <3A901B3F.ADADC601@pacbell.net>
 <20010220074903.A68652@stud.fee.vutbr.cz>
 <20010220215616.F2086@bacchus.dhis.org> <3A930AB3.3AEAE5BF@mvista.com>
 <3AA5FA06.D9D5277@mips.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Carsten Langgaard wrote:
> 
> Hi Pete
> 
> Did you managed to get through the installation of the RedHat 7.0 packages ?
> I would like to do something similar.

I haven't had time to try again. I tried the debian 2_2 tar ball, went
through the partitioning and dvhtool exersize and managed to setup all
of that.  If I try RedHat 7.0 again and manage to install it before
someone else does, I'll send instructions. 


Pete


> Pete Popov wrote:
> 
> > Ralf Baechle wrote:
> > >
> > > On Tue, Feb 20, 2001 at 07:49:04AM +0100, David Jez wrote:
> > >
> > > > > Has anyone tried installing 7.0 that's on oss.sgi.com?  The problem I'm
> > > > > running into is that after I netboot and mount simple-0.2b as the root
> > > > > fs, and install the rpm-4.0 tarball, rpm doesn't work with the
> > > > > libraries, or lack of, of that root fs.  It looks like I need an fs with
> > > > > a working rpm-4.0, so that I can mount my second disk somewhere and
> > > > > install the 7.0 packages.  Any suggestions?
> > > > Yes,
> > > > If you download rpm-3.0 (I'm not sure, try get newer version) you'll should
> > > > be able to work with rpm 4 packages.
> > >
> > > Oss has a tarball with statically linked rpm 4 binaries.  Use that to
> > > convert your rpm database and then install the rpm 4 rpm package for real.
> >
> > I tried that; "rpm --rebuilddb" failed because it couldn't find some
> > library.  I'll try again.
> >
> > Pete
> 
> --
> _    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
> |\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
> | \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
>   TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
>                    Denmark             http://www.mips.com

From owner-linux-mips@oss.sgi.com Wed Mar  7 09:41:46 2001
Received:  by oss.sgi.com id <S553698AbRCGRlh>;
	Wed, 7 Mar 2001 09:41:37 -0800
Received: from sovereign.org ([209.180.91.170]:41630 "EHLO lux.homenet")
	by oss.sgi.com with ESMTP id <S553687AbRCGRl1>;
	Wed, 7 Mar 2001 09:41:27 -0800
Received: (from jfree@localhost)
	by lux.homenet (8.11.3/8.11.2/Debian 8.11.2-1) id f27HfTH20547
	for linux-mips@oss.sgi.com; Wed, 7 Mar 2001 10:41:29 -0700
From:   Jim Freeman <jfree@sovereign.org>
Date:   Wed, 7 Mar 2001 10:41:28 -0700
To:     linux-mips@oss.sgi.com
Subject: 2.4.3-pre2 mips changes
Message-ID: <20010307104128.A20517@sovereign.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="0OAP2g/MAC+5xKAE"
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

The attached patch contains the portion of 2.4.3-pre3 that affects
arch/mips* and include/asm-mips*  (most are just spelling changes,
but not all ...).

--0OAP2g/MAC+5xKAE
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="patch-2.4.3-pre3.mips"

diff -u --recursive --new-file v2.4.2/linux/arch/mips/baget/irq.c linux/arch/mips/baget/irq.c
--- v2.4.2/linux/arch/mips/baget/irq.c	Wed Feb 21 18:20:13 2001
+++ linux/arch/mips/baget/irq.c	Tue Mar  6 19:44:36 2001
@@ -199,7 +199,7 @@
 			add_interrupt_randomness(irq);
 		__cli();
 	} else {
-		printk("do_IRQ: Unregistered IRQ (0x%X) occured\n", irq);
+		printk("do_IRQ: Unregistered IRQ (0x%X) occurred\n", irq);
 	}
 	unmask_irq(irq);
 	irq_exit(cpu);
diff -u --recursive --new-file v2.4.2/linux/arch/mips/boot/elf2ecoff.c linux/arch/mips/boot/elf2ecoff.c
--- v2.4.2/linux/arch/mips/boot/elf2ecoff.c	Mon Jul  5 20:35:17 1999
+++ linux/arch/mips/boot/elf2ecoff.c	Tue Mar  6 19:44:36 2001
@@ -435,7 +435,7 @@
   char ibuf [4096];
   int remaining, cur, count;
 
-  /* Go the the start of the ELF symbol table... */
+  /* Go to the start of the ELF symbol table... */
   if (lseek (in, offset, SEEK_SET) < 0)
     {
       perror ("copy: lseek");
diff -u --recursive --new-file v2.4.2/linux/arch/mips/dec/prom/memory.c linux/arch/mips/dec/prom/memory.c
--- v2.4.2/linux/arch/mips/dec/prom/memory.c	Mon Aug  7 21:02:27 2000
+++ linux/arch/mips/dec/prom/memory.c	Tue Mar  6 19:44:36 2001
@@ -31,7 +31,7 @@
 extern int (*prom_printf)(char *, ...);
 #endif
 
-volatile unsigned long mem_err = 0;	/* So we know an error occured */
+volatile unsigned long mem_err = 0;	/* So we know an error occurred */
 
 extern char _end;
 
diff -u --recursive --new-file v2.4.2/linux/arch/mips/defconfig linux/arch/mips/defconfig
--- v2.4.2/linux/arch/mips/defconfig	Thu Jul 27 18:36:54 2000
+++ linux/arch/mips/defconfig	Sun Mar  4 14:30:18 2001
@@ -175,6 +175,7 @@
 # CONFIG_SCSI_AHA1542 is not set
 # CONFIG_SCSI_AHA1740 is not set
 # CONFIG_SCSI_AIC7XXX is not set
+# CONFIG_SCSI_AIC7XXX_OLD is not set
 # CONFIG_SCSI_ADVANSYS is not set
 # CONFIG_SCSI_IN2000 is not set
 # CONFIG_SCSI_AM53C974 is not set
diff -u --recursive --new-file v2.4.2/linux/arch/mips/kernel/mips_ksyms.c linux/arch/mips/kernel/mips_ksyms.c
--- v2.4.2/linux/arch/mips/kernel/mips_ksyms.c	Fri Aug  4 16:15:37 2000
+++ linux/arch/mips/kernel/mips_ksyms.c	Fri Mar  2 11:15:47 2001
@@ -140,3 +140,4 @@
 #endif
 
 EXPORT_SYMBOL(get_wchan);
+EXPORT_SYMBOL(flush_tlb_page);
diff -u --recursive --new-file v2.4.2/linux/arch/mips/sgi/kernel/indy_sc.c linux/arch/mips/sgi/kernel/indy_sc.c
--- v2.4.2/linux/arch/mips/sgi/kernel/indy_sc.c	Sat May 13 08:29:14 2000
+++ linux/arch/mips/sgi/kernel/indy_sc.c	Tue Mar  6 19:44:36 2001
@@ -1,6 +1,6 @@
 /* $Id: indy_sc.c,v 1.14 2000/03/25 22:35:07 ralf Exp $
  *
- * indy_sc.c: Indy cache managment functions.
+ * indy_sc.c: Indy cache management functions.
  *
  * Copyright (C) 1997 Ralf Baechle (ralf@gnu.org),
  * derived from r4xx0.c by David S. Miller (dm@engr.sgi.com).
diff -u --recursive --new-file v2.4.2/linux/arch/mips/sgi/kernel/setup.c linux/arch/mips/sgi/kernel/setup.c
--- v2.4.2/linux/arch/mips/sgi/kernel/setup.c	Wed Aug  9 13:46:02 2000
+++ linux/arch/mips/sgi/kernel/setup.c	Tue Mar  6 19:44:36 2001
@@ -165,7 +165,7 @@
         *tcwp = (SGINT_TCWORD_CNT2 | SGINT_TCWORD_CALL | SGINT_TCWORD_MSWST);
 
         /* Return the difference, this is how far the r4k counter increments
-         * for every 1/HZ seconds. We round off the the nearest 1 MHz of
+         * for every 1/HZ seconds. We round off the nearest 1 MHz of
 	 * master clock (= 1000000 / 100 / 2 = 5000 count).
          */
         return ((ct1 - ct0) / 5000) * 5000;
diff -u --recursive --new-file v2.4.2/linux/arch/mips64/defconfig linux/arch/mips64/defconfig
--- v2.4.2/linux/arch/mips64/defconfig	Wed Feb 21 18:20:13 2001
+++ linux/arch/mips64/defconfig	Sun Mar  4 14:30:18 2001
@@ -165,6 +165,7 @@
 # CONFIG_SCSI_AHA1542 is not set
 # CONFIG_SCSI_AHA1740 is not set
 # CONFIG_SCSI_AIC7XXX is not set
+# CONFIG_SCSI_AIC7XXX_OLD is not set
 # CONFIG_SCSI_ADVANSYS is not set
 # CONFIG_SCSI_IN2000 is not set
 # CONFIG_SCSI_AM53C974 is not set
diff -u --recursive --new-file v2.4.2/linux/arch/mips64/kernel/mips64_ksyms.c linux/arch/mips64/kernel/mips64_ksyms.c
--- v2.4.2/linux/arch/mips64/kernel/mips64_ksyms.c	Thu Jul 27 18:36:54 2000
+++ linux/arch/mips64/kernel/mips64_ksyms.c	Fri Mar  2 11:15:47 2001
@@ -121,3 +121,4 @@
 #endif
 
 EXPORT_SYMBOL(get_wchan);
+EXPORT_SYMBOL(flush_tlb_page);
diff -u --recursive --new-file v2.4.2/linux/arch/mips64/mm/fault.c linux/arch/mips64/mm/fault.c
--- v2.4.2/linux/arch/mips64/mm/fault.c	Tue Nov 28 21:42:04 2000
+++ linux/arch/mips64/mm/fault.c	Tue Mar  6 19:44:36 2001
@@ -61,7 +61,7 @@
 
 /*
  * Unlock any spinlocks which will prevent us from getting the
- * message out (timerlist_lock is aquired through the
+ * message out (timerlist_lock is acquired through the
  * console unblank code)
  */
 void bust_spinlocks(void)
diff -u --recursive --new-file v2.4.2/linux/arch/mips64/sgi-ip22/ip22-sc.c linux/arch/mips64/sgi-ip22/ip22-sc.c
--- v2.4.2/linux/arch/mips64/sgi-ip22/ip22-sc.c	Sat May 13 08:30:17 2000
+++ linux/arch/mips64/sgi-ip22/ip22-sc.c	Tue Mar  6 19:44:36 2001
@@ -1,6 +1,6 @@
 /* $Id: ip22-sc.c,v 1.2 1999/12/04 03:59:01 ralf Exp $
  *
- * indy_sc.c: Indy cache managment functions.
+ * indy_sc.c: Indy cache management functions.
  *
  * Copyright (C) 1997 Ralf Baechle (ralf@gnu.org),
  * derived from r4xx0.c by David S. Miller (dm@engr.sgi.com).
diff -u --recursive --new-file v2.4.2/linux/include/asm-mips64/smp.h linux/include/asm-mips64/smp.h
--- v2.4.2/linux/include/asm-mips64/smp.h	Fri Aug  4 16:15:37 2000
+++ linux/include/asm-mips64/smp.h	Fri Mar  2 11:30:15 2001
@@ -40,6 +40,7 @@
 
 /* Good enough for toy^Wupto 64 CPU Origins.  */
 extern unsigned long cpu_present_mask;
+#define cpu_online_map cpu_present_mask
 
 #endif
 

--0OAP2g/MAC+5xKAE--

From owner-linux-mips@oss.sgi.com Wed Mar  7 11:12:28 2001
Received:  by oss.sgi.com id <S553728AbRCGTMI>;
	Wed, 7 Mar 2001 11:12:08 -0800
Received: from [63.148.55.4] ([63.148.55.4]:14580 "EHLO
        ninigret.metatel.office") by oss.sgi.com with ESMTP
	id <S553695AbRCGTLz>; Wed, 7 Mar 2001 11:11:55 -0800
Received: from ninigret.metatel.office (IDENT:rafal@localhost.metatel.office [127.0.0.1])
	by ninigret.metatel.office (8.9.3/8.8.8) with ESMTP id OAA15309;
	Wed, 7 Mar 2001 14:11:17 -0500
Message-Id: <200103071911.OAA15309@ninigret.metatel.office>
From:   Rafal Boni <rafal.boni@eDial.com>
To:     nick@snowman.net
Cc:     linux-mips@oss.sgi.com
Subject: Re: Problem makeing an O2 run bootp 
In-Reply-To: Your message of "Tue, 06 Mar 2001 22:36:45 EST."
             <Pine.LNX.4.21.0103062231010.23542-100000@ns> 
X-Mailer: NMH 1.0 / EXMH 2.0.3
Date:   Wed, 07 Mar 2001 14:11:17 -0500
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Content-Type: text/plain; charset=us-ascii

In message <Pine.LNX.4.21.0103062231010.23542-100000@ns>, you write: 

- -> I've got an o2 that I'm trying to make netboot, and it seems to work,
- -> however the o2 never acks the tftp packets.  The tcpdump is attached.  If
- -> anyone has suggestions/ideas I'd love to hear them.  I booted the o2 and
- -> ran "bootp():" from the arc prompt.

I had issues with my Indigo2 where the PROM rejected all TFTP packets 
from ports > 32767 (but that's with a stone-age PROM, I imagine O2's 
would have a somewhat more modern PROM).  

Also, try 'setenv DEBUG 1' (dunno if that does or doesn't work on the
O2, it does on the Indigo2) in the PROM and see if it gives any tell-
tale output.

- --rafal

- ----
Rafal Boni                                              rafal.boni@eDial.com
 PGP key C7D3024C, print EA49 160D F5E4 C46A 9E91  524E 11E0 7133 C7D3 024C
    Need to get a hold of me?  http://800.edial.com/rafal.boni@eDial.com

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.0 (GNU/Linux)
Comment: Exmh version 2.1.1 10/15/1999

iD8DBQE6pofVEeBxM8fTAkwRAmNfAKDsC3yF1WmIZUK9i7Pu+VCR/iy3DACfQjIq
NlO8XXf87pp0cJkVDTw/tAY=
=gc8M
-----END PGP SIGNATURE-----


From owner-linux-mips@oss.sgi.com Wed Mar  7 11:15:28 2001
Received:  by oss.sgi.com id <S553751AbRCGTPI>;
	Wed, 7 Mar 2001 11:15:08 -0800
Received: from ns.snowman.net ([63.80.4.34]:24585 "EHLO ns.snowman.net")
	by oss.sgi.com with ESMTP id <S553726AbRCGTPB>;
	Wed, 7 Mar 2001 11:15:01 -0800
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA05183;
	Wed, 7 Mar 2001 14:14:51 -0500
Date:   Wed, 7 Mar 2001 14:14:51 -0500 (EST)
From:   <nick@snowman.net>
X-Sender: nick@ns
To:     Rafal Boni <rafal.boni@eDial.com>
cc:     linux-mips@oss.sgi.com
Subject: Re: Problem makeing an O2 run bootp 
In-Reply-To: <200103071911.OAA15309@ninigret.metatel.office>
Message-ID: <Pine.LNX.4.21.0103071414220.2408-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Thanks much.  I'll try that.  It has also been suggested that O2s probably
refuse all packets with DF set, so I will attempt to fix that as well.
	Nick

On Wed, 7 Mar 2001, Rafal Boni wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Content-Type: text/plain; charset=us-ascii
> 
> In message <Pine.LNX.4.21.0103062231010.23542-100000@ns>, you write: 
> 
> - -> I've got an o2 that I'm trying to make netboot, and it seems to work,
> - -> however the o2 never acks the tftp packets.  The tcpdump is attached.  If
> - -> anyone has suggestions/ideas I'd love to hear them.  I booted the o2 and
> - -> ran "bootp():" from the arc prompt.
> 
> I had issues with my Indigo2 where the PROM rejected all TFTP packets 
> from ports > 32767 (but that's with a stone-age PROM, I imagine O2's 
> would have a somewhat more modern PROM).  
> 
> Also, try 'setenv DEBUG 1' (dunno if that does or doesn't work on the
> O2, it does on the Indigo2) in the PROM and see if it gives any tell-
> tale output.
> 
> - --rafal
> 
> - ----
> Rafal Boni                                              rafal.boni@eDial.com
>  PGP key C7D3024C, print EA49 160D F5E4 C46A 9E91  524E 11E0 7133 C7D3 024C
>     Need to get a hold of me?  http://800.edial.com/rafal.boni@eDial.com
> 
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.0 (GNU/Linux)
> Comment: Exmh version 2.1.1 10/15/1999
> 
> iD8DBQE6pofVEeBxM8fTAkwRAmNfAKDsC3yF1WmIZUK9i7Pu+VCR/iy3DACfQjIq
> NlO8XXf87pp0cJkVDTw/tAY=
> =gc8M
> -----END PGP SIGNATURE-----
> 


From owner-linux-mips@oss.sgi.com Wed Mar  7 12:03:58 2001
Received:  by oss.sgi.com id <S553770AbRCGUDi>;
	Wed, 7 Mar 2001 12:03:38 -0800
Received: from FORT-POINT-STATION.MIT.EDU ([18.72.0.53]:61847 "EHLO
        fort-point-station.mit.edu") by oss.sgi.com with ESMTP
	id <S553755AbRCGUDM>; Wed, 7 Mar 2001 12:03:12 -0800
Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82])
	by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id PAA06855
	for <linux-mips@oss.sgi.com>; Wed, 7 Mar 2001 15:03:04 -0500 (EST)
Received: from melbourne-city-street.MIT.EDU (MELBOURNE-CITY-STREET.MIT.EDU [18.69.0.45])
	by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id PAA04770
	for <linux-mips@oss.sgi.com>; Wed, 7 Mar 2001 15:03:04 -0500 (EST)
Received: from scrubbing-bubbles.mit.edu (SCRUBBING-BUBBLES.MIT.EDU [18.184.0.32])
	by melbourne-city-street.MIT.EDU (8.9.3/8.9.2) with ESMTP id PAA19532
	for <linux-mips@oss.sgi.com>; Wed, 7 Mar 2001 15:03:04 -0500 (EST)
Received: from localhost (kbarr@localhost) by scrubbing-bubbles.mit.edu (8.9.3) with ESMTP
	id PAA06611; Wed, 7 Mar 2001 15:03:03 -0500 (EST)
Date:   Wed, 7 Mar 2001 15:03:03 -0500 (EST)
From:   Kenneth C Barr <kbarr@MIT.EDU>
To:     <linux-mips@oss.sgi.com>
Subject: oops on shutdown
Message-ID: <Pine.GSO.4.30L.0103071457170.9228-100000@scrubbing-bubbles.mit.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

I receive this error any time I try to "reboot" or "shutdown" my Indy
running a snapshot of 2.4.1.

Is this normal or experienced by anyone else?

Easy solution would be never to turn off the machine, but I want to make
sure this isn't indicative of a larger problem.  (eg, broken paging?)


shutdown: couldn't unmount /dev/sda1

Unable to handle kernel paging request at virtual address 00000000, epc
== 00008
Oops in fault.c:do_page_fault, line 172:
regs:

...

epc     00000000
Status  1000fc03
Cause   00000008
Process reboot (pid:39, stackpage=8bc8e000)
Stack:

...

Call trace: [<88031a6c>]  [<88031a64>] [<8813f734>] [<880b9a5c>]
[<88058714>]
Code: (Bad address in epc)



From owner-linux-mips@oss.sgi.com Wed Mar  7 23:59:43 2001
Received:  by oss.sgi.com id <S553681AbRCHH7d>;
	Wed, 7 Mar 2001 23:59:33 -0800
Received: from mailout4-0.nyroc.rr.com ([24.92.226.120]:893 "EHLO
        mailout4-0.nyroc.rr.com") by oss.sgi.com with ESMTP
	id <S553648AbRCHH7R>; Wed, 7 Mar 2001 23:59:17 -0800
Received: from hork (roc-24-161-76-252.rochester.rr.com [24.161.76.252])
	by mailout4-0.nyroc.rr.com (8.11.2/RoadRunner 1.03) with ESMTP id f287tDb17402;
	Thu, 8 Mar 2001 02:55:34 -0500 (EST)
Received: from molotov by hork with local (Exim 3.22 #1 (Debian))
	id 14avJ2-0003Zg-00; Thu, 08 Mar 2001 02:57:52 -0500
Date:   Thu, 8 Mar 2001 02:57:51 -0500
To:     nick@snowman.net
Cc:     linux-mips@oss.sgi.com
Subject: Re: Problem makeing an O2 run bootp
Message-ID: <20010308025751.G5830@hork>
Mail-Followup-To: nick@snowman.net, linux-mips@oss.sgi.com
References: <20010306135856.E1184@bacchus.dhis.org> <Pine.LNX.4.21.0103062231010.23542-100000@ns>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="tvOENZuN7d6HfOWU"
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <Pine.LNX.4.21.0103062231010.23542-100000@ns>; from nick@snowman.net on Tue, Mar 06, 2001 at 10:36:45PM -0500
From:   Chris Ruvolo <csr6702@grace.rit.edu>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


--tvOENZuN7d6HfOWU
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Mar 06, 2001 at 10:36:45PM -0500, nick@snowman.net wrote:
> I've got an o2 that I'm trying to make netboot, and it seems to work,
> however the o2 never acks the tftp packets.  The tcpdump is attached.  If
> anyone has suggestions/ideas I'd love to hear them.  I booted the o2 and
> ran "bootp():" from the arc prompt.

I had the same problem with my Indy.  I think this is in the HOWTO now, but
in case you missed it..  If you are running your tftpd on Linux >=3D 2.3.x=
=20

echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc

Worked for me.

-Chris

--tvOENZuN7d6HfOWU
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6pzt/KO6EG1hc77ERAlZjAJ4+vNnSmpU7qNKbatB8quD403xqmwCg4IBE
mcSkUMYaY9GfYfWRQJHJ4lE=
=npxq
-----END PGP SIGNATURE-----

--tvOENZuN7d6HfOWU--

From owner-linux-mips@oss.sgi.com Thu Mar  8 03:14:44 2001
Received:  by oss.sgi.com id <S553714AbRCHLOe>;
	Thu, 8 Mar 2001 03:14:34 -0800
Received: from mx.mips.com ([206.31.31.226]:19420 "EHLO mx.mips.com")
	by oss.sgi.com with ESMTP id <S553700AbRCHLOK>;
	Thu, 8 Mar 2001 03:14:10 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id DAA03014;
	Thu, 8 Mar 2001 03:13:55 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id DAA21134;
	Thu, 8 Mar 2001 03:13:52 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id MAA26053;
	Thu, 8 Mar 2001 12:13:25 +0100 (MET)
Message-ID: <3AA76955.2819476F@mips.com>
Date:   Thu, 08 Mar 2001 12:13:25 +0100
From:   Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To:     ppopov@pacbell.net
CC:     Pete Popov <ppopov@mvista.com>, Ralf Baechle <ralf@oss.sgi.com>,
        David Jez <dave.jez@seznam.cz>, linux-mips@oss.sgi.com
Subject: Re: redhat 7.0
References: <3A901B3F.ADADC601@pacbell.net>
	 <20010220074903.A68652@stud.fee.vutbr.cz>
	 <20010220215616.F2086@bacchus.dhis.org> <3A930AB3.3AEAE5BF@mvista.com>
	 <3AA5FA06.D9D5277@mips.com> <3AA63113.45430090@pacbell.net>
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Please Ralf, could you help me here.
I did the same as Pete describe below, and I got the same result.

When I tried "rpm --rebuilddb" it fails because it couldn't find some libraries.
The rpm-tarball contains a statically linked rpm binary, but rpmdb is dynamically
linked, could you please provide me with a statically linked rpmdb binary, that would
be great.

/Carsten


ppopov@pacbell.net wrote:

> Carsten Langgaard wrote:
> >
> > Hi Pete
> >
> > Did you managed to get through the installation of the RedHat 7.0 packages ?
> > I would like to do something similar.
>
> I haven't had time to try again. I tried the debian 2_2 tar ball, went
> through the partitioning and dvhtool exersize and managed to setup all
> of that.  If I try RedHat 7.0 again and manage to install it before
> someone else does, I'll send instructions.
>
> Pete
>
> > Pete Popov wrote:
> >
> > > Ralf Baechle wrote:
> > > >
> > > > On Tue, Feb 20, 2001 at 07:49:04AM +0100, David Jez wrote:
> > > >
> > > > > > Has anyone tried installing 7.0 that's on oss.sgi.com?  The problem I'm
> > > > > > running into is that after I netboot and mount simple-0.2b as the root
> > > > > > fs, and install the rpm-4.0 tarball, rpm doesn't work with the
> > > > > > libraries, or lack of, of that root fs.  It looks like I need an fs with
> > > > > > a working rpm-4.0, so that I can mount my second disk somewhere and
> > > > > > install the 7.0 packages.  Any suggestions?
> > > > > Yes,
> > > > > If you download rpm-3.0 (I'm not sure, try get newer version) you'll should
> > > > > be able to work with rpm 4 packages.
> > > >
> > > > Oss has a tarball with statically linked rpm 4 binaries.  Use that to
> > > > convert your rpm database and then install the rpm 4 rpm package for real.
> > >
> > > I tried that; "rpm --rebuilddb" failed because it couldn't find some
> > > library.  I'll try again.
> > >
> > > Pete
> >
> > --
> > _    _ ____  ___   Carsten Langgaard  Mailto:carstenl@mips.com
> > |\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
> > | \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
> >   TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
> >                    Denmark            http://www.mips.com

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Thu Mar  8 08:19:49 2001
Received:  by oss.sgi.com id <S553711AbRCHQTj>;
	Thu, 8 Mar 2001 08:19:39 -0800
Received: from jester.ti.com ([192.94.94.1]:34704 "EHLO jester.ti.com")
	by oss.sgi.com with ESMTP id <S553679AbRCHQTS>;
	Thu, 8 Mar 2001 08:19:18 -0800
Received: from dlep7.itg.ti.com ([157.170.134.103])
	by jester.ti.com (8.11.1/8.11.1) with ESMTP id f28GJCD03514
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 10:19:12 -0600 (CST)
Received: from dlep7.itg.ti.com (localhost [127.0.0.1])
	by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA13440
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 10:19:12 -0600 (CST)
Received: from dlep4.itg.ti.com (dlep4-maint.itg.ti.com [157.170.133.17])
	by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA13395
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 10:19:11 -0600 (CST)
Received: from ti.com (reddwarf.sc.ti.com [158.218.100.143])
	by dlep4.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA22243
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 10:19:10 -0600 (CST)
Message-ID: <3AA7B13F.F918E1F8@ti.com>
Date:   Thu, 08 Mar 2001 09:20:15 -0700
From:   Jeff Harrell <jharrell@ti.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     linux-mips@oss.sgi.com
Subject: Question concerning Assembler error
Content-Type: multipart/mixed;
 boundary="------------45CDACA24C63474FA77065DA"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

This is a multi-part message in MIME format.
--------------45CDACA24C63474FA77065DA
Content-Type: multipart/alternative;
 boundary="------------B15A6BD89F9960B889747A5E"


--------------B15A6BD89F9960B889747A5E
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

I am getting a strange error from the assembler that I am not quite sure
what to make of it.  Here
is the  Error and code snippet:


     >make
     mipsel-linux-gcc -D_ASSEMBLER_ -mcpu=r4600 -mips2 -Wall
     -Wstrict-prototypes -O2 -fomit-frame-pointer -G -0
     -mno-abicalls -fno-pic -pipe -mlong-calls -Wimplicit -c
     avreset.S
     avreset.S: Assembler messages:
     avreset.S:262: Error: Rest of line ignored. First ignored
     character is `0'.
     avreset.S:1006: Error: Rest of line ignored. First ignored
     character is `0'.
     gmake: *** [avreset.o] Error 1
     gmake: Target `all' not remade because of errors.


     And here is the code that seems to be causing the problem:

        /* Interrupt : For now we simply disable interrupts and
     return */

             MFC0(   k0, C0_STATUS)
             srl     k0, 1
             sll     k0, 1
             MTC0(   k0, C0_STATUS)
             nop
             .set    mips3
     ==>  eret   <==
             .set    mips2
             nop


Any information that anyone might have would be greatly appreciated.

Regards,
Jeff Harrell

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell                    Work:  (801) 619-6104
Broadband Access group/TI
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



--------------B15A6BD89F9960B889747A5E
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
I am getting a strange error from the assembler that I am not quite sure
what to make of it.&nbsp; Here
<br>is the&nbsp; Error and code snippet:
<br>&nbsp;
<blockquote>>make
<br>mipsel-linux-gcc -D_ASSEMBLER_ -mcpu=r4600 -mips2 -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -G -0 -mno-abicalls -fno-pic -pipe -mlong-calls
-Wimplicit -c avreset.S
<br>avreset.S: Assembler messages:
<br>avreset.S:262: Error: Rest of line ignored. First ignored character
is `0'.
<br>avreset.S:1006: Error: Rest of line ignored. First ignored character
is `0'.
<br>gmake: *** [avreset.o] Error 1
<br>gmake: Target `all' not remade because of errors.
<br>&nbsp;
<p>And here is the code that seems to be causing the problem:
<p>&nbsp;&nbsp; /* Interrupt : For now we simply disable interrupts and
return */
<br>&nbsp;
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MFC0(&nbsp;&nbsp; k0, C0_STATUS)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; srl&nbsp;&nbsp;&nbsp;&nbsp;
k0, 1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; sll&nbsp;&nbsp;&nbsp;&nbsp;
k0, 1
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; MTC0(&nbsp;&nbsp; k0, C0_STATUS)
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nop
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .set&nbsp;&nbsp;&nbsp; mips3
<br>==>&nbsp; eret&nbsp;&nbsp; &lt;==
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .set&nbsp;&nbsp;&nbsp; mips2
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; nop
<br>&nbsp;</blockquote>
Any information that anyone might have would be greatly appreciated.
<p>Regards,
<br>Jeff Harrell
<pre>--&nbsp;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Work:&nbsp; (801) 619-6104&nbsp;
Broadband Access group/TI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</pre>
&nbsp;</html>

--------------B15A6BD89F9960B889747A5E--

--------------45CDACA24C63474FA77065DA
Content-Type: text/x-vcard; charset=us-ascii;
 name="jharrell.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jeff Harrell
Content-Disposition: attachment;
 filename="jharrell.vcf"

begin:vcard 
n:Harrell;Jeff
tel;cell:(801) 597-6268
tel;fax:(801) 619-6150
tel;work:(801) 619-6104
x-mozilla-html:TRUE
url:http://www.ti.com
org:Broadband Access Group
version:2.1
email;internet:jharrell@ti.com
title:Texas Instruments
adr;quoted-printable:;;170 West Election Rd. Suite 100	=0D=0AMS 4106		;Draper;Utah;84020-6410;USA
x-mozilla-cpt:;0
fn:Jeff Harrell
end:vcard

--------------45CDACA24C63474FA77065DA--


From owner-linux-mips@oss.sgi.com Thu Mar  8 08:30:39 2001
Received:  by oss.sgi.com id <S553733AbRCHQa3>;
	Thu, 8 Mar 2001 08:30:29 -0800
Received: from haliga.physik.TU-Cottbus.De ([141.43.75.9]:53518 "HELO
        haliga.physik.tu-cottbus.de") by oss.sgi.com with SMTP
	id <S553692AbRCHQaI>; Thu, 8 Mar 2001 08:30:08 -0800
Received: by haliga.physik.tu-cottbus.de (Postfix, from userid 7215)
	id 81FDB8D66; Thu,  8 Mar 2001 17:30:03 +0100 (MET)
Date:   Thu, 8 Mar 2001 17:30:03 +0100
To:     linux-mips@oss.sgi.com
Subject: Re: Question concerning Assembler error
Message-ID: <20010308173003.A17217@physik.tu-cottbus.de>
Mail-Followup-To: heinold@physik.tu-cottbus.de,
	linux-mips@oss.sgi.com
References: <3AA7B13F.F918E1F8@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <3AA7B13F.F918E1F8@ti.com>; from jharrell@ti.com on Thu, Mar 08, 2001 at 09:20:15AM -0700
From:   heinold@physik.tu-cottbus.de (H.Heinold)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 08, 2001 at 09:20:15AM -0700, Jeff Harrell wrote:
> I am getting a strange error from the assembler that I am not quite sure
> what to make of it.  Here
> is the  Error and code snippet:
> 
> 
>      >make
>      mipsel-linux-gcc -D_ASSEMBLER_ -mcpu=r4600 -mips2 -Wall
>      -Wstrict-prototypes -O2 -fomit-frame-pointer -G -0
>      -mno-abicalls -fno-pic -pipe -mlong-calls -Wimplicit -c

Hm sorry cant help with the assembler problem, but which machine
has a 4600 Prozessor and run mipsel on it?

-- 


Henning Heinold

From owner-linux-mips@oss.sgi.com Thu Mar  8 08:38:09 2001
Received:  by oss.sgi.com id <S553858AbRCHQh7>;
	Thu, 8 Mar 2001 08:37:59 -0800
Received: from u-45-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.45]:55556
        "EHLO u-45-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553719AbRCHQhw>; Thu, 8 Mar 2001 08:37:52 -0800
Received: from dea ([193.98.169.28]:899 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCHQhd>;
	Thu, 8 Mar 2001 17:37:33 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f28GbOG14462;
	Thu, 8 Mar 2001 17:37:24 +0100
Date:	Thu, 8 Mar 2001 17:37:24 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Jeff Harrell <jharrell@ti.com>
Cc:	linux-mips@oss.sgi.com
Subject: Re: Question concerning Assembler error
Message-ID: <20010308173724.A11107@bacchus.dhis.org>
References: <3AA7B13F.F918E1F8@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AA7B13F.F918E1F8@ti.com>; from jharrell@ti.com on Thu, Mar 08, 2001 at 09:20:15AM -0700
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 08, 2001 at 09:20:15AM -0700, Jeff Harrell wrote:

>         /* Interrupt : For now we simply disable interrupts and
>      return */
> 
>              MFC0(   k0, C0_STATUS)
>              srl     k0, 1
>              sll     k0, 1
>              MTC0(   k0, C0_STATUS)
>              nop
>              .set    mips3
>      ==>  eret   <==
>              .set    mips2
>              nop
> 
> 
> Any information that anyone might have would be greatly appreciated.

I suggest to run this code through the preprocessor only using the
-E -C options.  The output will be somewhat cryptic but explain much better
what's wrong.

  Ralf

From owner-linux-mips@oss.sgi.com Thu Mar  8 08:41:29 2001
Received:  by oss.sgi.com id <S553895AbRCHQlJ>;
	Thu, 8 Mar 2001 08:41:09 -0800
Received: from u-45-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.45]:56324
        "EHLO u-45-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553836AbRCHQlF>; Thu, 8 Mar 2001 08:41:05 -0800
Received: from dea ([193.98.169.28]:1411 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCHQku>;
	Thu, 8 Mar 2001 17:40:50 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f28GeiX14498;
	Thu, 8 Mar 2001 17:40:44 +0100
Date:	Thu, 8 Mar 2001 17:40:44 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	heinold@physik.tu-cottbus.de, linux-mips@oss.sgi.com
Subject: Re: Question concerning Assembler error
Message-ID: <20010308174044.B11107@bacchus.dhis.org>
References: <3AA7B13F.F918E1F8@ti.com> <20010308173003.A17217@physik.tu-cottbus.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010308173003.A17217@physik.tu-cottbus.de>; from heinold@physik.tu-cottbus.de on Thu, Mar 08, 2001 at 05:30:03PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 08, 2001 at 05:30:03PM +0100, H.Heinold wrote:

> Hm sorry cant help with the assembler problem, but which machine
> has a 4600 Prozessor and run mipsel on it?

RM200C.

  Ralf

From owner-linux-mips@oss.sgi.com Thu Mar  8 08:44:09 2001
Received:  by oss.sgi.com id <S553915AbRCHQn7>;
	Thu, 8 Mar 2001 08:43:59 -0800
Received: from enst.enst.fr ([137.194.2.16]:25324 "HELO enst.enst.fr")
	by oss.sgi.com with SMTP id <S553903AbRCHQnj>;
	Thu, 8 Mar 2001 08:43:39 -0800
Received: from email.enst.fr (muse.enst.fr [137.194.2.33])
	by enst.enst.fr (Postfix) with ESMTP id E89431C956
	for <linux-mips@oss.sgi.com>; Thu,  8 Mar 2001 17:43:32 +0100 (MET)
Received: from donjuan.enst.fr (donjuan.enst.fr [137.194.168.21])
	by email.enst.fr (8.9.3/8.9.3) with ESMTP id RAA12807
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 17:43:32 +0100 (MET)
Received: from localhost (bellard@localhost)
	by donjuan.enst.fr (8.9.3+Sun/8.9.3) with SMTP id RAA09721
	for <linux-mips@oss.sgi.com>; Thu, 8 Mar 2001 17:43:31 +0100 (MET)
Date:   Thu, 8 Mar 2001 17:43:31 +0100 (MET)
From:   Fabrice Bellard <bellard@email.enst.fr>
To:     linux-mips@oss.sgi.com
Subject: mips gcc 2.95.2 and 2.91.66 bug
In-Reply-To: <3AA7B13F.F918E1F8@ti.com>
Message-ID: <Pine.GSO.4.02.10103081721360.9471-100000@donjuan.enst.fr>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi!

Maybe this bug can interest you: when using byte swaping in le16_to_cpu
for example, mips gcc 2.95.2 and 2.91.66 sometime do not generate correct
code : the u16 to u32 convertion is missing. I found this bug while
compiling drivers/mtd/ftl.c in build_maps(). Here is a sample source to
reproduce the bug:

typedef unsigned short __u16;

extern __inline__ __const__ __u16 le16_to_cpu(__u16 x)
{
    return ((__u16)( \
		(((__u16)(x) & (__u16)0x00ffU) << 8) | \
		(((__u16)(x) & (__u16)0xff00U) >> 8) ));
}

int test(int xtrans, int xvalid, __u16 *ptr)
{
    if ((xvalid+xtrans != le16_to_cpu(*ptr))) {
	return -1;
    }
    return 0;
}

The generated asm is :

test:
	.frame	$sp,0,$31		# vars= 0, regs= 0/0, args= 0,
extra= 0
	.mask	0x00000000,0
	.fmask	0x00000000,0
	.set	noreorder
	.cpload	$25
	.set	reorder
	lhu	$3,0($7)
	addu	$5,$6,$5
	sll	$4,$3,8
	srl	$3,$3,8
	or	$4,$4,$3
	.set	noreorder
	.set	nomacro
	bne	$5,$4,$L7
	li	$2,-1			# 0xffffffff
	.set	macro
	.set	reorder

	move	$2,$0
$L7:
	j	$31
	.end	test

The andi op is missing.

egcs-1.0.3 seems to be OK.

I have no experience in submitting gcc bugs, so if someone could forward
this mail to the relevant gcc mailing list...

Fabrice.


From owner-linux-mips@oss.sgi.com Thu Mar  8 08:51:09 2001
Received:  by oss.sgi.com id <S553912AbRCHQu7>;
	Thu, 8 Mar 2001 08:50:59 -0800
Received: from mx.mips.com ([206.31.31.226]:43233 "EHLO mx.mips.com")
	by oss.sgi.com with ESMTP id <S553845AbRCHQus>;
	Thu, 8 Mar 2001 08:50:48 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id IAA05178;
	Thu, 8 Mar 2001 08:50:47 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id IAA29098;
	Thu, 8 Mar 2001 08:50:44 -0800 (PST)
Message-ID: <01b701c0a7f0$79260ba0$0deca8c0@Ulysses>
From:   "Kevin D. Kissell" <kevink@mips.com>
To:     "Ralf Baechle" <ralf@oss.sgi.com>, <heinold@physik.tu-cottbus.de>,
        <linux-mips@oss.sgi.com>
References: <3AA7B13F.F918E1F8@ti.com> <20010308173003.A17217@physik.tu-cottbus.de> <20010308174044.B11107@bacchus.dhis.org>
Subject: Re: Question concerning Assembler error
Date:   Thu, 8 Mar 2001 17:54:29 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

> > Hm sorry cant help with the assembler problem, but which machine
> > has a 4600 Prozessor and run mipsel on it?
> 
> RM200C.

Actually, It's far more likely that Jeff is working with a
MIPS 4KC or 5KC CPU core.  -mcpu=r4600 ends up
being the closest fit to the MIPS32 ISA and pipeline
among the options available for the Linux-capable
gcc compilers.

            Kevin K.


From owner-linux-mips@oss.sgi.com Thu Mar  8 10:45:49 2001
Received:  by oss.sgi.com id <S553721AbRCHSpk>;
	Thu, 8 Mar 2001 10:45:40 -0800
Received: from [216.163.184.10] ([216.163.184.10]:40478 "EHLO
        c1mailgw01.prontomail.com") by oss.sgi.com with ESMTP
	id <S553715AbRCHSpP>; Thu, 8 Mar 2001 10:45:15 -0800
Received: from c1web108 (216.163.184.10) by c1mailgw01.prontomail.com (NPlex 5.1.050)
        id 3AA76C0500006995 for linux-mips@oss.sgi.com; Thu, 8 Mar 2001 10:45:08 -0800
X-Version: tutopia 6.3.2073.11
From:   "Hector Lara Gongora" <helago@tutopia.com>
Message-Id: <486229A00F315D115A660005B8CC4FF0@helago.tutopia.com>
Date:   Thu, 8 Mar 2001 12:46:52 -0600
X-Priority: Normal
Content-Type: text/plain; charset=iso-8859-1
To:     linux-mips@oss.sgi.com
Subject: Indy R5000
X-Mailer: Web Based Pronto
Mime-Version: 1.0
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

To Anyone who can help me:

I just get an Indy R5000, but the hard disk has been erased, so I 
don't have Irix either.

I have used TurboLinux in a pc-based machine and now I want to use 
Linux in my Indy, but I don't know what download and how install it.

Can anybody help me????

Thanks.

Hector Lara

______________________________________________________________
E-mail y acceso a la Internet en http://www.Tutopia.com

From owner-linux-mips@oss.sgi.com Thu Mar  8 16:19:31 2001
Received:  by oss.sgi.com id <S553951AbRCIATV>;
	Thu, 8 Mar 2001 16:19:21 -0800
Received: from u-49-20.karlsruhe.ipdial.viaginterkom.de ([62.180.20.49]:64004
        "EHLO u-49-20.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553948AbRCIATQ>; Thu, 8 Mar 2001 16:19:16 -0800
Received: from dea ([193.98.169.28]:27011 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867058AbRCIAS7>;
	Fri, 9 Mar 2001 01:18:59 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f290IrT22672;
	Fri, 9 Mar 2001 01:18:53 +0100
Date:	Fri, 9 Mar 2001 01:18:53 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	"Kevin D. Kissell" <kevink@mips.com>
Cc:	<heinold@physik.tu-cottbus.de>, <linux-mips@oss.sgi.com>
Subject: Re: Question concerning Assembler error
Message-ID: <20010309011853.E21844@bacchus.dhis.org>
References: <3AA7B13F.F918E1F8@ti.com> <20010308173003.A17217@physik.tu-cottbus.de> <20010308174044.B11107@bacchus.dhis.org> <01b701c0a7f0$79260ba0$0deca8c0@Ulysses>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <01b701c0a7f0$79260ba0$0deca8c0@Ulysses>; from kevink@mips.com on Thu, Mar 08, 2001 at 05:54:29PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 08, 2001 at 05:54:29PM +0100, Kevin D. Kissell wrote:

> > > Hm sorry cant help with the assembler problem, but which machine
> > > has a 4600 Prozessor and run mipsel on it?
> > 
> > RM200C.
> 
> Actually, It's far more likely that Jeff is working with a
> MIPS 4KC or 5KC CPU core.  -mcpu=r4600 ends up
> being the closest fit to the MIPS32 ISA and pipeline
> among the options available for the Linux-capable
> gcc compilers.

Maybe your answer is right, but then the question is wrong :-)

  Ralf

From owner-linux-mips@oss.sgi.com Thu Mar  8 18:29:03 2001
Received:  by oss.sgi.com id <S553954AbRCIC2x>;
	Thu, 8 Mar 2001 18:28:53 -0800
Received: from ns5.Sony.CO.JP ([202.238.80.5]:61700 "EHLO ns5.sony.co.jp")
	by oss.sgi.com with ESMTP id <S553764AbRCIC2m>;
	Thu, 8 Mar 2001 18:28:42 -0800
Received: from mail2.sony.co.jp (gatekeeper8.Sony.CO.JP [202.238.80.22])
	by ns5.sony.co.jp (R8) with ESMTP id f292Se354688;
	Fri, 9 Mar 2001 11:28:40 +0900 (JST)
Received: from mail2.sony.co.jp (localhost [127.0.0.1])
	by mail2.sony.co.jp (R8) with ESMTP id f292SeY15344;
	Fri, 9 Mar 2001 11:28:40 +0900 (JST)
Received: from smail1.sm.sony.co.jp (smail1.sm.sony.co.jp [43.11.253.1])
	by mail2.sony.co.jp (R8) with ESMTP id f292Sev15336;
	Fri, 9 Mar 2001 11:28:40 +0900 (JST)
Received: from imail.sm.sony.co.jp (imail.sm.sony.co.jp [43.27.209.5]) by smail1.sm.sony.co.jp (8.8.8/3.6W) with ESMTP id LAA03188; Fri, 9 Mar 2001 11:28:42 +0900 (JST)
Received: from mach0.sm.sony.co.jp (mach0.sm.sony.co.jp [43.27.210.135]) by imail.sm.sony.co.jp (8.8.8/3.7W) with ESMTP id LAA10517; Fri, 9 Mar 2001 11:28:08 +0900 (JST)
Received: from localhost by mach0.sm.sony.co.jp (8.8.8/FreeBSD) with ESMTP id LAA14074; Fri, 9 Mar 2001 11:28:08 +0900 (JST)
To:     bellard@email.enst.fr
Cc:     linux-mips@oss.sgi.com
Subject: Re: mips gcc 2.95.2 and 2.91.66 bug
In-Reply-To: <Pine.GSO.4.02.10103081721360.9471-100000@donjuan.enst.fr>
References: <3AA7B13F.F918E1F8@ti.com>
	<Pine.GSO.4.02.10103081721360.9471-100000@donjuan.enst.fr>
X-Mailer: Mew version 1.94.1 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20010309112808P.machida@sm.sony.co.jp>
Date:   Fri, 09 Mar 2001 11:28:08 +0900
From:   Hiroyuki Machida <machida@sm.sony.co.jp>
X-Dispatcher: imput version 990905(IM130)
Lines:  29
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


From: Fabrice Bellard <bellard@email.enst.fr>
Subject: mips gcc 2.95.2 and 2.91.66 bug
Date: Thu, 8 Mar 2001 17:43:31 +0100 (MET)

> Hi!
> 
> Maybe this bug can interest you: when using byte swaping in le16_to_cpu
> for example, mips gcc 2.95.2 and 2.91.66 sometime do not generate correct
> code : the u16 to u32 convertion is missing. I found this bug while
> compiling drivers/mtd/ftl.c in build_maps(). Here is a sample source to
> reproduce the bug:

This bug is fixed by following chage in GCC 3.0. 

gcc/gcc/ChangeLog.3:

2000-04-24  Hiroyuki Machida <machida@sm.sony.co.jp>

        * combine.c (try_combine): Update reg_nonzero_bits of
        newi2pat before newpat.


Please refer mail archives at gcc.gnu.org for details.
You can easily apply this fix to gcc-2.95.x.

---
Hiroyuki Machida
Creative Station		SCE Inc.

From owner-linux-mips@oss.sgi.com Fri Mar  9 10:56:02 2001
Received:  by oss.sgi.com id <S553771AbRCISzn>;
	Fri, 9 Mar 2001 10:55:43 -0800
Received: from boco.fee.vutbr.cz ([147.229.9.11]:44305 "EHLO boco.fee.vutbr.cz")
	by oss.sgi.com with ESMTP id <S553765AbRCISz3>;
	Fri, 9 Mar 2001 10:55:29 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f29ItJt60238
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK);
	Fri, 9 Mar 2001 19:55:20 +0100 (CET)
Received: (from xjezda00@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f29It5H34487;
	Fri, 9 Mar 2001 19:55:05 +0100 (CET)
Date:   Fri, 9 Mar 2001 19:55:05 +0100
From:   David Jez <dave.jez@seznam.cz>
To:     Carsten Langgaard <carstenl@mips.com>
Cc:     ppopov@pacbell.net, Pete Popov <ppopov@mvista.com>,
        Ralf Baechle <ralf@oss.sgi.com>,
        David Jez <dave.jez@seznam.cz>, linux-mips@oss.sgi.com
Subject: Re: redhat 7.0
Message-ID: <20010309195505.C34241@stud.fee.vutbr.cz>
References: <3A901B3F.ADADC601@pacbell.net> <20010220074903.A68652@stud.fee.vutbr.cz> <20010220215616.F2086@bacchus.dhis.org> <3A930AB3.3AEAE5BF@mvista.com> <3AA5FA06.D9D5277@mips.com> <3AA63113.45430090@pacbell.net> <3AA76955.2819476F@mips.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AA76955.2819476F@mips.com>; from carstenl@mips.com on Thu, Mar 08, 2001 at 12:13:25PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi Carsten,

try this:

  1. install package rpm-3.0.5 from last rh-6.2 updates
  2. then install package rpm-4.0.4
  this may will be OK, because rpm-3.0.5 know rpm-4 packages format.

Try read this, but I'm afraid you will not understand:
http://www.linux.cz/lists/archive/linux/101281.html

good luck
Dave

> Please Ralf, could you help me here.
> I did the same as Pete describe below, and I got the same result.
> When I tried "rpm --rebuilddb" it fails because it couldn't find some libraries.
> The rpm-tarball contains a statically linked rpm binary, but rpmdb is dynamically
> linked, could you please provide me with a statically linked rpmdb binary, that would
> be great.
> > > Did you managed to get through the installation of the RedHat 7.0 packages ?
> > > I would like to do something similar.
> > > > > > > Has anyone tried installing 7.0 that's on oss.sgi.com?  The problem I'm
> > > > > > > running into is that after I netboot and mount simple-0.2b as the root
> > > > > > > fs, and install the rpm-4.0 tarball, rpm doesn't work with the
> > > > > > > libraries, or lack of, of that root fs.  It looks like I need an fs with
> > > > > > > a working rpm-4.0, so that I can mount my second disk somewhere and
> > > > > > > install the 7.0 packages.  Any suggestions?
> > > > > > Yes,
> > > > > > If you download rpm-3.0 (I'm not sure, try get newer version) you'll should
> > > > > > be able to work with rpm 4 packages.

-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@fest.stud.fee.vutbr.cz
---------=[ ~EOF ]=------------------------------------

From owner-linux-mips@oss.sgi.com Fri Mar  9 11:27:02 2001
Received:  by oss.sgi.com id <S553964AbRCIT0x>;
	Fri, 9 Mar 2001 11:26:53 -0800
Received: from u-234-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.234]:16389
        "EHLO u-234-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553778AbRCIT0c>; Fri, 9 Mar 2001 11:26:32 -0800
Received: from dea ([193.98.169.28]:47504 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCITYn>;
	Fri, 9 Mar 2001 20:24:43 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f29Gwo312408;
	Fri, 9 Mar 2001 17:58:50 +0100
Date:	Fri, 9 Mar 2001 17:58:50 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Keith M Wesolowski <wesolows@foobazco.org>
Cc:	Steven Liu <stevenliu@psdc.com>, linux-mips@oss.sgi.com
Subject: Re: mips-tfile
Message-ID: <20010309175850.C8389@bacchus.dhis.org>
References: <000801c0a572$b7471e40$dde0490a@BANANA> <20010305205516.A25870@foobazco.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010305205516.A25870@foobazco.org>; from wesolows@foobazco.org on Mon, Mar 05, 2001 at 08:55:16PM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 05, 2001 at 08:55:16PM -0800, Keith M Wesolowski wrote:

> random "3D" in your output there is either another source of trouble
> or an artifact of your mailer; in either case it should be fixed.

quoted-unprintable.  Considered evil.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar  9 11:34:52 2001
Received:  by oss.sgi.com id <S553966AbRCITec>;
	Fri, 9 Mar 2001 11:34:32 -0800
Received: from u-115-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.115]:20485
        "EHLO u-115-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553963AbRCITeU>; Fri, 9 Mar 2001 11:34:20 -0800
Received: from dea ([193.98.169.28]:49808 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCITeE>;
	Fri, 9 Mar 2001 20:34:04 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f29HFM512501;
	Fri, 9 Mar 2001 18:15:22 +0100
Date:	Fri, 9 Mar 2001 18:15:21 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	"Steven Liu" <stevenliu@psdc.com>
Cc:	<linux-mips@oss.sgi.com>, zmailer@nic.funet.fi
Subject: Scrabled headers, was: Re: mips-tfile
Message-ID: <20010309181521.D8389@bacchus.dhis.org>
References: <000801c0a572$b7471e40$dde0490a@BANANA>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <000801c0a572$b7471e40$dde0490a@BANANA>; from stevenliu@psdc.com on Mon, Mar 05, 2001 at 04:49:28AM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Looking more at this posting, a blank line has been inserted into the
headers, thereby turning some of the headers into a part of the body.
This also explains why we saw this `3D' things sprinkled all over
Steven's posting.  This is not a bug I've observed before with
MS Outlaw which Steven is using and our Majorodom also shouldn't be
guilty.  Would leave the somewhat older version of Zmailer we're running
on oss as one of the suspects.

Matti,

have you ever seen blank lines inserted like this?

X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
X-Orcpt: rfc822;linux-mips@oss.sgi.com
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 4303
Lines: 126

Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi, All:

Hi, All:
[...]

  Ralf

From owner-linux-mips@oss.sgi.com Sat Mar 10 09:50:25 2001
Received:  by oss.sgi.com id <S553809AbRCJRuP>;
	Sat, 10 Mar 2001 09:50:15 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:19976 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553795AbRCJRuJ>;
	Sat, 10 Mar 2001 09:50:09 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 920817F6; Sat, 10 Mar 2001 18:49:57 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 9D511EFA8; Sat, 10 Mar 2001 20:50:28 +0100 (CET)
Date:   Sat, 10 Mar 2001 20:50:28 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     linux-mips@oss.sgi.com
Subject: Failure 2.4.2 + glibc 2.2 still illegal instruction
Message-ID: <20010310205028.B16121@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Hi,
i am still seeing illegal instruction stuff with current cvs kernel
and glibc 2.2 


Basically all glibc 2.2 compiled binary crash with illegal instruction:

resume.rfc822.org login: root
Password: 
Last login: Sat Mar 10 17:42:25 2001 on ttyS0
Linux resume.rfc822.org 2.4.2 #2 Sat Mar 10 20:37:49 CET 2001 mips unknown

Most of the programs included with the Debian GNU/Linux system are
freely redistributable; the exact distribution terms for each program
are described in the individual files in /usr/share/doc/*/copyright

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.

warning: things are broken at the moment.  Fixes in progress.
you'd be best to try again later.  :)

You have mail.
resume:~# find
[find:190] Illegal instruction 7f454c46 at 2ac9e000 ra=2ab166c4
Illegal instruction
resume:~# ls
[ls:191] Illegal instruction 0100017c at 2ac9688c ra=00000000
Illegal instruction
resume:~# sleep 1
[sleep:192] Illegal instruction 0100017c at 2ad0788c ra=00000000
Illegal instruction
resume:~# find
[find:193] Illegal instruction 7f454c46 at 2ac9e000 ra=2ab166c4
Illegal instruction
resume:~# find
[find:194] Illegal instruction 7f454c46 at 2ac9e000 ra=2ab166c4
Illegal instruction
resume:~# sleep
[sleep:195] Illegal instruction 0100017c at 2ad0788c ra=00000000
Illegal instruction
resume:~# sleep
[sleep:196] Illegal instruction 0100017c at 2ad0788c ra=00000000
Illegal instruction
resume:~# sleep
[sleep:197] Illegal instruction 0100017c at 2ad0788c ra=00000000
Illegal instruction
resume:~# 

strace shows that the last system call called is
"sysmips(MIPS_ATOMIC_SET, ...)"

So long

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Sat Mar 10 09:50:45 2001
Received:  by oss.sgi.com id <S553796AbRCJRu0>;
	Sat, 10 Mar 2001 09:50:26 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:19720 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553651AbRCJRuJ>;
	Sat, 10 Mar 2001 09:50:09 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 6CAE57D9; Sat, 10 Mar 2001 18:49:57 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 2E04BEFA8; Sat, 10 Mar 2001 20:47:00 +0100 (CET)
Date:   Sat, 10 Mar 2001 20:47:00 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     linux-mips@oss.sgi.com
Subject: Success Kernel 2.4.2 (20010310) on SGI I2
Message-ID: <20010310204700.A16121@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Hi,
success for booting current cvs 2.4.2 on the I2

>> bootp():vmlinux-ip22 console=ttyS0 root=/dev/sda1
Setting $netaddr to 195.71.99.220 (from server watchdog)
Obtaining vmlinux-ip22 from server watchdog
ARCH: SGI-IP22
PROMLIB: ARC firmware Version 1 Revision 10
CPU: MIPS-R4400 FPU<MIPS-R4400FPC> ICACHE DCACHE SCACHE 
Loading R4000 MMU routines.
CPU revision is: 00000460
Primary instruction cache 16kb, linesize 16 bytes.
Primary data cache 16kb, linesize 16 bytes.
Secondary cache sized at 2048K linesize 128 bytes.
Linux version 2.4.2 (flo@paradigm) (gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)) #2 Sat Mar 10 20:37:49 CET 2001
MC: SGI memory controller Revision 3
Determined physical RAM map:
 memory: 00001000 @ 00000000 (reserved)
 memory: 00001000 @ 00001000 (reserved)
 memory: 0019e000 @ 08002000 (reserved)
 memory: 005a0000 @ 081a0000 (usable)
 memory: 000c0000 @ 08740000 (ROM data)
 memory: 07800000 @ 08800000 (usable)
On node 0 totalpages: 65536
zone(0): 65536 pages.
zone(1): 0 pages.
zone(2): 0 pages.
Kernel command line: console=ttyS0 root=/dev/sda1
Calibrating system timer... 1250000 [250.00 MHz CPU]
Console: colour dummy device 80x25
zs0: console input
Console: ttyS0 (Zilog8530)
Calibrating delay loop... 124.51 BogoMIPS
Memory: 124232k/128640k available (1354k kernel code, 4408k reserved, 79k data, 64k init)
Dentry-cache hash table entries: 32768 (order: 6, 262144 bytes)
Buffer-cache hash table entries: 16384 (order: 4, 65536 bytes)
Page-cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 16384 (order: 5, 131072 bytes)
Checking for 'wait' instruction...  unavailable.
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Starting kswapd v1.8
initialize_kbd: Keyboard failed self test
pty: 256 Unix98 ptys configured
keyboard: Timeout - AT keyboard not present?
keyboard: Timeout - AT keyboard not present?
DS1286 Real Time Clock Driver v1.0
streamable misc devices registered (keyb:150, gfx:148)
block: queued sectors max/low 82264kB/27421kB, 256 slots per queue
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: enabling 8 loop devices
sgiseeq.c: David S. Miller (dm@engr.sgi.com)
eth0: SGI Seeq8003 08:00:69:0a:04:b9 
SCSI subsystem driver Revision: 1.00
wd33c93-0: chip=WD33c93B/13 no_sync=0xff no_dma=0 debug_flags=0x00
           setup_args=,,,,,,,,,
           Version 1.25 - 09/Jul/1997, Compiled Mar 10 2001 at 20:35:32
wd33c93-1: chip=WD33c93B/13 no_sync=0xff no_dma=0 debug_flags=0x00
           setup_args=,,,,,,,,,
           Version 1.25 - 09/Jul/1997, Compiled Mar 10 2001 at 20:35:32
scsi0 : SGI WD93
scsi1 : SGI WD93
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SGI       Model: QUANTUM XP32150   Rev: S89C
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
 sending SDTR 0103013f0csync_xfer=2c  Vendor: SEAGATE   Model: ST15230W SUN4.2G  Rev: 0738
  Type:   Direct-Access                      ANSI SCSI revision: 02
Detected scsi disk sda at scsi0, channel 0, id 1, lun 0
Detected scsi disk sdb at scsi1, channel 0, id 1, lun 0
Detected scsi disk sdc at scsi1, channel 0, id 2, lun 0
Detected scsi disk sdd at scsi1, channel 0, id 3, lun 0
Detected scsi disk sde at scsi1, channel 0, id 4, lun 0
Detected scsi disk sdf at scsi1, channel 0, id 5, lun 0
Detected scsi disk sdg at scsi1, channel 0, id 6, lun 0
SCSI device sda: 4404489 512-byte hdwr sectors (2255 MB)
Partition check:
 sda: sda1 sda2 sda3 sda4
SCSI device sdb: 8386733 512-byte hdwr sectors (4294 MB)
 sdb: sdb1 sdb2 sdb3 sdb4
SCSI device sdc: 8386733 512-byte hdwr sectors (4294 MB)
 sdc: sdc1 sdc2 sdc3 sdc4
SCSI device sdd: 8386733 512-byte hdwr sectors (4294 MB)
 sdd: sdd1 sdd2 sdd3 sdd4
SCSI device sde: 8386733 512-byte hdwr sectors (4294 MB)
 sde: sde1 sde2 sde3 sde4
SCSI device sdf: 8386733 512-byte hdwr sectors (4294 MB)
 sdf: sdf1
SCSI device sdg: 8386733 512-byte hdwr sectors (4294 MB)
 sdg: sdg1
SGI Zilog8530 serial driver version 1.00
tty00 at 0xbfbd9830 (irq = 21) is a Zilog8530
tty01 at 0xbfbd9838 (irq = 21) is a Zilog8530
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 2048 buckets, 16Kbytes
TCP: Hash tables configured (established 16384 bind 16384)
Sending BOOTP requests.... OK
IP-Config: Got BOOTP answer from 195.71.99.222, my address is 195.71.99.220
NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
VFS: Mounted root (ext2 filesystem) readonly.
Freeing prom memory: 768kb freed
Freeing unused kernel memory: 64k freed

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Sat Mar 10 11:07:15 2001
Received:  by oss.sgi.com id <S553813AbRCJTHG>;
	Sat, 10 Mar 2001 11:07:06 -0800
Received: from u-152-20.karlsruhe.ipdial.viaginterkom.de ([62.180.20.152]:37381
        "EHLO u-152-20.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553802AbRCJTGo>; Sat, 10 Mar 2001 11:06:44 -0800
Received: from dea ([193.98.169.28]:1427 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867055AbRCJTG3>;
	Sat, 10 Mar 2001 20:06:29 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2AIPwo20402;
	Sat, 10 Mar 2001 19:25:58 +0100
Date:	Sat, 10 Mar 2001 19:25:58 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	nick@snowman.net, linux-mips@oss.sgi.com
Subject: Re: Problem makeing an O2 run bootp
Message-ID: <20010310192557.E15966@bacchus.dhis.org>
References: <20010306135856.E1184@bacchus.dhis.org> <Pine.LNX.4.21.0103062231010.23542-100000@ns> <20010308025751.G5830@hork>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010308025751.G5830@hork>; from csr6702@grace.rit.edu on Thu, Mar 08, 2001 at 02:57:51AM -0500
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Thu, Mar 08, 2001 at 02:57:51AM -0500, Chris Ruvolo wrote:

> On Tue, Mar 06, 2001 at 10:36:45PM -0500, nick@snowman.net wrote:
> > I've got an o2 that I'm trying to make netboot, and it seems to work,
> > however the o2 never acks the tftp packets.  The tcpdump is attached.  If
> > anyone has suggestions/ideas I'd love to hear them.  I booted the o2 and
> > ran "bootp():" from the arc prompt.
> 
> I had the same problem with my Indy.  I think this is in the HOWTO now, but
> in case you missed it..  If you are running your tftpd on Linux >= 2.3.x 
> 
> echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc
> 
> Worked for me.

Yep, it's in there:

  7.6.  My machine doesn't download the kernel when I try to netboot


  Your machine is replying to the BOOTP packets (you may verify this
  using a packet sniffer like tcpdump or ethereal), but doesn't download
  the kernel from your BOOTP server. This happens if your boot server is
  running a kernel of the 2.3 series or higher. The problem may be
  circumvented by doing a "echo 1 > /proc/sys/net/ipv4/ip_no_pmtu_disc"
  as root on your boot server.

  Ralf

From owner-linux-mips@oss.sgi.com Sat Mar 10 12:34:26 2001
Received:  by oss.sgi.com id <S553826AbRCJUeG>;
	Sat, 10 Mar 2001 12:34:06 -0800
Received: from natmail2.webmailer.de ([192.67.198.65]:18628 "EHLO
        post.webmailer.de") by oss.sgi.com with ESMTP id <S553822AbRCJUeA>;
	Sat, 10 Mar 2001 12:34:00 -0800
Received: from scotty.mgnet.de (pD4B89498.dip.t-dialin.net [212.184.148.152])
	by post.webmailer.de (8.9.3/8.8.7) with SMTP id VAA12100
	for <linux-mips@oss.sgi.com>; Sat, 10 Mar 2001 21:33:57 +0100 (MET)
Received: (qmail 30521 invoked from network); 10 Mar 2001 20:33:56 -0000
Received: from spock.mgnet.de (192.168.1.4)
  by scotty.mgnet.de with SMTP; 10 Mar 2001 20:33:56 -0000
Date:   Sat, 10 Mar 2001 21:34:00 +0100 (CET)
From:   Klaus Naumann <spock@mgnet.de>
To:     Florian Lohoff <flo@rfc822.org>
cc:     linux-mips@oss.sgi.com
Subject: Re: Failure 2.4.2 + glibc 2.2 still illegal instruction
In-Reply-To: <20010310205028.B16121@paradigm.rfc822.org>
Message-ID: <Pine.LNX.4.21.0103102131450.24319-100000@spock.mgnet.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sat, 10 Mar 2001, Florian Lohoff wrote:

> 
> Hi,
> i am still seeing illegal instruction stuff with current cvs kernel
> and glibc 2.2 
> 

I can confirm this on my Indigo2. Altough not every binary
crashes. From my dmesg:

[ls:38] Illegal instruction 0100017c at 2ac9388c ra=00000000
[ls:39] Illegal instruction 0100017c at 2ac9388c ra=00000000
[find:88] Illegal instruction 7fff7ccc at 2ac97c60 ra=2ab136c4
[find:91] Illegal instruction 00000003 at 2ac9673c ra=2ab136c4
[find:93] Illegal instruction 00000017 at 2ac97c5c ra=2ab136c4
[ls:144] Illegal instruction 0100017c at 2ac9388c ra=00000000
[ls:145] Illegal instruction 0100017c at 2ac9388c ra=00000000

I have also seen these things with tar and other stuff.
Anyway - Keith said that it went away after he compiled
glibc against 2.4.X (X > 1) kernel sources. Can
anyone confirm that ?

> strace shows that the last system call called is
> "sysmips(MIPS_ATOMIC_SET, ...)"

I have tried building strace but failed. What is your code base ? 


		CU, Klaus


-- 
Full Name   : Klaus Naumann     | (http://www.mgnet.de/) (Germany)
Nickname    : Spock             | Org.: Mad Guys Network
Phone / FAX : ++49/177/7862964  | E-Mail: (spock@mgnet.de)
PGP Key     : www.mgnet.de/keys/key_spock.txt


From owner-linux-mips@oss.sgi.com Sun Mar 11 05:54:14 2001
Received:  by oss.sgi.com id <S553665AbRCKNyE>;
	Sun, 11 Mar 2001 05:54:04 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:55057 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553655AbRCKNxr>;
	Sun, 11 Mar 2001 05:53:47 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id D38617F6; Sun, 11 Mar 2001 14:53:34 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 59FA7EFC1; Sun, 11 Mar 2001 16:52:08 +0100 (CET)
Date:   Sun, 11 Mar 2001 16:52:08 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     Klaus Naumann <spock@mgnet.de>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Failure 2.4.2 + glibc 2.2 still illegal instruction
Message-ID: <20010311165208.C7415@paradigm.rfc822.org>
References: <20010310205028.B16121@paradigm.rfc822.org> <Pine.LNX.4.21.0103102131450.24319-100000@spock.mgnet.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.21.0103102131450.24319-100000@spock.mgnet.de>; from spock@mgnet.de on Sat, Mar 10, 2001 at 09:34:00PM +0100
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sat, Mar 10, 2001 at 09:34:00PM +0100, Klaus Naumann wrote:
> On Sat, 10 Mar 2001, Florian Lohoff wrote:
> I have also seen these things with tar and other stuff.
> Anyway - Keith said that it went away after he compiled
> glibc against 2.4.X (X > 1) kernel sources. Can
> anyone confirm that ?
> 
> > strace shows that the last system call called is
> > "sysmips(MIPS_ATOMIC_SET, ...)"
> 
> I have tried building strace but failed. What is your code base ? 

I am still using the very old strace 3.2 from the cobalt
distribution which is aehm - complicated - as i wont decode
everything and some things even wrong.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Sun Mar 11 08:17:05 2001
Received:  by oss.sgi.com id <S553669AbRCKQQq>;
	Sun, 11 Mar 2001 08:16:46 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:5125 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553659AbRCKQQW>;
	Sun, 11 Mar 2001 08:16:22 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 4A3607FE; Sun, 11 Mar 2001 17:16:10 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id A0176EFC1; Sun, 11 Mar 2001 19:16:39 +0100 (CET)
Date:   Sun, 11 Mar 2001 19:16:39 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     linux-mips@oss.sgi.com
Subject: Illegal instruction - a workaround or fix ?
Message-ID: <20010311191639.A8587@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Hi,
i seem to get the illegal instruction stuff killed when
doing this.

diff -u -r1.17 sysmips.c
--- arch/mips/kernel/sysmips.c	2001/02/09 21:05:46	1.17
+++ arch/mips/kernel/sysmips.c	2001/03/11 16:11:30
@@ -111,13 +111,14 @@
 
 		((struct pt_regs *)&cmd)->regs[2] = tmp;
 		((struct pt_regs *)&cmd)->regs[7] = 0;
-
+#if 0
 		__asm__ __volatile__(
 			"move\t$29, %0\n\t"
 			"j\to32_ret_from_sys_call"
 			: /* No outputs */
 			: "r" (&cmd));
 		/* Unreached */
+#endif
 	}
 
 	case MIPS_FIXADE:


Could someone please explain me the difference betweeen "handle_sys"
which leads to "o32_ret_from_sys_call" and ... which leads to
"ret_from_sys_call".

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Sun Mar 11 17:09:30 2001
Received:  by oss.sgi.com id <S553757AbRCLBJU>;
	Sun, 11 Mar 2001 17:09:20 -0800
Received: from ns.snowman.net ([63.80.4.34]:64011 "EHLO ns.snowman.net")
	by oss.sgi.com with ESMTP id <S553763AbRCLBJE>;
	Sun, 11 Mar 2001 17:09:04 -0800
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id UAA06952
	for <linux-mips@oss.sgi.com>; Sun, 11 Mar 2001 20:09:00 -0500
Date:   Sun, 11 Mar 2001 20:09:00 -0500 (EST)
From:   <nick@snowman.net>
X-Sender: nick@ns
To:     linux-mips@oss.sgi.com
Subject: IP32 (O2) diff
In-Reply-To: <20010310192557.E15966@bacchus.dhis.org>
Message-ID: <Pine.LNX.4.21.0103112007320.2262-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

http://www.snowman.net/~nick/ip32.diff.bz2

The above is a link to my patch against the current CVS source that sort
of works on the SGI O2.  It boots, but does not support any consoles, SCSI
drivers, or ethernet drivers.  Any assistance is greatly apreiciated.
	Nick


From owner-linux-mips@oss.sgi.com Mon Mar 12 03:37:05 2001
Received:  by oss.sgi.com id <S553665AbRCLLgz>;
	Mon, 12 Mar 2001 03:36:55 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:37900 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S553655AbRCLLgw>; Mon, 12 Mar 2001 03:36:52 -0800
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 <01K13YDZ2K8I000ICL@research.kpn.com> for
 linux-mips@oss.sgi.com; Mon, 12 Mar 2001 12:36:50 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id MAA22025	for linux-mips@oss.sgi.com; Mon, 12 Mar 2001 12:34:35 +0100 (MET)
Date:   Mon, 12 Mar 2001 12:34:35 +0100 (MET)
From:   vhouten@kpn.com
Subject: RH 7.0 based root tarball.
To:     linux-mips@oss.sgi.com
Message-id: <200103121134.MAA22025@sparta.research.kpn.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi all,

I've uploaded a RedHat 7.0 based root tarball. It can serve
as NFS root image, or for local disk installs.
It can be found at oss:
ftp://oss.sgi.com/pub/linux/mips/redhat/test-7.0/mipsroot-rh7.tar.bz2

Good luck,

Karel van Houten
vhouten@kpn.com

From owner-linux-mips@oss.sgi.com Mon Mar 12 03:42:05 2001
Received:  by oss.sgi.com id <S553700AbRCLLlq>;
	Mon, 12 Mar 2001 03:41:46 -0800
Received: from mail.sonytel.be ([193.74.243.200]:47825 "EHLO mail.sonytel.be")
	by oss.sgi.com with ESMTP id <S553659AbRCLLlc>;
	Mon, 12 Mar 2001 03:41:32 -0800
Received: from escobaria.sonytel.be (escobaria.sonytel.be [10.34.80.3])
	by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id MAA18476;
	Mon, 12 Mar 2001 12:41:03 +0100 (MET)
Date:   Mon, 12 Mar 2001 12:41:03 +0100 (MET)
From:   Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
To:     vhouten@kpn.com
cc:     linux-mips@oss.sgi.com
Subject: Re: RH 7.0 based root tarball.
In-Reply-To: <200103121134.MAA22025@sparta.research.kpn.com>
Message-ID: <Pine.GSO.4.10.10103121240500.15717-100000@escobaria.sonytel.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, 12 Mar 2001 vhouten@kpn.com wrote:
> I've uploaded a RedHat 7.0 based root tarball. It can serve
> as NFS root image, or for local disk installs.
> It can be found at oss:
> ftp://oss.sgi.com/pub/linux/mips/redhat/test-7.0/mipsroot-rh7.tar.bz2

Is it big or little endian?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


From owner-linux-mips@oss.sgi.com Mon Mar 12 03:50:05 2001
Received:  by oss.sgi.com id <S553767AbRCLLt4>;
	Mon, 12 Mar 2001 03:49:56 -0800
Received: from u-21-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.21]:64262
        "EHLO u-21-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553729AbRCLLtw>; Mon, 12 Mar 2001 03:49:52 -0800
Received: from dea ([193.98.169.28]:896 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867210AbRCLLt2>;
	Mon, 12 Mar 2001 12:49:28 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2CBLYe06247;
	Mon, 12 Mar 2001 12:21:34 +0100
Date:	Mon, 12 Mar 2001 12:21:34 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Florian Lohoff <flo@rfc822.org>
Cc:	linux-mips@oss.sgi.com
Subject: Re: Illegal instruction - a workaround or fix ?
Message-ID: <20010312122134.B1235@bacchus.dhis.org>
References: <20010311191639.A8587@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010311191639.A8587@paradigm.rfc822.org>; from flo@rfc822.org on Sun, Mar 11, 2001 at 07:16:39PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Thanks, that was the hint I needed.  o32_ret_from_sys_call expects the
content of s-registers to be unchanged from userspace but sys_sysmips
clobbers them.

Below a patch from the famous ``Smoke This, It's Good For You (TM)''
series.  Lemme know if it helps.

  Ralf

--- arch/mips/kernel/sysmips.c	2001/02/09 21:05:46	1.17
+++ arch/mips/kernel/sysmips.c	2001/03/12 11:12:20
@@ -19,6 +19,7 @@
 
 #include <asm/cachectl.h>
 #include <asm/pgalloc.h>
+#include <asm/stackframe.h>
 #include <asm/sysmips.h>
 #include <asm/uaccess.h>
 
@@ -47,8 +48,9 @@
 	return address;
 }
 
-asmlinkage int
-sys_sysmips(int cmd, int arg1, int arg2, int arg3)
+save_static_function(sys_sysmips);
+static_unused int
+_sys_sysmips(int cmd, int arg1, int arg2, int arg3)
 {
 	int	*p;
 	char	*name;
@@ -114,7 +116,7 @@
 
 		__asm__ __volatile__(
 			"move\t$29, %0\n\t"
-			"j\to32_ret_from_sys_call"
+			"j\to32_ret_from_sys_call_restore_static"
 			: /* No outputs */
 			: "r" (&cmd));
 		/* Unreached */
--- arch/mips/kernel/scall_o32.S	2000/08/08 18:54:49	1.14
+++ arch/mips/kernel/scall_o32.S	2001/03/12 11:09:12
@@ -86,6 +86,10 @@
 	RESTORE_SOME
 	RESTORE_SP_AND_RET
 
+EXPORT(o32_ret_from_sys_call_restore_static)
+	RESTORE_STATIC
+	j	o32_ret_from_sys_call
+
 o32_handle_softirq:
 	jal	do_softirq
 	b	9b

From owner-linux-mips@oss.sgi.com Mon Mar 12 03:50:35 2001
Received:  by oss.sgi.com id <S553771AbRCLLuP>;
	Mon, 12 Mar 2001 03:50:15 -0800
Received: from u-21-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.21]:64262
        "EHLO u-21-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553763AbRCLLuF>; Mon, 12 Mar 2001 03:50:05 -0800
Received: from dea ([193.98.169.28]:1664 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S869540AbRCLLti>;
	Mon, 12 Mar 2001 12:49:38 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2C9n3201304;
	Mon, 12 Mar 2001 10:49:03 +0100
Date:	Mon, 12 Mar 2001 10:49:03 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Klaus Naumann <spock@mgnet.de>
Cc:	Florian Lohoff <flo@rfc822.org>, linux-mips@oss.sgi.com
Subject: Re: Failure 2.4.2 + glibc 2.2 still illegal instruction
Message-ID: <20010312104903.A1235@bacchus.dhis.org>
References: <20010310205028.B16121@paradigm.rfc822.org> <Pine.LNX.4.21.0103102131450.24319-100000@spock.mgnet.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.21.0103102131450.24319-100000@spock.mgnet.de>; from spock@mgnet.de on Sat, Mar 10, 2001 at 09:34:00PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Sat, Mar 10, 2001 at 09:34:00PM +0100, Klaus Naumann wrote:

> > strace shows that the last system call called is
> > "sysmips(MIPS_ATOMIC_SET, ...)"
> 
> I have tried building strace but failed. What is your code base ? 

What is the sympthom?  I've tried strace from CVS on a mips64 kernel and
it works almost perfectly.

  Ralf

From owner-linux-mips@oss.sgi.com Mon Mar 12 04:10:05 2001
Received:  by oss.sgi.com id <S553714AbRCLMJ4>;
	Mon, 12 Mar 2001 04:09:56 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:44301 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S553669AbRCLMJg>; Mon, 12 Mar 2001 04:09:36 -0800
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 <01K13ZII2B8I000JEA@research.kpn.com> for
 linux-mips@oss.sgi.com; Mon, 12 Mar 2001 13:09:31 +0100
Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6])
	by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id NAA22587; Mon,
 12 Mar 2001 13:09:30 +0100 (MET)
Date:   Mon, 12 Mar 2001 13:09:30 +0100
From:   "Houten K.H.C. van (Karel)" <K.H.C.vanHouten@research.kpn.com>
X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v
 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P
 q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy
Subject: Re: RH 7.0 based root tarball.
In-reply-to: "Your message of Mon, 12 Mar 2001 12:41:03 +0100."
 <Pine.GSO.4.10.10103121240500.15717-100000@escobaria.sonytel.be>
To:     Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc:     vhouten@kpn.com, linux-mips@oss.sgi.com
Reply-to: K.H.C.vanHouten@kpn.com
Message-id: <200103121209.NAA22587@sparta.research.kpn.com>
MIME-version: 1.0
X-Mailer: exmh version 1.6.5 12/11/95
Content-type: text/plain; charset=us-ascii
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Geert wrote:
> On Mon, 12 Mar 2001 vhouten@kpn.com wrote:
> > I've uploaded a RedHat 7.0 based root tarball. It can serve
> > as NFS root image, or for local disk installs.
> > It can be found at oss:
> > ftp://oss.sgi.com/pub/linux/mips/redhat/test-7.0/mipsroot-rh7.tar.bz2
> 
> Is it big or little endian?

I't the mipsroot, not the mipselroot :-)

Regards,
Karel.

-- 
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 owner-linux-mips@oss.sgi.com Mon Mar 12 05:43:39 2001
Received:  by oss.sgi.com id <S553778AbRCLNnT>;
	Mon, 12 Mar 2001 05:43:19 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:10758 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553774AbRCLNnO>;
	Mon, 12 Mar 2001 05:43:14 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id A65C57FE; Mon, 12 Mar 2001 14:43:02 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 62D17EFD0; Mon, 12 Mar 2001 14:41:31 +0100 (CET)
Date:   Mon, 12 Mar 2001 14:41:31 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     Ralf Baechle <ralf@oss.sgi.com>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Illegal instruction - a workaround or fix ?
Message-ID: <20010312144131.C7715@paradigm.rfc822.org>
References: <20010311191639.A8587@paradigm.rfc822.org> <20010312122134.B1235@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010312122134.B1235@bacchus.dhis.org>; from ralf@oss.sgi.com on Mon, Mar 12, 2001 at 12:21:34PM +0100
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 12, 2001 at 12:21:34PM +0100, Ralf Baechle wrote:
> Thanks, that was the hint I needed.  o32_ret_from_sys_call expects the
> content of s-registers to be unchanged from userspace but sys_sysmips
> clobbers them.
> 
> Below a patch from the famous ``Smoke This, It's Good For You (TM)''
> series.  Lemme know if it helps.

As mentioned on IRC - This "Oopses" for me ...

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Mon Mar 12 07:40:29 2001
Received:  by oss.sgi.com id <S553795AbRCLPkK>;
	Mon, 12 Mar 2001 07:40:10 -0800
Received: from noose.gt.owl.de ([62.52.19.4]:57095 "HELO noose.gt.owl.de")
	by oss.sgi.com with SMTP id <S553733AbRCLPj6>;
	Mon, 12 Mar 2001 07:39:58 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 249C07F6; Mon, 12 Mar 2001 16:39:47 +0100 (CET)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 317C2EFD0; Mon, 12 Mar 2001 16:39:38 +0100 (CET)
Date:   Mon, 12 Mar 2001 16:39:38 +0100
From:   Florian Lohoff <flo@rfc822.org>
To:     linux-mips@oss.sgi.com
Cc:     Andreas Jaeger <aj@suse.de>
Subject: glibc 2.2.2 on linux mips kernel 2.2 NOGO
Message-ID: <20010312163938.E7715@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


I tried building glibc 2.2.2 on Linux-mips (Kernel 2.2.16) with no success.
I was using Keiths cross stuff to determin the way it worked for him.

I am getting the following output.

./configure --prefix=/usr --with-headers=/usr/src/linux/include/
   --enable-kernel=2.2.15 --enable-add-ons --with-elf --disable-profile

Results in:

../elf/ld.so.1 --library-path ..:../math:../elf:../dlfcn:../nss:../nis:../rt:../resolv:../crypt:../linuxthreads ./rpcgen -Y `gcc -print-file-name=cpp | sed 's|/cpp$||'` -c rpcsvc/bootparam_prot.x -o xbootparam_prot.T
make[1]: *** [xbootparam_prot.stmp] Segmentation fault

The same happens when i remove the "--enable-kernel=2.2.15" completely. In
case i am using an "--enable-kernel=2.3.99" i am getting

TOO OLD KERNEL

I was using

flo@repeat:~/glibc-2.2.2$ gcc -v
Reading specs from /home/flo/gcc-3.0/lib/gcc-lib/mipsel-unknown-linux-gnu/3.0/specs
Configured with: ./configure --prefix=/home/flo/gcc-3.0 --with-newlib --disable-shared --enable-languages=c
gcc version 3.0 20010303 (prerelease)
flo@repeat:~/glibc-2.2.2$ ld -v
GNU ld version 2.11.90 (with BFD 2.11.90)
flo@repeat:~/glibc-2.2.2$ head /usr/src/linux/include/linux/version.h 
#define UTS_RELEASE "2.4.2"
#define LINUX_VERSION_CODE 132098
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
flo@repeat:~/glibc-2.2.2$ uname -a
Linux repeat.rfc822.org 2.2.16 #42 Fri Dec 29 11:46:41 CET 2000 mips unknown

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Mon Mar 12 09:49:10 2001
Received:  by oss.sgi.com id <S553781AbRCLRsu>;
	Mon, 12 Mar 2001 09:48:50 -0800
Received: from [207.81.221.34] ([207.81.221.34]:54324 "EHLO relay")
	by oss.sgi.com with ESMTP id <S553692AbRCLRsq>;
	Mon, 12 Mar 2001 09:48:46 -0800
Received: from vcubed.com ([207.81.96.153])
	by relay (8.8.7/8.8.7) with ESMTP id OAA05822
	for <linux-mips@oss.sgi.com>; Mon, 12 Mar 2001 14:11:14 -0500
Message-ID: <3AAD0CB9.FAE7C050@vcubed.com>
Date:   Mon, 12 Mar 2001 12:51:53 -0500
From:   Dan Aizenstros <dan@vcubed.com>
X-Mailer: Mozilla 4.6 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To:     "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: Error in set_cp0_ functions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hello All,

There appears to be an error in the new set_cp0_ functions in
the mipsregs.h file.

#define __BUILD_SET_CP0(name,register)                          \
extern __inline__ unsigned int                                  \
set_cp0_##name(unsigned int set)                                \
{                                                               \
        unsigned int res;                                       \
                                                                \
        res = read_32bit_cp0_register(register);                \
        res |= ~set;                                            \
        write_32bit_cp0_register(register, res);                \
                                                                \
        return res;                                             \
}                                                               \

The line
	res |= ~set;
will set every bit except the bit you want to set.

It should be changed to
	res |= set;

Also in the mipsregs.h file the line

#define ST0_UM                 <1   <<  4)

should probably be

#define ST0_UM                 (1   <<  4)

I hope this helps.

Dan Aizenstros
Software Engineer
V3 Semiconductor Corp.

From owner-linux-mips@oss.sgi.com Mon Mar 12 11:44:30 2001
Received:  by oss.sgi.com id <S553673AbRCLToL>;
	Mon, 12 Mar 2001 11:44:11 -0800
Received: from u-143-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.143]:14087
        "EHLO u-143-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553652AbRCLTny>; Mon, 12 Mar 2001 11:43:54 -0800
Received: from dea ([193.98.169.28]:17024 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867210AbRCLTnh>;
	Mon, 12 Mar 2001 20:43:37 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2CJhKY19682;
	Mon, 12 Mar 2001 20:43:20 +0100
Date:	Mon, 12 Mar 2001 20:43:20 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Dan Aizenstros <dan@vcubed.com>
Cc:	"linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: Re: Error in set_cp0_ functions
Message-ID: <20010312204320.A19579@bacchus.dhis.org>
References: <3AAD0CB9.FAE7C050@vcubed.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AAD0CB9.FAE7C050@vcubed.com>; from dan@vcubed.com on Mon, Mar 12, 2001 at 12:51:53PM -0500
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 12, 2001 at 12:51:53PM -0500, Dan Aizenstros wrote:

> There appears to be an error in the new set_cp0_ functions in
> the mipsregs.h file.

Thanks for the report, fixed.

  Ralf

From owner-linux-mips@oss.sgi.com Mon Mar 12 13:57:31 2001
Received:  by oss.sgi.com id <S553721AbRCLV5V>;
	Mon, 12 Mar 2001 13:57:21 -0800
Received: from nilpferd.fachschaften.tu-muenchen.de ([129.187.176.79]:43219
        "HELO nilpferd.fachschaften.tu-muenchen.de") by oss.sgi.com with SMTP
	id <S553692AbRCLV47>; Mon, 12 Mar 2001 13:56:59 -0800
Received: (qmail 11805 invoked from network); 12 Mar 2001 21:56:57 -0000
Received: from mimas.fachschaften.tu-muenchen.de (HELO mimas) (129.187.176.26)
  by nilpferd.fachschaften.tu-muenchen.de with SMTP; 12 Mar 2001 21:56:57 -0000
Date:   Mon, 12 Mar 2001 22:56:40 +0100 (CET)
From:   Adrian Bunk <bunk@fs.tum.de>
X-X-Sender:  <bunk@mimas.fachschaften.tu-muenchen.de>
To:     <linux-mips@oss.sgi.com>
Subject: Compile error with current CVS kernel
Message-ID: <Pine.NEB.4.33.0103122252170.23935-100000@mimas.fachschaften.tu-muenchen.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi,

I checked out the kernel source from oss.sgi.com at about two hours ago,
but the build for my DECstation 5000/240 failed with:


mipsel-linux-gcc -I /home/bunk/Ringo/linux/include/asm/gcc -D__KERNEL__ -I/home/bunk/Ringo/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G 0 -mno-abicalls -fno-pic -mcpu=r3000 -mips1 -pipe  -c strnlen_user.S -o strnlen_user.o
mipsel-linux-gcc -I /home/bunk/Ringo/linux/include/asm/gcc -D__KERNEL__ -I/home/bunk/Ringo/linux/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -G 0 -mno-abicalls -fno-pic -mcpu=r3000 -mips1 -pipe    -c -o r3k_dump_tlb.o r3k_dump_tlb.c
rm -f lib.a
mipsel-linux-ar  rcs lib.a csum_partial.o csum_partial_copy.o rtc-std.o rtc-no.o memcpy.o memset.o watch.o strlen_user.o strncpy_user.o strnlen_user.o r3k_dump_tlb.o
make[2]: Leaving directory `/home/bunk/Ringo/linux/arch/mips/lib'
make[1]: Leaving directory `/home/bunk/Ringo/linux/arch/mips/lib'
sed -e 's/@@OUTPUT_FORMAT@@/elf32-littlemips/' \
    -e 's/@@LOADADDR@@/0x80040000/' <arch/mips/ld.script.in >arch/mips/ld.script
mipsel-linux-ld -static -G 0 -T arch/mips/ld.script arch/mips/kernel/head.o arch/mips/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o arch/mips/math-emu/fpu_emulator.o arch/mips/dec/dec.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o  drivers/scsi/scsidrv.o drivers/video/video.o drivers/tc/tc.a \
        net/network.o \
        arch/mips/lib/lib.a /home/bunk/Ringo/linux/lib/lib.a arch/mips/dec/prom/rexlib.a \
        --end-group \
        -o vmlinux
mipsel-linux-nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[1]: Entering directory `/home/bunk/Ringo/linux/arch/mips/boot'
gcc -o elf2ecoff elf2ecoff.c
./elf2ecoff /home/bunk/Ringo/linux/vmlinux vmlinux.ecoff -a
wrote 20 byte file header.
wrote 56 byte a.out header.
wrote 240 bytes of section headers.
wrote 4 byte pad.
writing 1848 bytes...
Intersegment gap (-2147239736 bytes) too large.
make[1]: *** [vmlinux.ecoff] Error 1
make[1]: Leaving directory `/home/bunk/Ringo/linux/arch/mips/boot'
make: *** [boot] Error 2


I'm using for cross-compiling from i386:

$ mipsel-linux-ld -v
GNU ld version 2.10.91 (with BFD 2.10.91.0.2)
$ mipsel-linux-gcc -v
Reading specs from /usr/lib/gcc-lib/mipsel-linux/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-linux/2.95.3/specs
gcc version 2.95.3 20010219 (prerelease)
$


cu
Adrian

-- 

Nicht weil die Dinge schwierig sind wagen wir sie nicht,
sondern weil wir sie nicht wagen sind sie schwierig.



From owner-linux-mips@oss.sgi.com Mon Mar 12 15:16:11 2001
Received:  by oss.sgi.com id <S553714AbRCLXPv>;
	Mon, 12 Mar 2001 15:15:51 -0800
Received: from u-143-19.karlsruhe.ipdial.viaginterkom.de ([62.180.19.143]:23303
        "EHLO u-143-19.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553667AbRCLXPn>; Mon, 12 Mar 2001 15:15:43 -0800
Received: from dea ([193.98.169.28]:54400 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867210AbRCLXP0>;
	Tue, 13 Mar 2001 00:15:26 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2CNFK422560;
	Tue, 13 Mar 2001 00:15:20 +0100
Date:	Tue, 13 Mar 2001 00:15:20 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	Adrian Bunk <bunk@fs.tum.de>
Cc:	<linux-mips@oss.sgi.com>
Subject: Re: Compile error with current CVS kernel
Message-ID: <20010313001520.A20673@bacchus.dhis.org>
References: <Pine.NEB.4.33.0103122252170.23935-100000@mimas.fachschaften.tu-muenchen.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.NEB.4.33.0103122252170.23935-100000@mimas.fachschaften.tu-muenchen.de>; from bunk@fs.tum.de on Mon, Mar 12, 2001 at 10:56:40PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Mon, Mar 12, 2001 at 10:56:40PM +0100, Adrian Bunk wrote:

Send me the output of ``mipsel-linux-objdump -p -h vmlinux''.

  Ralf

From owner-linux-mips@oss.sgi.com Mon Mar 12 23:47:33 2001
Received:  by oss.sgi.com id <S553668AbRCMHrO>;
	Mon, 12 Mar 2001 23:47:14 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:31251 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S552774AbRCMHqr>; Mon, 12 Mar 2001 23:46:47 -0800
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 <01K154N1RSB2000JC6@research.kpn.com>; Tue,
 13 Mar 2001 08:46:45 +0100
Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6])
	by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id IAA07580; Tue,
 13 Mar 2001 08:46:43 +0100 (MET)
Date:   Tue, 13 Mar 2001 08:46:43 +0100
From:   "Houten K.H.C. van (Karel)" <K.H.C.vanHouten@research.kpn.com>
X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v
 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P
 q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy
Subject: Re: Compile error with current CVS kernel
In-reply-to: "Your message of Tue, 13 Mar 2001 00:15:20 +0100."
 <20010313001520.A20673@bacchus.dhis.org>
To:     Ralf Baechle <ralf@oss.sgi.com>
Cc:     Adrian Bunk <bunk@fs.tum.de>, linux-mips@oss.sgi.com,
        K.H.C.vanHouten@research.kpn.com
Reply-to: K.H.C.vanHouten@kpn.com
Message-id: <200103130746.IAA07580@sparta.research.kpn.com>
MIME-version: 1.0
X-Mailer: exmh version 1.6.5 12/11/95
Content-type: multipart/mixed ;	boundary="===_0_Tue_Mar_13_08:46:33_MET_2001"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

This is a multipart MIME message.

--===_0_Tue_Mar_13_08:46:33_MET_2001
Content-Type: text/plain; charset=us-ascii


Hi Rald, Adrian,

Ralf wrote:
> On Mon, Mar 12, 2001 at 10:56:40PM +0100, Adrian Bunk wrote:
>> [about failing cross-compile ...]
>
> Send me the output of ``mipsel-linux-objdump -p -h vmlinux''.

I get the same error on a native compile:
gcc version 2.95.3 19991030 (Maciej's src)
binutils version 2.11.90 (from CVS)
kernel source 2.4.0-test9 (from oss CVS)

I've attached my objdump output.
Hope this helps.

Regards,
Karel.


--===_0_Tue_Mar_13_08:46:33_MET_2001
Content-Type: text/plain; charset=us-ascii
Content-Description: objdump.txt


vmlinux:     file format elf32-bigmips

Program Header:
0x70000000 off    0x00000000001a11e0 vaddr 0xffffffff881981e0 paddr 
0xffffffff881981e0 align 2**2
         filesz 0x0000000000000018 memsz 0x0000000000000018 flags r--
    LOAD off    0x0000000000000000 vaddr 0x0000000000001000 paddr 
0x0000000000001000 align 2**12
         filesz 0x000000000000a184 memsz 0x000000000000a184 flags r--
    LOAD off    0x000000000000b000 vaddr 0xffffffff88002000 paddr 
0xffffffff88002000 align 2**12
         filesz 0x00000000001acd10 memsz 0x00000000001d25a4 flags rwx
private flags = 101: [no abi set] [mips1] [32bitmode]

Sections:
Idx Name          Size      VMA               LMA               File off  Algn
  0 .text         00180020  ffffffff88002000  ffffffff88002000  0000b000  2**13
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .fixup        000011e8  ffffffff88182020  ffffffff88182020  0018b020  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 __ex_table    00001fa8  ffffffff88183210  ffffffff88183210  0018c210  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 __dbe_table   00000000  ffffffff881851b8  ffffffff881851b8  0018e1b8  2**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 .text.init    0000e124  ffffffff88186000  ffffffff88186000  0018f000  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  5 .data.init    0000382c  ffffffff88194124  ffffffff88194124  0019d124  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  6 .setup.init   000000d8  ffffffff88197950  ffffffff88197950  001a0950  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  7 .initcall.init 00000068  ffffffff88197a28  ffffffff88197a28  001a0a28  2**2
                  CONTENTS, ALLOC, LOAD, DATA
  8 .data.cacheline_aligned 000001e0  ffffffff88198000  ffffffff88198000  
001a1000  2**5
                  CONTENTS, ALLOC, LOAD, DATA
  9 .reginfo      00000018  ffffffff881981e0  ffffffff881981e0  001a11e0  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
 10 .data         00016b10  ffffffff88198200  ffffffff88198200  001a1200  2**4
                  CONTENTS, ALLOC, LOAD, DATA
 11 .sbss         000002c4  ffffffff881aed10  ffffffff881aed10  001b7d10  2**3
                  ALLOC
 12 .bss          000255c4  ffffffff881aefe0  ffffffff881aefe0  001b7d1c  2**4
                  ALLOC
 13 .mdebug       000a6b78  0000000000000000  0000000000000000  001b7d1c  2**2
                  CONTENTS, READONLY, DEBUGGING
 14 .note         00001af4  0000000000000000  0000000000000000  0025e894  2**0
                  CONTENTS, READONLY
 15 .kstrtab      00007c24  0000000000001b00  0000000000001b00  00000b00  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
 16 __ksymtab     00001a60  0000000000009724  0000000000009724  00008724  2**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA

--===_0_Tue_Mar_13_08:46:33_MET_2001
Content-Type: text/plain; charset=us-ascii

Karel van Houten

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

--===_0_Tue_Mar_13_08:46:33_MET_2001--



From owner-linux-mips@oss.sgi.com Tue Mar 13 05:56:15 2001
Received:  by oss.sgi.com id <S553661AbRCMN4F>;
	Tue, 13 Mar 2001 05:56:05 -0800
Received: from u-141-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.141]:56583
        "EHLO u-141-10.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S552774AbRCMNzm>; Tue, 13 Mar 2001 05:55:42 -0800
Received: from dea ([193.98.169.28]:3968 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S867211AbRCMNza>;
	Tue, 13 Mar 2001 14:55:30 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2DDrUA02107;
	Tue, 13 Mar 2001 14:53:30 +0100
Date:	Tue, 13 Mar 2001 14:53:30 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	K.H.C.vanHouten@kpn.com
Cc:	Adrian Bunk <bunk@fs.tum.de>, linux-mips@oss.sgi.com,
        K.H.C.vanHouten@research.kpn.com
Subject: Re: Compile error with current CVS kernel
Message-ID: <20010313145330.A1208@bacchus.dhis.org>
References: <20010313001520.A20673@bacchus.dhis.org> <200103130746.IAA07580@sparta.research.kpn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103130746.IAA07580@sparta.research.kpn.com>; from K.H.C.vanHouten@research.kpn.com on Tue, Mar 13, 2001 at 08:46:43AM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Tue, Mar 13, 2001 at 08:46:43AM +0100, Houten K.H.C. van (Karel) wrote:

> I get the same error on a native compile:
> gcc version 2.95.3 19991030 (Maciej's src)
> binutils version 2.11.90 (from CVS)
> kernel source 2.4.0-test9 (from oss CVS)
> 
> I've attached my objdump output.
> Hope this helps.

Not necessary, Adrian already sent his output.  The fix isn't difficult
either, it's just putting .modinfo into the linker script also.  The
question is still why newer ld is placing sections be default so absurdly
which is what I'm currently enquiring.

  Ralf

From owner-linux-mips@oss.sgi.com Tue Mar 13 06:59:55 2001
Received:  by oss.sgi.com id <S553672AbRCMO7f>;
	Tue, 13 Mar 2001 06:59:35 -0800
Received: from mfcf.math.uwaterloo.ca ([129.97.216.156]:60088 "EHLO
        mfcf.math.uwaterloo.ca") by oss.sgi.com with ESMTP
	id <S553667AbRCMO7M>; Tue, 13 Mar 2001 06:59:12 -0800
Received: from localhost (wtautz@localhost)
	by mfcf.math.uwaterloo.ca (8.9.3/8.9.3) with SMTP id JAA20496;
	Tue, 13 Mar 2001 09:59:10 -0500 (EST)
X-Authentication-Warning: mfcf.math: wtautz owned process doing -bs
Date:   Tue, 13 Mar 2001 09:59:09 -0500 (EST)
From:   Walter Tautz <wtautz@math.uwaterloo.ca>
To:     linux-mips@oss.sgi.com
cc:     Walter Tautz <wtautz@math.uwaterloo.ca>
Subject:  (new list subscriber: from University of Waterloo):
Message-ID: <Pine.SOL.3.96.1010313095415.17183C-100000@mfcf.math.uwaterloo.ca>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi, I am colleague of Robyn Landers at University of Waterloo
and I am a member of the linux taskgroup within the math
faculty.

Q: How do I go about running Linux on an origin2000? 

Q: How can I help debug/test the kernel on an origin2000.


Walter Tautz [MFCF]



From owner-linux-mips@oss.sgi.com Tue Mar 13 08:41:55 2001
Received:  by oss.sgi.com id <S553678AbRCMQlp>;
	Tue, 13 Mar 2001 08:41:45 -0800
Received: from u-226-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.226]:7176
        "EHLO u-226-18.karlsruhe.ipdial.viaginterkom.de") by oss.sgi.com
	with ESMTP id <S553661AbRCMQlZ>; Tue, 13 Mar 2001 08:41:25 -0800
Received: from dea ([193.98.169.28]:4992 "EHLO dea.waldorf-gmbh.de")
	by bacchus.dhis.org with ESMTP id <S869415AbRCMOWy>;
	Tue, 13 Mar 2001 15:22:54 +0100
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2DEMaG06514;
	Tue, 13 Mar 2001 15:22:36 +0100
Date:	Tue, 13 Mar 2001 15:22:36 +0100
From:	Ralf Baechle <ralf@oss.sgi.com>
To:	K.H.C.vanHouten@kpn.com
Cc:	Adrian Bunk <bunk@fs.tum.de>, linux-mips@oss.sgi.com,
        K.H.C.vanHouten@research.kpn.com
Subject: Re: Compile error with current CVS kernel
Message-ID: <20010313152236.B1208@bacchus.dhis.org>
References: <20010313001520.A20673@bacchus.dhis.org> <200103130746.IAA07580@sparta.research.kpn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103130746.IAA07580@sparta.research.kpn.com>; from K.H.C.vanHouten@research.kpn.com on Tue, Mar 13, 2001 at 08:46:43AM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Tue, Mar 13, 2001 at 08:46:43AM +0100, Houten K.H.C. van (Karel) wrote:

> Hope this helps.

Against my low blood pressure - yes ...

>     LOAD off    0x0000000000000000 vaddr 0x0000000000001000 paddr 
> 0x0000000000001000 align 2**12
>          filesz 0x000000000000a184 memsz 0x000000000000a184 flags r--

This PT_LOAD entry shouldn't even exist ...

>     LOAD off    0x000000000000b000 vaddr 0xffffffff88002000 paddr 
> 0xffffffff88002000 align 2**12
>          filesz 0x00000000001acd10 memsz 0x00000000001d25a4 flags rwx


>  15 .kstrtab      00007c24  0000000000001b00  0000000000001b00  00000b00  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, DATA
>  16 __ksymtab     00001a60  0000000000009724  0000000000009724  00008724  2**2
>                   CONTENTS, ALLOC, LOAD, READONLY, DATA

That's scary - these sections are explicitly mentioned in the linker
script and yet ld places them near address zero.  Oh pleassure, oh
garbage.

This can probably be fixed by changing the ldscript; can experiment what
it takes to get your ld to place all sections with a LOAD attribute placed
next to each other?  My ld behaves fine.

  Ralf

From owner-linux-mips@oss.sgi.com Tue Mar 13 10:18:30 2001
Received:  by oss.sgi.com id <S553698AbRCMSSU>;
	Tue, 13 Mar 2001 10:18:20 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:11016 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S553694AbRCMSSI>; Tue, 13 Mar 2001 10:18:08 -0800
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 <01K15QOTAXMI000JW2@research.kpn.com>; Tue,
 13 Mar 2001 19:18:06 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id TAA14585; Tue, 13 Mar 2001 19:18:05 +0100 (MET)
X-URL:  http://www-lsdm.research.kpn.com/~karel
Date:   Tue, 13 Mar 2001 19:18:05 +0100 (MET)
From:   Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Compile error with current CVS kernel
In-reply-to: <20010313152236.B1208@bacchus.dhis.org>
To:     ralf@oss.sgi.com (Ralf Baechle)
Cc:     bunk@fs.tum.de (Adrian Bunk), linux-mips@oss.sgi.com
Message-id: <200103131818.TAA14585@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
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi Ralf,

Ralf wrote:
> 
> That's scary - these sections are explicitly mentioned in the linker
> script and yet ld places them near address zero.  Oh pleassure, oh
> garbage.
> 
> This can probably be fixed by changing the ldscript; can experiment what
> it takes to get your ld to place all sections with a LOAD attribute placed
> next to each other?  My ld behaves fine.

Can you point me to a binutils version and/or patches that should
behave OK for native compiles?

-- 
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 owner-linux-mips@oss.sgi.com Tue Mar 13 10:39:50 2001
Received:  by oss.sgi.com id <S553711AbRCMSjb>;
	Tue, 13 Mar 2001 10:39:31 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:35592 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S553695AbRCMSjB>; Tue, 13 Mar 2001 10:39:01 -0800
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 <01K15REQGXS8000J7C@research.kpn.com>; Tue,
 13 Mar 2001 19:39:00 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id TAA14965; Tue, 13 Mar 2001 19:38:59 +0100 (MET)
X-URL:  http://www-lsdm.research.kpn.com/~karel
Date:   Tue, 13 Mar 2001 19:38:59 +0100 (MET)
From:   Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Compile error with current CVS kernel
In-reply-to: <20010313192711.F1208@bacchus.dhis.org>
To:     ralf@oss.sgi.com (Ralf Baechle)
Cc:     bunk@fs.tum.de (Adrian Bunk), linux-mips@oss.sgi.com
Message-id: <200103131838.TAA14965@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
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Hi,

Ralf wrote:
> Karel wrote:
> > Can you point me to a binutils version and/or patches that should
> > behave OK for native compiles?
> 
> It's not native vs. crosscompile; this problem with binutils hits in both
> cases and only older versions (which aren't suitable for use with
> glibc 2.2 ...) are not affected.

I've just finished compiling gcc 3.0, from CVS, and am now trying
to rebuild the kernel with this compiler (same binutils, from cvs).
Keith mentioned he did succeed in building a kernel with these...

-- 
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 owner-linux-mips@oss.sgi.com Tue Mar 13 10:41:01 2001
Received:  by oss.sgi.com id <S553717AbRCMSkv>;
	Tue, 13 Mar 2001 10:40:51 -0800
Received: from hermes.research.kpn.com ([139.63.192.8]:39176 "EHLO
        hermes.research.kpn.com") by oss.sgi.com with ESMTP
	id <S553709AbRCMSkl>; Tue, 13 Mar 2001 10:40:41 -0800
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 <01K15RGRSCMS000JW2@research.kpn.com>; Tue,
 13 Mar 2001 19:40:39 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id TAA14996; Tue, 13 Mar 2001 19:40:37 +0100 (MET)
X-URL:  http://www-lsdm.research.kpn.com/~karel
Date:   Tue, 13 Mar 2001 19:40:37 +0100 (MET)
From:   Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Compile error with current CVS kernel
In-reply-to: <20010313192711.F1208@bacchus.dhis.org>
To:     ralf@oss.sgi.com (Ralf Baechle)
Cc:     bunk@fs.tum.de (Adrian Bunk), linux-mips@oss.sgi.com
Message-id: <200103131840.TAA14996@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
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

While I wrote my previous mail:

{standard input}: Assembler messages:
{standard input}:1993: Error: expression too complex
{standard input}:1993: Fatal error: internal Error, line 1823, ./config/tc-mips.c
make[3]: *** [vgacon.o] Error 1

Again.... :-(

-- 
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 owner-linux-mips@oss.sgi.com Tue Mar 13 12:36:42 2001
Received:  by oss.sgi.com id <S553672AbRCMUgb>;
	Tue, 13 Mar 2001 12:36:31 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:39665 "EHLO
        hermes.mvista.com") by oss.sgi.com with ESMTP id <S553661AbRCMUgO>;
	Tue, 13 Mar 2001 12:36:14 -0800
Received: from mvista.com (IDENT:ppopov@zeus.mvista.com [10.0.0.112])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2DKVN318608
	for <linux-mips@oss.sgi.com>; Tue, 13 Mar 2001 12:31:24 -0800
Message-ID: <3AAE846E.916F16BE@mvista.com>
Date:   Tue, 13 Mar 2001 12:34:54 -0800
From:   Pete Popov <ppopov@mvista.com>
Organization: Monta Vista Software
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-14 i586)
X-Accept-Language: en, bg
MIME-Version: 1.0
To:     "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: rdev
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing


Can you "rdev vmlinux /dev/hda1" a mips kernel and have it work (have
the kernel recognize that its root fs is /dev/hda1 without passing any
command line arguments)?  I tried it and it doesn't seem to work, unless
you have to specify offset or other options that I don't know about.

Pete

From owner-linux-mips@oss.sgi.com Tue Mar 13 13:17:11 2001
Received:  by oss.sgi.com id <S553698AbRCMVRB>;
	Tue, 13 Mar 2001 13:17:01 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:32508 "EHLO
        hermes.mvista.com") by oss.sgi.com with ESMTP id <S553667AbRCMVQk>;
	Tue, 13 Mar 2001 13:16:40 -0800
Received: from mvista.com (IDENT:ppopov@zeus.mvista.com [10.0.0.112])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2DLBl321039;
	Tue, 13 Mar 2001 13:11:47 -0800
Message-ID: <3AAE8DE7.D6F5AB9E@mvista.com>
Date:   Tue, 13 Mar 2001 13:15:19 -0800
From:   Pete Popov <ppopov@mvista.com>
Organization: Monta Vista Software
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-14 i586)
X-Accept-Language: en, bg
MIME-Version: 1.0
To:     Karel van Houten <K.H.C.vanHouten@research.kpn.com>
CC:     Ralf Baechle <ralf@oss.sgi.com>, Adrian Bunk <bunk@fs.tum.de>,
        linux-mips@oss.sgi.com, Daniel Jacobowitz <djacobowitz@mvista.com>
Subject: Re: Compile error with current CVS kernel
References: <200103131840.TAA14996@sparta.research.kpn.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

Karel van Houten wrote:
> 
> While I wrote my previous mail:
> 
> {standard input}: Assembler messages:
> {standard input}:1993: Error: expression too complex
> {standard input}:1993: Fatal error: internal Error, line 1823, ./config/tc-mips.c
> make[3]: *** [vgacon.o] Error 1
> 
> Again.... :-(

We encountered this exact problem a few days ago. One of our engineers
tracked it down to the combination of complex macros and inline
functions in arch/mips/io.h.  He pinpointed precisely the problem to a
rare gcc "bug", which is not likely to get fixed anytime soon. I believe
a patch was already submitted to Ralf, but it will have to get tested.

Pete

From owner-linux-mips@oss.sgi.com Tue Mar 13 13:32:31 2001
Received:  by oss.sgi.com id <S553709AbRCMVcV>;
	Tue, 13 Mar 2001 13:32:21 -0800
Received: from u-89-10.karlsruhe.ipdial.viaginterkom.de ([62.180.10.89]:5114
        "EHLO dea.waldorf-gmbh.de") by oss.sgi.com with ESMTP
	id <S553695AbRCMVcH>; Tue, 13 Mar 2001 13:32:07 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2DIRBb19054;
	Tue, 13 Mar 2001 19:27:11 +0100
Date:   Tue, 13 Mar 2001 19:27:11 +0100
From:   Ralf Baechle <ralf@oss.sgi.com>
To:     Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Cc:     bunk@fs.tum.de (Adrian Bunk), linux-mips@oss.sgi.com
Subject: Re: Compile error with current CVS kernel
Message-ID: <20010313192711.F1208@bacchus.dhis.org>
References: <20010313152236.B1208@bacchus.dhis.org> <200103131818.TAA14585@sparta.research.kpn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103131818.TAA14585@sparta.research.kpn.com>; from K.H.C.vanHouten@research.kpn.com on Tue, Mar 13, 2001 at 07:18:05PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing

On Tue, Mar 13, 2001 at 07:18:05PM +0100, Karel van Houten wrote:

> > That's scary - these sections are explicitly mentioned in the linker
> > script and yet ld places them near address zero.  Oh pleassure, oh
> > garbage.
> > 
> > This can probably be fixed by changing the ldscript; can experiment what
> > it takes to get your ld to place all sections with a LOAD attribute placed
> > next to each other?  My ld behaves fine.
> 
> Can you point me to a binutils version and/or patches that should
> behave OK for native compiles?

It's not native vs. crosscompile; this problem with binutils hits in both
cases and only older versions (which aren't suitable for use with
glibc 2.2 ...) are not affected.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 14 01:07:46 2001
Received:  by oss.sgi.com id <S553706AbRCNJHg>;
	Wed, 14 Mar 2001 01:07:36 -0800
Received: from woody.ichilton.co.uk ([216.29.174.40]:5892 "HELO
        woody.ichilton.co.uk") by oss.sgi.com with SMTP id <S553678AbRCNJHN>;
	Wed, 14 Mar 2001 01:07:13 -0800
Received: by woody.ichilton.co.uk (Postfix, from userid 1000)
	id 22A067D1D; Wed, 14 Mar 2001 09:07:12 +0000 (GMT)
Date:   Wed, 14 Mar 2001 09:07:12 +0000
From:   Ian Chilton <ian@ichilton.co.uk>
To:     linux-mips@oss.sgi.com
Subject: linuxmips.ichilton.co.uk Downtime
Message-ID: <20010314090712.A413@woody.ichilton.co.uk>
Reply-To: Ian Chilton <ian@ichilton.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.13i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 795
Lines: 25

Hello,

Sorry to those who noticed the site was down.

There was a big power failure (2 hours) and woody didn't come back up
after it.

It's fixed now, except for my 190 days uptime  :-(


Bye for Now,

Ian


                                  \|||/ 
                                  (o o)
 /-----------------------------ooO-(_)-Ooo----------------------------\
 |  Ian Chilton                    E-Mail: ian@ichilton.co.uk         |
 |  IRC Nick: GadgetMan            Backup: ichilton@www.linux.org.uk  |
 |  ICQ: 16007717 / 104665842      Web   : http://www.ichilton.co.uk  |
 |--------------------------------------------------------------------|
 |       For people who like peace and quiet: a phoneless cord        |
 \--------------------------------------------------------------------/


From owner-linux-mips@oss.sgi.com Wed Mar 14 04:58:16 2001
Received:  by oss.sgi.com id <S553742AbRCNM55>;
	Wed, 14 Mar 2001 04:57:57 -0800
Received: from u-21-20.karlsruhe.ipdial.viaginterkom.de ([62.180.20.21]:15612
        "EHLO dea.waldorf-gmbh.de") by oss.sgi.com with ESMTP
	id <S553717AbRCNM5q>; Wed, 14 Mar 2001 04:57:46 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2ECvQR30821;
	Wed, 14 Mar 2001 13:57:26 +0100
Date:   Wed, 14 Mar 2001 13:57:26 +0100
From:   Ralf Baechle <ralf@oss.sgi.com>
To:     Pete Popov <ppopov@mvista.com>
Cc:     "linux-mips@oss.sgi.com" <linux-mips@oss.sgi.com>
Subject: Re: rdev
Message-ID: <20010314135726.B30630@bacchus.dhis.org>
References: <3AAE846E.916F16BE@mvista.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AAE846E.916F16BE@mvista.com>; from ppopov@mvista.com on Tue, Mar 13, 2001 at 12:34:54PM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 389
Lines: 10

On Tue, Mar 13, 2001 at 12:34:54PM -0800, Pete Popov wrote:

> Can you "rdev vmlinux /dev/hda1" a mips kernel and have it work (have
> the kernel recognize that its root fs is /dev/hda1 without passing any
> command line arguments)?  I tried it and it doesn't seem to work, unless
> you have to specify offset or other options that I don't know about.

No, rdev works only on x86.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 14 05:47:36 2001
Received:  by oss.sgi.com id <S553661AbRCNNr1>;
	Wed, 14 Mar 2001 05:47:27 -0800
Received: from NEVYN.RES.CMU.EDU ([128.2.145.225]:50852 "EHLO nevyn.them.org")
	by oss.sgi.com with ESMTP id <S553675AbRCNNrD>;
	Wed, 14 Mar 2001 05:47:03 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dBbl-0006gk-00
	for <linux-mips@oss.sgi.com>; Wed, 14 Mar 2001 08:46:33 -0500
Date:   Wed, 14 Mar 2001 08:46:33 -0500
From:   Daniel Jacobowitz <dan@debian.org>
To:     linux-mips@oss.sgi.com
Subject: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314084633.A25674@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 1520
Lines: 45

I've been trying for a couple of days now to build a MIPS kernel with
CONFIG_CPU_NEVADA, and I can't get it to work.  r4k_switch.S produces a
pile of "opcode not supported by processor" errors.

First, I figured out where the problem is coming from:

r4k_switch.S is included for all processors but the r3000 and r3912. 
Is that really correct?  Then, it references FPU_SAVE_DOUBLE, which
includes:

        cfc1    tmp,  fcr31;                    \
        sdc1    $f0,  (THREAD_FPU + 0x000)(thread); \
        sdc1    $f2,  (THREAD_FPU + 0x010)(thread); \


The sdc1 instruction in binutils is flagged like this:
      if (mips_cpu == CPU_R4650)
        {
          as_bad (_("opcode not supported on this processor"));
          return;
        }

And the IVR sets CONFIG_CPU_NEVADA, which produces
ifdef CONFIG_CPU_NEVADA
GCCFLAGS        += -mcpu=r8000 -mips2 -Wa,--trap -mmad
endif

and -mmad becomes -m4650 to the assembler.


Something is fishy here.  Anyone know what?  I have a suspicion that we
need to change the way we invoke binutils.  Making -mmad imply -m4650
just seems lame, since -m4650 also implies -msingle-float, and I don't
think that's right for the r8000.

I worked back in time in gcc, binutils, and kernel sources and I
couldn't figure out what's changed - I'm sure this worked at some
point.

Any ideas?

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

From owner-linux-mips@oss.sgi.com Wed Mar 14 05:58:27 2001
Received:  by oss.sgi.com id <S553747AbRCNN6S>;
	Wed, 14 Mar 2001 05:58:18 -0800
Received: from NEVYN.RES.CMU.EDU ([128.2.145.225]:54692 "EHLO nevyn.them.org")
	by oss.sgi.com with ESMTP id <S553740AbRCNN6K>;
	Wed, 14 Mar 2001 05:58:10 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dBmT-0006kF-00
	for <linux-mips@oss.sgi.com>; Wed, 14 Mar 2001 08:57:37 -0500
Date:   Wed, 14 Mar 2001 08:57:37 -0500
From:   Daniel Jacobowitz <dan@debian.org>
To:     linux-mips@oss.sgi.com
Subject: [patch] <asm/io.h> troubles - [dmj+@andrew.cmu.edu: Inlining bug on MIPS - both 2.95.3 and 3.0 branches]
Message-ID: <20010314085737.A25751@nevyn.them.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="+HP7ph2BbKc20aGI"
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 7817
Lines: 187


--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

I submitted the following GCC bug report a couple of days ago, and had
a discussion with Geoff Keating about asm constraints.  It looks as if
the problem I was seeing is a (very) longstanding bug in GCC's reload
pass, and is very unlikely to get fixed.

How does this workaround patch look?  I changed the constant-using
functions from io.h into macros.  I'm not thrilled by it, but it does
seem to be correct.  I have a suspicion we could change the confusing
"i#*X" constraints back to simply "i" - they were part of my effort to
make the inline functions work, before I was defeated by reload.  It
should be correct either way, though. 

----- Forwarded message from Daniel Jacobowitz <dmj+@andrew.cmu.edu> -----

Date: Fri, 9 Mar 2001 18:10:02 -0500
From: Daniel Jacobowitz <dmj+@andrew.cmu.edu>
Subject: Inlining bug on MIPS - both 2.95.3 and 3.0 branches
To: gcc-bugs@gcc.gnu.org
Mail-Followup-To: gcc-bugs@gcc.gnu.org

I've put together a testcase for a bug exposed by (accidentally) trying to
build a mipsel-linux kernel with VGA console enabled.

The problem seems to be that we lift a constant term out of a loop into a
spare register.  Of course, __builtin_constant_p is still true for it, so in
the original case we chose to use an inline function which required that
argument to be constant.  We inline the function using the scratch register
instead of the constant, and we lose.

The inline function seems to me to be doing something dodgy - it specifies
the operand with the constraint "ir", implying that a register would be
acceptable.  We're lying to the compiler, so it's not that startling that it
bites us.  On the other hand, there's no need to waste a register on this,
so I'm not sure why the constant gets stored in a temporary.

Is the invalid result a compiler bug?  I'd say that there is at least a
small optimization bug here, but the "ir" constraint might mean that the
compiler's doing everything as best it can.  There doesn't seem to be a way
to use an inline function safely and specify a constant constraint on one
argument to the function - does this need to be a macro?

Dan

----- End forwarded message -----

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

--+HP7ph2BbKc20aGI
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hhl-kernel-2.4.2-1.64.patch"

Version 1.64  (Mon Mar 12 2001 drow <source@mvista.com>)
    Use macros instead of inline functions for constant io macros, and
    change "ir" to "i#*X" on Geoff's advice.


# This is a BitKeeper generated patch for the following project:
# Project Name: HHL 2.4.2 kernel sources, based on linux-2.4.2
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#	linux/include/asm-mips/io.h	1.2     -> 1.3    
diff -Nru a/linux/include/asm-mips/io.h b/linux/include/asm-mips/io.h
--- a/linux/include/asm-mips/io.h	Mon Mar 12 16:52:50 2001
+++ b/linux/include/asm-mips/io.h	Mon Mar 12 16:52:50 2001
@@ -248,12 +248,21 @@
 
 #define __OUT(m,s,w) \
 __OUT1(s) __OUT2(m) : : "r" (__ioswab##w(value)), "i" (0), "r" (mips_io_port_base+port)); } \
-__OUT1(s##c) __OUT2(m) : : "r" (__ioswab##w(value)), "ir" (port), "r" (mips_io_port_base)); } \
 __OUT1(s##_p) __OUT2(m) : : "r" (__ioswab##w(value)), "i" (0), "r" (mips_io_port_base+port)); \
-	SLOW_DOWN_IO; } \
-__OUT1(s##c_p) __OUT2(m) : : "r" (__ioswab##w(value)), "ir" (port), "r" (mips_io_port_base)); \
 	SLOW_DOWN_IO; }
 
+#define __OUTMAC(m,w,value,port) ({ __OUT2(m) : : "r" (__ioswab##w(value)), "i#*X" (port), \
+		"r" (mips_io_port_base)); })
+#define __OUTMAC_P(m,w,value,port) ({ __OUT2(m) : : "r" (__ioswab##w(value)), "i#*X" (port), \
+		"r" (mips_io_port_base)); SLOW_DOWN_IO; })
+
+#define __outbc(value,port) __OUTMAC(b,8,value,port)
+#define __outwc(value,port) __OUTMAC(h,16,value,port)
+#define __outlc(value,port) __OUTMAC(w,32,value,port)
+#define __outbc_p(value,port) __OUTMAC_P(b,8,value,port)
+#define __outwc_p(value,port) __OUTMAC_P(h,16,value,port)
+#define __outlc_p(value,port) __OUTMAC_P(w,32,value,port)
+
 #define __IN1(t,s) \
 extern __inline__ t __in##s(unsigned int port) { t _v;
 
@@ -265,14 +274,24 @@
 
 #define __IN(t,m,s,w) \
 __IN1(t,s) __IN2(m) : "=r" (_v) : "i" (0), "r" (mips_io_port_base+port)); return __ioswab##w(_v); } \
-__IN1(t,s##c) __IN2(m) : "=r" (_v) : "ir" (port), "r" (mips_io_port_base)); return __ioswab##w(_v); } \
-__IN1(t,s##_p) __IN2(m) : "=r" (_v) : "i" (0), "r" (mips_io_port_base+port)); SLOW_DOWN_IO; return __ioswab##w(_v); } \
-__IN1(t,s##c_p) __IN2(m) : "=r" (_v) : "ir" (port), "r" (mips_io_port_base)); SLOW_DOWN_IO; return __ioswab##w(_v); }
+__IN1(t,s##_p) __IN2(m) : "=r" (_v) : "i" (0), "r" (mips_io_port_base+port)); SLOW_DOWN_IO; return __ioswab##w(_v); }
+
+#define __INMAC(t,m,w,port) ({ t _v; __IN2(m) : "=r" (_v) : "i#*X" (port), \
+		"r" (mips_io_port_base)); __ioswab##w(_v); })
+#define __INMAC_P(t,m,w,port) ({ t _v; __IN2(m) : "=r" (_v) : "i#*X" (port), \
+		"r" (mips_io_port_base)); SLOW_DOWN_IO; __ioswab##w(_v); })
+
+#define __inbc(port) __INMAC(unsigned char,b,8,port)
+#define __inwc(port) __INMAC(unsigned short,h,16,port)
+#define __inlc(port) __INMAC(unsigned int,w,32,port)
+#define __inbc_p(port) __INMAC_P(unsigned char,b,8,port)
+#define __inwc_p(port) __INMAC_P(unsigned short,h,16,port)
+#define __inlc_p(port) __INMAC_P(unsigned int,w,32,port)
 
 #define __INS1(s) \
 extern inline void __ins##s(unsigned int port, void * addr, unsigned long count) {
 
-#define __INS2(m) \
+#define __INS2(m,count) \
 if (count) \
 __asm__ __volatile__ ( \
 	".set\tnoreorder\n\t" \
@@ -286,21 +305,26 @@
 	".set\treorder"
 
 #define __INS(m,s,i) \
-__INS1(s) __INS2(m) \
+__INS1(s) __INS2(m,count) \
 	: "=r" (addr), "=r" (count) \
 	: "0" (addr), "1" (count), "i" (0), \
 	  "r" (mips_io_port_base+port), "I" (i) \
-	: "$1");} \
-__INS1(s##c) __INS2(m) \
-	: "=r" (addr), "=r" (count) \
-	: "0" (addr), "1" (count), "ir" (port), \
-	  "r" (mips_io_port_base), "I" (i) \
 	: "$1");}
 
+#define __INSMAC(m,i,port,addr,count) ({ void *_a = (addr); unsigned long _c = (count); \
+	__INS2(m,_c) \
+	: "=r" (_a), "=r" (_c) \
+	: "0" (_a), "1" (_c), "i#*X" (port), \
+	  "r" (mips_io_port_base), "I" (i) \
+	: "$1"); })
+#define __insbc(port,addr,count) __INSMAC(b,1,port,addr,count)
+#define __inswc(port,addr,count) __INSMAC(h,2,port,addr,count)
+#define __inslc(port,addr,count) __INSMAC(w,4,port,addr,count)
+
 #define __OUTS1(s) \
 extern inline void __outs##s(unsigned int port, const void * addr, unsigned long count) {
 
-#define __OUTS2(m) \
+#define __OUTS2(m,count) \
 if (count) \
 __asm__ __volatile__ ( \
         ".set\tnoreorder\n\t" \
@@ -314,14 +338,19 @@
         ".set\treorder"
 
 #define __OUTS(m,s,i) \
-__OUTS1(s) __OUTS2(m) \
+__OUTS1(s) __OUTS2(m,count) \
 	: "=r" (addr), "=r" (count) \
 	: "0" (addr), "1" (count), "i" (0), "r" (mips_io_port_base+port), "I" (i) \
-	: "$1");} \
-__OUTS1(s##c) __OUTS2(m) \
-	: "=r" (addr), "=r" (count) \
-	: "0" (addr), "1" (count), "ir" (port), "r" (mips_io_port_base), "I" (i) \
 	: "$1");}
+
+#define __OUTSMAC(m,i,port,addr,count) ({ void *_a = (addr); unsigned long _c = (count); \
+	__OUTS2(m,_c) \
+	: "=r" (_a), "=r" (_c) \
+	: "0" (_a), "1" (_c), "i#*X" (port), "r" (mips_io_port_base), "I" (i) \
+	: "$1"); })
+#define __outsbc(port,addr,count) __OUTSMAC(b,1,port,addr,count)
+#define __outswc(port,addr,count) __OUTSMAC(h,2,port,addr,count)
+#define __outslc(port,addr,count) __OUTSMAC(w,4,port,addr,count)
 
 __IN(unsigned char,b,b,8)
 __IN(unsigned short,h,w,16)

--+HP7ph2BbKc20aGI--

From owner-linux-mips@oss.sgi.com Wed Mar 14 10:59:58 2001
Received:  by oss.sgi.com id <S553788AbRCNS7t>;
	Wed, 14 Mar 2001 10:59:49 -0800
Received: from u-203-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.203]:35580
        "EHLO dea.waldorf-gmbh.de") by oss.sgi.com with ESMTP
	id <S553776AbRCNS7h>; Wed, 14 Mar 2001 10:59:37 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2EIxJM02180;
	Wed, 14 Mar 2001 19:59:19 +0100
Date:   Wed, 14 Mar 2001 19:59:19 +0100
From:   Ralf Baechle <ralf@oss.sgi.com>
To:     Daniel Jacobowitz <dan@debian.org>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314195919.A1911@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010314084633.A25674@nevyn.them.org>; from dan@debian.org on Wed, Mar 14, 2001 at 08:46:33AM -0500
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 2537
Lines: 69

On Wed, Mar 14, 2001 at 08:46:33AM -0500, Daniel Jacobowitz wrote:

> I've been trying for a couple of days now to build a MIPS kernel with
> CONFIG_CPU_NEVADA, and I can't get it to work.  r4k_switch.S produces a
> pile of "opcode not supported by processor" errors.

Known and unsolved problem.

> First, I figured out where the problem is coming from:
> 
> r4k_switch.S is included for all processors but the r3000 and r3912. 
> Is that really correct?  Then, it references FPU_SAVE_DOUBLE, which
> includes:

Yes.  Originally written for the R4000 the Dr. Franksteins at MIPS in the
meantime also have taken r4k-style fpus and put them into 32-bit processors,

>         cfc1    tmp,  fcr31;                    \
>         sdc1    $f0,  (THREAD_FPU + 0x000)(thread); \
>         sdc1    $f2,  (THREAD_FPU + 0x010)(thread); \
> 
> 
> The sdc1 instruction in binutils is flagged like this:
>       if (mips_cpu == CPU_R4650)
>         {
>           as_bad (_("opcode not supported on this processor"));
>           return;
>         }
> 
> And the IVR sets CONFIG_CPU_NEVADA, which produces
> ifdef CONFIG_CPU_NEVADA
> GCCFLAGS        += -mcpu=r8000 -mips2 -Wa,--trap -mmad
> endif
> 
> and -mmad becomes -m4650 to the assembler.

Which is pretty much bs because mmad may have been introduced with the
R4640 / R4650 but isn't only available on this processor.  From an ISA
view it's a processor specific extension and as such it should be
controlled by a separate option.  Gcc has -mmad which is fine but passing
it on to as as -m4650 is borken.

> Something is fishy here.  Anyone know what?  I have a suspicion that we
> need to change the way we invoke binutils.  Making -mmad imply -m4650
> just seems lame, since -m4650 also implies -msingle-float, and I don't
> think that's right for the r8000.

R8000 is serious fp, indeed.

> I worked back in time in gcc, binutils, and kernel sources and I
> couldn't figure out what's changed - I'm sure this worked at some
> point.

You'll have to go back far in time.  I introduced the use of -mmad for
Nevada-class CPUs in late summor '97.

As a second bug which makes this one even more annoying something like

	.set	mips3
	sdc1    $f2, (a0)
	.set	mips0

also doesn't work - the assembler will still throw an "opcode not supported
on this processor" message.  After all MIPS III means double precission fp.
And passing additional assembler options with -Wa,foo doesn't help either
in this case so without the necessary gcc / assembler changes this
optimization is lost for now.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 14 11:06:19 2001
Received:  by oss.sgi.com id <S553797AbRCNTGK>;
	Wed, 14 Mar 2001 11:06:10 -0800
Received: from NEVYN.RES.CMU.EDU ([128.2.145.225]:20647 "EHLO nevyn.them.org")
	by oss.sgi.com with ESMTP id <S553793AbRCNTF6>;
	Wed, 14 Mar 2001 11:05:58 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dGaP-0007gy-00; Wed, 14 Mar 2001 14:05:29 -0500
Date:   Wed, 14 Mar 2001 14:05:29 -0500
From:   Daniel Jacobowitz <dan@debian.org>
To:     Ralf Baechle <ralf@oss.sgi.com>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314140529.A29525@nevyn.them.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
In-Reply-To: <20010314195919.A1911@bacchus.dhis.org>; from ralf@oss.sgi.com on Wed, Mar 14, 2001 at 07:59:19PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 2677
Lines: 69

On Wed, Mar 14, 2001 at 07:59:19PM +0100, Ralf Baechle wrote:
> On Wed, Mar 14, 2001 at 08:46:33AM -0500, Daniel Jacobowitz wrote:
> 
> > I've been trying for a couple of days now to build a MIPS kernel with
> > CONFIG_CPU_NEVADA, and I can't get it to work.  r4k_switch.S produces a
> > pile of "opcode not supported by processor" errors.
> 
> Known and unsolved problem.

> >         cfc1    tmp,  fcr31;                    \
> >         sdc1    $f0,  (THREAD_FPU + 0x000)(thread); \
> >         sdc1    $f2,  (THREAD_FPU + 0x010)(thread); \
> > 
> > 
> > The sdc1 instruction in binutils is flagged like this:
> >       if (mips_cpu == CPU_R4650)
> >         {
> >           as_bad (_("opcode not supported on this processor"));
> >           return;
> >         }
> > 
> > And the IVR sets CONFIG_CPU_NEVADA, which produces
> > ifdef CONFIG_CPU_NEVADA
> > GCCFLAGS        += -mcpu=r8000 -mips2 -Wa,--trap -mmad
> > endif
> > 
> > and -mmad becomes -m4650 to the assembler.
> 
> Which is pretty much bs because mmad may have been introduced with the
> R4640 / R4650 but isn't only available on this processor.  From an ISA
> view it's a processor specific extension and as such it should be
> controlled by a separate option.  Gcc has -mmad which is fine but passing
> it on to as as -m4650 is borken.

OK, so that needs to change.  That's pretty easy to do, at least in our
local toolchains.

> > I worked back in time in gcc, binutils, and kernel sources and I
> > couldn't figure out what's changed - I'm sure this worked at some
> > point.
> 
> You'll have to go back far in time.  I introduced the use of -mmad for
> Nevada-class CPUs in late summor '97.
> 
> As a second bug which makes this one even more annoying something like
> 
> 	.set	mips3
> 	sdc1    $f2, (a0)
> 	.set	mips0
> 
> also doesn't work - the assembler will still throw an "opcode not supported
> on this processor" message.  After all MIPS III means double precission fp.
> And passing additional assembler options with -Wa,foo doesn't help either
> in this case so without the necessary gcc / assembler changes this
> optimization is lost for now.

Does -mmad make a sufficient difference on these processors to bother
fixing it?

If it does, I can probably whip up a -mmad patch to binutils to allow
those opcodes - or I could introduce -mnevada, or whatever the
appropriate term would be, to mean "r8000 with the mad* extensions". 
In fact, that would probably be easiest, and sounds like the most
correct.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

From owner-linux-mips@oss.sgi.com Wed Mar 14 11:21:31 2001
Received:  by oss.sgi.com id <S553795AbRCNTVW>;
	Wed, 14 Mar 2001 11:21:22 -0800
Received: from u-203-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.203]:48892
        "EHLO dea.waldorf-gmbh.de") by oss.sgi.com with ESMTP
	id <S553779AbRCNTVH>; Wed, 14 Mar 2001 11:21:07 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2EJKwL02386;
	Wed, 14 Mar 2001 20:20:58 +0100
Date:   Wed, 14 Mar 2001 20:20:58 +0100
From:   Ralf Baechle <ralf@oss.sgi.com>
To:     Daniel Jacobowitz <dan@debian.org>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314202058.B1911@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010314140529.A29525@nevyn.them.org>; from dan@debian.org on Wed, Mar 14, 2001 at 02:05:29PM -0500
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 1828
Lines: 46

On Wed, Mar 14, 2001 at 02:05:29PM -0500, Daniel Jacobowitz wrote:

> OK, so that needs to change.  That's pretty easy to do, at least in our
> local toolchains.

If it's only in your local toolchains, it's lost.  Send your changes to
the FSF!

> > > I worked back in time in gcc, binutils, and kernel sources and I
> > > couldn't figure out what's changed - I'm sure this worked at some
> > > point.
> > 
> > You'll have to go back far in time.  I introduced the use of -mmad for
> > Nevada-class CPUs in late summor '97.
> > 
> > As a second bug which makes this one even more annoying something like
> > 
> > 	.set	mips3
> > 	sdc1    $f2, (a0)
> > 	.set	mips0
> > 
> > also doesn't work - the assembler will still throw an "opcode not supported
> > on this processor" message.  After all MIPS III means double precission fp.
> > And passing additional assembler options with -Wa,foo doesn't help either
> > in this case so without the necessary gcc / assembler changes this
> > optimization is lost for now.
> 
> Does -mmad make a sufficient difference on these processors to bother
> fixing it?

Not for the kernel but it's a sufficiently important optimization for some
specialised applications (signal processing type etc.) that it should be
fixed.

> If it does, I can probably whip up a -mmad patch to binutils to allow
> those opcodes - or I could introduce -mnevada, or whatever the
> appropriate term would be, to mean "r8000 with the mad* extensions". 
> In fact, that would probably be easiest, and sounds like the most
> correct.

Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
because the Nevada CPUs have _somewhat_ similar scheduling properties
to the R8000.  This of it as an independant ISA expension which can
be used with an arbitrary MIPS processor - even a R3000 processor.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 14 11:52:51 2001
Received:  by oss.sgi.com id <S553800AbRCNTwl>;
	Wed, 14 Mar 2001 11:52:41 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:30192 "EHLO
        hermes.mvista.com") by oss.sgi.com with ESMTP id <S553779AbRCNTwY>;
	Wed, 14 Mar 2001 11:52:24 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2EJlV326000;
	Wed, 14 Mar 2001 11:47:31 -0800
Message-ID: <3AAFCB24.E7910A9B@mvista.com>
Date:   Wed, 14 Mar 2001 11:48:52 -0800
From:   Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To:     Ralf Baechle <ralf@oss.sgi.com>
CC:     Daniel Jacobowitz <dan@debian.org>, linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 828
Lines: 20

Ralf Baechle wrote:

> > If it does, I can probably whip up a -mmad patch to binutils to allow
> > those opcodes - or I could introduce -mnevada, or whatever the
> > appropriate term would be, to mean "r8000 with the mad* extensions".
> > In fact, that would probably be easiest, and sounds like the most
> > correct.
> 
> Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> because the Nevada CPUs have _somewhat_ similar scheduling properties
> to the R8000.  This of it as an independant ISA expension which can
> be used with an arbitrary MIPS processor - even a R3000 processor.
> 

Although -mmad is generic, why do we need it for kernel compiling?  If no good
reason, I propose to remove -mmad from the Makefile for Nevada chip.

Of course, we still need to fix the -mmad implying -m4650 bug ...

Jun

From owner-linux-mips@oss.sgi.com Wed Mar 14 12:02:51 2001
Received:  by oss.sgi.com id <S553802AbRCNUCm>;
	Wed, 14 Mar 2001 12:02:42 -0800
Received: from u-203-18.karlsruhe.ipdial.viaginterkom.de ([62.180.18.203]:16893
        "EHLO dea.waldorf-gmbh.de") by oss.sgi.com with ESMTP
	id <S553796AbRCNUCX>; Wed, 14 Mar 2001 12:02:23 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2EK27M02757;
	Wed, 14 Mar 2001 21:02:07 +0100
Date:   Wed, 14 Mar 2001 21:02:07 +0100
From:   Ralf Baechle <ralf@oss.sgi.com>
To:     Jun Sun <jsun@mvista.com>
Cc:     Daniel Jacobowitz <dan@debian.org>, linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314210207.C1911@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <3AAFCB24.E7910A9B@mvista.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AAFCB24.E7910A9B@mvista.com>; from jsun@mvista.com on Wed, Mar 14, 2001 at 11:48:52AM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 489
Lines: 14

On Wed, Mar 14, 2001 at 11:48:52AM -0800, Jun Sun wrote:

> Although -mmad is generic, why do we need it for kernel compiling?  If no good
> reason, I propose to remove -mmad from the Makefile for Nevada chip.

The compiler actually emits a few mmad instructions, so this instruction
actually make a small difference.

> Of course, we still need to fix the -mmad implying -m4650 bug ...

I guess I leave the -mmad flag in the kernel source as reminder for somebody
to fix this ...

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 14 12:57:11 2001
Received:  by oss.sgi.com id <S553814AbRCNU5B>;
	Wed, 14 Mar 2001 12:57:01 -0800
Received: from NEVYN.RES.CMU.EDU ([128.2.145.225]:29608 "EHLO nevyn.them.org")
	by oss.sgi.com with ESMTP id <S553817AbRCNU4q>;
	Wed, 14 Mar 2001 12:56:46 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dIJd-0008Cy-00; Wed, 14 Mar 2001 15:56:17 -0500
Date:   Wed, 14 Mar 2001 15:56:17 -0500
From:   Daniel Jacobowitz <dan@debian.org>
To:     Ralf Baechle <ralf@oss.sgi.com>
Cc:     linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010314155617.A31541@nevyn.them.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
In-Reply-To: <20010314202058.B1911@bacchus.dhis.org>; from ralf@oss.sgi.com on Wed, Mar 14, 2001 at 08:20:58PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 1478
Lines: 34

On Wed, Mar 14, 2001 at 08:20:58PM +0100, Ralf Baechle wrote:
> On Wed, Mar 14, 2001 at 02:05:29PM -0500, Daniel Jacobowitz wrote:
> 
> > OK, so that needs to change.  That's pretty easy to do, at least in our
> > local toolchains.
> 
> If it's only in your local toolchains, it's lost.  Send your changes to
> the FSF!

Of course.  Let me clarify that statement - it's easy to do in a way
that would be acceptable in our local toolchains, and somewhat harder
to do in a way acceptable to the FSF.

In this case, though, not much harder.  I'm going to try to have a
-mmad patch later today for binutils, and a trivial patch for GCC to
use it instead of -m4650.

> > If it does, I can probably whip up a -mmad patch to binutils to allow
> > those opcodes - or I could introduce -mnevada, or whatever the
> > appropriate term would be, to mean "r8000 with the mad* extensions". 
> > In fact, that would probably be easiest, and sounds like the most
> > correct.
> 
> Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> because the Nevada CPUs have _somewhat_ similar scheduling properties
> to the R8000.  This of it as an independant ISA expension which can
> be used with an arbitrary MIPS processor - even a R3000 processor.

Oh, I see.  Thanks for the clarification.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

From owner-linux-mips@oss.sgi.com Wed Mar 14 14:08:32 2001
Received:  by oss.sgi.com id <S553828AbRCNWIN>;
	Wed, 14 Mar 2001 14:08:13 -0800
Received: from mx2.mips.com ([206.31.31.227]:18845 "EHLO mx2.mips.com")
	by oss.sgi.com with ESMTP id <S553825AbRCNWIA>;
	Wed, 14 Mar 2001 14:08:00 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx2.mips.com (8.9.3/8.9.0) with ESMTP id OAA24456;
	Wed, 14 Mar 2001 14:07:59 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id OAA28323;
	Wed, 14 Mar 2001 14:07:56 -0800 (PST)
Message-ID: <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>
From:   "Kevin D. Kissell" <kevink@mips.com>
To:     "Ralf Baechle" <ralf@oss.sgi.com>
Cc:     <linux-mips@oss.sgi.com>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Date:   Wed, 14 Mar 2001 23:11:47 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 1744
Lines: 37

> > If it does, I can probably whip up a -mmad patch to binutils to allow
> > those opcodes - or I could introduce -mnevada, or whatever the
> > appropriate term would be, to mean "r8000 with the mad* extensions". 
> > In fact, that would probably be easiest, and sounds like the most
> > correct.
> 
> Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> because the Nevada CPUs have _somewhat_ similar scheduling properties
> to the R8000.  This of it as an independant ISA expension which can
> be used with an arbitrary MIPS processor - even a R3000 processor.

In the interests of historical accuracy and general pedantry,
let me point out that -mcpu=r8000 is in effect a rather klugy
way of saying "-mips4" to compilers that predate official
MIPS IV ISA support.  The R8000 was the first MIPS IV
CPU, followed by the R10000 and the R5000.  The "Nevada"
processors added three implementation specific instructions
to the MIPS IV ISA: MAD, MADU, and MUL (targeted multiply).
"Correct" usage would be to enable those three instructions
with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for 
consistency), and to enable the rest of the MIPS IV ISA 
with "-mips4" instead of the archaic r8000 hack.

Note, furthermore, that -mmad needs to be handled with care: 
Prior to MIPS standardizing the instruction as part of 
MIPS32, there were four or five subtly (or not so subltly) 
different definitions of integer multiply-accumulate for MIPS.  
Most use the same opcode, but even those can differ in side 
effects (is the rd field interpreted, etc.). A R4650 madd operation
will probably behave equivalently on a Nevada CPU, 
but certainly not on a Vr41xx part, for example.

            Regards,

            Kevin K.



From owner-linux-mips@oss.sgi.com Wed Mar 14 14:44:04 2001
Received:  by oss.sgi.com id <S553832AbRCNWnz>;
	Wed, 14 Mar 2001 14:43:55 -0800
Received: from mx2.mips.com ([206.31.31.227]:33181 "EHLO mx2.mips.com")
	by oss.sgi.com with ESMTP id <S553830AbRCNWni>;
	Wed, 14 Mar 2001 14:43:38 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx2.mips.com (8.9.3/8.9.0) with ESMTP id OAA24642
	for <linux-mips@oss.sgi.com>; Wed, 14 Mar 2001 14:43:37 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id OAA29541;
	Wed, 14 Mar 2001 14:43:34 -0800 (PST)
Message-ID: <011001c0acd8$c27a9220$0deca8c0@Ulysses>
From:   "Kevin D. Kissell" <kevink@mips.com>
To:     "Kevin D. Kissell" <kevink@mips.com>
Cc:     <linux-mips@oss.sgi.com>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Date:   Wed, 14 Mar 2001 23:47:31 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 1016
Lines: 26

> "Correct" usage would be to enable those three instructions
> with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for 
> consistency), and to enable the rest of the MIPS IV ISA 
> with "-mips4" instead of the archaic r8000 hack.

I should add "Correct", but not useful for 32-bit
kernels.  "-mips32", once that percolates through
the gcc food chain, would be *almost* perfect
for 32-bit Nevada kernels.  I say almost, because
while MIPS32 is 32-bit MIPS IV plus MADD, it also
has a handfull of instructions that are not supported 
by the R52xx, of which it is wildly improbable but 
theoretically possible that the multiply-subtracts
might somehow get emitted in compiled application
code. It should work just fine for kernel purposes, though.

Meanwhile, try piping objdump of a "-mmad" kernel
through "grep -i mad".  I'd be stunned if a single MADD
turned up.  If it gains nothing, but breaks builds, then
for heaven's sake banish -mmad from the kernel
makefiles!

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Wed Mar 14 17:52:14 2001
Received:  by oss.sgi.com id <S553766AbRCOBvz>;
	Wed, 14 Mar 2001 17:51:55 -0800
Received: from gateway-1237.mvista.com ([12.44.186.158]:21495 "EHLO
        hermes.mvista.com") by oss.sgi.com with ESMTP id <S553762AbRCOBve>;
	Wed, 14 Mar 2001 17:51:34 -0800
Received: from mvista.com (IDENT:ppopov@zeus.mvista.com [10.0.0.112])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2F1kY317250;
	Wed, 14 Mar 2001 17:46:34 -0800
Message-ID: <3AB01FCE.CDFA99C9@mvista.com>
Date:   Wed, 14 Mar 2001 17:50:06 -0800
From:   Pete Popov <ppopov@mvista.com>
Organization: Monta Vista Software
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.17-14 i586)
X-Accept-Language: en, bg
MIME-Version: 1.0
To:     "Kevin D. Kissell" <kevink@mips.com>
CC:     linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <011001c0acd8$c27a9220$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 10534
Lines: 196

"Kevin D. Kissell" wrote:
> 
> > "Correct" usage would be to enable those three instructions
> > with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for
> > consistency), and to enable the rest of the MIPS IV ISA
> > with "-mips4" instead of the archaic r8000 hack.
> 
> I should add "Correct", but not useful for 32-bit
> kernels.  "-mips32", once that percolates through
> the gcc food chain, would be *almost* perfect
> for 32-bit Nevada kernels.  I say almost, because
> while MIPS32 is 32-bit MIPS IV plus MADD, it also
> has a handfull of instructions that are not supported
> by the R52xx, of which it is wildly improbable but
> theoretically possible that the multiply-subtracts
> might somehow get emitted in compiled application
> code. It should work just fine for kernel purposes, though.
> 
> Meanwhile, try piping objdump of a "-mmad" kernel
> through "grep -i mad".  I'd be stunned if a single MADD
> turned up.  If it gains nothing, but breaks builds, then
> for heaven's sake banish -mmad from the kernel
> makefiles!

I managed to compile a 2.4.2 kernel with our bleeding edge toolchain. I
had to get rid of the -mmad from the Makefile though. The kernel boots
and runs and I ran Bonnie over NFS as well as on an IDE hard disk. I
tried some other tests as well, and they all passed.  

Without the -mmad flag, I see the following mad instructions below. No
"madd" though, just madd.s, madd16, mad, etc. So, can we get rid of this
flag in the Makefile?

Pete

0000000080132690 <sys_madvise>:
    801326dc:   1080fffc        beqz    $a0,801326d0 <sys_madvise+40>
    801326e4:   04810004        bgez    $a0,801326f8 <sys_madvise+68>
    801326f8:   5440002e        bnezl   $v0,801327b4 <sys_madvise+124>
    80132714:   54400027        bnezl   $v0,801327b4 <sys_madvise+124>
    8013271c:   12510024        beq     $s2,$s1,801327b0
<sys_madvise+120>
    80132734:   1200001e        beqz    $s0,801327b0 <sys_madvise+120>
    80132744:   10400003        beqz    $v0,80132754 <sys_madvise+c4>
    80132758:   1440000c        bnez    $v0,8013278c <sys_madvise+fc>
    80132764:   10400007        beqz    $v0,80132784 <sys_madvise+f4>
    80132770:   0c04c988        jal     80132620 <madvise_vma>
    8013277c:   5660000d        bnezl   $s3,801327b4 <sys_madvise+124>
    80132784:   0804c9ec        j       801327b0 <sys_madvise+120>
    80132790:   0c04c988        jal     80132620 <madvise_vma>
    8013279c:   56600005        bnezl   $s3,801327b4 <sys_madvise+124>
    801327a8:   0804c9cd        j       80132734 <sys_madvise+a4>
    801327c8:   1080fffc        beqz    $a0,801327bc <sys_madvise+12c>
    801327d0:   1c800004        bgtz    $a0,801327e4 <sys_madvise+154>
    80250590:   4d4d2030        nmadd.s $f0,$f10,$f4,$f13
    80250a84:   4f4e2820        madd.s  $f0,$f26,$f5,$f14
    802517bc:   00000029        dmadd16 $zero,$zero
    80253c94:   00000029        dmadd16 $zero,$zero
    802555a4:   00000029        dmadd16 $zero,$zero
    80256178:   00000029        dmadd16 $zero,$zero
    80259804:   4d445b20        madd.s  $f12,$f10,$f11,$f4
    80259810:   4d445b20        madd.s  $f12,$f10,$f11,$f4
    8025981c:   4d445b20        madd.s  $f12,$f10,$f11,$f4
    8025aa34:   00000029        dmadd16 $zero,$zero
    8025bbf0:   4c257830        nmadd.s $f0,$f1,$f15,$f5
    802618a8:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    80262018:   4e203a70        nmadd.s $f9,$f17,$f7,$f0
    802625c4:   4c554e20        madd.s  $f24,$f2,$f9,$f21
    80262700:   4c554e20        madd.s  $f24,$f2,$f9,$f21
    80264d5c:   4c545220        madd.s  $f8,$f2,$f10,$f20
    80264d64:   00000029        dmadd16 $zero,$zero
    80265148:   4e203d21        madd.d  $f20,$f17,$f7,$f0
    80265194:   4e203d21        madd.d  $f20,$f17,$f7,$f0
    8026534c:   00000029        dmadd16 $zero,$zero
    80265b50:   4f495020        madd.s  $f0,$f26,$f10,$f9
    80265f70:   4c554e20        madd.s  $f24,$f2,$f9,$f21
    80266294:   4e554c20        madd.s  $f16,$f18,$f9,$f21
    802670bc:   4c4c4120        madd.s  $f4,$f2,$f8,$f12
    80267690:   4d207361        madd.d  $f13,$f9,$f14,$f0
    80267f5c:   00000029        dmadd16 $zero,$zero
    80268314:   00000029        dmadd16 $zero,$zero
    80268abc:   00000029        dmadd16 $zero,$zero
    80269cd4:   4d435020        madd.s  $f0,$f10,$f10,$f3
    8026a504:   00000029        dmadd16 $zero,$zero
    8026df88:   4c4c5020        madd.s  $f0,$f2,$f10,$f12
    8026e01c:   4c502070        nmadd.s $f1,$f2,$f4,$f16
    8026f6bc:   4c622020        madd.s  $f0,$f3,$f4,$f2
    8026f71c:   4e622020        madd.s  $f0,$f19,$f4,$f2
    8026f944:   4c622020        madd.s  $f0,$f3,$f4,$f2
    8026f9f0:   4d772020        madd.s  $f0,$f11,$f4,$f23
    802702f8:   4d203231        nmadd.d $f8,$f9,$f6,$f0
    80273830:   00000029        dmadd16 $zero,$zero
    80276a24:   4f6d7361        madd.d  $f13,$f27,$f14,$f13
    80277498:   4e203d21        madd.d  $f20,$f17,$f7,$f0
    80279c10:   4d202020        madd.s  $f0,$f9,$f4,$f0
    80279ea4:   4d434920        madd.s  $f4,$f10,$f9,$f3
    8027c588:   4f494520        madd.s  $f20,$f26,$f8,$f9
    80280048:   4d642520        madd.s  $f20,$f11,$f4,$f4
    802802c8:   4d4f5220        madd.s  $f8,$f10,$f10,$f15
    802a0e00:   4e414d20        madd.s  $f20,$f18,$f9,$f1
    802a2988:   4c4f5720        madd.s  $f28,$f2,$f10,$f15
    802a2a30:   00000029        dmadd16 $zero,$zero
    802a2c14:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a336c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a39e4:   00000029        dmadd16 $zero,$zero
    802a3a00:   00000029        dmadd16 $zero,$zero
    802a3a1c:   00000029        dmadd16 $zero,$zero
    802a3a70:   00000029        dmadd16 $zero,$zero
    802a3ac8:   00000029        dmadd16 $zero,$zero
    802a3ad0:   4d353531        nmadd.d $f20,$f9,$f6,$f21
    802a3b3c:   00000029        dmadd16 $zero,$zero
    802a427c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a50bc:   4d4f4320        madd.s  $f12,$f10,$f8,$f15
    802a5504:   4e414c20        madd.s  $f16,$f18,$f9,$f1
    802a57ec:   4c2e6920        madd.s  $f4,$f1,$f13,$f14
    802a5f18:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a6378:   4d544120        madd.s  $f4,$f10,$f8,$f20
    802a63b4:   4d207161        madd.d  $f5,$f9,$f14,$f0
    802a6d5c:   00000029        dmadd16 $zero,$zero
    802a6ea8:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a6ebc:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802a73c0:   4e414c20        madd.s  $f16,$f18,$f9,$f1
    802a74cc:   4e414c20        madd.s  $f16,$f18,$f9,$f1
    802a75a0:   4f505420        madd.s  $f16,$f26,$f10,$f16
    802a7994:   4d502031        nmadd.d $f0,$f10,$f4,$f16
    802a7ac0:   4e414c20        madd.s  $f16,$f18,$f9,$f1
    802a7b54:   4e206870        nmadd.s $f1,$f17,$f13,$f0
    802a7e8c:   4d502820        madd.s  $f0,$f10,$f5,$f16
    802a7f84:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
    802a7f90:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
    802a7f9c:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
    802a7fa8:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
    802a8068:   00000029        dmadd16 $zero,$zero
    802a8290:   4d5b2030        nmadd.s $f0,$f10,$f4,$f27
    802a8c94:   4f525020        madd.s  $f0,$f26,$f10,$f18
    802a9088:   4e207370        nmadd.s $f13,$f17,$f14,$f0
    802a94ec:   4d544120        madd.s  $f4,$f10,$f8,$f20
    802a962c:   4d544120        madd.s  $f4,$f10,$f8,$f20
    802a9c10:   00000029        dmadd16 $zero,$zero
    802a9d64:   00000029        dmadd16 $zero,$zero
    802a9d80:   00000029        dmadd16 $zero,$zero
    802a9e2c:   00000029        dmadd16 $zero,$zero
    802ab81c:   00000029        dmadd16 $zero,$zero
    802ac17c:   00000029        dmadd16 $zero,$zero
    802ac65c:   4d207861        madd.d  $f1,$f9,$f15,$f0
    802ac740:   4d207861        madd.d  $f1,$f9,$f15,$f0
    802ac79c:   4c525320        madd.s  $f12,$f2,$f10,$f18
    802ad3e4:   4e206c61        madd.d  $f17,$f17,$f13,$f0
    802ad954:   4d202d20        madd.s  $f20,$f9,$f5,$f0
    802ae994:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802af200:   4e415720        madd.s  $f28,$f18,$f10,$f1
    802b10cc:   4e414320        madd.s  $f12,$f18,$f8,$f1
    802b167c:   4e454420        madd.s  $f16,$f18,$f8,$f5
    802b1690:   4c554d20        madd.s  $f20,$f2,$f9,$f21
    802b1d88:   4d4f4320        madd.s  $f12,$f10,$f8,$f15
    802b1df0:   00000029        dmadd16 $zero,$zero
    802b2428:   00000029        dmadd16 $zero,$zero
    802b2458:   4d206e61        madd.d  $f25,$f9,$f13,$f0
    802b30e0:   00000029        dmadd16 $zero,$zero
    802b3140:   00000029        dmadd16 $zero,$zero
    802b3c68:   00000029        dmadd16 $zero,$zero
    802b3ff8:   4f525020        madd.s  $f0,$f26,$f10,$f18
    802b4010:   4f525020        madd.s  $f0,$f26,$f10,$f18
    802b4120:   4d472030        nmadd.s $f0,$f10,$f4,$f7
    802b453c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
    802b5d80:   00000029        dmadd16 $zero,$zero
    802b6e38:   00000028        madd16  $zero,$zero
    802b6e40:   00000029        dmadd16 $zero,$zero
    802b7350:   00000028        madd16  $zero,$zero
    802b80a8:   00000028        madd16  $zero,$zero
    802b80b0:   00000029        dmadd16 $zero,$zero
    802b81d8:   00000028        madd16  $zero,$zero
    802b81e0:   00000029        dmadd16 $zero,$zero
    802bdda4:   00000028        madd16  $zero,$zero
    802bddd8:   00000028        madd16  $zero,$zero
    802bde7c:   00000029        dmadd16 $zero,$zero
    802bdeac:   00000028        madd16  $zero,$zero
    802bdeb8:   00000028        madd16  $zero,$zero
    802bdf14:   00000028        madd16  $zero,$zero
    802be6d8:   00000028        madd16  $zero,$zero
    802be764:   00000028        madd16  $zero,$zero
    802c0578:   70000000        mad     $zero,$zero
    802c07f4:   72070000        mad     $s0,$a3
    802c1490:   00000028        madd16  $zero,$zero
    802c957c:   00000029        dmadd16 $zero,$zero
    802c96b0:   00000028        madd16  $zero,$zero
    802ccdcc:   00000028        madd16  $zero,$zero
    802cddb0:   00290028        madd16  $at,$t1
    802cdfb0:   00290028        madd16  $at,$t1
    802ce1b0:   00290028        madd16  $at,$t1
    802ce6b8:   00290028        madd16  $at,$t1
    802d4150:   4e534331        nmadd.d $f12,$f18,$f8,$f19
    802d667c:   00000028        madd16  $zero,$zero
    802d7614:   00290028        madd16  $at,$t1
    802d9770:   00000028        madd16  $zero,$zero
    802d9820:   00000029        dmadd16 $zero,$zero

From owner-linux-mips@oss.sgi.com Wed Mar 14 23:58:26 2001
Received:  by oss.sgi.com id <S553750AbRCOH6R>;
	Wed, 14 Mar 2001 23:58:17 -0800
Received: from mx2.mips.com ([206.31.31.227]:16036 "EHLO mx2.mips.com")
	by oss.sgi.com with ESMTP id <S553746AbRCOH54>;
	Wed, 14 Mar 2001 23:57:56 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx2.mips.com (8.9.3/8.9.0) with ESMTP id XAA25932;
	Wed, 14 Mar 2001 23:57:54 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id XAA14104;
	Wed, 14 Mar 2001 23:57:49 -0800 (PST)
Message-ID: <001701c0ad26$31a91160$0deca8c0@Ulysses>
From:   "Kevin D. Kissell" <kevink@mips.com>
To:     "Pete Popov" <ppopov@mvista.com>
Cc:     <linux-mips@oss.sgi.com>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <011001c0acd8$c27a9220$0deca8c0@Ulysses> <3AB01FCE.CDFA99C9@mvista.com>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Date:   Thu, 15 Mar 2001 09:01:49 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 11099
Lines: 201

> > Meanwhile, try piping objdump of a "-mmad" kernel
> > through "grep -i mad".  I'd be stunned if a single MADD
> > turned up.  If it gains nothing, but breaks builds, then
> > for heaven's sake banish -mmad from the kernel
> > makefiles!
> 
> I managed to compile a 2.4.2 kernel with our bleeding edge toolchain. I
> had to get rid of the -mmad from the Makefile though. The kernel boots
> and runs and I ran Bonnie over NFS as well as on an IDE hard disk. I
> tried some other tests as well, and they all passed.  
> 
> Without the -mmad flag, I see the following mad instructions below. No
> "madd" though, just madd.s, madd16, mad, etc. So, can we get rid of this
> flag in the Makefile?

"MAD" is a synonym for "MADD", but it looks as if this was
a grep of the output of "objdump --diassemble-all".  There
can't possibly be that many usefull floating point MADDs
in the kernel, and the actual bytes of the instructions look
suspiciously like ASCII strings.  Likewise, "MADD16" and
"DMADD16" are R4100 instructions with a different opcode
and semantics from the Nevada/MIPS32 MADD.  And of
course instructions like "mad $zero,$zero" aren't likely to
be real code.  It's pretty obvious from context, but you
should really confirm that address 0x802c07f4 is data
before we confirm that *no* MAD/MADDS are being
generated in the kernel.

It is certainly conceivable that MADDs in some form
could be used in the kernel.  Specifically, it would not
surprise me in the least to see them used in a software
modem on a VrLinux platform.  But those modules can
and should be handled seperately (and are probably
written in assembler anyway).  There's not need for
-mmad in the general set of flags.

            Kevin K.

> 
> 0000000080132690 <sys_madvise>:
>     801326dc:   1080fffc        beqz    $a0,801326d0 <sys_madvise+40>
>     801326e4:   04810004        bgez    $a0,801326f8 <sys_madvise+68>
>     801326f8:   5440002e        bnezl   $v0,801327b4 <sys_madvise+124>
>     80132714:   54400027        bnezl   $v0,801327b4 <sys_madvise+124>
>     8013271c:   12510024        beq     $s2,$s1,801327b0
> <sys_madvise+120>
>     80132734:   1200001e        beqz    $s0,801327b0 <sys_madvise+120>
>     80132744:   10400003        beqz    $v0,80132754 <sys_madvise+c4>
>     80132758:   1440000c        bnez    $v0,8013278c <sys_madvise+fc>
>     80132764:   10400007        beqz    $v0,80132784 <sys_madvise+f4>
>     80132770:   0c04c988        jal     80132620 <madvise_vma>
>     8013277c:   5660000d        bnezl   $s3,801327b4 <sys_madvise+124>
>     80132784:   0804c9ec        j       801327b0 <sys_madvise+120>
>     80132790:   0c04c988        jal     80132620 <madvise_vma>
>     8013279c:   56600005        bnezl   $s3,801327b4 <sys_madvise+124>
>     801327a8:   0804c9cd        j       80132734 <sys_madvise+a4>
>     801327c8:   1080fffc        beqz    $a0,801327bc <sys_madvise+12c>
>     801327d0:   1c800004        bgtz    $a0,801327e4 <sys_madvise+154>
>     80250590:   4d4d2030        nmadd.s $f0,$f10,$f4,$f13
>     80250a84:   4f4e2820        madd.s  $f0,$f26,$f5,$f14
>     802517bc:   00000029        dmadd16 $zero,$zero
>     80253c94:   00000029        dmadd16 $zero,$zero
>     802555a4:   00000029        dmadd16 $zero,$zero
>     80256178:   00000029        dmadd16 $zero,$zero
>     80259804:   4d445b20        madd.s  $f12,$f10,$f11,$f4
>     80259810:   4d445b20        madd.s  $f12,$f10,$f11,$f4
>     8025981c:   4d445b20        madd.s  $f12,$f10,$f11,$f4
>     8025aa34:   00000029        dmadd16 $zero,$zero
>     8025bbf0:   4c257830        nmadd.s $f0,$f1,$f15,$f5
>     802618a8:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     80262018:   4e203a70        nmadd.s $f9,$f17,$f7,$f0
>     802625c4:   4c554e20        madd.s  $f24,$f2,$f9,$f21
>     80262700:   4c554e20        madd.s  $f24,$f2,$f9,$f21
>     80264d5c:   4c545220        madd.s  $f8,$f2,$f10,$f20
>     80264d64:   00000029        dmadd16 $zero,$zero
>     80265148:   4e203d21        madd.d  $f20,$f17,$f7,$f0
>     80265194:   4e203d21        madd.d  $f20,$f17,$f7,$f0
>     8026534c:   00000029        dmadd16 $zero,$zero
>     80265b50:   4f495020        madd.s  $f0,$f26,$f10,$f9
>     80265f70:   4c554e20        madd.s  $f24,$f2,$f9,$f21
>     80266294:   4e554c20        madd.s  $f16,$f18,$f9,$f21
>     802670bc:   4c4c4120        madd.s  $f4,$f2,$f8,$f12
>     80267690:   4d207361        madd.d  $f13,$f9,$f14,$f0
>     80267f5c:   00000029        dmadd16 $zero,$zero
>     80268314:   00000029        dmadd16 $zero,$zero
>     80268abc:   00000029        dmadd16 $zero,$zero
>     80269cd4:   4d435020        madd.s  $f0,$f10,$f10,$f3
>     8026a504:   00000029        dmadd16 $zero,$zero
>     8026df88:   4c4c5020        madd.s  $f0,$f2,$f10,$f12
>     8026e01c:   4c502070        nmadd.s $f1,$f2,$f4,$f16
>     8026f6bc:   4c622020        madd.s  $f0,$f3,$f4,$f2
>     8026f71c:   4e622020        madd.s  $f0,$f19,$f4,$f2
>     8026f944:   4c622020        madd.s  $f0,$f3,$f4,$f2
>     8026f9f0:   4d772020        madd.s  $f0,$f11,$f4,$f23
>     802702f8:   4d203231        nmadd.d $f8,$f9,$f6,$f0
>     80273830:   00000029        dmadd16 $zero,$zero
>     80276a24:   4f6d7361        madd.d  $f13,$f27,$f14,$f13
>     80277498:   4e203d21        madd.d  $f20,$f17,$f7,$f0
>     80279c10:   4d202020        madd.s  $f0,$f9,$f4,$f0
>     80279ea4:   4d434920        madd.s  $f4,$f10,$f9,$f3
>     8027c588:   4f494520        madd.s  $f20,$f26,$f8,$f9
>     80280048:   4d642520        madd.s  $f20,$f11,$f4,$f4
>     802802c8:   4d4f5220        madd.s  $f8,$f10,$f10,$f15
>     802a0e00:   4e414d20        madd.s  $f20,$f18,$f9,$f1
>     802a2988:   4c4f5720        madd.s  $f28,$f2,$f10,$f15
>     802a2a30:   00000029        dmadd16 $zero,$zero
>     802a2c14:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a336c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a39e4:   00000029        dmadd16 $zero,$zero
>     802a3a00:   00000029        dmadd16 $zero,$zero
>     802a3a1c:   00000029        dmadd16 $zero,$zero
>     802a3a70:   00000029        dmadd16 $zero,$zero
>     802a3ac8:   00000029        dmadd16 $zero,$zero
>     802a3ad0:   4d353531        nmadd.d $f20,$f9,$f6,$f21
>     802a3b3c:   00000029        dmadd16 $zero,$zero
>     802a427c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a50bc:   4d4f4320        madd.s  $f12,$f10,$f8,$f15
>     802a5504:   4e414c20        madd.s  $f16,$f18,$f9,$f1
>     802a57ec:   4c2e6920        madd.s  $f4,$f1,$f13,$f14
>     802a5f18:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a6378:   4d544120        madd.s  $f4,$f10,$f8,$f20
>     802a63b4:   4d207161        madd.d  $f5,$f9,$f14,$f0
>     802a6d5c:   00000029        dmadd16 $zero,$zero
>     802a6ea8:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a6ebc:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802a73c0:   4e414c20        madd.s  $f16,$f18,$f9,$f1
>     802a74cc:   4e414c20        madd.s  $f16,$f18,$f9,$f1
>     802a75a0:   4f505420        madd.s  $f16,$f26,$f10,$f16
>     802a7994:   4d502031        nmadd.d $f0,$f10,$f4,$f16
>     802a7ac0:   4e414c20        madd.s  $f16,$f18,$f9,$f1
>     802a7b54:   4e206870        nmadd.s $f1,$f17,$f13,$f0
>     802a7e8c:   4d502820        madd.s  $f0,$f10,$f5,$f16
>     802a7f84:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
>     802a7f90:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
>     802a7f9c:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
>     802a7fa8:   4e5b2061        madd.d  $f1,$f18,$f4,$f27
>     802a8068:   00000029        dmadd16 $zero,$zero
>     802a8290:   4d5b2030        nmadd.s $f0,$f10,$f4,$f27
>     802a8c94:   4f525020        madd.s  $f0,$f26,$f10,$f18
>     802a9088:   4e207370        nmadd.s $f13,$f17,$f14,$f0
>     802a94ec:   4d544120        madd.s  $f4,$f10,$f8,$f20
>     802a962c:   4d544120        madd.s  $f4,$f10,$f8,$f20
>     802a9c10:   00000029        dmadd16 $zero,$zero
>     802a9d64:   00000029        dmadd16 $zero,$zero
>     802a9d80:   00000029        dmadd16 $zero,$zero
>     802a9e2c:   00000029        dmadd16 $zero,$zero
>     802ab81c:   00000029        dmadd16 $zero,$zero
>     802ac17c:   00000029        dmadd16 $zero,$zero
>     802ac65c:   4d207861        madd.d  $f1,$f9,$f15,$f0
>     802ac740:   4d207861        madd.d  $f1,$f9,$f15,$f0
>     802ac79c:   4c525320        madd.s  $f12,$f2,$f10,$f18
>     802ad3e4:   4e206c61        madd.d  $f17,$f17,$f13,$f0
>     802ad954:   4d202d20        madd.s  $f20,$f9,$f5,$f0
>     802ae994:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802af200:   4e415720        madd.s  $f28,$f18,$f10,$f1
>     802b10cc:   4e414320        madd.s  $f12,$f18,$f8,$f1
>     802b167c:   4e454420        madd.s  $f16,$f18,$f8,$f5
>     802b1690:   4c554d20        madd.s  $f20,$f2,$f9,$f21
>     802b1d88:   4d4f4320        madd.s  $f12,$f10,$f8,$f15
>     802b1df0:   00000029        dmadd16 $zero,$zero
>     802b2428:   00000029        dmadd16 $zero,$zero
>     802b2458:   4d206e61        madd.d  $f25,$f9,$f13,$f0
>     802b30e0:   00000029        dmadd16 $zero,$zero
>     802b3140:   00000029        dmadd16 $zero,$zero
>     802b3c68:   00000029        dmadd16 $zero,$zero
>     802b3ff8:   4f525020        madd.s  $f0,$f26,$f10,$f18
>     802b4010:   4f525020        madd.s  $f0,$f26,$f10,$f18
>     802b4120:   4d472030        nmadd.s $f0,$f10,$f4,$f7
>     802b453c:   4f2f4920        madd.s  $f4,$f25,$f9,$f15
>     802b5d80:   00000029        dmadd16 $zero,$zero
>     802b6e38:   00000028        madd16  $zero,$zero
>     802b6e40:   00000029        dmadd16 $zero,$zero
>     802b7350:   00000028        madd16  $zero,$zero
>     802b80a8:   00000028        madd16  $zero,$zero
>     802b80b0:   00000029        dmadd16 $zero,$zero
>     802b81d8:   00000028        madd16  $zero,$zero
>     802b81e0:   00000029        dmadd16 $zero,$zero
>     802bdda4:   00000028        madd16  $zero,$zero
>     802bddd8:   00000028        madd16  $zero,$zero
>     802bde7c:   00000029        dmadd16 $zero,$zero
>     802bdeac:   00000028        madd16  $zero,$zero
>     802bdeb8:   00000028        madd16  $zero,$zero
>     802bdf14:   00000028        madd16  $zero,$zero
>     802be6d8:   00000028        madd16  $zero,$zero
>     802be764:   00000028        madd16  $zero,$zero
>     802c0578:   70000000        mad     $zero,$zero
>     802c07f4:   72070000        mad     $s0,$a3
>     802c1490:   00000028        madd16  $zero,$zero
>     802c957c:   00000029        dmadd16 $zero,$zero
>     802c96b0:   00000028        madd16  $zero,$zero
>     802ccdcc:   00000028        madd16  $zero,$zero
>     802cddb0:   00290028        madd16  $at,$t1
>     802cdfb0:   00290028        madd16  $at,$t1
>     802ce1b0:   00290028        madd16  $at,$t1
>     802ce6b8:   00290028        madd16  $at,$t1
>     802d4150:   4e534331        nmadd.d $f12,$f18,$f8,$f19
>     802d667c:   00000028        madd16  $zero,$zero
>     802d7614:   00290028        madd16  $at,$t1
>     802d9770:   00000028        madd16  $zero,$zero
>     802d9820:   00000029        dmadd16 $zero,$zero


From owner-linux-mips@oss.sgi.com Thu Mar 15 05:17:44 2001
Received:  by oss.sgi.com id <S553763AbRCONRf>;
	Thu, 15 Mar 2001 05:17:35 -0800
Received: from mail.sonytel.be ([193.74.243.200]:65521 "EHLO mail.sonytel.be")
	by oss.sgi.com with ESMTP id <S553753AbRCONRR>;
	Thu, 15 Mar 2001 05:17:17 -0800
Received: from ginger.sonytel.be (ginger.sonytel.be [10.34.16.6])
	by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id OAA13731
	for <linux-mips@oss.sgi.com>; Thu, 15 Mar 2001 14:16:59 +0100 (MET)
Received: (from tea@localhost)
	by ginger.sonytel.be (8.9.0/8.8.6) id OAA05479
	for linux-mips@oss.sgi.com; Thu, 15 Mar 2001 14:16:59 +0100 (MET)
Date:   Thu, 15 Mar 2001 14:16:58 +0100
From:   Tom Appermont <tea@sonycom.com>
To:     linux-mips@oss.sgi.com
Subject: size of ioctl 
Message-ID: <20010315141658.A914@ginger.sonytel.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 1.0i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Return-Path: <owner-linux-mips@oss.sgi.com>
X-Orcpt: rfc822;linux-mips-outgoing
Content-Length: 416
Lines: 26


Howdy,

Can anybody tell me why the size of ioctl messages is limited 
to 256 bytes on mips:

include/asm-mips/ioctl.h:

...

/*
 * We to additionally limit parameters to a maximum 255 bytes.
 */
#define _IOC_SLMASK     0xff

...


I would like to see this changed because the PCMCIA software 
(cardmgr <-> driver services) needs to pass ioctl messages 
around that are a lot bigger than 256 bytes. 

Greetz,

Tom


From owner-linux-mips@oss.sgi.com Thu Mar 15 18:35:35 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2G2ZZB24715
	for linux-mips-outgoing; Thu, 15 Mar 2001 18:35:35 -0800
Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.225])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2G2ZIM24710
	for <linux-mips@oss.sgi.com>; Thu, 15 Mar 2001 18:35:33 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dk4u-0001sQ-00
	for <linux-mips@oss.sgi.com>; Thu, 15 Mar 2001 21:34:56 -0500
Date: Thu, 15 Mar 2001 21:34:56 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: linux-mips@oss.sgi.com
Subject: -mmad patches for binutils/gcc
Message-ID: <20010315213456.A7042@nevyn.them.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="8t9RHnE3ZwKMSgU+"
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 8654
Lines: 221


--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Before I try to submit these to the FSF, I thought I'd post them here for
comments.

These patches change one small thing in gcc (%{mmad:-m4650} becomes %{mmad}
in the invocation of GAS; we no longer lie about what the processor is) and
add a -mmad flag to binutils.

I was able to build an IVR kernel with these changes; ext2_statfs,
get_pci_port, and vc_resize got one piddling mad instruction each, and
nfs_xdr_statfsres got half a dozen.  Nothing to write home about, but it's
the principal of the thing.

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="binutils-mips-mad.patch"

diff -uNr binutils-2.10.91.0.2.orig/gas/ChangeLog binutils-2.10.91.0.2/gas/ChangeLog
--- binutils-2.10.91.0.2.orig/gas/ChangeLog	Wed Feb 14 02:22:36 2001
+++ binutils-2.10.91.0.2/gas/ChangeLog	Thu Mar 15 18:18:32 2001
@@ -1,3 +1,12 @@
+2001-03-15  Daniel Jacobowitz <djacobowitz@mvista.com>
+
+	* config/tc-mips.c (struct mips_set_options): Add mad4650 member.
+	(mips_opts): Initialize it.
+	(macro_build): Add mad4650 argument to OPCODE_IS_MEMBER.
+	(mips_ip): Likewise.
+	(md_longopts[]): Add -mmad option.
+	(md_parse_option): Handle -mmad option.
+
 2001-02-13  Jim Wilson  <wilson@redhat.com>
 
 	* config/tc-ia64.c (operand_match, case TAG13): Make a BFD_RELOC_UNUSED
diff -uNr binutils-2.10.91.0.2.orig/gas/config/tc-mips.c binutils-2.10.91.0.2/gas/config/tc-mips.c
--- binutils-2.10.91.0.2.orig/gas/config/tc-mips.c	Sun Feb 11 19:48:25 2001
+++ binutils-2.10.91.0.2/gas/config/tc-mips.c	Thu Mar 15 18:31:41 2001
@@ -185,15 +185,17 @@
   /* Non-zero if we should not autoextend mips16 instructions.
      Changed by `.set autoextend' and `.set noautoextend'.  */
   int noautoextend;
+  /* Non-zero if we should allow 4650-style mad instructions. */
+  int mad4650;
 };
 
 /* This is the struct we use to hold the current set of options.  Note
-   that we must set the isa field to ISA_UNKNOWN and the mips16 field to
-   -1 to indicate that they have not been initialized.  */
+   that we must set the isa field to ISA_UNKNOWN and the mips16 and
+   mad4650 fields to -1 to indicate that they have not been initialized.  */
 
 static struct mips_set_options mips_opts =
 {
-  ISA_UNKNOWN, -1, 0, 0, 0, 0, 0, 0
+  ISA_UNKNOWN, -1, 0, 0, 0, 0, 0, 0, -1
 };
 
 /* These variables are filled in with the masks of registers used.
@@ -994,6 +996,14 @@
       a = NULL;
     }
 
+  if (mips_opts.mad4650 == -1)
+    {
+      if (mips_cpu == CPU_R4650)
+        mips_opts.mad4650 = 1;
+      else
+        mips_opts.mad4650 = 0;
+    }
+
   if (mips_opts.isa == ISA_MIPS1 && mips_trap)
     as_bad (_("trap exception not supported at ISA 1"));
 
@@ -2482,7 +2492,7 @@
       if (strcmp (fmt, insn.insn_mo->args) == 0
 	  && insn.insn_mo->pinfo != INSN_MACRO
 	  && OPCODE_IS_MEMBER (insn.insn_mo, mips_opts.isa, mips_cpu,
-			       mips_gp32)
+			       mips_gp32, mips_opts.mad4650)
 	  && (mips_cpu != CPU_R4650 || (insn.insn_mo->pinfo & FP_D) == 0))
 	break;
 
@@ -7065,7 +7075,8 @@
 
       assert (strcmp (insn->name, str) == 0);
 
-      if (OPCODE_IS_MEMBER (insn, mips_opts.isa, mips_cpu, mips_gp32))
+      if (OPCODE_IS_MEMBER (insn, mips_opts.isa, mips_cpu, mips_gp32,
+			    mips_opts.mad4650))
 	ok = true;
       else
 	ok = false;
@@ -8912,6 +8923,10 @@
   {"mips5", no_argument, NULL, OPTION_MIPS5},
 #define OPTION_MIPS64 (OPTION_MD_BASE + 30)
   {"mips64", no_argument, NULL, OPTION_MIPS64},
+#define OPTION_MMAD (OPTION_MD_BASE + 31)
+  {"mmad", no_argument, NULL, OPTION_MMAD},
+#define OPTION_NO_MMAD (OPTION_MD_BASE + 32)
+  {"no-mmad", no_argument, NULL, OPTION_NO_MMAD},
 #ifdef OBJ_ELF
 #define OPTION_ELF_BASE    (OPTION_MD_BASE + 35)
 #define OPTION_CALL_SHARED (OPTION_ELF_BASE + 0)
@@ -9032,6 +9047,14 @@
       break;
 
     case OPTION_NO_M4650:
+      break;
+
+    case OPTION_MMAD:
+      mips_opts.mad4650 = 1;
+      break;
+
+    case OPTION_NO_MMAD:
+      mips_opts.mad4650 = 0;
       break;
 
     case OPTION_M4010:
diff -uNr binutils-2.10.91.0.2.orig/gas/doc/c-mips.texi binutils-2.10.91.0.2/gas/doc/c-mips.texi
--- binutils-2.10.91.0.2.orig/gas/doc/c-mips.texi	Thu Dec 21 19:35:13 2000
+++ binutils-2.10.91.0.2/gas/doc/c-mips.texi	Thu Mar 15 18:27:27 2001
@@ -108,9 +108,16 @@
 @item -m4650
 @itemx -no-m4650
 Generate code for the MIPS @sc{r4650} chip.  This tells the assembler to accept
-the @samp{mad} and @samp{madu} instruction, and to not schedule @samp{nop}
-instructions around accesses to the @samp{HI} and @samp{LO} registers.
-@samp{-no-m4650} turns off this option.
+the @samp{mad} and @samp{madu} instructions, to not allow double-precision
+float instructions, and to not schedule @samp{nop} instructions around accesses
+to the @samp{HI} and @samp{LO} registers.  @samp{-no-m4650} turns off this
+option.
+
+@item -mmad
+@itemx -no-mad
+Generate code for the MIPS @sc{r4650} @samp{mad} and @samp{madu}
+instructions, without the other restrictions of the @sc{r4650}.
+@samp{-no-mmad} turns off support for these instructions.
 
 @itemx -m3900
 @itemx -no-m3900
diff -uNr binutils-2.10.91.0.2.orig/include/opcode/ChangeLog binutils-2.10.91.0.2/include/opcode/ChangeLog
--- binutils-2.10.91.0.2.orig/include/opcode/ChangeLog	Mon Feb 12 18:47:34 2001
+++ binutils-2.10.91.0.2/include/opcode/ChangeLog	Thu Mar 15 18:14:24 2001
@@ -1,3 +1,7 @@
+Thu Mar 15 18:13:01 EST 2001  Daniel Jacobowitz <djacobowitz@mvista.com>
+
+	* mips.h (OPCODE_IS_MEMBER): Add mad4650 argument.
+
 Mon Feb 12 17:40:54 CET 2001  Jan Hubicka  <jh@suse.cz>
 
 	* i386.h (i386_optab): SSE integer converison instructions have
diff -uNr binutils-2.10.91.0.2.orig/include/opcode/mips.h binutils-2.10.91.0.2/include/opcode/mips.h
--- binutils-2.10.91.0.2.orig/include/opcode/mips.h	Sat Feb 10 18:37:00 2001
+++ binutils-2.10.91.0.2/include/opcode/mips.h	Thu Mar 15 18:13:06 2001
@@ -369,12 +369,13 @@
    to test, or zero if no CPU specific ISA test is desired.
    The gp32 arg is set when you need to force 32-bit register usage on
    a machine with 64-bit registers; see the documentation under -mgp32
-   in the MIPS gas docs.  */
+   in the MIPS gas docs.
+   The mad4650 option is set if the 4650's MAD extensions are available. */
 
-#define OPCODE_IS_MEMBER(insn, isa, cpu, gp32)				\
+#define OPCODE_IS_MEMBER(insn, isa, cpu, gp32, mad4650)			\
     ((((insn)->membership & isa) != 0                           	\
       && ((insn)->membership & INSN_GP32 ? gp32 : 1)			\
      )									\
-     || (cpu == CPU_R4650 && ((insn)->membership & INSN_4650) != 0)	\
+     || (mad4650 && ((insn)->membership & INSN_4650) != 0)		\
      || (cpu == CPU_R4010 && ((insn)->membership & INSN_4010) != 0)	\
      || ((cpu == CPU_VR4100 || cpu == CPU_R4111)			\
diff -uNr binutils-2.10.91.0.2.orig/opcodes/ChangeLog binutils-2.10.91.0.2/opcodes/ChangeLog
--- binutils-2.10.91.0.2.orig/opcodes/ChangeLog	Thu Feb 15 01:28:01 2001
+++ binutils-2.10.91.0.2/opcodes/ChangeLog	Thu Mar 15 18:19:54 2001
@@ -1,3 +1,7 @@
+2001-03-15  Daniel Jacobowitz <djacobowitz@mvista.com>
+
+	* mips-dis.c: Add mad4650 option to OPCODE_IS_MEMBER call.
+
 2001-02-14  Jim Wilson  <wilson@redhat.com>
 
 	* ia64-ic.tbl: Update from Intel.  Add setf to fr-writers.
diff -uNr binutils-2.10.91.0.2.orig/opcodes/mips-dis.c binutils-2.10.91.0.2/opcodes/mips-dis.c
--- binutils-2.10.91.0.2.orig/opcodes/mips-dis.c	Sun Feb 11 19:44:12 2001
+++ binutils-2.10.91.0.2/opcodes/mips-dis.c	Thu Mar 15 18:19:13 2001
@@ -446,7 +446,7 @@
 	    {
 	      register const char *d;
 
-	      if (! OPCODE_IS_MEMBER (op, mips_isa, target_processor, 0))
+	      if (! OPCODE_IS_MEMBER (op, mips_isa, target_processor, 0, 1))
 		continue;
 
 	      (*info->fprintf_func) (info->stream, "%s", op->name);

--8t9RHnE3ZwKMSgU+
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="gcc-mips-mad.patch"

--- gcc-2.95.3/gcc/config/mips/mips.h.orig	Thu Mar 15 19:39:16 2001
+++ gcc-2.95.3/gcc/config/mips/mips.h	Thu Mar 15 19:39:53 2001
@@ -821,7 +821,7 @@
 /* GAS_ASM_SPEC is passed when using gas, rather than the MIPS
    assembler.  */
 
-#define GAS_ASM_SPEC "%{mcpu=*} %{m4650} %{mmad:-m4650} %{m3900} %{v}"
+#define GAS_ASM_SPEC "%{mcpu=*} %{m4650} %{mmad} %{m3900} %{v}"
 
 /* TARGET_ASM_SPEC is used to select either MIPS_AS_ASM_SPEC or
    GAS_ASM_SPEC as the default, depending upon the value of

--8t9RHnE3ZwKMSgU+--

From owner-linux-mips@oss.sgi.com Thu Mar 15 19:25:13 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2G3PDS25435
	for linux-mips-outgoing; Thu, 15 Mar 2001 19:25:13 -0800
Received: from spawn.hockeyfiend.com (mail@dsl027-138-146.nyc1.dsl.speakeasy.net [216.27.138.146])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2G3PCM25432
	for <linux-mips@oss.sgi.com>; Thu, 15 Mar 2001 19:25:12 -0800
Received: from localhost ([127.0.0.1] ident=chris)
	by spawn.hockeyfiend.com with esmtp (Exim 3.22 #1 (Debian))
	id 14dkrW-0001TJ-00; Thu, 15 Mar 2001 22:25:10 -0500
Date: Thu, 15 Mar 2001 22:25:10 -0500 (EST)
From: "Christopher C. Chimelis" <chris@debian.org>
X-Sender: chris@spawn.hockeyfiend.com
To: Daniel Jacobowitz <dan@debian.org>
cc: linux-mips@oss.sgi.com
Subject: Re: -mmad patches for binutils/gcc
In-Reply-To: <20010315213456.A7042@nevyn.them.org>
Message-ID: <Pine.LNX.4.21.0103152222200.19339-100000@spawn.hockeyfiend.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1255
Lines: 32


On Thu, 15 Mar 2001, Daniel Jacobowitz wrote:

> Before I try to submit these to the FSF, I thought I'd post them here for
> comments.
> 
> These patches change one small thing in gcc (%{mmad:-m4650} becomes %{mmad}
> in the invocation of GAS; we no longer lie about what the processor is) and
> add a -mmad flag to binutils.
> 
> I was able to build an IVR kernel with these changes; ext2_statfs,
> get_pci_port, and vc_resize got one piddling mad instruction each, and
> nfs_xdr_statfsres got half a dozen.  Nothing to write home about, but it's
> the principal of the thing.

Do you want me to include the binutils part in the next Debian binutils
upload that I'll be doing tomorrow?  I've already built the debs, but had
a feeling that there might be some mips changes coming, so I don't mind
building again.

I've got my Indy up and somewhat running (the lack of available packages
like netstd is shocking and tough to work around).  I wouldn't mind doing
at least some binutils testing on it for now...at least until the
dedicated mips folks are more comfortable with the toolchain state.

FYI, there's a gcc upload planned for this weekend, so you may want to
talk to Matthias about getting the gcc patch into that as well...

Let me know :-)

C


From owner-linux-mips@oss.sgi.com Thu Mar 15 19:59:26 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2G3xQY26031
	for linux-mips-outgoing; Thu, 15 Mar 2001 19:59:26 -0800
Received: from dea.waldorf-gmbh.de (u-57-19.karlsruhe.ipdial.viaginterkom.de [62.180.19.57])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2G3xNM26028
	for <linux-mips@oss.sgi.com>; Thu, 15 Mar 2001 19:59:24 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2G3uqd02303;
	Fri, 16 Mar 2001 04:56:52 +0100
Date: Fri, 16 Mar 2001 04:56:52 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: Tom Appermont <tea@sonycom.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: size of ioctl
Message-ID: <20010316045652.C1607@bacchus.dhis.org>
References: <20010315141658.A914@ginger.sonytel.be>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010315141658.A914@ginger.sonytel.be>; from tea@sonycom.com on Thu, Mar 15, 2001 at 02:16:58PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 318
Lines: 9

On Thu, Mar 15, 2001 at 02:16:58PM +0100, Tom Appermont wrote:

> I would like to see this changed because the PCMCIA software 
> (cardmgr <-> driver services) needs to pass ioctl messages 
> around that are a lot bigger than 256 bytes. 

As of today this is only historic garbage, so _IOC_SLMASK can go away.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 16 05:34:35 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GDYZU04700
	for linux-mips-outgoing; Fri, 16 Mar 2001 05:34:35 -0800
Received: from u105.medicalmedia.com (IDENT:root@ip106.medicalmedia.COM [207.121.66.106])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GDYYM04697
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 05:34:34 -0800
Received: from medicalmedia.com (IDENT:mcgonigle@localhost [127.0.0.1])
	by u105.medicalmedia.com (8.9.3/8.9.3) with ESMTP id IAA21474
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 08:32:57 -0500
Message-ID: <3AB21608.5030007@medicalmedia.com>
Date: Fri, 16 Mar 2001 08:32:56 -0500
From: Bill McGonigle <mcgonigle@medicalmedia.com>
Reply-To: mcgonigle@medicalmedia.com
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-3smp i686; en-US; 0.8) Gecko/20010215
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: machines available to porters
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 6911
Lines: 204

Hi, all,

     If anyone working on the MIPS/SGI linux port could use any of this
hardware, let me know and I'll try to get it sent out to you.

-Bill

-----
u3 - Indigo 2 (green)
     scsi disk 0,1 1.07 GB
     scsi disk 0,2 4.31 GB
      Irix Audio Processor: Version A2
      1 200 MHZ IP22 Processor
      FPU: MIPS R4000 Floating Point Coprocessor 0.0
      CPU: MIPS R4400 Processor Chip rev. 6.0
      On-board serial ports: 2
      On-board bi-directional parallel port
      Main Memory Size: 224 Mbytes
      EISA bus: adapter 0
      Integral Ethernet: ec0
      Integral SCSI Controller 1
      Integral SCSI Controller 0
          Disk drive: unit 2 on Controller 0
          Disk drive: unit 1 on Controller 0
      Graphics board: GUI-Extreme

u7 - Indigo 2 (green)
     scsi disk 0,1 911 MB
      Irix Audio Processor: Version A2
      1 150 MHZ IP22 Processor
      FPU: MIPS R4000 Floating Point Coprocessor 0.0
      CPU: MIPS R4400 Processor Chip rev. 5.0
      On-board serial ports: 2
      On-board bi-directional parallel port
      Main Memory Size: 96 Mbytes
      EISA bus: adapter 0
      Integral Ethernet: ec0
      Integral SCSI Controller 1
      Integral SCSI Controller 0
          Disk drive: unit 2 on Controller 0: 720/1.44M floppy
          Disk drive: unit 1 on Controller 0
      Graphics board: GUI-Extreme


u74 - Indigo Elan (blue)
     two hd's (don't know what they are)

u5 - Indigo 2 "Impact 10000" (purple)
     scsi disk 0,1 2.27 GB
     scsi disk 0,2 9.15 GB
     scsi disk 0,3 cdrom
      Irix Audio Processor: Version A2
      1 195 MHZ IP22 Processor
      FPU: MIPS R10010 Floating Point Coprocessor 0.0
      CPU: MIPS R10000 Processor Chip rev. 2.5
      On-board serial ports: 2
      On-board bi-directional parallel port
      Main Memory Size: 128 Mbytes
      EISA bus: adapter 0
      Integral Ethernet: ec0
      Integral SCSI Controller 1
      Integral SCSI Controller 0
         CDROM: unit 3 on Controller 0
          Disk drive: unit 2 on Controller 0
          Disk drive: unit 1 on Controller 0
      Graphics board: Maximum Impact

gutz - Indigo (blue)
     scsi disk 0,1 422 MB
     mips R4000 128 MB memory
     Elan
      1 100 MHZ IP22 Processor
      FPU: MIPS R4010 Floating Point Coprocessor 0.0
      CPU: MIPS R4400 Processor Chip rev. 2.2
      On-board serial ports: 2
      On-board bi-directional parallel port
      Main Memory Size: 128 Mbytes
      Integral Ethernet: ec0
     Tape drive: unit 3 on Controller 0: DAT
     Disk drive: unit 1 on Controller 0
      Integral SCSI Controller 0
     Irix Audio Processor: revision 10
      Graphics board: GR2-Elan

     has cc compiler

u11 - O2 IRIX 6.5
     scsi disk 4.1 GB
     128 MB memory
     CPU: MIPS R10000 Processor Chip rev. 2.7
     FPU: MIPS R10010 Floating Point Coprocessor 0.0
     1 195 MHZ IP32 Processor
     Main Memory Size: 128 Mbytes
     Integral SCSI Controller 0: Adaptec 7880
         Disk drive: unit 2 on Controller 0
     On-board serial port: tty1
     On-board serial port: tty2
      On-board bi-directional parallel port
     Integral Ethernet: ec0
     CRM graphics installed


u8 - scsi disk 0,1 2065592 kb
     scsi disk 0,2 7825976 kb
     MG10 Impact
     Iris Audio Processor: version A2 revision 1.1.0
     1 195 MHZ IP28 Processor
     CPU: MIPS R10000 Processor Chip Revision: 2.5
     FPU: MIPS R10010 Floating Point Chip Revision: 0.0
     On-board serial ports: 2
     On-board bi-directional parallel port
     Main memory size: 128 Mbytes
     EISA bus: adapter 0
     Integral Ethernet: ec0, version 1
     Integral SCSI controller 1: Version WD33C93B, revision D
     Integral SCSI controller 0: Version WD33C93B, revision D
       CDROM: unit 3 on SCSI controller 0
       Disk drive: unit 2 on SCSI controller 0
       Disk drive: unit 1 on SCSI controller 0
     Graphics board: Solid Impact
    
u9 - runs
     scsi disk 0,1 472393 kb
     Indigo Elan 4000
     1 150 MHZ IP20 Processor
     FPU: MIPS R4000 Floating Point Coprocessor Revision: 0.0
     CPU: MIPS R4400 Processor Chip Revision: 5.0
     On-board serial ports: 2
     On-board bi-directional parallel port
     Main memory size: 128 Mbytes
     Integral Ethernet: ec0, version 1
     Integral SCSI controller 0: Version WD33C93B, revision C
       Disk drive: unit 3 on SCSI controller 0
       Disk drive: unit 1 on SCSI controller 0
     Iris Audio Processor: revision 10
     Graphics board: GR2-Elan


u6 -     Model: Indigo 2 (green)
     scsi disk 0,1 2069095 kb
     scsi disk 0,2 8378400 kb
     scsi disk 0,3 4183056 kb

     Iris Audio Processor: version A2 revision 0.1.0
     1 100 MHZ IP22 Processor
     FPU: MIPS R4000 Floating Point Coprocessor Revision: 0.0
     CPU: MIPS R4000 Processor Chip Revision: 3.0
     On-board serial ports: 2
     On-board bi-directional parallel port
     Main memory size: 96 Mbytes
     EISA bus: adapter 0
     Integral Ethernet: ec0, version 1
     Integral SCSI controller 1: Version WD33C93B, revision D
       Disk drive: unit 6 on SCSI controller 1
     Integral SCSI controller 0: Version WD33C93B, revision D
       Disk drive: unit 2 on SCSI controller 0
       Disk drive: unit 1 on SCSI controller 0
     Graphics board: GR3-XZ


u14 -     Model: O2
     Serial Number: 0800 6905 B0F6
     CPU: 1 195MHz MIPS R10000(IP32) Processor with MIPS R10010 FPU
     Main Memory: 128 MB
     Operating System: IRIX Release 6.5
     Audio: Iris Audio Processor: version A3 revision 0
     Video: MVP unit 0 version 1.4 with no AV Card or Camera.
     Graphics: CRM graphics installed
     More Graphics Info:
          Graphics board 0 is "CRM" graphics.
          Managed (":0.0") 1280x1024
          32 bitplanes
          board revision 2, CRM revision C, GBE revision B
          Display 1280x1024 @ 60Hz, monitor type: Unknown
     Integral Ethernet: ec0, version 1
     On-board serial ports: tty1
     On-board serial ports: tty2
     On-board EPP/ECP parallel port
      SCSI Controller 0: ADAPTEC 7880
      SCSI Controller 1: ADAPTEC 7880

dexter - SGI Impact 10000 Indigo2
     -cdrom
     -option XFS
     Iris Audio Processor: version A2 revision 1.1.0
     1 195 MHZ IP28 Processor
     CPU: MIPS R10000 Processor Chip Revision: 2.5
     FPU: MIPS R10010 Floating Point Chip Revision: 0.0
     On-board serial ports: 2
     On-board bi-directional parallel port
     Data cache size: 32 Kbytes
     Instruction cache size: 32 Kbytes
     Secondary unified instruction/data cache size: 1 Mbyte
     Main memory size: 128 Mbytes
     EISA bus: adapter 0
     Integral Ethernet: ec0, version 1
     Integral SCSI controller 1: Version WD33C93B, revision D        
Integral SCSI
controller 0: Version WD33C93B, revision D
        CDROM: unit 3 on SCSI controller 0
        Disk drive: unit 2 on SCSI controller 0
        Disk drive: unit 1 on SCSI controller 0
     Graphics board: Solid Impact


From owner-linux-mips@oss.sgi.com Fri Mar 16 05:59:01 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GDx1o05311
	for linux-mips-outgoing; Fri, 16 Mar 2001 05:59:01 -0800
Received: from air.lug-owl.de (air.lug-owl.de [62.52.24.190])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GDwwM05308
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 05:58:59 -0800
Received: by air.lug-owl.de (Postfix, from userid 1000)
	id E8DC57E1B; Fri, 16 Mar 2001 14:58:55 +0100 (CET)
Date: Fri, 16 Mar 2001 14:58:55 +0100
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: Bill McGonigle <mcgonigle@medicalmedia.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: machines available to porters
Message-ID: <20010316145854.A12251@lug-owl.de>
Reply-To: jbglaw@lug-owl.de
Mail-Followup-To: Bill McGonigle <mcgonigle@medicalmedia.com>,
	linux-mips@oss.sgi.com
References: <3AB21608.5030007@medicalmedia.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2"
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <3AB21608.5030007@medicalmedia.com>; from mcgonigle@medicalmedia.com on Fri, Mar 16, 2001 at 08:32:56AM -0500
X-Operating-System: Linux air 2.4.2 
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1522
Lines: 49


--UlVJffcvxoiEqYs2
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 16, 2001 at 08:32:56AM -0500, Bill McGonigle wrote:
> Hi, all,
>=20
>      If anyone working on the MIPS/SGI linux port could use any of this
> hardware, let me know and I'll try to get it sent out to you.

Hi!

Many thanks for your offer. I think at lease 3 people located nearby
G=FCtersloh or Bielefeld in Germany would be highly interested to
get access to these machines. One problem from my point of view
are shipping costs... I'd love to see one (or some) of them here
(maybe we could host them here to give access to other interrested
people) here but I don't know if I could spend all the money for
shipping.

Maybe Michael and/or Flo are willing to also spend some money to
get them here over?

MfG, JBG

--=20
Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck=
!!!
/* Jan-Benedict Glaw <jbglaw@lug-owl.de> -- +49-177-5601720 */
keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83=
99 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)

--UlVJffcvxoiEqYs2
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjqyHB4ACgkQHb1edYOZ4bsJ+ACfTqv4/SOlTJ3xsH3kHkhDDKKB
QQMAn140KIFDHX5fq7l0VH/nH9Tp2mrM
=ki7Y
-----END PGP SIGNATURE-----

--UlVJffcvxoiEqYs2--

From owner-linux-mips@oss.sgi.com Fri Mar 16 09:53:22 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GHrMY10408
	for linux-mips-outgoing; Fri, 16 Mar 2001 09:53:22 -0800
Received: from dea.waldorf-gmbh.de (u-210-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.210])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GHrJM10405
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 09:53:19 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2GFYeK06531;
	Fri, 16 Mar 2001 16:34:40 +0100
Date: Fri, 16 Mar 2001 16:34:40 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: <linux-mips@oss.sgi.com>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010316163439.A6514@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>; from kevink@mips.com on Wed, Mar 14, 2001 at 11:11:47PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 382
Lines: 11

I looked over the MIPS backend and was depressed how little it still knows
about various newer MIPS CPUs.  So I tought gcc a bit about the R10000
and R12000.  Less than perfect but this patch against cvs-gcc should
deliver some improvments.

GCC still knows shit about the R7000 and that's definately a CPU worth some
effort ...

If you want the R10k patch, drop me a mail.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 16 09:53:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GHrU910424
	for linux-mips-outgoing; Fri, 16 Mar 2001 09:53:30 -0800
Received: from dea.waldorf-gmbh.de (u-210-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.210])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GHrRM10417
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 09:53:27 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2GE4NL04861;
	Fri, 16 Mar 2001 15:04:23 +0100
Date: Fri, 16 Mar 2001 15:04:23 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: <linux-mips@oss.sgi.com>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010316150423.A3529@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <00fc01c0acd3$c881ca80$0deca8c0@Ulysses>; from kevink@mips.com on Wed, Mar 14, 2001 at 11:11:47PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2051
Lines: 39

On Wed, Mar 14, 2001 at 11:11:47PM +0100, Kevin D. Kissell wrote:

> > Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> > because the Nevada CPUs have _somewhat_ similar scheduling properties
> > to the R8000.  This of it as an independant ISA expension which can
> > be used with an arbitrary MIPS processor - even a R3000 processor.
> 
> In the interests of historical accuracy and general pedantry,
> let me point out that -mcpu=r8000 is in effect a rather klugy
> way of saying "-mips4" to compilers that predate official
> MIPS IV ISA support.  The R8000 was the first MIPS IV
> CPU, followed by the R10000 and the R5000.  The "Nevada"
> processors added three implementation specific instructions
> to the MIPS IV ISA: MAD, MADU, and MUL (targeted multiply).
> "Correct" usage would be to enable those three instructions
> with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for 
> consistency), and to enable the rest of the MIPS IV ISA 
> with "-mips4" instead of the archaic r8000 hack.

Your historic facts may be right but the GCC fact aren't.  -mcpu=xxx tell
GCC to schedule instructions for a certain processor xxx.  This does not
enable the full use of it's instruction set.  Back in time when I choose
these options I choose because GCC didn't know -mcpu=r5000 but the R8000
was supported and it was the closest fit.  Gcc 1.1.2 knows this option
so I just changed all instances of -mcpu=r8000 into -mcpu=r5000.

> Note, furthermore, that -mmad needs to be handled with care: 
> Prior to MIPS standardizing the instruction as part of 
> MIPS32, there were four or five subtly (or not so subltly) 
> different definitions of integer multiply-accumulate for MIPS.  
> Most use the same opcode, but even those can differ in side 
> effects (is the rd field interpreted, etc.). A R4650 madd operation
> will probably behave equivalently on a Nevada CPU, 
> but certainly not on a Vr41xx part, for example.

Unfortunately true but there is a reason that QED's manual marks it as an
proprietary extension ...

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 16 10:02:34 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GI2YD11051
	for linux-mips-outgoing; Fri, 16 Mar 2001 10:02:34 -0800
Received: from nevyn.them.org (mail@NEVYN.RES.CMU.EDU [128.2.145.225])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GI2PM11043;
	Fri, 16 Mar 2001 10:02:26 -0800
Received: from drow by nevyn.them.org with local (Exim 3.22 #1 (Debian))
	id 14dyYC-0001rC-00; Fri, 16 Mar 2001 13:02:08 -0500
Date: Fri, 16 Mar 2001 13:02:08 -0500
From: Daniel Jacobowitz <dan@debian.org>
To: Ralf Baechle <ralf@oss.sgi.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010316130208.A6803@nevyn.them.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <20010316150423.A3529@bacchus.dhis.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.16i
In-Reply-To: <20010316150423.A3529@bacchus.dhis.org>; from ralf@oss.sgi.com on Fri, Mar 16, 2001 at 03:04:23PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1872
Lines: 34

On Fri, Mar 16, 2001 at 03:04:23PM +0100, Ralf Baechle wrote:
> On Wed, Mar 14, 2001 at 11:11:47PM +0100, Kevin D. Kissell wrote:
> 
> > > Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> > > because the Nevada CPUs have _somewhat_ similar scheduling properties
> > > to the R8000.  This of it as an independant ISA expension which can
> > > be used with an arbitrary MIPS processor - even a R3000 processor.
> > 
> > In the interests of historical accuracy and general pedantry,
> > let me point out that -mcpu=r8000 is in effect a rather klugy
> > way of saying "-mips4" to compilers that predate official
> > MIPS IV ISA support.  The R8000 was the first MIPS IV
> > CPU, followed by the R10000 and the R5000.  The "Nevada"
> > processors added three implementation specific instructions
> > to the MIPS IV ISA: MAD, MADU, and MUL (targeted multiply).
> > "Correct" usage would be to enable those three instructions
> > with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for 
> > consistency), and to enable the rest of the MIPS IV ISA 
> > with "-mips4" instead of the archaic r8000 hack.
> 
> Your historic facts may be right but the GCC fact aren't.  -mcpu=xxx tell
> GCC to schedule instructions for a certain processor xxx.  This does not
> enable the full use of it's instruction set.  Back in time when I choose
> these options I choose because GCC didn't know -mcpu=r5000 but the R8000
> was supported and it was the closest fit.  Gcc 1.1.2 knows this option
> so I just changed all instances of -mcpu=r8000 into -mcpu=r5000.

Are you saying that the -mcpu=r8000 options in linux/arch/mips/Makefile
for the nevada should be -mcpu=r5000 instead?

-- 
Daniel Jacobowitz                           Debian GNU/Linux Developer
Monta Vista Software                              Debian Security Team
                         "I am croutons!"

From owner-linux-mips@oss.sgi.com Fri Mar 16 10:16:50 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GIGoA11605
	for linux-mips-outgoing; Fri, 16 Mar 2001 10:16:50 -0800
Received: from dea.waldorf-gmbh.de (u-210-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.210])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GIGlM11602
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 10:16:47 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2GIGXF14155;
	Fri, 16 Mar 2001 19:16:33 +0100
Date: Fri, 16 Mar 2001 19:16:33 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: Daniel Jacobowitz <dan@debian.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010316191633.C2857@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <20010316150423.A3529@bacchus.dhis.org> <20010316130208.A6803@nevyn.them.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010316130208.A6803@nevyn.them.org>; from dan@debian.org on Fri, Mar 16, 2001 at 01:02:08PM -0500
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 226
Lines: 8

On Fri, Mar 16, 2001 at 01:02:08PM -0500, Daniel Jacobowitz wrote:

> Are you saying that the -mcpu=r8000 options in linux/arch/mips/Makefile
> for the nevada should be -mcpu=r5000 instead?

Correct for egcs >= 1.1.2.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 16 10:42:42 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GIggm12215
	for linux-mips-outgoing; Fri, 16 Mar 2001 10:42:42 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GIgdM12211;
	Fri, 16 Mar 2001 10:42:39 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id KAA19687;
	Fri, 16 Mar 2001 10:42:38 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id KAA12884;
	Fri, 16 Mar 2001 10:42:35 -0800 (PST)
Message-ID: <010201c0ae49$6df089e0$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Ralf Baechle" <ralf@oss.sgi.com>
Cc: <linux-mips@oss.sgi.com>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <20010316150423.A3529@bacchus.dhis.org>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Date: Fri, 16 Mar 2001 19:46:23 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2812
Lines: 55

> > > Don't think of the r8000; the kernel only uses the -mcpu=r8000 option
> > > because the Nevada CPUs have _somewhat_ similar scheduling properties
> > > to the R8000.  This of it as an independant ISA expension which can
> > > be used with an arbitrary MIPS processor - even a R3000 processor.
> > 
> > In the interests of historical accuracy and general pedantry,
> > let me point out that -mcpu=r8000 is in effect a rather klugy
> > way of saying "-mips4" to compilers that predate official
> > MIPS IV ISA support.  The R8000 was the first MIPS IV
> > CPU, followed by the R10000 and the R5000.  The "Nevada"
> > processors added three implementation specific instructions
> > to the MIPS IV ISA: MAD, MADU, and MUL (targeted multiply).
> > "Correct" usage would be to enable those three instructions
> > with a "-mcpu=nevada", or better still, "-mcpu=r5200" (for 
> > consistency), and to enable the rest of the MIPS IV ISA 
> > with "-mips4" instead of the archaic r8000 hack.
> 
> Your historic facts may be right but the GCC fact aren't.  -mcpu=xxx tell
> GCC to schedule instructions for a certain processor xxx.  This does not
> enable the full use of it's instruction set.  Back in time when I choose
> these options I choose because GCC didn't know -mcpu=r5000 but the R8000
> was supported and it was the closest fit.  Gcc 1.1.2 knows this option
> so I just changed all instances of -mcpu=r8000 into -mcpu=r5000.

As I understand it, the original intention behind -mcpu was to optimise 
instruction scheduling, but it got perverted over time to enable 
instructions as well.  In any case, the R5000 and R8000 have the 
same ISA, but the pipelines are radically different.  The R8K is 
4-way superscalar, with a 2-cycle branch penalty and branch 
prediction.  The R5K is two way supercalar (Int/FP pairs only) 
with classic MIPS branch behavior, etc.

> > Note, furthermore, that -mmad needs to be handled with care: 
> > Prior to MIPS standardizing the instruction as part of 
> > MIPS32, there were four or five subtly (or not so subltly) 
> > different definitions of integer multiply-accumulate for MIPS.  
> > Most use the same opcode, but even those can differ in side 
> > effects (is the rd field interpreted, etc.). A R4650 madd operation
> > will probably behave equivalently on a Nevada CPU, 
> > but certainly not on a Vr41xx part, for example.
> 
> Unfortunately true but there is a reason that QED's manual marks it as an
> proprietary extension ...

Yup.  The quesiton is, does gcc's -mmad option actually
select based on -mcpu or some other variable which
semantics to use, or does it assume R4650 semantics
(I had the impression that it was the R4650 that drove
the implementation of MIPS madd's into gcc - correct
me if I'm wrong).

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Fri Mar 16 11:35:52 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GJZq313409
	for linux-mips-outgoing; Fri, 16 Mar 2001 11:35:52 -0800
Received: from dea.waldorf-gmbh.de (u-210-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.210])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GJZlM13406
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 11:35:48 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2GJZe214975;
	Fri, 16 Mar 2001 20:35:40 +0100
Date: Fri, 16 Mar 2001 20:35:40 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: <linux-mips@oss.sgi.com>
Subject: Re: Can't build a CONFIG_CPU_NEVADA kernel
Message-ID: <20010316203540.D2857@bacchus.dhis.org>
References: <20010314084633.A25674@nevyn.them.org> <20010314195919.A1911@bacchus.dhis.org> <20010314140529.A29525@nevyn.them.org> <20010314202058.B1911@bacchus.dhis.org> <00fc01c0acd3$c881ca80$0deca8c0@Ulysses> <20010316150423.A3529@bacchus.dhis.org> <010201c0ae49$6df089e0$0deca8c0@Ulysses>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <010201c0ae49$6df089e0$0deca8c0@Ulysses>; from kevink@mips.com on Fri, Mar 16, 2001 at 07:46:23PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1566
Lines: 36

On Fri, Mar 16, 2001 at 07:46:23PM +0100, Kevin D. Kissell wrote:

> > GCC to schedule instructions for a certain processor xxx.  This does not
> > enable the full use of it's instruction set.  Back in time when I choose
> > these options I choose because GCC didn't know -mcpu=r5000 but the R8000
> > was supported and it was the closest fit.  Gcc 1.1.2 knows this option
> > so I just changed all instances of -mcpu=r8000 into -mcpu=r5000.
> 
> As I understand it, the original intention behind -mcpu was to optimise 
> instruction scheduling, but it got perverted over time to enable 
> instructions as well.  In any case, the R5000 and R8000 have the 
> same ISA, but the pipelines are radically different.  The R8K is 
> 4-way superscalar, with a 2-cycle branch penalty and branch 
> prediction.  The R5K is two way supercalar (Int/FP pairs only) 
> with classic MIPS branch behavior, etc.

Gcc's knowledge about MIPS architecture is so limited that an R5000 isn't
very much different from an R8000 ...

> > Unfortunately true but there is a reason that QED's manual marks it as an
> > proprietary extension ...
> 
> Yup.  The quesiton is, does gcc's -mmad option actually
> select based on -mcpu or some other variable which
> semantics to use, or does it assume R4650 semantics

If you have a collection which of the CPUs have implemented mmad in what
way I'd like to use that to put it into gcc.

> (I had the impression that it was the R4650 that drove
> the implementation of MIPS madd's into gcc - correct
> me if I'm wrong).

Guess that's right.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 16 12:58:24 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GKwOe14826
	for linux-mips-outgoing; Fri, 16 Mar 2001 12:58:24 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GKwOM14823
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 12:58:24 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP id 0B5B7205FD
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 12:58:18 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Fri, 16 Mar 2001 12:51:24 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP id 597831595F
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 12:58:18 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id 14731686D; Fri, 16 Mar 2001 13:00:51 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: linux-mips@oss.sgi.com
Subject: mips64 pgd_current
Date: Fri, 16 Mar 2001 12:55:18 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <01031613005000.00780@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1007
Lines: 29


Doing some more code trolling here; am looking at the MP 
parts of the TLB refill code in the mips64 tree, and I'm a bit
confused.

It looks to me like pgd_current[] is indexed by CP0_CONTEXT
and the resulting pointer is supposed to be the base of the
page tables for that particular process.  This makes sense.

However, I see this in mmu_context.h:

#define TLBMISS_HANDLER_SETUP_PGD(pgd) \
	pgd_current[smp_processor_id()] = (unsigned long)(pgd)
#define TLBMISS_HANDLER_SETUP() \
	set_context((unsigned long) smp_processor_id() << (23 + 3)); \
	TLBMISS_HANDLER_SETUP_PGD(swapper_pg_dir)
extern unsigned long pgd_current[];

so pgd_current[smp_processor_id()] is hard coded to be set to
swapper_pg_dir, which, insofar as I can tell, is not a per-cpu structure.  

It looks to me like this will end up with pgd_current[] being an
array of NR_CPUS pointers all of which point to the same pgd table.  

I know I must be misunderstanding this code.  Any suggestions as to what I'm
missing?

Thanks,
  Justin

From owner-linux-mips@oss.sgi.com Fri Mar 16 14:08:36 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GM8aG16145
	for linux-mips-outgoing; Fri, 16 Mar 2001 14:08:36 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GM8aM16142
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 14:08:36 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP id DE571205FC
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 14:08:30 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Fri, 16 Mar 2001 14:01:36 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP id 9E69C1595F
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 14:08:30 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id 34823686D; Fri, 16 Mar 2001 14:11:03 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: linux-mips@oss.sgi.com
Subject: Re: mips64 pgd_current
Date: Fri, 16 Mar 2001 14:09:42 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
References: <01031613005000.00780@plugh.sibyte.com>
In-Reply-To: <01031613005000.00780@plugh.sibyte.com>
MIME-Version: 1.0
Message-Id: <01031614110304.00780@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 224
Lines: 8


As is often the case, I answered my own question my being figuring out how to
state it; everything happens as I described, but on context switch, the
pgd_current stuff is reset appropriately.

Sorry for the noise.

-Justin

From owner-linux-mips@oss.sgi.com Fri Mar 16 15:06:32 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2GN6W917397
	for linux-mips-outgoing; Fri, 16 Mar 2001 15:06:32 -0800
Received: from smtp4.xs4all.nl (smtp4.xs4all.nl [194.109.6.50])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2GN6VM17393
	for <linux-mips@oss.sgi.com>; Fri, 16 Mar 2001 15:06:31 -0800
Received: from xs3.xs4all.nl (wdmgds@xs3.xs4all.nl [194.109.6.44])
	by smtp4.xs4all.nl (8.9.3/8.9.3) with ESMTP id AAA06552
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 00:06:29 +0100 (CET)
From: wdmgds@xs4all.nl
Received: from localhost (wdmgds@localhost)
	by xs3.xs4all.nl (8.9.0/8.9.0) with ESMTP id AAA08276
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 00:04:23 +0100 (CET)
Date: Sat, 17 Mar 2001 00:04:23 +0100 (CET)
To: linux-mips@oss.sgi.com
Subject: Re: machines available to porters
In-Reply-To: <20010316145854.A12251@lug-owl.de>
Message-ID: <Pine.BSI.4.10.10103170002240.8216-100000@xs3.xs4all.nl>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=X-UNKNOWN
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by oss.sgi.com id f2GN6WM17395
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 593
Lines: 24



On Fri, 16 Mar 2001, Jan-Benedict Glaw wrote:

> On Fri, Mar 16, 2001 at 08:32:56AM -0500, Bill McGonigle wrote:
> > Hi, all,
> > 
> >      If anyone working on the MIPS/SGI linux port could use any of this
> > hardware, let me know and I'll try to get it sent out to you.
> 
> Hi!
> 
> Many thanks for your offer. I think at lease 3 people located nearby
> Gütersloh or Bielefeld in Germany would be highly interested to

Who are those well known committers if I might ask?

> get access to these machines. One problem from my point of view
> are shipping costs... 

Sincerely,

Wednesday


From owner-linux-mips@oss.sgi.com Sat Mar 17 02:51:22 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2HApMA24769
	for linux-mips-outgoing; Sat, 17 Mar 2001 02:51:22 -0800
Received: from pandora.research.kpn.com (pandora.research.kpn.com [139.63.192.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2HApLM24766
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 02:51:21 -0800
Received: (from karel@localhost)
	by pandora.research.kpn.com (8.9.3/8.9.3) id LAA04852
	for linux-mips@oss.sgi.com; Sat, 17 Mar 2001 11:51:19 +0100
From: Karel van Houten <K.H.C.vanHouten@kpn.com>
Message-Id: <200103171051.LAA04852@pandora.research.kpn.com>
Subject: rpm crashing on RH 7.0 indy
To: linux-mips@oss.sgi.com
Date: Sat, 17 Mar 2001 11:51:19 +0100 (MET)
X-Url: http://www-lsdm.research.kpn.com/~karel
X-Mailer: ELM [version 2.5 PL3]
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3245
Lines: 64

Hi all,

I hope someone can help me with this problem...

I've installed an Indy with Ralfs Redhat/test-7.0 packages.
Most things work OK, but rpm itself crashes when installing
a package. Here is a trace of what happens:

(gdb) run
Starting program: /usr/src/redhat/BUILD/rpm-4.0/rpm -ihv /cdrom/mips/XFree86-dev
el-4.0.1-1lm.mips.rpm 

Program received signal SIGSEGV, Segmentation fault.
_dl_lookup_versioned_symbol (undef_name=0x2affa6af "strcpy", 
    undef_map=0x10075330, ref=0x7fff9818, symbol_scope=0x1007554c, 
    version=0x100756b0, reloc_type=3, explicit=0) at do-lookup.h:52
52      do-lookup.h: No such file or directory.
(gdb) bt
#0  _dl_lookup_versioned_symbol (undef_name=0x2affa6af "strcpy", 
    undef_map=0x10075330, ref=0x7fff9818, symbol_scope=0x1007554c, 
    version=0x100756b0, reloc_type=3, explicit=0) at do-lookup.h:52
#1  0x5c30e4 in _dl_relocate_object () at ../sysdeps/mips/dl-machine.h:684
#2  0x5b6a40 in dl_open_worker (a=0x1007554c) at dl-open.c:316
#3  0x5b4a18 in _dl_catch_error (objname=0x7fff9a38, errstring=0x7fff9a3c, 
    operate=0x5b6470 <dl_open_worker>, args=0x7fff9a28) at dl-error.c:149
#4  0x5b6ca0 in _dl_open (file=0x7fff9c10 "libnss_nisplus.so.2", mode=1, 
    caller=0x0) at dl-open.c:380
#5  0x58882c in do_dlopen (ptr=0x7fff9bf0) at dl-libc.c:78
#6  0x5b4a18 in _dl_catch_error (objname=0x7fff9bc0, errstring=0x7fff9bc4, 
    operate=0x5887ec <do_dlopen>, args=0x7fff9bf0) at dl-error.c:149
#7  0x5887a4 in dlerror_run (operate=0x1007554c, args=0x0) at dl-libc.c:42
#8  0x58893c in __libc_dlopen (__name=0x1007554c "\020\b\023\230\020\b\031 ")
    at dl-libc.c:104
#9  0x57d1d0 in __nss_lookup_function (ni=0x10080b80, 
    fct_name=0x5e3be0 "getpwnam_r") at nsswitch.c:333
#10 0x57c560 in __nss_lookup (ni=0x7ffff2b0, fct_name=0x5e3be0 "getpwnam_r", 
    fctp=0x7ffff2b4) at nsswitch.c:148
#11 0x57e544 in __nss_passwd_lookup (ni=0x7ffff2b0, 
    fct_name=0x5e3be0 "getpwnam_r", fctp=0x7ffff2b4) at XXX-lookup.c:68
#12 0x56d7d0 in __getpwnam_r (name=0x5cc34c "root", resbuf=0x10018c08, 
    buffer=0x10080520 "\020", buflen=1024, result=0x7ffff308)
    at ../nss/getXXbyYY_r.c:159
#13 0x56c9bc in getpwnam (name=0x5cc34c "root") at ../nss/getXXbyYY.c:127
#14 0x42753c in installBinaryPackage (rootdir=0x1004de50 "/", db=0x1004a688, 
    fd=0x100a2bb8, h=0x10088890, flags=0, notify=0x438fa0 <showProgress>, 
    notifyData=0x12, pkgKey=0x7ffff9f6, actions=0x1006edb8, sharedList=0x0, 
    scriptFd=0x0) at install.c:941
#15 0x449c20 in rpmRunTransactions (ts=0x1004dde8, 
    notify=0x438fa0 <showProgress>, notifyData=0x12, okProbs=0x0, 
    newProbs=0x7ffff6c4, transFlags=0, ignoreSet=0) at transaction.c:1701
#16 0x439c4c in rpmInstall (rootdir=0x5c917c "/", fileArgv=0x1001faf8, 
    transFlags=0, interfaceFlags=2, probFilter=0, relocations=0x0)
    at rpminstall.c:370
#17 0x406a2c in main (argc=3, argv=0xffffffff) at rpm.c:1133
#18 0x53599c in __libc_start_main (main=0x404090 <main>, argc=3, 
    ubp_av=0x7ffff8d4, init=0x4000f8 <_init>, fini=0x5c6880 <_fini>, 
    rtld_fini=0, stack_end=0x7ffff8b0) at ../sysdeps/generic/libc-start.c:111

This is a static rpm binary, so I don't understand why it tries
do dynaload anything at all...

Thanks in advance,
-- 
Karel van Houten

From owner-linux-mips@oss.sgi.com Sat Mar 17 07:01:07 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2HF17d27366
	for linux-mips-outgoing; Sat, 17 Mar 2001 07:01:07 -0800
Received: from mailout02.sul.t-online.com (mailout02.sul.t-online.com [194.25.134.17])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2HF14M27362
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 07:01:04 -0800
Received: from fwd03.sul.t-online.com 
	by mailout02.sul.t-online.com with smtp 
	id 14eICT-0002it-01; Sat, 17 Mar 2001 16:01:01 +0100
Received: from void.s.bawue.de (520095841842-0001@[62.158.213.107]) by fmrl03.sul.t-online.com
	with esmtp id 14eICC-1IlheSC; Sat, 17 Mar 2001 16:00:44 +0100
Received: from florian by void.s.bawue.de with local (Exim 3.16 #1 (Debian))
	id 14eELB-0000RL-00; Sat, 17 Mar 2001 11:53:45 +0100
Date: Sat, 17 Mar 2001 11:53:45 +0100
To: linux-mips@oss.sgi.com
Subject: Re: machines available to porters
Message-ID: <20010317115345.B623@void.s.bawue.de>
Mail-Followup-To: Florian Laws <florian@void.s.bawue.de>,
	linux-mips@oss.sgi.com
References: <3AB21608.5030007@medicalmedia.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AB21608.5030007@medicalmedia.com>; from mcgonigle@medicalmedia.com on Fri, Mar 16, 2001 at 08:32:56AM -0500
From: Florian Laws <florian@void.s.bawue.de>
X-Sender: 520095841842-0001@t-dialin.net
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 451
Lines: 16

On Fri, Mar 16, 2001 at 08:32:56AM -0500, Bill McGonigle wrote:
> 
> u5 - Indigo 2 "Impact 10000" (purple)
>      scsi disk 0,1 2.27 GB
>      scsi disk 0,2 9.15 GB
>      scsi disk 0,3 cdrom
>       Irix Audio Processor: Version A2
>       1 195 MHZ IP22 Processor
                  ^^^^
>       FPU: MIPS R10010 Floating Point Coprocessor 0.0
>       CPU: MIPS R10000 Processor Chip rev. 2.5
                  ^^^^^^

Can this be possible?

Florian

From owner-linux-mips@oss.sgi.com Sat Mar 17 07:47:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2HFlUs28067
	for linux-mips-outgoing; Sat, 17 Mar 2001 07:47:30 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2HFlTM28064
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 07:47:29 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2HFlQt47888
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK);
	Sat, 17 Mar 2001 16:47:27 +0100 (CET)
Received: (from xjezda00@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2HFlQF86608;
	Sat, 17 Mar 2001 16:47:26 +0100 (CET)
Date: Sat, 17 Mar 2001 16:47:26 +0100
From: David Jez <dave.jez@seznam.cz>
To: Karel van Houten <K.H.C.vanHouten@kpn.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
Message-ID: <20010317164726.B86495@stud.fee.vutbr.cz>
References: <200103171051.LAA04852@pandora.research.kpn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103171051.LAA04852@pandora.research.kpn.com>; from K.H.C.vanHouten@kpn.com on Sat, Mar 17, 2001 at 11:51:19AM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 839
Lines: 28

On Sat, Mar 17, 2001 at 11:51:19AM +0100, Karel van Houten wrote:
> Hi all,
> 
> I hope someone can help me with this problem...
> 
> I've installed an Indy with Ralfs Redhat/test-7.0 packages.
> Most things work OK, but rpm itself crashes when installing
> a package. Here is a trace of what happens:
> 
> This is a static rpm binary, so I don't understand why it tries
> do dynaload anything at all...
  Hi,

Ooops, i think: haven't you got broken rpm? Have you downloaded the rpm
complete? Try checksum or md5.

> 
> Thanks in advance,
> -- 
> Karel van Houten
Hope you will be succeded,
Dave
-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@fest.stud.fee.vutbr.cz
---------=[ ~EOF ]=------------------------------------

From owner-linux-mips@oss.sgi.com Sat Mar 17 09:39:26 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2HHdQ629530
	for linux-mips-outgoing; Sat, 17 Mar 2001 09:39:26 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2HHdPM29527
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 09:39:25 -0800
Received: from galt.foobazco.org (galt.foobazco.org [198.144.194.227])
	by mail.foobazco.org (Postfix) with ESMTP
	id AB552109CE; Sat, 17 Mar 2001 09:39:47 -0800 (PST)
Received: by galt.foobazco.org (Postfix, from userid 1014)
	id 1F81A1F429; Sat, 17 Mar 2001 09:39:20 -0800 (PST)
Date: Sat, 17 Mar 2001 09:39:19 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: David Jez <dave.jez@seznam.cz>
Cc: Karel van Houten <K.H.C.vanHouten@kpn.com>, linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
Message-ID: <20010317093919.A19754@foobazco.org>
References: <200103171051.LAA04852@pandora.research.kpn.com> <20010317164726.B86495@stud.fee.vutbr.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010317164726.B86495@stud.fee.vutbr.cz>; from dave.jez@seznam.cz on Sat, Mar 17, 2001 at 04:47:26PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 889
Lines: 20

On Sat, Mar 17, 2001 at 04:47:26PM +0100, David Jez wrote:

> > This is a static rpm binary, so I don't understand why it tries
> > do dynaload anything at all...
>   Hi,
> 
> Ooops, i think: haven't you got broken rpm? Have you downloaded the rpm
> complete? Try checksum or md5.

That's not the problem.  The problem is that static binaries which use
libdl used to be (and perhaps still are) broken.  The reason it's
using libdl is that the nss libraries are never truly static, unless
you compile glibc with a special non-recommended option.  I have
indications that this may be fixed in glibc 2.2.2 using my current
toolchain, but my information is not complete.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Sat Mar 17 12:32:08 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2HKW8w32500
	for linux-mips-outgoing; Sat, 17 Mar 2001 12:32:08 -0800
Received: from web10507.mail.yahoo.com (web10507.mail.yahoo.com [216.136.130.157])
	by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2HKW7M32497
	for <linux-mips@oss.sgi.com>; Sat, 17 Mar 2001 12:32:07 -0800
Message-ID: <20010317203207.54631.qmail@web10507.mail.yahoo.com>
Received: from [63.22.96.13] by web10507.mail.yahoo.com; Sat, 17 Mar 2001 12:32:07 PST
Date: Sat, 17 Mar 2001 12:32:07 -0800 (PST)
From: m b <mbr35@yahoo.com>
Subject: Linux on SGI Indigo and Indigo2
To: linux-mips@oss.sgi.com
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 269
Lines: 12

Hi,
I have an Indigo and an Indigo 2 and want to run
Linux.  Someone told me to ask here. Can anyone help?

Thanks,
Marc


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

From owner-linux-mips@oss.sgi.com Sun Mar 18 07:32:18 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2IFWIW14246
	for linux-mips-outgoing; Sun, 18 Mar 2001 07:32:18 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2IFWHM14243
	for <linux-mips@oss.sgi.com>; Sun, 18 Mar 2001 07:32:17 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2IFWCt12317
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK)
	for <linux-mips@oss.sgi.com>; Sun, 18 Mar 2001 16:32:14 +0100 (CET)
Received: (from xmichl03@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2IFWB218968;
	Sun, 18 Mar 2001 16:32:11 +0100 (CET)
From: Michl Ladislav <xmichl03@stud.fee.vutbr.cz>
Date: Sun, 18 Mar 2001 16:32:11 +0100 (CET)
X-processed: pine.send
To: <linux-mips@oss.sgi.com>
Subject: arc cmdline.c
Message-ID: <Pine.BSF.4.33.0103181559120.18101-100000@fest.stud.fee.vutbr.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1815
Lines: 67

hi all,

i have some beginner questions, so please be patient with me :-)

1) quoting indy-hd-boot-micro-howto.html:
O.k. we're almost there. The last thing to do is to tell the PROM which
file to boot on power up:
[snip]
	setenv OSLoader linux
	setenv SystemPartition scsi(0)disk(1)rdisk(0)partition(8)
	setenv OSLoadPartition /dev/sda1

but OSLoadPartition is ignored, so this no loger works. does it mean that
i have to use
	setenv root /dev/sda1
instead?

hmm, i really hate gotos :-(

--- cmdline.c.orig	Sun Mar 18 15:26:02 2001
+++ cmdline.c	Sun Mar 18 15:46:22 2001
@@ -34,23 +34,18 @@
 	char *cp;
 	int actr, i;

-	actr = 1; /* Always ignore argv[0] */
-
 	cp = &(arcs_cmdline[0]);
-	while(actr < prom_argc) {
-		for(i = 0; i < NENTS(ignored); i++) {
-			int len = strlen(ignored[i]);
-
-			if(!strncmp(prom_argv[actr], ignored[i], len))
-				goto pic_cont;
+
+	/* Always ignore argv[0] */
+	for (actr = 1; actr < prom_argc; actr++) {
+		for (i = 0; i < NENTS(ignored); i++) {
+			if (strncmp(prom_argv[actr], ignored[i], strlen(ignored[i]))) {
+				/* Ok, we want it. */
+				strcpy(cp, prom_argv[actr]);
+				cp += strlen(prom_argv[actr]);
+				*cp++ = ' ';
+			}
 		}
-		/* Ok, we want it. */
-		strcpy(cp, prom_argv[actr]);
-		cp += strlen(prom_argv[actr]);
-		*cp++ = ' ';
-
-	pic_cont:
-		actr++;
 	}
 	if (cp != &(arcs_cmdline[0])) /* get rid of trailing space */
 		--cp;

2) i also don't understand directory layout in arch/mips. i expected
indy's prom cmdline in arch/mips/sgi/prom, but found it in arch/mips/arc.
is there any historical (or other) reason for this?

3) what compiler are you using? compilation of glibc2.2.2 with gcc 2.95.2
took about 11 (!) hours on 100 MHz Indy, ie much more than on i486. now
i'm trying build gcc 3.0 from cvs, i hope it helps.

thanks for explanation,
ladis


From owner-linux-mips@oss.sgi.com Sun Mar 18 18:37:29 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2J2bTn21729
	for linux-mips-outgoing; Sun, 18 Mar 2001 18:37:29 -0800
Received: from ibbserver.ibb.uu.nl (IDENT:mail@ibbserver.ibb.uu.nl [131.211.124.6])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2J2bRM21726
	for <linux-mips@oss.sgi.com>; Sun, 18 Mar 2001 18:37:27 -0800
Received: from leander.ibb.uu.nl (ibb0100.ibb.uu.nl [131.211.124.100])
	by ibbserver.ibb.uu.nl (Postfix) with ESMTP
	id 2BB0E124B3; Mon, 19 Mar 2001 03:37:25 +0100 (CET)
Message-Id: <5.0.2.1.2.20010319031124.00af61a0@pop.med.uu.nl>
X-Sender: leander@131.211.124.6
X-Mailer: QUALCOMM Windows Eudora Version 5.0.2
Date: Mon, 19 Mar 2001 03:36:54 +0100
To: debian-mips@lists.debian.org, linux-mips@oss.sgi.com
From: Leander Koornneef <leander@ibb.uu.nl>
Subject: Trouble booting my indy
Mime-Version: 1.0
Content-Type: multipart/alternative;
	boundary="=====================_2493078==_.ALT"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3676
Lines: 94

--=====================_2493078==_.ALT
Content-Type: text/plain; charset="us-ascii"; format=flowed

Hi there,

I acquired an indy recently. I spent some time reading emails in these 
lists and some documentation available on the internet.
So now, finally came the time to really try and install debian-mips on this 
machine.
I booted my Mandrake linux box and setup everything according to 
http://staf.digibel.org/topic.php?lang=eng&top=indy
Now, I fired up the indy and gave the command:
         'boot -f bootp()vmlinux-2.4.0-test6-pre8.ecoff init=/bin/bash 
nfsroot=192.168.0.1:/indy'

I got the following:
         'Setting $netaddr to 192.168.0.2 ( from server)'

Which is nice :-)
Then, nothing happens for a minute or two after which I get the mesage:
         'Unable to load bootp()vmlinux-2.4.0-test6-pre8.ecoff 
''bootp()vmlinux-2.4.0-test6-pre8.ecoff'' is not a valid file to boot'

As far as I can tell, the tftp daemon is running and /indy is exported
In the logs it says:
         Mar 19 02:39:06 leander dhcpd: data: lease_time: lease ends at 0 
when it is now 984965946
         Mar 19 02:39:06 leander dhcpd: BOOTREQUEST from 08:00:69:09:64:09 
via eth0
         Mar 19 02:39:06 leander dhcpd: BOOTREPLY for 192.168.0.2 to indy 
(08:00:69:09:64:09) via eth0
And that's it :-(
I read something about problems with tftpd running on linux >= 2.3, but my 
boot server is running 2.2.18.
I hope someone can help me finally boot my indy....
By the way, it's an R5000pc (150MHz)

Many thanks in advance,

Leander Koornneef

--=====================_2493078==_.ALT
Content-Type: text/html; charset="us-ascii"

<html>
Hi there, <br>
<br>
I acquired an indy recently. I spent some time reading emails in these
lists and some documentation available on the internet.<br>
So now, finally came the time to really try and install debian-mips on
this machine.<br>
I booted my Mandrake linux box and setup everything according to
<a href="http://staf.digibel.org/topic.php?lang=eng&amp;top=indy" eudora="autourl">http://staf.digibel.org/topic.php?lang=eng&amp;top=indy</a><br>
Now, I fired up the indy and gave the command:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>'boot -f
bootp()vmlinux-2.4.0-test6-pre8.ecoff init=/bin/bash
nfsroot=192.168.0.1:/indy'<br>
<br>
I got the following:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>'Setting
$netaddr to 192.168.0.2 ( from server)'<br>
<br>
Which is nice :-)<br>
Then, nothing happens for a minute or two after which I get the
mesage:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>'Unable to
load bootp()vmlinux-2.4.0-test6-pre8.ecoff
''bootp()vmlinux-2.4.0-test6-pre8.ecoff'' is not a valid file to
boot'<br>
<br>
As far as I can tell, the tftp daemon is running and /indy is
exported<br>
In the logs it says:<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab><font face="Courier New, Courier">Mar
19 02:39:06 leander dhcpd: data: lease_time: lease ends at 0 when it is
now 984965946<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Mar 19
02:39:06 leander dhcpd: BOOTREQUEST from 08:00:69:09:64:09 via eth0<br>
<x-tab>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</x-tab>Mar 19
02:39:06 leander dhcpd: BOOTREPLY for 192.168.0.2 to indy
(08:00:69:09:64:09) via eth0<br>
</font>And that's it :-(<br>
I read something about problems with tftpd running on linux &gt;= 2.3,
but my boot server is running 2.2.18.<br>
I hope someone can help me finally boot my indy....<br>
By the way, it's an R5000pc (150MHz)<br>
<br>
Many thanks in advance,<br>
<br>
Leander Koornneef<br>
</html>

--=====================_2493078==_.ALT--


From owner-linux-mips@oss.sgi.com Mon Mar 19 06:07:49 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JE7nH31733
	for linux-mips-outgoing; Mon, 19 Mar 2001 06:07:49 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JE7mM31730
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 06:07:48 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id GAA05551
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 06:07:48 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id GAA00622
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 06:07:46 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id PAA02100
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 15:07:15 +0100 (MET)
Message-ID: <3AB61293.5652407C@mips.com>
Date: Mon, 19 Mar 2001 15:07:15 +0100
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: Bug in the _save_fp_context.
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1142
Lines: 35

I think there is a bug in the _save_fp_context function in
arch/mips/kernel/r4k_fpu.S

The problem is the following piece of code:

 jr ra
 .set nomacro
 EX(sw t0,SC_FPC_EIR(a0))
 nop
 .set macro

First of all what should the ".set nomacro" do?
If it means that the EX macro shouldn't be used then this entry wouldn't
get into __ex_table, which would be wrong.
But it look like it uses the macro anyway, regardless of the ".set
nomacro", at least with the compiler I use.
Never the less we do not handle entries in the __ex_table which is
located in a branch delay.
So we need to handle the situation where we take a page fault on an
instruction which is located in a brach delay slot, or we don't put the
"potential" faulting instruction in a delay slot.

Any ideas, how we should handle this in a nice and clean way?

/Carsten

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Mon Mar 19 07:39:20 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JFdKL01110
	for linux-mips-outgoing; Mon, 19 Mar 2001 07:39:20 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JFdKM01107
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 07:39:20 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id HAA06334
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 07:39:19 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id HAA02840;
	Mon, 19 Mar 2001 07:39:15 -0800 (PST)
Message-ID: <00e901c0b08b$50bed400$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Carsten Langgaard" <carstenl@mips.com>, <linux-mips@oss.sgi.com>
References: <3AB61293.5652407C@mips.com>
Subject: Re: Bug in the _save_fp_context.
Date: Mon, 19 Mar 2001 16:43:07 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2190
Lines: 57

> I think there is a bug in the _save_fp_context function in
> arch/mips/kernel/r4k_fpu.S
> 
> The problem is the following piece of code:
> 
>  jr ra
>  .set nomacro
>  EX(sw t0,SC_FPC_EIR(a0))
>  nop
>  .set macro
> 
> First of all what should the ".set nomacro" do?
> If it means that the EX macro shouldn't be used then this entry wouldn't
> get into __ex_table, which would be wrong.
> But it look like it uses the macro anyway, regardless of the ".set
> nomacro", at least with the compiler I use.

Not surprising, really.  "EX" is presumably a cpp macro
that gets expanded by gcc from the .S file, based on
some include file.  .set directives affect only the assembler,
and would inhibit assembler-level macros only.  I'm not
sure just what the definition of an assembler macro
would be - it may or may not include pseudo-instructions
like "la" or "li 32_bit_constant".  I *think* that what the
author was trying to do here was to ensure that the
"sw" instruction in the EX expansion was really and
truly a single instruction.

> Never the less we do not handle entries in the __ex_table which is
> located in a branch delay.
> So we need to handle the situation where we take a page fault on an
> instruction which is located in a brach delay slot, or we don't put the
> "potential" faulting instruction in a delay slot.
> 
> Any ideas, how we should handle this in a nice and clean way?

Is the __ex_table really ending up in the delay slot?
Just looking at the source, I have the impression
that the "sw t0,..." instruction should be in the delay
slot, followed by the __ex_table.

On another topic, now that I've patched the kernel to
turn off the stupid stuck interrupt on my Malta board,
I've realized that I can't just connect my old Atlas SCSI
disk.  I'm torn between ordering a Tekram 390 PCI
SCSI card, which should be able to use our "MIPS
safe" NCR driver as-is (I hope) and buying an IDE
disk and going through the network install ritual.
Which do you recommend?  One thing I really never
knew was just what kernel config options I need to
select to build a kernel that can do the NFS-root
bootstrap.  Can you help me there?

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Mon Mar 19 07:59:53 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JFxro01724
	for linux-mips-outgoing; Mon, 19 Mar 2001 07:59:53 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JFxqM01721
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 07:59:52 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id HAA06507
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 07:59:52 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id HAA03322
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 07:59:50 -0800 (PST)
Message-ID: <00f901c0b08e$3099bc00$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: <linux-mips@oss.sgi.com>
References: <3AB61293.5652407C@mips.com> <00e901c0b08b$50bed400$0deca8c0@Ulysses>
Subject: Re: Bug in the _save_fp_context.
Date: Mon, 19 Mar 2001 17:03:49 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-15"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2723
Lines: 72

Oops!  I hadn't noticed that Carsten had copied the
Linux-MIPS mailing list on this, so I treated it as a
point-to-point communication.  The rest of you can
ignore my last paragraph!

            Kevin K.

----- Original Message -----
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Carsten Langgaard" <carstenl@mips.com>; <linux-mips@oss.sgi.com>
Sent: Monday, March 19, 2001 4:43 PM
Subject: Re: Bug in the _save_fp_context.


> > I think there is a bug in the _save_fp_context function in
> > arch/mips/kernel/r4k_fpu.S
> >
> > The problem is the following piece of code:
> >
> >  jr ra
> >  .set nomacro
> >  EX(sw t0,SC_FPC_EIR(a0))
> >  nop
> >  .set macro
> >
> > First of all what should the ".set nomacro" do?
> > If it means that the EX macro shouldn't be used then this entry wouldn't
> > get into __ex_table, which would be wrong.
> > But it look like it uses the macro anyway, regardless of the ".set
> > nomacro", at least with the compiler I use.
>
> Not surprising, really.  "EX" is presumably a cpp macro
> that gets expanded by gcc from the .S file, based on
> some include file.  .set directives affect only the assembler,
> and would inhibit assembler-level macros only.  I'm not
> sure just what the definition of an assembler macro
> would be - it may or may not include pseudo-instructions
> like "la" or "li 32_bit_constant".  I *think* that what the
> author was trying to do here was to ensure that the
> "sw" instruction in the EX expansion was really and
> truly a single instruction.
>
> > Never the less we do not handle entries in the __ex_table which is
> > located in a branch delay.
> > So we need to handle the situation where we take a page fault on an
> > instruction which is located in a brach delay slot, or we don't put the
> > "potential" faulting instruction in a delay slot.
> >
> > Any ideas, how we should handle this in a nice and clean way?
>
> Is the __ex_table really ending up in the delay slot?
> Just looking at the source, I have the impression
> that the "sw t0,..." instruction should be in the delay
> slot, followed by the __ex_table.
>
> On another topic, now that I've patched the kernel to
> turn off the stupid stuck interrupt on my Malta board,
> I've realized that I can't just connect my old Atlas SCSI
> disk.  I'm torn between ordering a Tekram 390 PCI
> SCSI card, which should be able to use our "MIPS
> safe" NCR driver as-is (I hope) and buying an IDE
> disk and going through the network install ritual.
> Which do you recommend?  One thing I really never
> knew was just what kernel config options I need to
> select to build a kernel that can do the NFS-root
> bootstrap.  Can you help me there?
>
>             Regards,
>
>             Kevin K.
>


From owner-linux-mips@oss.sgi.com Mon Mar 19 08:13:41 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JGDfo02086
	for linux-mips-outgoing; Mon, 19 Mar 2001 08:13:41 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JGDeM02083
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 08:13:40 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id IAA06666
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 08:13:40 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id IAA03736;
	Mon, 19 Mar 2001 08:13:38 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id RAA09554;
	Mon, 19 Mar 2001 17:13:07 +0100 (MET)
Message-ID: <3AB63012.B2DF9CD6@mips.com>
Date: Mon, 19 Mar 2001 17:13:06 +0100
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
Subject: Re: Bug in the _save_fp_context.
References: <3AB61293.5652407C@mips.com> <00e901c0b08b$50bed400$0deca8c0@Ulysses>
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3045
Lines: 81

"Kevin D. Kissell" wrote:

> > I think there is a bug in the _save_fp_context function in
> > arch/mips/kernel/r4k_fpu.S
> >
> > The problem is the following piece of code:
> >
> >  jr ra
> >  .set nomacro
> >  EX(sw t0,SC_FPC_EIR(a0))
> >  nop
> >  .set macro
> >
> > First of all what should the ".set nomacro" do?
> > If it means that the EX macro shouldn't be used then this entry wouldn't
> > get into __ex_table, which would be wrong.
> > But it look like it uses the macro anyway, regardless of the ".set
> > nomacro", at least with the compiler I use.
>
> Not surprising, really.  "EX" is presumably a cpp macro
> that gets expanded by gcc from the .S file, based on
> some include file.  .set directives affect only the assembler,
> and would inhibit assembler-level macros only.  I'm not
> sure just what the definition of an assembler macro
> would be - it may or may not include pseudo-instructions
> like "la" or "li 32_bit_constant".  I *think* that what the
> author was trying to do here was to ensure that the
> "sw" instruction in the EX expansion was really and
> truly a single instruction.
>
> > Never the less we do not handle entries in the __ex_table which is
> > located in a branch delay.
> > So we need to handle the situation where we take a page fault on an
> > instruction which is located in a brach delay slot, or we don't put the
> > "potential" faulting instruction in a delay slot.
> >
> > Any ideas, how we should handle this in a nice and clean way?
>
> Is the __ex_table really ending up in the delay slot?
> Just looking at the source, I have the impression
> that the "sw t0,..." instruction should be in the delay
> slot, followed by the __ex_table.

The problem is that the address of the delay slot is put in the __ex_table
and then we take a page fault EPC is pointing at the jr instruction and not
the delay slot.
This result in a miss match when we try to lookup in __ex_table, resulting in
a kernel crash.

The faulting situation look like this:
EPC = address of delay slot
entry in __ex_table = address of delay slot - 4

Hopes that clarify it a bit more.

>
> On another topic, now that I've patched the kernel to
> turn off the stupid stuck interrupt on my Malta board,
> I've realized that I can't just connect my old Atlas SCSI
> disk.  I'm torn between ordering a Tekram 390 PCI
> SCSI card, which should be able to use our "MIPS
> safe" NCR driver as-is (I hope) and buying an IDE
> disk and going through the network install ritual.
> Which do you recommend?  One thing I really never
> knew was just what kernel config options I need to
> select to build a kernel that can do the NFS-root
> bootstrap.  Can you help me there?
>
>             Regards,
>
>             Kevin K.

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Mon Mar 19 10:14:01 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JIE1705220
	for linux-mips-outgoing; Mon, 19 Mar 2001 10:14:01 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JIE1M05217
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 10:14:01 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2JI8u303447;
	Mon, 19 Mar 2001 10:08:56 -0800
Message-ID: <3AB64B83.B645CCB@mvista.com>
Date: Mon, 19 Mar 2001 10:10:11 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: Carsten Langgaard <carstenl@mips.com>, linux-mips@oss.sgi.com
Subject: SCSI card [Re: Bug in the _save_fp_context.]
References: <3AB61293.5652407C@mips.com> <00e901c0b08b$50bed400$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1236
Lines: 33

"Kevin D. Kissell" wrote:

> On another topic, now that I've patched the kernel to
> turn off the stupid stuck interrupt on my Malta board,
> I've realized that I can't just connect my old Atlas SCSI
> disk.  I'm torn between ordering a Tekram 390 PCI
> SCSI card, which should be able to use our "MIPS
> safe" NCR driver as-is (I hope) and buying an IDE
> disk and going through the network install ritual.
> Which do you recommend?  One thing I really never
> knew was just what kernel config options I need to
> select to build a kernel that can do the NFS-root
> bootstrap.  Can you help me there?
> 

Kevin,

If you store your kernel image on flash and boots from there, using a local
hard disk is not a bad idea.  I recently used a SCSI card based on NCR
53C895A.  I have to turn off some optimization in the driver in order to get
it work.  See some related configs below.

CONFIG_SCSI_NCR53C8XX=y
# CONFIG_SCSI_SYM53C8XX is not set
CONFIG_SCSI_NCR53C8XX_DEFAULT_TAGS=0
CONFIG_SCSI_NCR53C8XX_MAX_TAGS=32
CONFIG_SCSI_NCR53C8XX_SYNC=0

In general NFS root is always easier to get kernel going.  Many defconfigs
under arch/mips/ already have NFS root fs configured as default, at least in
the two I put in, DDB5476 and ocelot.

Jun

From owner-linux-mips@oss.sgi.com Mon Mar 19 10:18:44 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JIIit05592
	for linux-mips-outgoing; Mon, 19 Mar 2001 10:18:44 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JIIiM05589
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 10:18:44 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2JIDe303864;
	Mon, 19 Mar 2001 10:13:40 -0800
Message-ID: <3AB64C9F.E11521DC@mvista.com>
Date: Mon, 19 Mar 2001 10:14:55 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
Subject: Re: Bug in the _save_fp_context.
References: <3AB61293.5652407C@mips.com> <00e901c0b08b$50bed400$0deca8c0@Ulysses> <00f901c0b08e$3099bc00$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 303
Lines: 13

"Kevin D. Kissell" wrote:
> 
> Oops!  I hadn't noticed that Carsten had copied the
> Linux-MIPS mailing list on this, so I treated it as a
> point-to-point communication.  The rest of you can
> ignore my last paragraph!
> 
>             Kevin K.
> 

Oops!  Please ignore my previous reply too. :-)

Jun

From owner-linux-mips@oss.sgi.com Mon Mar 19 14:53:22 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2JMrMv11724
	for linux-mips-outgoing; Mon, 19 Mar 2001 14:53:22 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2JMrMM11721
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 14:53:22 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2JMmI326581;
	Mon, 19 Mar 2001 14:48:18 -0800
Message-ID: <3AB68CFC.A2840808@mvista.com>
Date: Mon, 19 Mar 2001 14:49:32 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: gdb 5.0 display arguments problem
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1246
Lines: 33


I am using gdb 5.0 client to debug kernel, and found a bug in gdb 5.0 when it
trys to display an function argument.

The following is the relavent code segment where breakpoint is set to the
first instruction of serial_console_write().

00000000801270ac <serial_console_write>:
    801270ac:   3c04801d        lui     $a0,0x801d
    801270b0:   8c84bc1c        lw      $a0,-17380($a0)
    801270b4:   27bdffc0        addiu   $sp,$sp,-64
    801270b8:   afb40028        sw      $s4,40($sp)
    801270bc:   00a0a021        move    $s4,$a1
    801270c0:   24050001        li      $a1,1

For whatever reason gdb client on the host side apparently thinks the second
arg is stored in register s4.  When the breakpoint is hit, gdb tries to
display the value of s4 (which is 0x4 in this case).  Since the type of this
argument is char *, gdb further tries to read the content at 0x4 which causes
kernel panic.

I believe I have seen this problem before (and in most case the symptom is
wrong argument values instead of kernel panic).  Does someone have an idea how
to fix it or work around it? 

Does this problem exist in native debugging?

I assume we can disable gdb to display char strings by default.  Does someone
know how to do it?

Thanks.

Jun

From owner-linux-mips@oss.sgi.com Mon Mar 19 16:14:15 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2K0EFQ13333
	for linux-mips-outgoing; Mon, 19 Mar 2001 16:14:15 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2K0EEM13330
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 16:14:14 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id QAA12375;
	Mon, 19 Mar 2001 16:14:14 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id QAA21348;
	Mon, 19 Mar 2001 16:14:11 -0800 (PST)
Message-ID: <01e701c0b0d3$3fca8980$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Jun Sun" <jsun@mvista.com>, <linux-mips@oss.sgi.com>
References: <3AB68CFC.A2840808@mvista.com>
Subject: Re: gdb 5.0 display arguments problem
Date: Tue, 20 Mar 2001 01:18:02 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2613
Lines: 59

> I am using gdb 5.0 client to debug kernel, and found a bug in gdb 5.0 when
it
> trys to display an function argument.
...
> For whatever reason gdb client on the host side apparently thinks the
second
> arg is stored in register s4.  When the breakpoint is hit, gdb tries to
> display the value of s4 (which is 0x4 in this case).  Since the type of
this
> argument is char *, gdb further tries to read the content at 0x4 which
causes
> kernel panic.
>
> I believe I have seen this problem before (and in most case the symptom is
> wrong argument values instead of kernel panic).  Does someone have an idea
how
> to fix it or work around it?

I had exactly the same problem with earlier versions of gdb (4.18
if I recall), though for me the problem was invariably provoked by my
asking "where" on a deeply nested set of stack frames.  I had always
believed that the problem stemmed from the fact that the compiler,
when invoked with the options used to build the Linux kernel in any
case, is under no obligation to preserve the values of its incoming
arguments past their useful life within the called function.  If the
arguments are consumed before the next use of the register,
they are never saved.  So sooner or later, the back trace comes to
a function for which the argument storage on the stack frame is
uninitialized garbage.

That problem should, in theory, be fixable by compiling with
a set of options that force the arguments to be stored in the
stack frame.  Yours may well be slightly different, but fatal
for the same reason.

> Does this problem exist in native debugging?

Yes, but in that case all you get is a bogus reported argument.
The problem is that the kgdb "agent" in the kernel is being passed
a bogus pointer, and is dereferencing it mindlessly (and fatally).

> I assume we can disable gdb to display char strings by default.  Does
someone
> know how to do it?

I tried fixing it with a hack to the exception handling code,
inspired by the old Cobalt MIPS kernel code, such that the
kgdb agent's proxy references could fail in a non-fatal manner.
I never did get it to work.  It probably would be easy to cripple
gdb to not automatically dereference pointer arguments, perhaps
only in remote mode and perhaps only if some magic flag is set.
But it *is* nice to see the string arguments when they are sane.
A cleaner approach might be to have the proxy use a high level
VM routine to check the validity of each address before
dereferencing, but it's not clear that it's actually safe to invoke
such routines from the level at which the kgdb proxy is executing.

            Kevin K.


From owner-linux-mips@oss.sgi.com Mon Mar 19 18:57:46 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2K2vkM16425
	for linux-mips-outgoing; Mon, 19 Mar 2001 18:57:46 -0800
Received: from surfers.oz.agile.tv (agile-50.OntheNet.com.au [203.144.13.50])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2K2vhM16421
	for <linux-mips@oss.sgi.com>; Mon, 19 Mar 2001 18:57:44 -0800
Received: from oz.agile.tv (IDENT:simong@pacific.oz.agile.tv [192.168.16.16])
	by surfers.oz.agile.tv (8.11.0/8.11.0) with ESMTP id f2K2vgw29946
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 12:57:42 +1000
Message-ID: <3AB6C948.7F8EE4B7@oz.agile.tv>
Date: Tue, 20 Mar 2001 13:06:48 +1000
From: Simon Gee <simong@oz.agile.tv>
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: Recommended toolchain
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 444
Lines: 13

Hello,

Recently I've been working with various version mixes of the gnu tool
chain for a mipsel-linux target and settled on a patchy binutils
2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the functionality
that I would get from a newer toolchain for use with the linux 2.4
kernel. As a result, I was wondering if someone could recommend the
latest "stable"/recommended toolchain for a mipsel-linux target.

Thanks in advance,

Simon


From owner-linux-mips@oss.sgi.com Tue Mar 20 01:05:54 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2K95s221919
	for linux-mips-outgoing; Tue, 20 Mar 2001 01:05:54 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2K95rM21916
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 01:05:53 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA15851;
	Tue, 20 Mar 2001 01:05:53 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id BAA03412;
	Tue, 20 Mar 2001 01:05:50 -0800 (PST)
Message-ID: <004601c0b11d$86340d20$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Kevin D. Kissell" <kevink@mips.com>, "Jun Sun" <jsun@mvista.com>,
   <linux-mips@oss.sgi.com>
References: <3AB68CFC.A2840808@mvista.com> <01e701c0b0d3$3fca8980$0deca8c0@Ulysses>
Subject: Re: gdb 5.0 display arguments problem
Date: Tue, 20 Mar 2001 10:09:50 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3315
Lines: 71

Followups on my own message of last night.

> I had exactly the same problem with earlier versions of gdb (4.18
> if I recall), though for me the problem was invariably provoked by my
> asking "where" on a deeply nested set of stack frames.  I had always
> believed that the problem stemmed from the fact that the compiler,
> when invoked with the options used to build the Linux kernel in any
> case, is under no obligation to preserve the values of its incoming
> arguments past their useful life within the called function.  If the
> arguments are consumed before the next use of the register,
> they are never saved.  So sooner or later, the back trace comes to
> a function for which the argument storage on the stack frame is
> uninitialized garbage.
> 
> That problem should, in theory, be fixable by compiling with
> a set of options that force the arguments to be stored in the
> stack frame.

I've experimented around a bit, and so far, the only way
I can find that ensures that the argument values are preserved
all the way back down a calling chain is to use no "-O" optimisation
whatsoever.  The code us huge and grotesque, but arguments
are systematically saved in the stack frame in their allotted,
caller-allocated slots.  Even then I also need to compile with -g
if I want gdb (native 4.17) to be able to do a correct backtrace
even of user-mode code.

> Yours may well be slightly different, but fatal for the same reason.

Indeed, I wonder if your gdb isn't looking on the stack frame
for an argument that isn't there - and which may never be
there - and finding the value that also happens to be in s4.

> > Does this problem exist in native debugging?
> 
> Yes, but in most cases all you get is a bogus reported argument.

Or a truncated back trace.  In the worst case, you do get a gdb
crash/core dump.

> The problem is that the kgdb "agent" in the kernel is being passed 
> a bogus pointer, and is  dereferencing it mindlessly (and fatally).  
>
> > I assume we can disable gdb to display char strings by default.  
> > Does someone know how to do it?
> 
> I tried fixing it with a hack to the exception handling code,
> inspired by the old Cobalt MIPS kernel code, such that the
> kgdb agent's proxy references could fail in a non-fatal manner.
> I never did get it to work.  It probably would be easy to cripple
> gdb to not automatically dereference pointer arguments, perhaps
> only in remote mode and perhaps only if some magic flag is set.
> But it *is* nice to see the string arguments when they are sane.
> A cleaner approach might be to have the proxy use a high level
> VM routine to check the validity of each address before
> dereferencing, but it's not clear that it's actually safe to invoke
> such routines from the level at which the kgdb proxy is executing.

Another reason to fix things in the gdb proxy/exception code
rather than cripple gdb backtrace is that, even with the backtrace
fixed, the current kgdb situation is such that the slightest typo
at the debugger operator interface can generate a bad address
and blow the system sky high.  It's happened to me on more than
one occasion.  Fortunately, what I was debugging at the time
was readily reproduceable (if not, I would have fixed the kgdb
problem then and there!).

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Tue Mar 20 11:30:44 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2KJUi300884
	for linux-mips-outgoing; Tue, 20 Mar 2001 11:30:44 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2KJUhM00881
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 11:30:43 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2KJRT023125;
	Tue, 20 Mar 2001 11:27:30 -0800
Message-ID: <3AB7AEFD.5B773122@mvista.com>
Date: Tue, 20 Mar 2001 11:26:53 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
Subject: Re: gdb 5.0 display arguments problem
References: <3AB68CFC.A2840808@mvista.com> <01e701c0b0d3$3fca8980$0deca8c0@Ulysses> <004601c0b11d$86340d20$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1790
Lines: 39

"Kevin D. Kissell" wrote:
> 
> > Yours may well be slightly different, but fatal for the same reason.
> 
> Indeed, I wonder if your gdb isn't looking on the stack frame
> for an argument that isn't there - and which may never be
> there - and finding the value that also happens to be in s4.
> 

I think I figured out the reason.  If you take a look of the code segment I
attached in my first posting, you will see that s4 register indeed holds the
value of a1, and presummably remains so for the rest of the function. 
However, the actual assignment of a1 to s4 does not happen until a couple of
instructions later into the function.  So if the breakpoint is set at the
first instruction of the function, gdb would still think (wrongly) s4 holds
the 2nd argument and, even worse, try to dereference it if it is a char*
pointer.

> 
> Another reason to fix things in the gdb proxy/exception code
> rather than cripple gdb backtrace is that, even with the backtrace
> fixed, the current kgdb situation is such that the slightest typo
> at the debugger operator interface can generate a bad address
> and blow the system sky high.  It's happened to me on more than
> one occasion.  Fortunately, what I was debugging at the time
> was readily reproduceable (if not, I would have fixed the kgdb
> problem then and there!).
> 

This sounds pretty cool, but I don't see a clean algorithm.  So in the
exception code you would decide not to crash if 1)kgdb is configured, and 2)
the exception is caused by kgdb code (how?).  Also if you decide not to crash,
what should be reasonable return values?

Disable automatic char * dereferencing is not that bad.  You always have the
option to manually dereference it.  However, I could not find such an option. 
Maybe gdb does not provide that yet.

Jun

From owner-linux-mips@oss.sgi.com Tue Mar 20 12:12:07 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2KKC7o01771
	for linux-mips-outgoing; Tue, 20 Mar 2001 12:12:07 -0800
Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2KKC6M01768
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 12:12:06 -0800
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 <01K1FMPIY3EA000MBZ@research.kpn.com> for
 linux-mips@oss.sgi.com; Tue, 20 Mar 2001 21:12:04 +0100
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id VAA07412; Tue, 20 Mar 2001 21:12:03 +0100 (MET)
X-URL: http://www-lsdm.research.kpn.com/~karel
Date: Tue, 20 Mar 2001 21:12:02 +0100 (MET)
From: Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Recommended toolchain
In-reply-to: <3AB6C948.7F8EE4B7@oz.agile.tv>
To: simong@oz.agile.tv (Simon Gee)
Cc: linux-mips@oss.sgi.com
Message-id: <200103202012.VAA07412@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
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 989
Lines: 25

Hi Simon,

You wrote:
> Recently I've been working with various version mixes of the gnu tool
> chain for a mipsel-linux target and settled on a patchy binutils
> 2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the functionality
> that I would get from a newer toolchain for use with the linux 2.4
> kernel. As a result, I was wondering if someone could recommend the
> latest "stable"/recommended toolchain for a mipsel-linux target.

Well, I'm currently using:
binutils 2.10.1
gcc 2.95.3 (with Maciej's patches)
glibc 2.2.2 (compiled with above toolchain).

This toolchain works for native compiles on my mipsel box.
One drawback: I can't compile any kernels with this setup,
For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.

-- 
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 owner-linux-mips@oss.sgi.com Tue Mar 20 12:46:13 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2KKkDQ02522
	for linux-mips-outgoing; Tue, 20 Mar 2001 12:46:13 -0800
Received: from dea.waldorf-gmbh.de (u-194-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.194])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2KKiYM02507
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 12:44:55 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2KKbFa04011;
	Tue, 20 Mar 2001 21:37:15 +0100
Date: Tue, 20 Mar 2001 21:37:15 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Cc: simong@oz.agile.tv (Simon Gee), linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
Message-ID: <20010320213715.C3763@bacchus.dhis.org>
References: <3AB6C948.7F8EE4B7@oz.agile.tv> <200103202012.VAA07412@sparta.research.kpn.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <200103202012.VAA07412@sparta.research.kpn.com>; from K.H.C.vanHouten@research.kpn.com on Tue, Mar 20, 2001 at 09:12:02PM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 925
Lines: 23

On Tue, Mar 20, 2001 at 09:12:02PM +0100, Karel van Houten wrote:

> You wrote:
> > Recently I've been working with various version mixes of the gnu tool
> > chain for a mipsel-linux target and settled on a patchy binutils
> > 2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the functionality
> > that I would get from a newer toolchain for use with the linux 2.4
> > kernel. As a result, I was wondering if someone could recommend the
> > latest "stable"/recommended toolchain for a mipsel-linux target.
> 
> Well, I'm currently using:
> binutils 2.10.1
> gcc 2.95.3 (with Maciej's patches)
> glibc 2.2.2 (compiled with above toolchain).
> 
> This toolchain works for native compiles on my mipsel box.
> One drawback: I can't compile any kernels with this setup,
> For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.

You MUST use minimum egcs-2.91.66 (1.1.2); older compilers WILL misscompile
kernels.

  Ralf

From owner-linux-mips@oss.sgi.com Tue Mar 20 14:12:13 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2KMCDU04120
	for linux-mips-outgoing; Tue, 20 Mar 2001 14:12:13 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2KMCCM04117
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 14:12:12 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id OAA23304;
	Tue, 20 Mar 2001 14:12:12 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id OAA28544;
	Tue, 20 Mar 2001 14:12:09 -0800 (PST)
Message-ID: <002d01c0b18b$5f512da0$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Jun Sun" <jsun@mvista.com>
Cc: <linux-mips@oss.sgi.com>
References: <3AB68CFC.A2840808@mvista.com> <01e701c0b0d3$3fca8980$0deca8c0@Ulysses> <004601c0b11d$86340d20$0deca8c0@Ulysses> <3AB7AEFD.5B773122@mvista.com>
Subject: Re: gdb 5.0 display arguments problem
Date: Tue, 20 Mar 2001 23:16:02 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2890
Lines: 67

> "Kevin D. Kissell" wrote:
> >
> > > Yours may well be slightly different, but fatal for the same reason.
> >
> > Indeed, I wonder if your gdb isn't looking on the stack frame
> > for an argument that isn't there - and which may never be
> > there - and finding the value that also happens to be in s4.
> >
>
> I think I figured out the reason.  If you take a look of the code segment
I
> attached in my first posting, you will see that s4 register indeed holds
the
> value of a1, and presummably remains so for the rest of the function.
> However, the actual assignment of a1 to s4 does not happen until a couple
of
> instructions later into the function.  So if the breakpoint is set at the
> first instruction of the function, gdb would still think (wrongly) s4
holds
> the 2nd argument and, even worse, try to dereference it if it is a char*
> pointer.

It's not unusual to need to step one line to "see" arguments
correctly.  A pity about the pointer dereference.  ;-)

> > Another reason to fix things in the gdb proxy/exception code
> > rather than cripple gdb backtrace is that, even with the backtrace
> > fixed, the current kgdb situation is such that the slightest typo
> > at the debugger operator interface can generate a bad address
> > and blow the system sky high.  It's happened to me on more than
> > one occasion.  Fortunately, what I was debugging at the time
> > was readily reproduceable (if not, I would have fixed the kgdb
> > problem then and there!).
> >
>
> This sounds pretty cool, but I don't see a clean algorithm.  So in the
> exception code you would decide not to crash if 1)kgdb is configured, and
2)
> the exception is caused by kgdb code (how?).  Also if you decide not to
crash,
> what should be reasonable return values?

There are a number of possible ways of going about it.  One is
to set some kind of flag during the kgdb proxy access, which
is tested by the page fault code.  That's the stuff that's derived
from Cobalt code and that is partly in place in some existing
kernel gdb support ("debugmem_got_flt", etc.).  I have not seen
it work correcly, and isn't SMP safe.  Another scheme, which is
actually a bit cleaner, would be to check explicitly for the faulting
address to be that of the kgdb proxy load.  In any case, once the
case has been identified, one tweaks the EPC value to return to
something other than a repeat of the bad dereference, and returns
zero or an error value to gdb - the protocol and message formats
are described in comments in gdb-stub.c.

> Disable automatic char * dereferencing is not that bad.  You always have
the
 > option to manually dereference it.  However, I could not find such an
option.
> Maybe gdb does not provide that yet.

And even if it did, accidentally trying to dump "0x8021f34" would
blow you out of the water.  It's the kernel proxy code that really needs
to be fixed.

            Kevin K.


From owner-linux-mips@oss.sgi.com Tue Mar 20 15:59:59 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2KNxxS06175
	for linux-mips-outgoing; Tue, 20 Mar 2001 15:59:59 -0800
Received: from tower.ti.com (tower.ti.com [192.94.94.5])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2KNxwM06172
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 15:59:58 -0800
Received: from dlep6.itg.ti.com ([157.170.188.9])
	by tower.ti.com (8.11.1/8.11.1) with ESMTP id f2KNxqr06585
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 17:59:52 -0600 (CST)
Received: from dlep6.itg.ti.com (localhost [127.0.0.1])
	by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA28454
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 17:59:52 -0600 (CST)
Received: from dlep3.itg.ti.com (dlep3-maint.itg.ti.com [157.170.133.16])
	by dlep6.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA28449
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 17:59:51 -0600 (CST)
Received: from ti.com (IDENT:bbrown@bbrowndt.sc.ti.com [158.218.100.126])
	by dlep3.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA08478
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 17:59:51 -0600 (CST)
Message-ID: <3AB7EFF7.A20E4FF3@ti.com>
Date: Tue, 20 Mar 2001 17:04:07 -0700
From: Brady Brown <bbrown@ti.com>
Organization: Texas Instruments
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: SGI news group <linux-mips@oss.sgi.com>
Subject: Sign extended 64bit address
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 432
Lines: 11

I have run into the earlier mentioned problem of objcopy not correctly
dealing with the sign extended 64 bit address generated by the new
tools. Is there an update on this issue? Any good work-arounds or short
time solutions?
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brady Brown (bbrown@ti.com)       Work:(801)619-6103
Texas Instruments: Broadband Access Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From owner-linux-mips@oss.sgi.com Tue Mar 20 19:10:24 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2L3AOW09803
	for linux-mips-outgoing; Tue, 20 Mar 2001 19:10:24 -0800
Received: from vms1.rit.edu (vms1.isc.rit.edu [129.21.3.8])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2L3AMM09800
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 19:10:22 -0800
Received: from nerd-box.rit.edu ([129.21.134.39])
 by ritvax.isc.rit.edu (PMDF V5.2-32 #41784)
 with ESMTPA id <01K1FOQDF368Y8EOAF@ritvax.isc.rit.edu> for
 linux-mips@oss.sgi.com; Tue, 20 Mar 2001 22:10:10 EST
Date: Tue, 20 Mar 2001 22:12:07 -0800
From: jsc6233@ritvax.isc.rit.edu
Subject: indy R5000 with irix 6.5
X-Sender: jsc6233@vmspop.isc.rit.edu
To: linux-mips@oss.sgi.com
Message-id: <5.0.0.25.0.20010320221021.00a47cc0@vmspop.isc.rit.edu>
MIME-version: 1.0
X-Mailer: QUALCOMM Windows Eudora Version 5.0
Content-type: text/plain; format=flowed; charset=us-ascii
Content-transfer-encoding: 7BIT
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 140
Lines: 6

Hey,
Has anyone been able to compile the kernel on an indy R5000 running IRIX 
6.5??  I have been working with Linux 2.3.12.
Thanks,
James


From owner-linux-mips@oss.sgi.com Tue Mar 20 20:06:36 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2L46a310877
	for linux-mips-outgoing; Tue, 20 Mar 2001 20:06:36 -0800
Received: from dea.waldorf-gmbh.de (u-251-19.karlsruhe.ipdial.viaginterkom.de [62.180.19.251])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2L46XM10874
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 20:06:34 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2L447j03282;
	Wed, 21 Mar 2001 05:04:07 +0100
Date: Wed, 21 Mar 2001 05:04:07 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: Brady Brown <bbrown@ti.com>
Cc: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Sign extended 64bit address
Message-ID: <20010321050407.A3261@bacchus.dhis.org>
References: <3AB7EFF7.A20E4FF3@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AB7EFF7.A20E4FF3@ti.com>; from bbrown@ti.com on Tue, Mar 20, 2001 at 05:04:07PM -0700
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 496
Lines: 12

On Tue, Mar 20, 2001 at 05:04:07PM -0700, Brady Brown wrote:

> I have run into the earlier mentioned problem of objcopy not correctly
> dealing with the sign extended 64 bit address generated by the new
> tools. Is there an update on this issue? Any good work-arounds or short
> time solutions?

I don't have your old report at hand but somewhen during the past year
binutils received a number of fixes related to signed/unsigned addresses,
so you should try a recent copy of binutils.

   Ralf

From owner-linux-mips@oss.sgi.com Tue Mar 20 20:39:19 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2L4dJV11550
	for linux-mips-outgoing; Tue, 20 Mar 2001 20:39:19 -0800
Received: from dea.waldorf-gmbh.de (u-251-19.karlsruhe.ipdial.viaginterkom.de [62.180.19.251])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2L4dGM11547
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 20:39:16 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2L4d2U03572;
	Wed, 21 Mar 2001 05:39:02 +0100
Date: Wed, 21 Mar 2001 05:39:02 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: jsc6233@ritvax.isc.rit.edu
Cc: linux-mips@oss.sgi.com
Subject: Re: indy R5000 with irix 6.5
Message-ID: <20010321053901.B3261@bacchus.dhis.org>
References: <5.0.0.25.0.20010320221021.00a47cc0@vmspop.isc.rit.edu>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <5.0.0.25.0.20010320221021.00a47cc0@vmspop.isc.rit.edu>; from jsc6233@ritvax.isc.rit.edu on Tue, Mar 20, 2001 at 10:12:07PM -0800
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 312
Lines: 12

On Tue, Mar 20, 2001 at 10:12:07PM -0800, jsc6233@ritvax.isc.rit.edu wrote:

> Hey,
> Has anyone been able to compile the kernel on an indy R5000 running IRIX 
> 6.5??  I have been working with Linux 2.3.12.

Yes.

(This answer will hardly satisfy you but it's the accurate answer to your
question ...)

   Ralf

From owner-linux-mips@oss.sgi.com Tue Mar 20 22:14:51 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2L6Ep013527
	for linux-mips-outgoing; Tue, 20 Mar 2001 22:14:51 -0800
Received: from wiproecmx2.wipro.com (wiproecmx2.wipro.com [164.164.31.6])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2L6ElM13524
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 22:14:48 -0800
Received: from ecvwall1.wipro.com (ecvwall1.wipro.com [192.168.181.23])
	by wiproecmx2.wipro.com (8.9.3/8.9.3) with SMTP id LAA20400
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 11:54:28 GMT
Received: from ecvwall1.wipro.com ([192.168.181.23]) by
          ecmail.mail.wipro.com (Netscape Messaging Server 4.15) with SMTP
          id GAJANH00.BUR for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001
          11:44:05 +0530 
Received: from wipro.com ([192.168.225.15]) by helium.mail.wipro.com
          (Netscape Messaging Server 3.6)  with ESMTP id AAA5E8C
          for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 11:42:31 +0530
Message-ID: <3AB84780.1027AE90@wipro.com>
Date: Wed, 21 Mar 2001 11:47:36 +0530
From: "chandra shekhar" <chandra.shekhar@wipro.com>
Reply-To: chandra.shekhar@wipro.com
Organization: Wipro
X-Mailer: Mozilla 4.74 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: kernel-header RPM
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 148
Lines: 9

Hello

I am searching for kenel-header RPM for Big Endian MIPS. Could you
please
tell me the location from where I can download.

Regards,
Chandra


From owner-linux-mips@oss.sgi.com Tue Mar 20 23:58:13 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2L7wDk17636
	for linux-mips-outgoing; Tue, 20 Mar 2001 23:58:13 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2L7wCM17633
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 23:58:13 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id XAA27934
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 23:58:13 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id XAA14201
	for <linux-mips@oss.sgi.com>; Tue, 20 Mar 2001 23:58:10 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id IAA07615
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 08:57:40 +0100 (MET)
Message-ID: <3AB85EF4.B9ED386B@mips.com>
Date: Wed, 21 Mar 2001 08:57:40 +0100
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: [Fwd: Re: Bug in the _save_fp_context.]
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3530
Lines: 98

No one seem to answer on my previous mail, regarding the problem in the
_save_fp_context function in arch/mips/kernel/r4k_fpu.S.

What about you Ralf, any comments ?

/Carsten


-------- Original Message --------
Subject: Re: Bug in the _save_fp_context.
Date: Mon, 19 Mar 2001 17:13:06 +0100
From: Carsten Langgaard <carstenl@mips.com>
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
References: <3AB61293.5652407C@mips.com>
<00e901c0b08b$50bed400$0deca8c0@Ulysses>

"Kevin D. Kissell" wrote:

> > I think there is a bug in the _save_fp_context function in
> > arch/mips/kernel/r4k_fpu.S
> >
> > The problem is the following piece of code:
> >
> >  jr ra
> >  .set nomacro
> >  EX(sw t0,SC_FPC_EIR(a0))
> >  nop
> >  .set macro
> >
> > First of all what should the ".set nomacro" do?
> > If it means that the EX macro shouldn't be used then this entry wouldn't
> > get into __ex_table, which would be wrong.
> > But it look like it uses the macro anyway, regardless of the ".set
> > nomacro", at least with the compiler I use.
>
> Not surprising, really.  "EX" is presumably a cpp macro
> that gets expanded by gcc from the .S file, based on
> some include file.  .set directives affect only the assembler,
> and would inhibit assembler-level macros only.  I'm not
> sure just what the definition of an assembler macro
> would be - it may or may not include pseudo-instructions
> like "la" or "li 32_bit_constant".  I *think* that what the
> author was trying to do here was to ensure that the
> "sw" instruction in the EX expansion was really and
> truly a single instruction.
>
> > Never the less we do not handle entries in the __ex_table which is
> > located in a branch delay.
> > So we need to handle the situation where we take a page fault on an
> > instruction which is located in a brach delay slot, or we don't put the
> > "potential" faulting instruction in a delay slot.
> >
> > Any ideas, how we should handle this in a nice and clean way?
>
> Is the __ex_table really ending up in the delay slot?
> Just looking at the source, I have the impression
> that the "sw t0,..." instruction should be in the delay
> slot, followed by the __ex_table.

The problem is that the address of the delay slot is put in the
__ex_table
and then we take a page fault EPC is pointing at the jr instruction and
not
the delay slot.
This result in a miss match when we try to lookup in __ex_table,
resulting in
a kernel crash.

The faulting situation look like this:
EPC = address of delay slot
entry in __ex_table = address of delay slot - 4

Hopes that clarify it a bit more.

>
> On another topic, now that I've patched the kernel to
> turn off the stupid stuck interrupt on my Malta board,
> I've realized that I can't just connect my old Atlas SCSI
> disk.  I'm torn between ordering a Tekram 390 PCI
> SCSI card, which should be able to use our "MIPS
> safe" NCR driver as-is (I hope) and buying an IDE
> disk and going through the network install ritual.
> Which do you recommend?  One thing I really never
> knew was just what kernel config options I need to
> select to build a kernel that can do the NFS-root
> bootstrap.  Can you help me there?
>
>             Regards,
>
>             Kevin K.

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com

From owner-linux-mips@oss.sgi.com Wed Mar 21 06:01:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LE1UC26497
	for linux-mips-outgoing; Wed, 21 Mar 2001 06:01:30 -0800
Received: from exchange1.cam.pace.co.uk (host-131-80.pace.co.uk [136.170.131.80])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LE1SM26494
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 06:01:29 -0800
Received: by exchange1 with Internet Mail Service (5.5.2448.0)
	id <GNGHZTNM>; Wed, 21 Mar 2001 14:00:24 -0000
Message-ID: <1402C4C025C4D311B50D00508B8B74E281B14D@exchange1>
From: Phil Thompson <Phil.Thompson@pace.co.uk>
To: "'linux-mips@oss.sgi.com'" <linux-mips@oss.sgi.com>
Subject: RE: Recommended toolchain
Date: Wed, 21 Mar 2001 14:00:22 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1431
Lines: 41

So, going back to the original question, what are the recommended versions -
particularly if you are building 2.4.x kernels?

Are the recomendations in the HOWTO out of date? I had to patch va-mips.h
from the egcs RPM and more fixes seem to be needed before I get a kernel
that compiles.

Thanks,
Phil

-----Original Message-----
From: Ralf Baechle [mailto:ralf@oss.sgi.com]
Sent: 20 March 2001 20:37
To: Karel van Houten
Cc: simong@oz.agile.tv; linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain


On Tue, Mar 20, 2001 at 09:12:02PM +0100, Karel van Houten wrote:

> You wrote:
> > Recently I've been working with various version mixes of the gnu tool
> > chain for a mipsel-linux target and settled on a patchy binutils
> > 2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the functionality
> > that I would get from a newer toolchain for use with the linux 2.4
> > kernel. As a result, I was wondering if someone could recommend the
> > latest "stable"/recommended toolchain for a mipsel-linux target.
> 
> Well, I'm currently using:
> binutils 2.10.1
> gcc 2.95.3 (with Maciej's patches)
> glibc 2.2.2 (compiled with above toolchain).
> 
> This toolchain works for native compiles on my mipsel box.
> One drawback: I can't compile any kernels with this setup,
> For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.

You MUST use minimum egcs-2.91.66 (1.1.2); older compilers WILL misscompile
kernels.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 21 07:09:46 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LF9k929394
	for linux-mips-outgoing; Wed, 21 Mar 2001 07:09:46 -0800
Received: from mta5.snfc21.pbi.net ([206.13.28.241])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LF9jM29391
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 07:09:45 -0800
Received: from shaft ([209.233.126.43])
 by mta5.snfc21.pbi.net (Sun Internet Mail Server sims.3.5.2000.01.05.12.18.p9)
 with SMTP id <0GAJ005WTZBZ1J@mta5.snfc21.pbi.net> for linux-mips@oss.sgi.com;
 Wed, 21 Mar 2001 07:07:11 -0800 (PST)
Date: Wed, 21 Mar 2001 07:11:46 -0500
From: Erik Mullinix <Hesp@rainworks.org>
Subject: Re: Recommended toolchain
To: Phil Thompson <Phil.Thompson@pace.co.uk>, linux-mips@oss.sgi.com
Message-id: <001a01c0b200$1c13d5e0$0500a8c0@shaft>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 5.00.2919.6700
Content-type: text/plain; charset="iso-8859-1"
Content-transfer-encoding: 7bit
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
References: <1402C4C025C4D311B50D00508B8B74E281B14D@exchange1>
X-Priority: 3
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1725
Lines: 55

What Error's are you getting?
Hesp
----- Original Message -----
From: "Phil Thompson" <Phil.Thompson@pace.co.uk>
To: <linux-mips@oss.sgi.com>
Sent: Wednesday, March 21, 2001 9:00 AM
Subject: RE: Recommended toolchain


> So, going back to the original question, what are the recommended
versions -
> particularly if you are building 2.4.x kernels?
>
> Are the recomendations in the HOWTO out of date? I had to patch va-mips.h
> from the egcs RPM and more fixes seem to be needed before I get a kernel
> that compiles.
>
> Thanks,
> Phil
>
> -----Original Message-----
> From: Ralf Baechle [mailto:ralf@oss.sgi.com]
> Sent: 20 March 2001 20:37
> To: Karel van Houten
> Cc: simong@oz.agile.tv; linux-mips@oss.sgi.com
> Subject: Re: Recommended toolchain
>
>
> On Tue, Mar 20, 2001 at 09:12:02PM +0100, Karel van Houten wrote:
>
> > You wrote:
> > > Recently I've been working with various version mixes of the gnu tool
> > > chain for a mipsel-linux target and settled on a patchy binutils
> > > 2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the
functionality
> > > that I would get from a newer toolchain for use with the linux 2.4
> > > kernel. As a result, I was wondering if someone could recommend the
> > > latest "stable"/recommended toolchain for a mipsel-linux target.
> >
> > Well, I'm currently using:
> > binutils 2.10.1
> > gcc 2.95.3 (with Maciej's patches)
> > glibc 2.2.2 (compiled with above toolchain).
> >
> > This toolchain works for native compiles on my mipsel box.
> > One drawback: I can't compile any kernels with this setup,
> > For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.
>
> You MUST use minimum egcs-2.91.66 (1.1.2); older compilers WILL
misscompile
> kernels.
>
>   Ralf
>


From owner-linux-mips@oss.sgi.com Wed Mar 21 08:06:51 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LG6pu31576
	for linux-mips-outgoing; Wed, 21 Mar 2001 08:06:51 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LG6oM31573
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 08:06:50 -0800
Received: from galt.foobazco.org (galt.foobazco.org [198.144.194.227])
	by mail.foobazco.org (Postfix) with ESMTP
	id A3C24109CE; Wed, 21 Mar 2001 08:07:15 -0800 (PST)
Received: by galt.foobazco.org (Postfix, from userid 1014)
	id E00901F429; Wed, 21 Mar 2001 08:06:47 -0800 (PST)
Date: Wed, 21 Mar 2001 08:06:47 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: Phil Thompson <Phil.Thompson@pace.co.uk>
Cc: linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
Message-ID: <20010321080647.A4223@foobazco.org>
References: <1402C4C025C4D311B50D00508B8B74E281B14D@exchange1>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <1402C4C025C4D311B50D00508B8B74E281B14D@exchange1>; from Phil.Thompson@pace.co.uk on Wed, Mar 21, 2001 at 02:00:22PM -0000
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 824
Lines: 18

On Wed, Mar 21, 2001 at 02:00:22PM -0000, Phil Thompson wrote:

> So, going back to the original question, what are the recommended versions -
> particularly if you are building 2.4.x kernels?

I don't really know that there is one.  I am using the gcc 3.0 branch
and binutils from CVS (2.11.90).  You can find the same toolchain
that's building my kernels on
ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple/crossdev at all
times, including patches.  No binaries, source and patches only.

This linker has a bug in it regarding section placement, but the
current cvs kernel has a workaround for it.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Wed Mar 21 08:54:54 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LGssX00697
	for linux-mips-outgoing; Wed, 21 Mar 2001 08:54:54 -0800
Received: from tower.ti.com (tower.ti.com [192.94.94.5])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LGsiM00689;
	Wed, 21 Mar 2001 08:54:45 -0800
Received: from dlep8.itg.ti.com ([157.170.134.88])
	by tower.ti.com (8.11.1/8.11.1) with ESMTP id f2LGscr26808;
	Wed, 21 Mar 2001 10:54:38 -0600 (CST)
Received: from dlep8.itg.ti.com (localhost [127.0.0.1])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA13329;
	Wed, 21 Mar 2001 10:54:37 -0600 (CST)
Received: from dlep3.itg.ti.com (dlep3-maint.itg.ti.com [157.170.133.16])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA13325;
	Wed, 21 Mar 2001 10:54:37 -0600 (CST)
Received: from ti.com (IDENT:bbrown@bbrowndt.sc.ti.com [158.218.100.126])
	by dlep3.itg.ti.com (8.9.3/8.9.3) with ESMTP id KAA16934;
	Wed, 21 Mar 2001 10:54:37 -0600 (CST)
Message-ID: <3AB8DDCE.CA0F16BC@ti.com>
Date: Wed, 21 Mar 2001 09:58:54 -0700
From: Brady Brown <bbrown@ti.com>
Organization: Texas Instruments
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Ralf Baechle <ralf@oss.sgi.com>
CC: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Sign extended 64bit address
References: <3AB7EFF7.A20E4FF3@ti.com> <20010321050407.A3261@bacchus.dhis.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 644
Lines: 19

Ralf Baechle wrote:

> On Tue, Mar 20, 2001 at 05:04:07PM -0700, Brady Brown wrote:
>
> > I have run into the earlier mentioned problem of objcopy not correctly
> > dealing with the sign extended 64 bit address generated by the new
> > tools. Is there an update on this issue? Any good work-arounds or short
> > time solutions?
>
> I don't have your old report at hand but somewhen during the past year
> binutils received a number of fixes related to signed/unsigned addresses,
> so you should try a recent copy of binutils.
>
>    Ralf

I'm currently using binutils-2.10.91-2 from Maciej's site. Is there a later
rev that I should look at?



From owner-linux-mips@oss.sgi.com Wed Mar 21 09:10:58 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LHAw101454
	for linux-mips-outgoing; Wed, 21 Mar 2001 09:10:58 -0800
Received: from dea.waldorf-gmbh.de (u-136-20.karlsruhe.ipdial.viaginterkom.de [62.180.20.136])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LHAsM01451
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 09:10:55 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2LHAIN07291;
	Wed, 21 Mar 2001 18:10:18 +0100
Date: Wed, 21 Mar 2001 18:10:18 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: Brady Brown <bbrown@ti.com>
Cc: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Sign extended 64bit address
Message-ID: <20010321181017.A7274@bacchus.dhis.org>
References: <3AB7EFF7.A20E4FF3@ti.com> <20010321050407.A3261@bacchus.dhis.org> <3AB8DDCE.CA0F16BC@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AB8DDCE.CA0F16BC@ti.com>; from bbrown@ti.com on Wed, Mar 21, 2001 at 09:58:54AM -0700
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 749
Lines: 18

On Wed, Mar 21, 2001 at 09:58:54AM -0700, Brady Brown wrote:

> > > I have run into the earlier mentioned problem of objcopy not correctly
> > > dealing with the sign extended 64 bit address generated by the new
> > > tools. Is there an update on this issue? Any good work-arounds or short
> > > time solutions?
> >
> > I don't have your old report at hand but somewhen during the past year
> > binutils received a number of fixes related to signed/unsigned addresses,
> > so you should try a recent copy of binutils.
> 
> I'm currently using binutils-2.10.91-2 from Maciej's site. Is there a later
> rev that I should look at?

I was believing that that one is good; can you resend your bugreport
about the sign extension problem?  Thanks.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 21 09:39:49 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LHdnA02642
	for linux-mips-outgoing; Wed, 21 Mar 2001 09:39:49 -0800
Received: from nilpferd.fachschaften.tu-muenchen.de (nilpferd.fachschaften.tu-muenchen.de [129.187.176.79])
	by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2LHdmM02639
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 09:39:48 -0800
Received: (qmail 8747 invoked from network); 21 Mar 2001 17:39:46 -0000
Received: from gaia.fachschaften.tu-muenchen.de (129.187.176.73)
  by nilpferd.fachschaften.tu-muenchen.de with SMTP; 21 Mar 2001 17:39:46 -0000
Date: Wed, 21 Mar 2001 18:39:48 +0100 (CET)
From: Adrian Bunk <bunk@fs.tum.de>
X-X-Sender:  <bunk@gaia.fachschaften.tu-muenchen.de>
To: <linux-mips@oss.sgi.com>
Subject: Re: Compile error with current CVS kernel
In-Reply-To: <Pine.NEB.4.33.0103122252170.23935-100000@mimas.fachschaften.tu-muenchen.de>
Message-ID: <Pine.NEB.4.33.0103211837550.22248-100000@gaia.fachschaften.tu-muenchen.de>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 707
Lines: 30

Hi Ralf,

the latest CVS kernel still doesn't build, but the error message has
changed:

<--  snip  -->

...
mipsel-linux-nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw]
\)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
make[1]: Entering directory `/home/bunk/Ringo/linux/arch/mips/boot'
gcc -o elf2ecoff elf2ecoff.c
./elf2ecoff /home/bunk/Ringo/linux/vmlinux vmlinux.ecoff -a
Sections ordering prevents a.out conversion.
make[1]: *** [vmlinux.ecoff] Error 1
make[1]: Leaving directory `/home/bunk/Ringo/linux/arch/mips/boot'
make: *** [boot] Error 2

<--  snip  -->

cu
Adrian

-- 

Nicht weil die Dinge schwierig sind wagen wir sie nicht,
sondern weil wir sie nicht wagen sind sie schwierig.




From owner-linux-mips@oss.sgi.com Wed Mar 21 10:47:10 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LIlA704335
	for linux-mips-outgoing; Wed, 21 Mar 2001 10:47:10 -0800
Received: from exchange1.cam.pace.co.uk (host-131-80.pace.co.uk [136.170.131.80])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LIl8M04332
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 10:47:08 -0800
Received: by exchange1 with Internet Mail Service (5.5.2448.0)
	id <GNGHZ4MF>; Wed, 21 Mar 2001 18:46:08 -0000
Message-ID: <1402C4C025C4D311B50D00508B8B74E281B151@exchange1>
From: Phil Thompson <Phil.Thompson@pace.co.uk>
To: "'Erik Mullinix'" <Hesp@rainworks.org>, linux-mips@oss.sgi.com
Subject: RE: Recommended toolchain
Date: Wed, 21 Mar 2001 18:46:07 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2469
Lines: 80

I had to patch va-mips.h to #include <asm/sgidefs.h> rather than
<sgidefs.h>.

The current errors are:

- warnings about struct flock64 not being declared (it's defined in
asm-mips64/fcntl.h but not asm-mips/fcntl.h)

- compilation stops because loops_per_sec is undeclared as far as
asm-mips/delay.h is concerned (although it seems fine in
asm-mips64/delay.h).

This seems to imply that the mips architecture (as opposed to mips64) isn't
being maintained. Is this the case? Should I be using mips64 - but what
would be the point on an embedded CPU?

Thanks,
Phil

-----Original Message-----
From: Erik Mullinix [mailto:Hesp@rainworks.org]
Sent: 21 March 2001 12:12
To: Phil Thompson; linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain


What Error's are you getting?
Hesp
----- Original Message -----
From: "Phil Thompson" <Phil.Thompson@pace.co.uk>
To: <linux-mips@oss.sgi.com>
Sent: Wednesday, March 21, 2001 9:00 AM
Subject: RE: Recommended toolchain


> So, going back to the original question, what are the recommended
versions -
> particularly if you are building 2.4.x kernels?
>
> Are the recomendations in the HOWTO out of date? I had to patch va-mips.h
> from the egcs RPM and more fixes seem to be needed before I get a kernel
> that compiles.
>
> Thanks,
> Phil
>
> -----Original Message-----
> From: Ralf Baechle [mailto:ralf@oss.sgi.com]
> Sent: 20 March 2001 20:37
> To: Karel van Houten
> Cc: simong@oz.agile.tv; linux-mips@oss.sgi.com
> Subject: Re: Recommended toolchain
>
>
> On Tue, Mar 20, 2001 at 09:12:02PM +0100, Karel van Houten wrote:
>
> > You wrote:
> > > Recently I've been working with various version mixes of the gnu tool
> > > chain for a mipsel-linux target and settled on a patchy binutils
> > > 2.8.1/egcs 1.1.2/glibc 2.0.6 setup. However this lacks the
functionality
> > > that I would get from a newer toolchain for use with the linux 2.4
> > > kernel. As a result, I was wondering if someone could recommend the
> > > latest "stable"/recommended toolchain for a mipsel-linux target.
> >
> > Well, I'm currently using:
> > binutils 2.10.1
> > gcc 2.95.3 (with Maciej's patches)
> > glibc 2.2.2 (compiled with above toolchain).
> >
> > This toolchain works for native compiles on my mipsel box.
> > One drawback: I can't compile any kernels with this setup,
> > For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.
>
> You MUST use minimum egcs-2.91.66 (1.1.2); older compilers WILL
misscompile
> kernels.
>
>   Ralf
>

From owner-linux-mips@oss.sgi.com Wed Mar 21 11:11:52 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LJBql05086
	for linux-mips-outgoing; Wed, 21 Mar 2001 11:11:52 -0800
Received: from jester.ti.com (jester.ti.com [192.94.94.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LJBnM05078;
	Wed, 21 Mar 2001 11:11:49 -0800
Received: from dlep7.itg.ti.com ([157.170.134.103])
	by jester.ti.com (8.11.1/8.11.1) with ESMTP id f2LJBhD03358;
	Wed, 21 Mar 2001 13:11:43 -0600 (CST)
Received: from dlep7.itg.ti.com (localhost [127.0.0.1])
	by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id NAA00595;
	Wed, 21 Mar 2001 13:11:42 -0600 (CST)
Received: from dlep3.itg.ti.com (dlep3-maint.itg.ti.com [157.170.133.16])
	by dlep7.itg.ti.com (8.9.3/8.9.3) with ESMTP id NAA00585;
	Wed, 21 Mar 2001 13:11:42 -0600 (CST)
Received: from ti.com (IDENT:bbrown@bbrowndt.sc.ti.com [158.218.100.126])
	by dlep3.itg.ti.com (8.9.3/8.9.3) with ESMTP id NAA22269;
	Wed, 21 Mar 2001 13:11:41 -0600 (CST)
Message-ID: <3AB8FDEE.95A74D61@ti.com>
Date: Wed, 21 Mar 2001 12:15:58 -0700
From: Brady Brown <bbrown@ti.com>
Organization: Texas Instruments
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Ralf Baechle <ralf@oss.sgi.com>
CC: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Sign extended 64bit address
References: <3AB7EFF7.A20E4FF3@ti.com> <20010321050407.A3261@bacchus.dhis.org> <3AB8DDCE.CA0F16BC@ti.com> <20010321181017.A7274@bacchus.dhis.org>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1778
Lines: 42

Ralf Baechle wrote:

> On Wed, Mar 21, 2001 at 09:58:54AM -0700, Brady Brown wrote:
>
> > > > I have run into the earlier mentioned problem of objcopy not correctly
> > > > dealing with the sign extended 64 bit address generated by the new
> > > > tools. Is there an update on this issue? Any good work-arounds or short
> > > > time solutions?
> > >
> > > I don't have your old report at hand but somewhen during the past year
> > > binutils received a number of fixes related to signed/unsigned addresses,
> > > so you should try a recent copy of binutils.
> >
> > I'm currently using binutils-2.10.91-2 from Maciej's site. Is there a later
> > rev that I should look at?
>
> I was believing that that one is good; can you resend your bugreport
> about the sign extension problem?  Thanks.
>
>   Ralf

Problem solved. Sorry, my oversight. The binutils are correctly handling the
addresses. What happened was that the new tools created a couple of new code
sections "__ex_table and __dbe_table" that were not handled by the linker script
in my kernel (2.4.0-test9), hence ended up a strange low addresses. I
interpreted the warnings and the 'wrong' address in the final srec as a address
translation problem. Once I added these sections to the linker script the
warnings and 'bad' address's went away.

A second issue:
The kernel built by these new tools will not boot. Complains about illegal
instructions as soon as init is launched. The first address that traps is a sw
inside the __bzero routine.  I'll have to dig a bit here I guess. Any leads
would be appreciated.

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brady Brown (bbrown@ti.com)       Work:(801)619-6103
Texas Instruments: Broadband Access Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From owner-linux-mips@oss.sgi.com Wed Mar 21 14:05:53 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2LM5rv09243
	for linux-mips-outgoing; Wed, 21 Mar 2001 14:05:53 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2LM5qM09240
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 14:05:52 -0800
Received: by mail.foobazco.org (Postfix, from userid 1014)
	id 66A56109CE; Wed, 21 Mar 2001 14:06:17 -0800 (PST)
Date: Wed, 21 Mar 2001 14:06:16 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: Phil Thompson <Phil.Thompson@pace.co.uk>
Cc: "'Erik Mullinix'" <Hesp@rainworks.org>, linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
Message-ID: <20010321140616.A3956@foobazco.org>
References: <1402C4C025C4D311B50D00508B8B74E281B151@exchange1>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <1402C4C025C4D311B50D00508B8B74E281B151@exchange1>; from Phil.Thompson@pace.co.uk on Wed, Mar 21, 2001 at 06:46:07PM -0000
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 898
Lines: 21

On Wed, Mar 21, 2001 at 06:46:07PM -0000, Phil Thompson wrote:

> - compilation stops because loops_per_sec is undeclared as far as
> asm-mips/delay.h is concerned (although it seems fine in
> asm-mips64/delay.h).
> 
> This seems to imply that the mips architecture (as opposed to mips64) isn't
> being maintained. Is this the case? Should I be using mips64 - but what
> would be the point on an embedded CPU?

mips(32) is in fact being actively maintained.  It sounds like your
kernel sources may be out of date; I specifically remember removing
all references to loops_per_sec in favour of loops_per_jiffy in both
mips and mips64.

Ask again about fcntl.h after updating...

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Wed Mar 21 23:50:16 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2M7oGb21456
	for linux-mips-outgoing; Wed, 21 Mar 2001 23:50:16 -0800
Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2M7oEM21453
	for <linux-mips@oss.sgi.com>; Wed, 21 Mar 2001 23:50:14 -0800
Received: from escobaria.sonytel.be (escobaria.sonytel.be [10.34.80.3])
	by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id IAA26967;
	Thu, 22 Mar 2001 08:49:32 +0100 (MET)
Date: Thu, 22 Mar 2001 08:49:31 +0100 (MET)
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
To: Phil Thompson <Phil.Thompson@pace.co.uk>
cc: "'Erik Mullinix'" <Hesp@rainworks.org>, linux-mips@oss.sgi.com
Subject: RE: Recommended toolchain
In-Reply-To: <1402C4C025C4D311B50D00508B8B74E281B151@exchange1>
Message-ID: <Pine.GSO.4.10.10103220848500.18066-100000@escobaria.sonytel.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1007
Lines: 29

On Wed, 21 Mar 2001, Phil Thompson wrote:
> I had to patch va-mips.h to #include <asm/sgidefs.h> rather than
> <sgidefs.h>.
> 
> The current errors are:
> 
> - warnings about struct flock64 not being declared (it's defined in
> asm-mips64/fcntl.h but not asm-mips/fcntl.h)
> 
> - compilation stops because loops_per_sec is undeclared as far as
> asm-mips/delay.h is concerned (although it seems fine in
> asm-mips64/delay.h).
> 
> This seems to imply that the mips architecture (as opposed to mips64) isn't
> being maintained. Is this the case? Should I be using mips64 - but what
> would be the point on an embedded CPU?

You're definitely not using the Linux/MIPS CVS tree, since these things were
fixed there some months ago.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


From owner-linux-mips@oss.sgi.com Thu Mar 22 00:41:36 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2M8faI23310
	for linux-mips-outgoing; Thu, 22 Mar 2001 00:41:36 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2M8fZM23307
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 00:41:35 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id AAA09756;
	Thu, 22 Mar 2001 00:41:32 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id AAA24984;
	Thu, 22 Mar 2001 00:41:29 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id JAA15345;
	Thu, 22 Mar 2001 09:40:57 +0100 (MET)
Message-ID: <3AB9BA99.2599673C@mips.com>
Date: Thu, 22 Mar 2001 09:40:57 +0100
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: Karel van Houten <K.H.C.vanHouten@kpn.com>
CC: linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
References: <200103171051.LAA04852@pandora.research.kpn.com>
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3889
Lines: 84

Thanks Karel for the RH 7.0 tarball.
I have install it and it seems to work fine, except for the RPM stuff.
Have you or anyone else managed to get rpm to work ?
We really need it to get going.

/Carsten


Karel van Houten wrote:

> Hi all,
>
> I hope someone can help me with this problem...
>
> I've installed an Indy with Ralfs Redhat/test-7.0 packages.
> Most things work OK, but rpm itself crashes when installing
> a package. Here is a trace of what happens:
>
> (gdb) run
> Starting program: /usr/src/redhat/BUILD/rpm-4.0/rpm -ihv /cdrom/mips/XFree86-dev
> el-4.0.1-1lm.mips.rpm
>
> Program received signal SIGSEGV, Segmentation fault.
> _dl_lookup_versioned_symbol (undef_name=0x2affa6af "strcpy",
>     undef_map=0x10075330, ref=0x7fff9818, symbol_scope=0x1007554c,
>     version=0x100756b0, reloc_type=3, explicit=0) at do-lookup.h:52
> 52      do-lookup.h: No such file or directory.
> (gdb) bt
> #0  _dl_lookup_versioned_symbol (undef_name=0x2affa6af "strcpy",
>     undef_map=0x10075330, ref=0x7fff9818, symbol_scope=0x1007554c,
>     version=0x100756b0, reloc_type=3, explicit=0) at do-lookup.h:52
> #1  0x5c30e4 in _dl_relocate_object () at ../sysdeps/mips/dl-machine.h:684
> #2  0x5b6a40 in dl_open_worker (a=0x1007554c) at dl-open.c:316
> #3  0x5b4a18 in _dl_catch_error (objname=0x7fff9a38, errstring=0x7fff9a3c,
>     operate=0x5b6470 <dl_open_worker>, args=0x7fff9a28) at dl-error.c:149
> #4  0x5b6ca0 in _dl_open (file=0x7fff9c10 "libnss_nisplus.so.2", mode=1,
>     caller=0x0) at dl-open.c:380
> #5  0x58882c in do_dlopen (ptr=0x7fff9bf0) at dl-libc.c:78
> #6  0x5b4a18 in _dl_catch_error (objname=0x7fff9bc0, errstring=0x7fff9bc4,
>     operate=0x5887ec <do_dlopen>, args=0x7fff9bf0) at dl-error.c:149
> #7  0x5887a4 in dlerror_run (operate=0x1007554c, args=0x0) at dl-libc.c:42
> #8  0x58893c in __libc_dlopen (__name=0x1007554c "\020\b\023\230\020\b\031 ")
>     at dl-libc.c:104
> #9  0x57d1d0 in __nss_lookup_function (ni=0x10080b80,
>     fct_name=0x5e3be0 "getpwnam_r") at nsswitch.c:333
> #10 0x57c560 in __nss_lookup (ni=0x7ffff2b0, fct_name=0x5e3be0 "getpwnam_r",
>     fctp=0x7ffff2b4) at nsswitch.c:148
> #11 0x57e544 in __nss_passwd_lookup (ni=0x7ffff2b0,
>     fct_name=0x5e3be0 "getpwnam_r", fctp=0x7ffff2b4) at XXX-lookup.c:68
> #12 0x56d7d0 in __getpwnam_r (name=0x5cc34c "root", resbuf=0x10018c08,
>     buffer=0x10080520 "\020", buflen=1024, result=0x7ffff308)
>     at ../nss/getXXbyYY_r.c:159
> #13 0x56c9bc in getpwnam (name=0x5cc34c "root") at ../nss/getXXbyYY.c:127
> #14 0x42753c in installBinaryPackage (rootdir=0x1004de50 "/", db=0x1004a688,
>     fd=0x100a2bb8, h=0x10088890, flags=0, notify=0x438fa0 <showProgress>,
>     notifyData=0x12, pkgKey=0x7ffff9f6, actions=0x1006edb8, sharedList=0x0,
>     scriptFd=0x0) at install.c:941
> #15 0x449c20 in rpmRunTransactions (ts=0x1004dde8,
>     notify=0x438fa0 <showProgress>, notifyData=0x12, okProbs=0x0,
>     newProbs=0x7ffff6c4, transFlags=0, ignoreSet=0) at transaction.c:1701
> #16 0x439c4c in rpmInstall (rootdir=0x5c917c "/", fileArgv=0x1001faf8,
>     transFlags=0, interfaceFlags=2, probFilter=0, relocations=0x0)
>     at rpminstall.c:370
> #17 0x406a2c in main (argc=3, argv=0xffffffff) at rpm.c:1133
> #18 0x53599c in __libc_start_main (main=0x404090 <main>, argc=3,
>     ubp_av=0x7ffff8d4, init=0x4000f8 <_init>, fini=0x5c6880 <_fini>,
>     rtld_fini=0, stack_end=0x7ffff8b0) at ../sysdeps/generic/libc-start.c:111
>
> This is a static rpm binary, so I don't understand why it tries
> do dynaload anything at all...
>
> Thanks in advance,
> --
> Karel van Houten

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Thu Mar 22 01:40:16 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2M9eGa24881
	for linux-mips-outgoing; Thu, 22 Mar 2001 01:40:16 -0800
Received: from exchange1.cam.pace.co.uk (host-131-80.pace.co.uk [136.170.131.80])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2M9eEM24878
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 01:40:14 -0800
Received: by exchange1 with Internet Mail Service (5.5.2448.0)
	id <GNGHZVH9>; Thu, 22 Mar 2001 09:39:12 -0000
Message-ID: <1402C4C025C4D311B50D00508B8B74E281B152@exchange1>
From: Phil Thompson <Phil.Thompson@pace.co.uk>
To: "'Geert Uytterhoeven'" <Geert.Uytterhoeven@sonycom.com>
Cc: linux-mips@oss.sgi.com
Subject: RE: Recommended toolchain
Date: Thu, 22 Mar 2001 09:39:11 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1603
Lines: 51

Correct - I am using the standard 2.4.2 sources. I had (obviously
incorrectly) assumed that the standard sources would be up to date and not
"some months" out of date.

How are the differences in the two trees managed? At what point are the
latest non-MIPS changes applied to the MIPS tree? At what point are the MIPS
specific changes applied to the standard tree?

Thanks,
Phil

-----Original Message-----
From: Geert Uytterhoeven [mailto:Geert.Uytterhoeven@sonycom.com]
Sent: 22 March 2001 07:50
To: Phil Thompson
Cc: 'Erik Mullinix'; linux-mips@oss.sgi.com
Subject: RE: Recommended toolchain


On Wed, 21 Mar 2001, Phil Thompson wrote:
> I had to patch va-mips.h to #include <asm/sgidefs.h> rather than
> <sgidefs.h>.
> 
> The current errors are:
> 
> - warnings about struct flock64 not being declared (it's defined in
> asm-mips64/fcntl.h but not asm-mips/fcntl.h)
> 
> - compilation stops because loops_per_sec is undeclared as far as
> asm-mips/delay.h is concerned (although it seems fine in
> asm-mips64/delay.h).
> 
> This seems to imply that the mips architecture (as opposed to mips64)
isn't
> being maintained. Is this the case? Should I be using mips64 - but what
> would be the point on an embedded CPU?

You're definitely not using the Linux/MIPS CVS tree, since these things were
fixed there some months ago.

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe
(SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat
55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels,
Belgium

From owner-linux-mips@oss.sgi.com Thu Mar 22 01:43:31 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2M9hVZ25157
	for linux-mips-outgoing; Thu, 22 Mar 2001 01:43:31 -0800
Received: from mail.sonytel.be (mail.sonytel.be [193.74.243.200])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2M9hSM25152
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 01:43:29 -0800
Received: from escobaria.sonytel.be (escobaria.sonytel.be [10.34.80.3])
	by mail.sonytel.be (8.9.0/8.8.6) with ESMTP id KAA01858;
	Thu, 22 Mar 2001 10:43:05 +0100 (MET)
Date: Thu, 22 Mar 2001 10:43:05 +0100 (MET)
From: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
To: Phil Thompson <Phil.Thompson@pace.co.uk>
cc: linux-mips@oss.sgi.com
Subject: RE: Recommended toolchain
In-Reply-To: <1402C4C025C4D311B50D00508B8B74E281B152@exchange1>
Message-ID: <Pine.GSO.4.10.10103221042250.18066-100000@escobaria.sonytel.be>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 787
Lines: 25

On Thu, 22 Mar 2001, Phil Thompson wrote:
> Correct - I am using the standard 2.4.2 sources. I had (obviously
> incorrectly) assumed that the standard sources would be up to date and not
> "some months" out of date.

:-)

> How are the differences in the two trees managed? At what point are the
> latest non-MIPS changes applied to the MIPS tree? At what point are the MIPS

When Ralf finds some time?

> specific changes applied to the standard tree?

When Ralf finds some time and Linus is in a good mood?

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven ------------- Sony Software Development Center Europe (SDCE)
Geert.Uytterhoeven@sonycom.com ------------------- Sint-Stevens-Woluwestraat 55
Voice +32-2-7248626 Fax +32-2-7262686 ---------------- B-1130 Brussels, Belgium


From owner-linux-mips@oss.sgi.com Thu Mar 22 03:44:31 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MBiV827854
	for linux-mips-outgoing; Thu, 22 Mar 2001 03:44:31 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MBiUM27851
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 03:44:30 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id DAA10839
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 03:44:30 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id DAA28589
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 03:44:28 -0800 (PST)
Message-ID: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: <linux-mips@oss.sgi.com>
Subject: Embedded MIPS/Linux Needs
Date: Thu, 22 Mar 2001 12:48:19 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1022
Lines: 28

Here at MIPS Technologies, we use Linux internally
for design verification, experiments, benchmarking,
etc., and as a consequence Carsten Langgaard and
myself have both been active in this forum, and have
tried to help the general Linux/MIPS community as
best we can with the limited time that we can dedicate
to the problem, in terms of suggested patches, bug
fixes, cleanups, integration of needed components
like the FPU emulator, etc.

I have a question for those of you who are doing
Linux work for *new* platforms (as opposed to the
SGI/DEC legacy box support people).  IF, and I
emphasize the word *if*, MIPS Technologies were
make a bigger investment in MIPS/Linux technology,
be it kernel enhancements, cross/native tools,
userland ports, libraries, or whatever, what would
be your prioritized "wish list"?

Feel free to respond by point-to-point email, though
responses that are also copied to the mailing list
might provoke some interesting and enlightening
debate.

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Thu Mar 22 04:29:08 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MCT8s29081
	for linux-mips-outgoing; Thu, 22 Mar 2001 04:29:08 -0800
Received: from exchange1.cam.pace.co.uk (host-131-80.pace.co.uk [136.170.131.80])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MCT6M29078
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 04:29:06 -0800
Received: by exchange1 with Internet Mail Service (5.5.2448.0)
	id <GNGHZV6K>; Thu, 22 Mar 2001 12:27:59 -0000
Message-ID: <1402C4C025C4D311B50D00508B8B74E281B153@exchange1>
From: Phil Thompson <Phil.Thompson@pace.co.uk>
To: linux-mips@oss.sgi.com
Subject: RE: Embedded MIPS/Linux Needs
Date: Thu, 22 Mar 2001 12:27:59 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
	charset="iso-8859-1"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2272
Lines: 58

I'm just starting out on this path, so my priorities might be off...

1. Packaging of a "stable" cross-development kit, including kernel,
toolchain and any other useful utilities. Saves me the time of assembling
the pieces myself and saves me asking questions about problems that were
fixed months ago. I know other companies provide this but I have yet to
evaluate them.

2. Provision of a framework (which may already be in place - I haven't got
that far yet) that provides me with a tick-list of hardware blocks that I
may need to provide code for to support my particular board, and to be
structured so that (as far as possible) I am adding files to the tree rather
than modifying them. The framework to be arranged so that I can do it
incrementally.

3. Support - not just for the development kit, but also as a source of
experience and suggestions for porting to new boards.

4. Work with chip manufacturers who are slow to provide Linux drivers.
Reference (rather than production quality) drivers would be better than
nothing. This is obviously not a MIPS specific issue.

Phil

-----Original Message-----
From: Kevin D. Kissell [mailto:kevink@mips.com]
Sent: 22 March 2001 11:48
To: linux-mips@oss.sgi.com
Subject: Embedded MIPS/Linux Needs


Here at MIPS Technologies, we use Linux internally
for design verification, experiments, benchmarking,
etc., and as a consequence Carsten Langgaard and
myself have both been active in this forum, and have
tried to help the general Linux/MIPS community as
best we can with the limited time that we can dedicate
to the problem, in terms of suggested patches, bug
fixes, cleanups, integration of needed components
like the FPU emulator, etc.

I have a question for those of you who are doing
Linux work for *new* platforms (as opposed to the
SGI/DEC legacy box support people).  IF, and I
emphasize the word *if*, MIPS Technologies were
make a bigger investment in MIPS/Linux technology,
be it kernel enhancements, cross/native tools,
userland ports, libraries, or whatever, what would
be your prioritized "wish list"?

Feel free to respond by point-to-point email, though
responses that are also copied to the mailing list
might provoke some interesting and enlightening
debate.

            Regards,

            Kevin K.

From owner-linux-mips@oss.sgi.com Thu Mar 22 05:23:23 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MDNNd30584
	for linux-mips-outgoing; Thu, 22 Mar 2001 05:23:23 -0800
Received: from chmls20.mediaone.net (chmls20.mediaone.net [24.147.1.156])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MDNJM30581
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 05:23:19 -0800
Received: from decoy (h00a0cc39f081.ne.mediaone.net [24.218.248.129])
	by chmls20.mediaone.net (8.11.1/8.11.1) with SMTP id f2MDNAk23663;
	Thu, 22 Mar 2001 08:23:14 -0500 (EST)
From: "Jay Carlson" <nop@nop.com>
To: <linux-mips@oss.sgi.com>, <linuxce-devel@linuxce.org>
Subject: snow, a statically linked shared library MIPS ABI
Date: Thu, 22 Mar 2001 08:23:13 -0500
Message-ID: <KEEOIBGCMINLAHMMNDJNAEHDCAAA.nop@nop.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3921
Lines: 84

OK, I've been sitting on this for a while and I haven't been pushing hard on
a release lately, so I think it's time for me to point you folks at the
back-to-the-stone-age library system I've been working on.

Warning: if you don't build distros from scratch, you won't find this
interesting.  If your devices-of-interest have big cache with wide, fast
memory, you won't see

>From the README:

----
This is snow, a collection of hacks to build absolute-linked shared
libraries for mipsel-linux systems.  It's inspired (if that's the
word) by the way Linux built shared libraries back in the libc2-4 era.

Motivation

For various reasons, position-independent code produced by the GNU
toolchain for MIPS targets is not very dense.  On desktop systems,
this is acceptable; on embedded systems, notably handheld Linux
devices, it's a real problem.  Unfortunately, PIC is an all-or-nothing
proposition, given the current MIPS toolchain: all parts of a program,
including the main executable, must be built as PIC for intercall to
work.  Therefore, in order to use non-PIC code anywhere, we need to
rebuild shared libraries, startup code, and main programs.

Without position-independent code, the ELF shared library strategy
doesn't work.

Plan

Instead, we can build shared library images located at fixed locations
in memory, with the location configured at library creation time.
Stub libraries are generated that hold the absolute addresses of
functions and data within the library image; programs (and other
libraries) link with the stubs.

[...]
----

Typical code density improvement is in the 20-40% range; file sizes are
reduced slightly more.  For example, bash 1.x went from 800k to 400k.
Although I haven't benchmarked it, executable startup seems dramatically
faster on the embedded devices I play with.

There can be significant execution speed boosts too.  It's been a while
since I did time trials, but I think I remember that dhrystone and squeak
are like 50-90% faster.   These numbers are from the TX3912 and Vr4181; on a
cobalt, dhrystone was only like 15% faster.  And the nature of the code is
important: the native Byte benchmark showed only minimal improvements.

Source at ftp://ftp.place.org/pub/nop/linuxce/snow-1.0.1.tar.gz ; a
toolchain builder is at
ftp://ftp.place.org/pub/nop/linuxce/pyramid-builder-1.0.3.tar.gz .

Shane Nay at Agenda Computing ( www.agendacomputing.com ) has done some
extensive work on distro building based on snow.
ftp://ftp.agendacomputing.com/pub/dev/ contains snapshots of the work he's
been doing; it includes source for much of the Agenda VR3 distribution
adapted to snow.  Agenda released a test rom image that demonstrates that
libc, X, fltk, bash, etc are functional (and fast!); for non-Agenda users,
this is interesting because it proves snow is a viable distro base.

The biggest item on the snow to-do list is the implementation of jump tables
and fixed data positioning to allow forward binary compatibility of library
versions.  (As with the old a.out libraries, this compatibility will require
work on the part of the library builder.)  Jump tables themselves are easy
to build; fixed data positioning seems easiest to implement
with -fdata-sections from gcc 2.9x.

Choice of library address ranges is an open problem.  If all code lives
below the 256M mark (as it does now) calls use direct addressing with jal
and j.  But that 256M gets sucked up real fast if it can only be allocated
aligned on 256k boundaries (because of the ABI mmap requirements, right?)
and we try to enforce global uniqueness of library space allocation.
Allowing library code anywhere in the address space requires either
per-callpoint 4-instruction "la $at,printf; jalr $at" or yet another layer
of stubs linked into each client space.

I'm looking for use/testing/contributions from embedded Linux people.  If
you'd like to take the code off my hands, that'd be cool too.

Jay


From owner-linux-mips@oss.sgi.com Thu Mar 22 06:01:46 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2ME1kB31733
	for linux-mips-outgoing; Thu, 22 Mar 2001 06:01:46 -0800
Received: from chmls20.mediaone.net (chmls20.mediaone.net [24.147.1.156])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2ME1jM31730
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 06:01:45 -0800
Received: from decoy (h00a0cc39f081.ne.mediaone.net [24.218.248.129])
	by chmls20.mediaone.net (8.11.1/8.11.1) with SMTP id f2ME1hk24137;
	Thu, 22 Mar 2001 09:01:43 -0500 (EST)
From: "Jay Carlson" <nop@nop.com>
To: "Kevin D. Kissell" <kevink@mips.com>, <linux-mips@oss.sgi.com>
Subject: RE: Embedded MIPS/Linux Needs
Date: Thu, 22 Mar 2001 09:01:47 -0500
Message-ID: <KEEOIBGCMINLAHMMNDJNIEHDCAAA.nop@nop.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2258
Lines: 51

Disclaimer: I'm just a hobbyist.

Kevin D. Kissell writes:

> Here at MIPS Technologies, we use Linux internally
> for design verification, experiments, benchmarking,
> etc., and as a consequence Carsten Langgaard and
> myself have both been active in this forum, and have
> tried to help the general Linux/MIPS community as
> best we can with the limited time that we can dedicate
> to the problem, in terms of suggested patches, bug
> fixes, cleanups, integration of needed components
> like the FPU emulator, etc.

Yes, and this is quite useful!

> I have a question for those of you who are doing
> Linux work for *new* platforms (as opposed to the
> SGI/DEC legacy box support people).  IF, and I
> emphasize the word *if*, MIPS Technologies were
> make a bigger investment in MIPS/Linux technology,
> be it kernel enhancements, cross/native tools,
> userland ports, libraries, or whatever, what would
> be your prioritized "wish list"?

Some of these things can reasonably be done by third parties.  For instance,
mvista's in the business of nailing down particular toolchain versions and
doing relevant ports.  These days I'm mostly userland, so I get to assume
that working kernels are and will continue to be emitted from the smart
people on this list too :-)

My pet issue is code density and compiler quality.  I think it's in MIPS's
best interest to provide a really good compiler for their products, and I
think gcc does a good job for traditional embedded MIPS systems.  But the
gcc/gas-generated code for the SVR4 ABI is pretty bad, especially for the
low-end devices.  snow (see previous message) shows how much room for
improvement there is.

Individual embedded Linux companies don't have much motivation to attack
this problem alone, as it looks like it could involve extensive gcc hacking.
If a particular customer looks like they have code density issues, it'd be
easier for embedded linux companies to just recommend, say, ARM.  MIPS
Technologies on the other hand carries the banner for all devices licensing
their architecture, and any toolchain work may result in greater demand for
their own cores and licensee products.

ARM and Cygnus recently contributed a gcc ARM backend rewrite.  That's what
got me thinking about this.

Jay


From owner-linux-mips@oss.sgi.com Thu Mar 22 06:17:36 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MEHaS32314
	for linux-mips-outgoing; Thu, 22 Mar 2001 06:17:36 -0800
Received: from saturn.mikemac.com (saturn.mikemac.com [216.99.199.88])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MEHZM32311
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 06:17:35 -0800
Received: from Saturn (localhost [127.0.0.1])
	by saturn.mikemac.com (8.9.3/8.9.3) with ESMTP id GAA20495;
	Thu, 22 Mar 2001 06:17:28 -0800
Message-Id: <200103221417.GAA20495@saturn.mikemac.com>
To: "Kevin D. Kissell" <kevink@mips.com>
cc: linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs 
In-Reply-To: Your message of "Thu, 22 Mar 2001 12:48:19 +0100."
             <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses> 
Date: Thu, 22 Mar 2001 06:17:28 -0800
From: Mike McDonald <mikemac@mikemac.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 617
Lines: 19


>From: "Kevin D. Kissell" <kevink@mips.com>
>To: <linux-mips@oss.sgi.com>
>Subject: Embedded MIPS/Linux Needs
>Date: Thu, 22 Mar 2001 12:48:19 +0100

>I have a question for those of you who are doing
>Linux work for *new* platforms (as opposed to the
>SGI/DEC legacy box support people).  IF, and I
>emphasize the word *if*, MIPS Technologies were
>make a bigger investment in MIPS/Linux technology,
>be it kernel enhancements, cross/native tools,
>userland ports, libraries, or whatever, what would
>be your prioritized "wish list"?

  A bootloader that runs under WinCE 3.0!

  Mike McDonald
  mikemac@mikemac.com

From owner-linux-mips@oss.sgi.com Thu Mar 22 06:18:10 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MEIAg32472
	for linux-mips-outgoing; Thu, 22 Mar 2001 06:18:10 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MEIAM32469
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 06:18:10 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id GAA11734;
	Thu, 22 Mar 2001 06:18:00 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id GAA02264;
	Thu, 22 Mar 2001 06:17:58 -0800 (PST)
Message-ID: <013a01c0b2db$749249a0$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Jay Carlson" <nop@nop.com>, <linux-mips@oss.sgi.com>,
   <linuxce-devel@linuxce.org>
References: <KEEOIBGCMINLAHMMNDJNAEHDCAAA.nop@nop.com>
Subject: Re: snow, a statically linked shared library MIPS ABI
Date: Thu, 22 Mar 2001 15:21:48 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 442
Lines: 12

> Instead, we can build shared library images located at fixed locations
> in memory, with the location configured at library creation time.
> Stub libraries are generated that hold the absolute addresses of
> functions and data within the library image; programs (and other
> libraries) link with the stubs.

In fact, this is exactly how shared libraries worked under
UNIX System V.  It is inelegant, but economical.

            Kevin K.



From owner-linux-mips@oss.sgi.com Thu Mar 22 07:28:42 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MFSgB02031
	for linux-mips-outgoing; Thu, 22 Mar 2001 07:28:42 -0800
Received: from chmls20.mediaone.net (chmls20.mediaone.net [24.147.1.156])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MFSfM02027
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 07:28:41 -0800
Received: from decoy (h00a0cc39f081.ne.mediaone.net [24.218.248.129])
	by chmls20.mediaone.net (8.11.1/8.11.1) with SMTP id f2MFSbk14939;
	Thu, 22 Mar 2001 10:28:37 -0500 (EST)
From: "Jay Carlson" <nop@nop.com>
To: "Kevin D. Kissell" <kevink@mips.com>, "Jay Carlson" <nop@place.org>,
   <linux-mips@oss.sgi.com>, <linuxce-devel@linuxce.org>
Subject: RE: snow, a statically linked shared library MIPS ABI
Date: Thu, 22 Mar 2001 10:28:41 -0500
Message-ID: <KEEOIBGCMINLAHMMNDJNMEHDCAAA.nop@nop.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0)
In-Reply-To: <013a01c0b2db$749249a0$0deca8c0@Ulysses>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 694
Lines: 17

Kevin D. Kissell [mailto:kevink@mips.com] writes:

> > Instead, we can build shared library images located at fixed locations
> > in memory, with the location configured at library creation time.
> > Stub libraries are generated that hold the absolute addresses of
> > functions and data within the library image; programs (and other
> > libraries) link with the stubs.
>
> In fact, this is exactly how shared libraries worked under
> UNIX System V.  It is inelegant, but economical.

Yeah.  I bet there are precedents back in the mainframe world too.  But my
first encounter with it was Linux a.out libraries, so it's a sign that I'm
truly a Linux Weenie that I think of it that way :-)

Jay


From owner-linux-mips@oss.sgi.com Thu Mar 22 09:55:50 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MHtoc05245
	for linux-mips-outgoing; Thu, 22 Mar 2001 09:55:50 -0800
Received: from ns.snowman.net (ns.snowman.net [63.80.4.34])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MHtoM05242
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 09:55:50 -0800
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id MAA19642
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 12:55:45 -0500
Date: Thu, 22 Mar 2001 12:55:45 -0500 (EST)
From: <nick@snowman.net>
X-Sender: nick@ns
cc: linux-mips@oss.sgi.com
Subject: Information about non-cache-coherent r10k
In-Reply-To: <1402C4C025C4D311B50D00508B8B74E281B152@exchange1>
Message-ID: <Pine.LNX.4.21.0103221253110.19179-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 156
Lines: 6

http://mail-index.netbsd.org/port-sgimips/2000/06/29/0006.html
I was forwarded this link by a very helpfull fellow working on the Netbsd
mips port.
	Nick



From owner-linux-mips@oss.sgi.com Thu Mar 22 10:21:58 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MILwd05906
	for linux-mips-outgoing; Thu, 22 Mar 2001 10:21:58 -0800
Received: from jester.ti.com (jester.ti.com [192.94.94.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MILvM05903
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 10:21:57 -0800
Received: from dlep8.itg.ti.com ([157.170.134.88])
	by jester.ti.com (8.11.1/8.11.1) with ESMTP id f2MILpD17605;
	Thu, 22 Mar 2001 12:21:51 -0600 (CST)
Received: from dlep8.itg.ti.com (localhost [127.0.0.1])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id MAA00109;
	Thu, 22 Mar 2001 12:21:51 -0600 (CST)
Received: from dlep4.itg.ti.com (dlep4-maint.itg.ti.com [157.170.133.17])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id MAA00099;
	Thu, 22 Mar 2001 12:21:50 -0600 (CST)
Received: from ti.com (reddwarf.sc.ti.com [158.218.100.143])
	by dlep4.itg.ti.com (8.9.3/8.9.3) with ESMTP id MAA07794;
	Thu, 22 Mar 2001 12:21:50 -0600 (CST)
Message-ID: <3ABA430E.BDC095E@ti.com>
Date: Thu, 22 Mar 2001 11:23:10 -0700
From: Jeff Harrell <jharrell@ti.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses>
Content-Type: multipart/mixed;
 boundary="------------067786785BCB493D506E86D4"
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 6549
Lines: 178

This is a multi-part message in MIME format.
--------------067786785BCB493D506E86D4
Content-Type: multipart/alternative;
 boundary="------------9A7CE958C2C774B590AC4627"


--------------9A7CE958C2C774B590AC4627
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

"Kevin D. Kissell" wrote:

> Here at MIPS Technologies, we use Linux internally
> for design verification, experiments, benchmarking,
> etc., and as a consequence Carsten Langgaard and
> myself have both been active in this forum, and have
> tried to help the general Linux/MIPS community as
> best we can with the limited time that we can dedicate
> to the problem, in terms of suggested patches, bug
> fixes, cleanups, integration of needed components
> like the FPU emulator, etc.
>

I think that  one of the larger hurdles that we have had
to overcome is a common set of tools that can build a current
kernel and userland application set from a cross-developed
environment.  There seems to have been a
divergence between kernel tools and userland tools specifically in
the area of recent kernel 2.4.x and GLIBC 2.2.x that is a major
headache for delivering a toolchain that is on par with the
intel equivalent designs.  It is tough to offer a linux design that
requires multiple toolchains one to build the kernel, one to build
userland apps.


>
> I have a question for those of you who are doing
> Linux work for *new* platforms (as opposed to the
> SGI/DEC legacy box support people).  IF, and I
> emphasize the word *if*, MIPS Technologies were
> make a bigger investment in MIPS/Linux technology,
> be it kernel enhancements, cross/native tools,
> userland ports, libraries, or whatever, what would
> be your prioritized "wish list"?
>

    1. A toolchain that will build 2.4.x version of the kernel as well
        as GLIBC 2.2 dependent applications.  Preferrably this would
        be a cross-development environment.  (This would require
         GLIBC 2.2 accessable as a cross-compiled environment

    2.  Userland app ports


>
> Feel free to respond by point-to-point email, though
> responses that are also copied to the mailing list
> might provoke some interesting and enlightening
> debate.
>
>             Regards,
>
>             Kevin K.

>From past experience it's easy to see that without a
solid set of development tools, it is hard to justify using
a particular CPU or hardware.



--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell                    Work:  (801) 619-6104
Broadband Access group/TI
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



--------------9A7CE958C2C774B590AC4627
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit

<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
"Kevin D. Kissell" wrote:
<blockquote TYPE=CITE>Here at MIPS Technologies, we use Linux internally
<br>for design verification, experiments, benchmarking,
<br>etc., and as a consequence Carsten Langgaard and
<br>myself have both been active in this forum, and have
<br>tried to help the general Linux/MIPS community as
<br>best we can with the limited time that we can dedicate
<br>to the problem, in terms of suggested patches, bug
<br>fixes, cleanups, integration of needed components
<br>like the FPU emulator, etc.
<br>&nbsp;</blockquote>
I think that&nbsp; one of the larger hurdles that we have had
<br>to overcome is a common set of tools that can build a current
<br>kernel and userland application set from a cross-developed
<br>environment.&nbsp; There seems to have been a
<br>divergence between kernel tools and userland tools specifically in
<br>the area of recent kernel 2.4.x and GLIBC&nbsp;2.2.x that is a major
<br>headache for delivering a toolchain that is on par with the
<br>intel equivalent designs.&nbsp; It is tough to offer a linux design
that
<br>requires multiple toolchains one to build the kernel, one to build
<br>userland apps.
<br>&nbsp;
<blockquote TYPE=CITE>&nbsp;
<br>I have a question for those of you who are doing
<br>Linux work for *new* platforms (as opposed to the
<br>SGI/DEC legacy box support people).&nbsp; IF, and I
<br>emphasize the word *if*, MIPS Technologies were
<br>make a bigger investment in MIPS/Linux technology,
<br>be it kernel enhancements, cross/native tools,
<br>userland ports, libraries, or whatever, what would
<br>be your prioritized "wish list"?
<br>&nbsp;</blockquote>
&nbsp;&nbsp;&nbsp; 1.&nbsp;A toolchain that will build 2.4.x version of
the kernel as well
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; as GLIBC 2.2 dependent applications.&nbsp;
Preferrably this would
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; be a cross-development environment.&nbsp;
(This would require
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; GLIBC 2.2 accessable
as a cross-compiled environment
<p>&nbsp;&nbsp;&nbsp; 2.&nbsp; Userland app ports
<br>&nbsp;
<blockquote TYPE=CITE>&nbsp;
<br>Feel free to respond by point-to-point email, though
<br>responses that are also copied to the mailing list
<br>might provoke some interesting and enlightening
<br>debate.
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Regards,
<p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Kevin
K.</blockquote>

<p><br>From past experience it's easy to see that without a
<br>solid set of development tools, it is hard to justify using
<br>a particular CPU or hardware.
<br>&nbsp;
<br>&nbsp;
<pre>--&nbsp;
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Jeff Harrell&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Work:&nbsp; (801) 619-6104&nbsp;
Broadband Access group/TI&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
jharrell@ti.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~</pre>
&nbsp;</html>

--------------9A7CE958C2C774B590AC4627--

--------------067786785BCB493D506E86D4
Content-Type: text/x-vcard; charset=us-ascii;
 name="jharrell.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Jeff Harrell
Content-Disposition: attachment;
 filename="jharrell.vcf"

begin:vcard 
n:Harrell;Jeff
tel;cell:(801) 597-6268
tel;fax:(801) 619-6150
tel;work:(801) 619-6104
x-mozilla-html:TRUE
url:http://www.ti.com
org:Broadband Access Group
version:2.1
email;internet:jharrell@ti.com
title:Texas Instruments
adr;quoted-printable:;;170 West Election Rd. Suite 100	=0D=0AMS 4106		;Draper;Utah;84020-6410;USA
x-mozilla-cpt:;0
fn:Jeff Harrell
end:vcard

--------------067786785BCB493D506E86D4--


From owner-linux-mips@oss.sgi.com Thu Mar 22 10:36:34 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MIaYK06491
	for linux-mips-outgoing; Thu, 22 Mar 2001 10:36:34 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MIaXM06488
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 10:36:33 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2MIX4020006;
	Thu, 22 Mar 2001 10:33:04 -0800
Message-ID: <3ABA4539.C3E780B6@mvista.com>
Date: Thu, 22 Mar 2001 10:32:25 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Jay Carlson <nop@nop.com>
CC: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
References: <KEEOIBGCMINLAHMMNDJNIEHDCAAA.nop@nop.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1517
Lines: 35

Jay Carlson wrote:
> 
> Disclaimer: I'm just a hobbyist.
>

Disclaimer: I am an MontaVista employee, but as always, this email only
represents my own opinion. :-)
 
> Kevin D. Kissell writes:
> 
> 
> Individual embedded Linux companies don't have much motivation to attack
> this problem alone, as it looks like it could involve extensive gcc hacking.
> If a particular customer looks like they have code density issues, it'd be
> easier for embedded linux companies to just recommend, say, ARM.  MIPS
> Technologies on the other hand carries the banner for all devices licensing
> their architecture, and any toolchain work may result in greater demand for
> their own cores and licensee products.
>

I agree.  Toolchain is the first step in the food chain.  It makes most sense
for MTI to invest in it and to make it better.  All companies that I heard of
switching from MIPS to PPC are due to toolchain (including debuggers). 
Sometimes it even has nothing to do with Linux.

I think kernel also needs improvement in terms of board/machine support.  I
wrote an email long time ago talking about introducing a board support
structure.  I predicted we would see 20 new MIPS boards added this year and
100 more down the road.  Apparently a better structure needs to be in place to
accomdate the growth. It will certainly make future porting much easier too.

While some of the improvement can be done incrementally (like time.c mess
clean-up), some (like irq, PCI?) is probably best to be done just in one shot.

Jun

From owner-linux-mips@oss.sgi.com Thu Mar 22 11:00:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MJ0U407232
	for linux-mips-outgoing; Thu, 22 Mar 2001 11:00:30 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MJ0TM07229
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 11:00:29 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP id 53DF8205FF
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 11:00:24 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Thu, 22 Mar 2001 10:53:21 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP id 5481B1595F
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 11:00:24 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id 65F1F686D; Thu, 22 Mar 2001 11:02:52 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
Date: Thu, 22 Mar 2001 11:02:20 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
MIME-Version: 1.0
Message-Id: <01032211025209.20180@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 595
Lines: 18

On Thu, 22 Mar 2001, you wrote:

> I have a question for those of you who are doing
> Linux work for *new* platforms (as opposed to the
> SGI/DEC legacy box support people).  IF, and I
> emphasize the word *if*, MIPS Technologies were
> make a bigger investment in MIPS/Linux technology,
> be it kernel enhancements, cross/native tools,
> userland ports, libraries, or whatever, what would
> be your prioritized "wish list"?

1)  n64 support in the full current gnu toolchain 
2)  n64 support in the full current gnu toolchain. 
3)  n64...

I, of course, hold no biases whatsoever.  ;)

-Justin

From owner-linux-mips@oss.sgi.com Thu Mar 22 11:03:50 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MJ3oI07492
	for linux-mips-outgoing; Thu, 22 Mar 2001 11:03:50 -0800
Received: from ns.snowman.net (ns.snowman.net [63.80.4.34])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MJ3nM07489
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 11:03:49 -0800
Received: from localhost (nick@localhost)
	by ns.snowman.net (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA21425;
	Thu, 22 Mar 2001 14:03:43 -0500
Date: Thu, 22 Mar 2001 14:03:43 -0500 (EST)
From: <nick@snowman.net>
X-Sender: nick@ns
To: Justin Carlson <carlson@sibyte.com>
cc: linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
In-Reply-To: <01032211025209.20180@plugh.sibyte.com>
Message-ID: <Pine.LNX.4.21.0103221402430.19179-100000@ns>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 887
Lines: 33

I'd like to modify a couple of those requests...
1) Working 64bit support in the current gnu toolchain
.
.
.

<Grin>
	Nick
(It sorta produces useable code... usually..... on tuesdays... if it's a
blue moon)

On Thu, 22 Mar 2001, Justin Carlson wrote:

> On Thu, 22 Mar 2001, you wrote:
> 
> > I have a question for those of you who are doing
> > Linux work for *new* platforms (as opposed to the
> > SGI/DEC legacy box support people).  IF, and I
> > emphasize the word *if*, MIPS Technologies were
> > make a bigger investment in MIPS/Linux technology,
> > be it kernel enhancements, cross/native tools,
> > userland ports, libraries, or whatever, what would
> > be your prioritized "wish list"?
> 
> 1)  n64 support in the full current gnu toolchain 
> 2)  n64 support in the full current gnu toolchain. 
> 3)  n64...
> 
> I, of course, hold no biases whatsoever.  ;)
> 
> -Justin
> 


From owner-linux-mips@oss.sgi.com Thu Mar 22 11:22:05 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MJM5U08105
	for linux-mips-outgoing; Thu, 22 Mar 2001 11:22:05 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MJM4M08102
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 11:22:05 -0800
Received: by mail.foobazco.org (Postfix, from userid 1014)
	id 178F8109CE; Thu, 22 Mar 2001 11:22:29 -0800 (PST)
Date: Thu, 22 Mar 2001 11:22:29 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: nick@snowman.net
Cc: Justin Carlson <carlson@sibyte.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
Message-ID: <20010322112229.A5617@foobazco.org>
References: <01032211025209.20180@plugh.sibyte.com> <Pine.LNX.4.21.0103221402430.19179-100000@ns>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.LNX.4.21.0103221402430.19179-100000@ns>; from nick@snowman.net on Thu, Mar 22, 2001 at 02:03:43PM -0500
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 901
Lines: 27

On Thu, Mar 22, 2001 at 02:03:43PM -0500, nick@snowman.net wrote:

> (It sorta produces useable code... usually..... on tuesdays... if it's a
> blue moon)

gcc 3.0 for mips64 requires hacks to even accept the arguments the
kernel compile wants to give, and even then it reliably produces
extremely incorrect code.  For example:

int i = 0;
prom_printf ("%d", i);

Might yield something like

-14777223

- basically, anything but 0.  The code that causes this is horribly
wrong that it wasn't even worth looking at.  There are all sorts of
similar, related, and dissimilar problems.

On the other hand, the same compiler for mips (not 64) reliably
produces working 2.4 kernels...

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Thu Mar 22 15:44:03 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2MNi3e14366
	for linux-mips-outgoing; Thu, 22 Mar 2001 15:44:03 -0800
Received: from gatekeep.ti.com (gatekeep.ti.com [192.94.94.61])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2MNi1M14358
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 15:44:02 -0800
Received: from dlep8.itg.ti.com ([157.170.134.88])
	by gatekeep.ti.com (8.11.1/8.11.1) with ESMTP id f2MNhtr17992
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 17:43:56 -0600 (CST)
Received: from dlep8.itg.ti.com (localhost [127.0.0.1])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA25822
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 17:43:55 -0600 (CST)
Received: from dlep3.itg.ti.com (dlep3-maint.itg.ti.com [157.170.133.16])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA25816
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 17:43:55 -0600 (CST)
Received: from ti.com (IDENT:bbrown@bbrowndt.sc.ti.com [158.218.100.126])
	by dlep3.itg.ti.com (8.9.3/8.9.3) with ESMTP id RAA12164
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 17:43:54 -0600 (CST)
Message-ID: <3ABA8F3D.E24DF122@ti.com>
Date: Thu, 22 Mar 2001 16:48:13 -0700
From: Brady Brown <bbrown@ti.com>
Organization: Texas Instruments
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: SGI news group <linux-mips@oss.sgi.com>
Subject: Tools miss-compile old kernel
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 3365
Lines: 72

I recently upgraded to a newer Cross-compiler tool chain to try to get up to
glibc2.2. I'm now at gcc-2.95.3-14 and binutils-2.10.91-2 (both from Maciej's
site). I have built 2.4.0-test9 with this tool-chain, but is will not boot. It
spews illegal instruction errors when init is launched.

Is this supposed to work, or are the new tools incompatible with older kernels?

I dumped out the disassembly of a newly compiled kernel and found some bad
instructions in many of the routines. First one is from head.S

SNIP>> of bad disassembly
0000000080100280 <except_vec0_r4000>:
except_vec0_r4000():
    80100280:     401a4000      mfc0         $k0,$8
    80100284:     001ad582      srl             $k0,$k0,0x16
    80100288:     3c1b0000      lui             $k1,0x0
    8010028c:     677b0001      0x677b0001
    80100290:     001bdc38      0x1bdc38
    80100294:     677b8023      0x677b8023
    80100298:     001bdc38      0x1bdc38
    8010029c:     8f7bb250      lw                 $k1,-19888($k1)
    801002a0:     001ad080      sll                $k0,$k0,0x2
    801002a4:     037ad821      addu            $k1,$k1,$k0
    801002a8:     401a2000      mfc0           $k0,$4
    801002ac:     8f7b0000      lw                 $k1,0($k1)
    801002b0:     001ad042      srl                $k0,$k0,0x1
    801002b4:     335a0ff8      andi              $k0,$k0,0xff8
    801002b8:     037ad821      addu            $k1,$k1,$k0
    801002bc:     8f7a0000      lw                  $k0,0($k1)
    801002c0:     8f7b0004      lw                  $k1,4($k1)
    801002c4:     001ad182      srl                 $k0,$k0,0x6
    801002c8:     409a1000      mtc0            $k0,$2
    801002cc:     001bd982      srl                 $k1,$k1,0x6
    801002d0:     409b1800      mtc0            $k1,$3
    801002d4:     10000001      b                    ffffffff801002dc
<except_vec0_r4000+0x5c>
    801002d8:     42000006      tlbwr
    801002dc:     00000000      nop
    801002e0:     42000018      c0 0x18
<<SNIP

>>SNIP of good assembly from old tools
0000000080100280 <except_vec0_r4000>:
except_vec0_r4000():
    80100280:     401a4000     mfc0         $k0,$8
    80100284:     001ad582     srl              $k0,$k0,0x16
    80100288:     3c1b8023     lui              $k1,0x8023
    8010028c:     8f7bd210      lw               $k1,-11760($k1)
    80100290:     001ad080     sll               $k0,$k0,0x2
    80100294:     037ad821     addu          $k1,$k1,$k0
    80100298:     401a2000     mfc0         $k0,$4
    8010029c:     8f7b0000      lw                $k1,0($k1)
    801002a0:     001ad042     srl             $k0,$k0,0x1
    801002a4:     335a0ff8      andi           $k0,$k0,0xff8
    801002a8:     037ad821     addu         $k1,$k1,$k0
    801002ac:     8f7a0000      lw             $k0,0($k1)
    801002b0:     8f7b0004      lw             $k1,4($k1)
    801002b4:     001ad182      srl             $k0,$k0,0x6
    801002b8:     409a1000      mtc0         $k0,$2
    801002bc:     001bd982      srl             $k1,$k1,0x6
    801002c0:     409b1800      mtc0         $k1,$3
    801002c4:     10000001      b 801002cc <except_vec0_r4000+4c>
    801002c8:     42000006      tlbwr
    801002cc:     00000000      nop
    801002d0:     42000018      eret
<<SNIP


Looks like here the tools blow the lui/lw combination and also the eret. Any
suggestions?



From owner-linux-mips@oss.sgi.com Thu Mar 22 16:46:36 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2N0kaB15687
	for linux-mips-outgoing; Thu, 22 Mar 2001 16:46:36 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2N0kZM15684
	for <linux-mips@oss.sgi.com>; Thu, 22 Mar 2001 16:46:35 -0800
Received: by mail.foobazco.org (Postfix, from userid 1014)
	id B3068109CE; Thu, 22 Mar 2001 16:47:00 -0800 (PST)
Date: Thu, 22 Mar 2001 16:47:00 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: Brady Brown <bbrown@ti.com>
Cc: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Tools miss-compile old kernel
Message-ID: <20010322164659.A6068@foobazco.org>
References: <3ABA8F3D.E24DF122@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3ABA8F3D.E24DF122@ti.com>; from bbrown@ti.com on Thu, Mar 22, 2001 at 04:48:13PM -0700
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 984
Lines: 22

On Thu, Mar 22, 2001 at 04:48:13PM -0700, Brady Brown wrote:

> Is this supposed to work, or are the new tools incompatible with
> older kernels?

That particular assembler is incompatible with sanity, older kernels,
newer kernels, and anything you expect to actually function properly.

> Looks like here the tools blow the lui/lw combination and also the eret. Any
> suggestions?

Upgrade to CVS binutils.  The one Maciej has on his site is apparently
broken.  If you want a toolchain that is known to work at least in
some cases, you can pull it from
ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple/crossdev/.  That is
the toolchain I use to build kernels -and- userland (yes, I know,
everyone says it can't be done, but...) and thus it Works For Me (TM).

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Fri Mar 23 14:54:01 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2NMs1X11861
	for linux-mips-outgoing; Fri, 23 Mar 2001 14:54:01 -0800
Received: from sprint02.rtmx.net (IDENT:qmailr@sprint02.RTMX.NET [208.31.160.2])
	by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2NMs1M11858
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 14:54:01 -0800
Received: (qmail 12007 invoked by uid 102); 23 Mar 2001 22:53:59 -0000
Received: from host098.momenco.com (HELO beagle) (64.169.228.98)
  by 208.31.160.29 with SMTP; 23 Mar 2001 22:53:59 -0000
From: "Matthew Dharm" <mdharm@momenco.com>
To: "Linux-MIPS" <linux-mips@oss.sgi.com>
Subject: Multiple processor support?
Date: Fri, 23 Mar 2001 14:53:59 -0800
Message-ID: <NEBBLJGMNKKEEMNLHGAIKELKCAAA.mdharm@momenco.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 355
Lines: 10

Does the MIPS port of linux support multiple-processor architectures?

Matt Dharm

--
Matthew D. Dharm                            Senior Software Designer
Momentum Computer Inc.                      1815 Aston Ave.  Suite 107
(760) 431-8663 X-115                        Carlsbad, CA 92008-7310
Momentum Works For You                      www.momenco.com


From owner-linux-mips@oss.sgi.com Fri Mar 23 14:56:05 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2NMu5512107
	for linux-mips-outgoing; Fri, 23 Mar 2001 14:56:05 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2NMu4M12104
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 14:56:04 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP
	id 52EAB205FC; Fri, 23 Mar 2001 14:55:59 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Fri, 23 Mar 2001 14:48:54 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP
	id 530B21595F; Fri, 23 Mar 2001 14:55:59 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id B19D6686D; Fri, 23 Mar 2001 14:58:35 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: "Matthew Dharm" <mdharm@momenco.com>
Subject: Re: Multiple processor support?
Date: Fri, 23 Mar 2001 14:58:20 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
References: <NEBBLJGMNKKEEMNLHGAIKELKCAAA.mdharm@momenco.com>
In-Reply-To: <NEBBLJGMNKKEEMNLHGAIKELKCAAA.mdharm@momenco.com>
Cc: linux-mips@oss.sgi.com
MIME-Version: 1.0
Message-Id: <01032314583505.00779@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 133
Lines: 7

On Fri, 23 Mar 2001, you wrote:
> Does the MIPS port of linux support multiple-processor architectures?
> 

MIPS or MIPS64?

-Justin

From owner-linux-mips@oss.sgi.com Fri Mar 23 16:01:28 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O01Su13428
	for linux-mips-outgoing; Fri, 23 Mar 2001 16:01:28 -0800
Received: from sprint02.rtmx.net (IDENT:qmailr@sprint02.RTMX.NET [208.31.160.2])
	by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2O01RM13425
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 16:01:27 -0800
Received: (qmail 19379 invoked by uid 102); 24 Mar 2001 00:01:26 -0000
Received: from host098.momenco.com (HELO beagle) (64.169.228.98)
  by 208.31.160.29 with SMTP; 24 Mar 2001 00:01:26 -0000
From: "Matthew Dharm" <mdharm@momenco.com>
To: <carlson@sibyte.com>
Cc: <linux-mips@oss.sgi.com>
Subject: RE: Multiple processor support?
Date: Fri, 23 Mar 2001 16:01:26 -0800
Message-ID: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
In-reply-to: <01032314583505.00779@plugh.sibyte.com>
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 775
Lines: 30

Well, I'd like to know about both, frankly.  Tho I'm more interested
in whichever is designed to run on RM7000 series processors.

Matt

--
Matthew D. Dharm                            Senior Software Designer
Momentum Computer Inc.                      1815 Aston Ave.  Suite 107
(760) 431-8663 X-115                        Carlsbad, CA 92008-7310
Momentum Works For You                      www.momenco.com

> -----Original Message-----
> From: Justin Carlson [mailto:carlson@sibyte.com]
> Sent: Friday, March 23, 2001 2:58 PM
> To: Matthew Dharm
> Cc: linux-mips@oss.sgi.com
> Subject: Re: Multiple processor support?
>
>
> On Fri, 23 Mar 2001, you wrote:
> > Does the MIPS port of linux support multiple-processor
> architectures?
> >
>
> MIPS or MIPS64?
>
> -Justin
>
>


From owner-linux-mips@oss.sgi.com Fri Mar 23 16:12:01 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O0C1g13770
	for linux-mips-outgoing; Fri, 23 Mar 2001 16:12:01 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2O0C1M13767
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 16:12:01 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP
	id 6AC51205FA; Fri, 23 Mar 2001 16:11:55 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Fri, 23 Mar 2001 16:04:51 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP
	id CD31315961; Fri, 23 Mar 2001 16:11:55 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id 7D288686D; Fri, 23 Mar 2001 16:14:36 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: "Matthew Dharm" <mdharm@momenco.com>
Subject: RE: Multiple processor support?
Date: Fri, 23 Mar 2001 16:08:13 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
Cc: <linux-mips@oss.sgi.com>
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com>
In-Reply-To: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com>
MIME-Version: 1.0
Message-Id: <01032316143609.00779@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 717
Lines: 14

On Fri, 23 Mar 2001, Matthew Dharm wrote:
> Well, I'd like to know about both, frankly.  Tho I'm more interested
> in whichever is designed to run on RM7000 series processors.

To the best of my knowledge, the mips64 tree only works in SMP on the ip-27
which is r10K based.  There would be a bit of work to get an RM7K  based
multiprocessor system to run. A fair amount of the "generic" code in
that tree is also pretty ip-27 specific, and so would need to be cleaned up.

I'm working on mips32 SMP support at the moment; there are no existing ports of
this tree to an SMP platform.  The mips64 stuff is certainly much, much more 
mature.  I don't know of any reasons not to use the mips64 side for an RM7K.

-Justin

From owner-linux-mips@oss.sgi.com Fri Mar 23 16:16:12 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O0GCq14047
	for linux-mips-outgoing; Fri, 23 Mar 2001 16:16:12 -0800
Received: from clrsrv1.clearcore.com (@www.clearcore.com [208.141.182.168])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2O0GBM14044
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 16:16:11 -0800
Received: from clearcore.net (nephi.clearcore.com [192.168.3.3])
	by clrsrv1.clearcore.com (8.10.1/8.10.1) with ESMTP id f2O0Fjd26311;
	Fri, 23 Mar 2001 17:15:45 -0700
Message-ID: <3ABBE6BC.1040005@clearcore.net>
Date: Fri, 23 Mar 2001 17:13:48 -0700
From: Joe George <joeg@clearcore.net>
Organization: ClearCore
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-21mdk i686; en-US; 0.8.1) Gecko/20010321
X-Accept-Language: en
MIME-Version: 1.0
To: Matthew Dharm <mdharm@momenco.com>
CC: carlson@sibyte.com, linux-mips@oss.sgi.com
Subject: Re: Multiple processor support?
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 935
Lines: 40

Unfortunately the RM7000 does not have hardware cache coherency
support.

Joe George

Matthew Dharm wrote:

> Well, I'd like to know about both, frankly.  Tho I'm more interested
> in whichever is designed to run on RM7000 series processors.
> 
> Matt
> 
> --
> Matthew D. Dharm                            Senior Software Designer
> Momentum Computer Inc.                      1815 Aston Ave.  Suite 107
> (760) 431-8663 X-115                        Carlsbad, CA 92008-7310
> Momentum Works For You                      www.momenco.com
> 
> 
>> -----Original Message-----
>> From: Justin Carlson [mailto:carlson@sibyte.com]
>> Sent: Friday, March 23, 2001 2:58 PM
>> To: Matthew Dharm
>> Cc: linux-mips@oss.sgi.com
>> Subject: Re: Multiple processor support?
>> 
>> 
>> On Fri, 23 Mar 2001, you wrote:
>> 
>>> Does the MIPS port of linux support multiple-processor
>> 
>> architectures?
>> 
>> MIPS or MIPS64?
>> 
>> -Justin
>> 
>> 



From owner-linux-mips@oss.sgi.com Fri Mar 23 16:28:41 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O0SfQ14514
	for linux-mips-outgoing; Fri, 23 Mar 2001 16:28:41 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2O0SfM14510
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 16:28:41 -0800
Received: by mail.foobazco.org (Postfix, from userid 1014)
	id 9C77E109CE; Fri, 23 Mar 2001 16:29:05 -0800 (PST)
Date: Fri, 23 Mar 2001 16:29:05 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: Justin Carlson <carlson@sibyte.com>
Cc: Matthew Dharm <mdharm@momenco.com>, linux-mips@oss.sgi.com
Subject: Re: Multiple processor support?
Message-ID: <20010323162904.A10387@foobazco.org>
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com> <01032316143609.00779@plugh.sibyte.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <01032316143609.00779@plugh.sibyte.com>; from carlson@sibyte.com on Fri, Mar 23, 2001 at 04:08:13PM -0800
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 905
Lines: 17

On Fri, Mar 23, 2001 at 04:08:13PM -0800, Justin Carlson wrote:

> To the best of my knowledge, the mips64 tree only works in SMP on the ip-27
> which is r10K based.  There would be a bit of work to get an RM7K  based
> multiprocessor system to run. A fair amount of the "generic" code in
> that tree is also pretty ip-27 specific, and so would need to be cleaned up.

In the particular case of SMP, this is probably still true.  However,
as of last weekend this tree compiles properly and boots part way on
Indy; I have more to do but the separation of the obviously
ip27-dependent stuff is done; you should at least be able to compile
other machines in mips64...if there were any.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Fri Mar 23 16:37:01 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O0b1214828
	for linux-mips-outgoing; Fri, 23 Mar 2001 16:37:01 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2O0b0M14825
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 16:37:00 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id QAA29948;
	Fri, 23 Mar 2001 16:37:01 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id QAA29978;
	Fri, 23 Mar 2001 16:36:57 -0800 (PST)
Message-ID: <01b801c0b3fb$1770b740$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: <carlson@sibyte.com>, "Matthew Dharm" <mdharm@momenco.com>
Cc: <linux-mips@oss.sgi.com>
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com> <01032316143609.00779@plugh.sibyte.com>
Subject: Re: Multiple processor support?
Date: Sat, 24 Mar 2001 01:40:47 +0100
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1517
Lines: 37

> > Well, I'd like to know about both, frankly.  Tho I'm more interested
> > in whichever is designed to run on RM7000 series processors.

None are "designed" as such for the RM7000.  I don't have a
full RM7000 manual in the shop, but the short-form advance
manual that I do have, while it goes into a fair amount of
detail about the cache operations and external interface
protocols, makes no mention of any support for hardware
coherence of the sort provided by the R10000/R12000
(and the R4000/R4400 for that matter).  If there is no support
for cached/coherent memory attributes and cache interventions
from the system side, an SMP kernel design for an MP SGI box
might not be useful for an MP RM7K configuration.  It is possible,
but tricky, and at times unavoidably inefficient to build a
software-coherent SMP system.  I have not heard of anyone
doing so with MIPS/Linux.

> To the best of my knowledge, the mips64 tree only works in SMP on the
ip-27
> which is r10K based.  There would be a bit of work to get an RM7K  based
> multiprocessor system to run. A fair amount of the "generic" code in
> that tree is also pretty ip-27 specific, and so would need to be cleaned
up.
>
> I'm working on mips32 SMP support at the moment; there are no existing
ports of
> this tree to an SMP platform.  The mips64 stuff is certainly much, much
more
> mature.  I don't know of any reasons not to use the mips64 side for an
RM7K.

Well, one reason might be memory footprint...

            Regards,

            Kevin K.


From owner-linux-mips@oss.sgi.com Fri Mar 23 17:24:23 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2O1ONL15856
	for linux-mips-outgoing; Fri, 23 Mar 2001 17:24:23 -0800
Received: from dea.waldorf-gmbh.de (u-77-21.karlsruhe.ipdial.viaginterkom.de [62.180.21.77])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2O1OKM15850
	for <linux-mips@oss.sgi.com>; Fri, 23 Mar 2001 17:24:20 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2O1N7515101;
	Sat, 24 Mar 2001 02:23:07 +0100
Date: Sat, 24 Mar 2001 02:23:07 +0100
From: Ralf Baechle <ralf@oss.sgi.com>
To: "Kevin D. Kissell" <kevink@mips.com>
Cc: <carlson@sibyte.com>, "Matthew Dharm" <mdharm@momenco.com>,
   <linux-mips@oss.sgi.com>
Subject: Re: Multiple processor support?
Message-ID: <20010324022307.B15044@bacchus.dhis.org>
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com> <01032316143609.00779@plugh.sibyte.com> <01b801c0b3fb$1770b740$0deca8c0@Ulysses>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <01b801c0b3fb$1770b740$0deca8c0@Ulysses>; from kevink@mips.com on Sat, Mar 24, 2001 at 01:40:47AM +0100
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 351
Lines: 10

On Sat, Mar 24, 2001 at 01:40:47AM +0100, Kevin D. Kissell wrote:

> Well, one reason might be memory footprint...

As of now the memory footprint of the kernel is large but userspace which
is all 32-bit software has unchanged footprint.  I've got plans for 2.5
to reduce the memory footprint of the kernel by introducing a 2-level
pagetable.

  Ralf

From owner-linux-mips@oss.sgi.com Sat Mar 24 13:18:06 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2OLI6o02735
	for linux-mips-outgoing; Sat, 24 Mar 2001 13:18:06 -0800
Received: from air.lug-owl.de (air.lug-owl.de [62.52.24.190])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2OLI5M02732
	for <linux-mips@oss.sgi.com>; Sat, 24 Mar 2001 13:18:05 -0800
Received: by air.lug-owl.de (Postfix, from userid 1000)
	id 67DFF7C63; Sat, 24 Mar 2001 22:17:59 +0100 (CET)
Date: Sat, 24 Mar 2001 22:17:58 +0100
From: Jan-Benedict Glaw <jbglaw@lug-owl.de>
To: linux-mips@oss.sgi.com
Subject: elf2ecoff problem
Message-ID: <20010324221757.B9810@lug-owl.de>
Reply-To: jbglaw@lug-owl.de
Mail-Followup-To: linux-mips@oss.sgi.com
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="dc+cDN39EJAMEtIO"
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
X-Operating-System: Linux air 2.4.2
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 4043
Lines: 113


--dc+cDN39EJAMEtIO
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Hi!

I'm trying to get a bootable kernel from fridays CVS sources for a
R3k DECstation. The elf kernel compiles fine, but elf2ecoff fails:

make[1]: Entering directory `/home/jbglaw/kernel_src/work/mips_linux/linux/=
arch/mips/boot'
gcc -o elf2ecoff elf2ecoff.c
=2E/elf2ecoff /home/jbglaw/kernel_src/work/mips_linux/linux/vmlinux vmlinux=
.ecoff -a
Non-contiguous data can't be converted.
make[1]: *** [vmlinux.ecoff] Error 1
make[1]: Leaving directory `/home/jbglaw/kernel_src/work/mips_linux/linux/a=
rch/mips/boot'
make: *** [boot] Error 2


Any hints? I'm using binutils and gcc from simple/crossdev, but that
doesn't seem to be the problem here...

jbglaw@schaufenster:~/kernel_src/work/mips_linux/linux$ mipsel-linux-objdum=
p -h vmlinux

vmlinux:     file format elf32-littlemips

Sections:
Idx Name          Size      VMA               LMA               File off  A=
lgn
  0 .text         00144590  ffffffff80040000  ffffffff80040000  00001000  2=
**13
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  1 .fixup        000010f0  ffffffff80184590  ffffffff80184590  00145590  2=
**0
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  2 .kstrtab      000031d4  ffffffff80185680  ffffffff80185680  00146680  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  3 __ex_table    00001fc0  ffffffff80188860  ffffffff80188860  00149860  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  4 __dbe_table   00000000  ffffffff8018a820  ffffffff8018a820  0014b820  2=
**0
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  5 __ksymtab     00001888  ffffffff8018a820  ffffffff8018a820  0014b820  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA
  6 .text.init    0000dd78  ffffffff8018e000  ffffffff8018e000  0014e000  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, CODE
  7 .data.init    0000049c  ffffffff8019bd78  ffffffff8019bd78  0015bd78  2=
**2
                  CONTENTS, ALLOC, LOAD, DATA
  8 .setup.init   00000088  ffffffff8019c220  ffffffff8019c220  0015c220  2=
**2
                  CONTENTS, ALLOC, LOAD, DATA
  9 .initcall.init 00000058  ffffffff8019c2a8  ffffffff8019c2a8  0015c2a8  =
2**2
                  CONTENTS, ALLOC, LOAD, DATA
 10 .data.cacheline_aligned 00000200  ffffffff8019d000  ffffffff8019d000  0=
015d000  2**4
                  CONTENTS, ALLOC, LOAD, DATA
 11 .reginfo      00000018  ffffffff8019d200  ffffffff8019d200  0015d200  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA, LINK_ONCE_SAME_SIZE
 12 .data         00012890  ffffffff8019d220  ffffffff8019d220  0015d220  2=
**4
                  CONTENTS, ALLOC, LOAD, DATA
 13 .sbss         000002b8  ffffffff801afab0  ffffffff801afab0  0016fab0  2=
**3
                  ALLOC
 14 .bss          000259f0  ffffffff801afd70  ffffffff801afd70  0016fab8  2=
**4
                  ALLOC
 15 .mdebug       00084158  ffffffff801d5760  ffffffff801d5760  001700b8  2=
**2
                  CONTENTS, READONLY, DEBUGGING
 16 .note         00001720  ffffffff80271978  ffffffff80271978  001f4210  2=
**0
                  CONTENTS, READONLY
 17 .modinfo      00000018  ffffffff802730a0  ffffffff802730a0  001700a0  2=
**2
                  CONTENTS, ALLOC, LOAD, READONLY, DATA

MfG, JBG

--=20
Fehler eingestehen, Gr=F6=DFe zeigen: Nehmt die Rechtschreibreform zur=FCck=
!!!
/* Jan-Benedict Glaw <jbglaw@lug-owl.de> -- +49-177-5601720 */
keyID=3D0x8399E1BB fingerprint=3D250D 3BCF 7127 0D8C A444 A961 1DBD 5E75 83=
99 E1BB
     "insmod vi.o and there we go..." (Alexander Viro on linux-kernel)

--dc+cDN39EJAMEtIO
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iEYEARECAAYFAjq9DwUACgkQHb1edYOZ4bvWpQCfYMvCVvSnOAcn6z1Fs04HpvNB
Ns8An3X2UcS6ZLnuDHEQrdcVCCutf3ge
=UN4S
-----END PGP SIGNATURE-----

--dc+cDN39EJAMEtIO--

From owner-linux-mips@oss.sgi.com Sat Mar 24 15:22:03 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2ONM3t04641
	for linux-mips-outgoing; Sat, 24 Mar 2001 15:22:03 -0800
Received: from mail.ocs.com.au (ppp0.ocs.com.au [203.34.97.3])
	by oss.sgi.com (8.11.3/8.11.3) with SMTP id f2ONM1M04638
	for <linux-mips@oss.sgi.com>; Sat, 24 Mar 2001 15:22:01 -0800
Received: (qmail 18652 invoked from network); 24 Mar 2001 23:21:57 -0000
Received: from ocs3.ocs-net (192.168.255.3)
  by mail.ocs.com.au with SMTP; 24 Mar 2001 23:21:57 -0000
X-Mailer: exmh version 2.1.1 10/15/1999
From: Keith Owens <kaos@ocs.com.au>
To: jbglaw@lug-owl.de
cc: linux-mips@oss.sgi.com
Subject: Re: elf2ecoff problem 
In-reply-to: Your message of "Sat, 24 Mar 2001 22:17:58 +0100."
             <20010324221757.B9810@lug-owl.de> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Sun, 25 Mar 2001 09:21:56 +1000
Message-ID: <32583.985476116@ocs3.ocs-net>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 837
Lines: 17

On Sat, 24 Mar 2001 22:17:58 +0100, 
Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
>./elf2ecoff /home/jbglaw/kernel_src/work/mips_linux/linux/vmlinux vmlinux.ecoff -a
>Non-contiguous data can't be converted.
> 17 .modinfo      00000018  ffffffff802730a0  ffffffff802730a0  001700a0  2**2
>                  CONTENTS, ALLOC, LOAD, READONLY, DATA

This may not be relevant but vmlinux should not have a .modinfo
section.  .modinfo is only created when code is compiled with -DMODULE
so why is it in vmlinux?

There was a recent change to the attributes of .modinfo, from CONTENTS,
READONLY to CONTENTS, ALLOC, LOAD, READONLY, DATA, this change was to
remove gcc warning messages.  insmod treats sections .modinfo and
.modstring as special cases and turns off the SHF_ALLOC flag, elf2ecoff
might need special processing for these sections.


From owner-linux-mips@oss.sgi.com Sun Mar 25 13:06:11 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2PL6Bg24349
	for linux-mips-outgoing; Sun, 25 Mar 2001 13:06:11 -0800
Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2PL6AM24346
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 13:06:10 -0800
Received: from bilbo.physik.uni-konstanz.de [134.34.144.81] (8)
	by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian))
	id 14hHiD-0005SM-00; Sun, 25 Mar 2001 23:06:09 +0200
Received: from agx by bilbo.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian))
	id 14hHiC-0000sw-00; Sun, 25 Mar 2001 23:06:08 +0200
Date: Sun, 25 Mar 2001 23:06:08 +0200
From: Guido Guenther <guido.guenther@gmx.net>
To: linux-mips@oss.sgi.com
Subject: current cvs kernel doesn't work with egcs 1.1.2/binutils 2.8.1
Message-ID: <20010325230608.A2867@bilbo.physik.uni-konstanz.de>
Mail-Followup-To: linux-mips@oss.sgi.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 270
Lines: 6

it fails with an unaligned access in emulate_load_store_insn (368)
on an Indy/R4600 while doing:
 kmem_cache_create -> down -> __down -> add_wait_queue 
 -> __add_wait_queue -> list_add -> __list_add
it works with the gcc 3.0/binutils 2.11.90 from oss though.
 -- Guido

From owner-linux-mips@oss.sgi.com Sun Mar 25 18:57:23 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q2vNn32561
	for linux-mips-outgoing; Sun, 25 Mar 2001 18:57:23 -0800
Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q2vMM32558
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 18:57:22 -0800
Received: from mx.hsv.redhat.com (IDENT:root@spot.hsv.redhat.com [172.16.16.7])
	by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id VAA19802;
	Sun, 25 Mar 2001 21:57:11 -0500
Received: from redhat.com (IDENT:joe@dhcp-242.hsv.redhat.com [172.16.17.242] (may be forged))
	by mx.hsv.redhat.com (8.11.0/8.11.0) with ESMTP id f2Q2xLx21091;
	Sun, 25 Mar 2001 20:59:22 -0600
Message-ID: <3ABEB120.8020609@redhat.com>
Date: Sun, 25 Mar 2001 21:01:52 -0600
From: Joe deBlaquiere <jadb@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-14 i686; en-US; 0.8) Gecko/20010217
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2890
Lines: 51

Hi Kevin,

	It's Sunday night, and I always have screwy suggestions for the world at 
the end of the weekend, so bear with me...

	And as another worthy collegue noted, these opinions are mine and do not 
necesarily represent the stance of my company.

Kevin D. Kissell wrote:

> Here at MIPS Technologies, we use Linux internally
> for design verification, experiments, benchmarking,
> etc., and as a consequence Carsten Langgaard and
> myself have both been active in this forum, and have
> tried to help the general Linux/MIPS community as
> best we can with the limited time that we can dedicate
> to the problem, in terms of suggested patches, bug
> fixes, cleanups, integration of needed components
> like the FPU emulator, etc.
> 

	I have to say that the answers I've gotten on MIPS issues on this list has been exceptionally good, both from the MIPS team and the various other individuals.

> I have a question for those of you who are doing
> Linux work for *new* platforms (as opposed to the
> SGI/DEC legacy box support people).  IF, and I
> emphasize the word *if*, MIPS Technologies were
> make a bigger investment in MIPS/Linux technology,
> be it kernel enhancements, cross/native tools,
> userland ports, libraries, or whatever, what would
> be your prioritized "wish list"?
> 

Just some unsorted random ideas:

1. Would it be possible to lump some of the different MIPS variants together more closely? In my dream world I could build one kernel that would boot on every mips architecture. This way the work can be more general. As it stands now, if you want Tx39 or Vr41 variants you're working out of a different tree. With the number of SoC core products coming out at present, this predicament is only likely to get more serious. I know at one point in time you could boot a single ARM kernel on several different systems and it would adapt it's processor specifics at runtime. Such a design might help to bring the MIPS world together a bit.

2. Tools are always an issue, but as long as new cores keep coming along that have exceptions and additions to the ISA(s), it's going to be good business for gcc engineers... 

3. Using glibc in a cross development environment is slightly painful at this time for all architectures. MIPS is no different. Some general work on glibc would be good for the whole world. There has also been some work on other libraries (newlib and uClibc) for especially constrained environments. No MIPS/Linux support is available for either.

4. uClinux support for the systems without MMUs. There is considerable interest in this effort, but I think many people underestimate the magnitude of effort that will be required to have a truly solid port. This effort might be daunting for any one vendor, but could benefit all.

-- 
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9257
fax   : (256)-837-3839


From owner-linux-mips@oss.sgi.com Sun Mar 25 19:24:38 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q3Ocm00726
	for linux-mips-outgoing; Sun, 25 Mar 2001 19:24:38 -0800
Received: from sgi.com (sgi.SGI.COM [192.48.153.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q3ObM00723
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 19:24:37 -0800
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 TAA02488
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 19:24:36 -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 NAA17034; Mon, 26 Mar 2001 13:23:15 +1000
X-Mailer: exmh version 2.1.1 10/15/1999
From: Keith Owens <kaos@ocs.com.au>
To: Joe deBlaquiere <jadb@redhat.com>
cc: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs 
In-reply-to: Your message of "Sun, 25 Mar 2001 21:01:52 CST."
             <3ABEB120.8020609@redhat.com> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 26 Mar 2001 13:23:15 +1000
Message-ID: <19957.985576995@kao2.melbourne.sgi.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1295
Lines: 27

You like long lines, don't you ;)  Reflowed for readability.

On Sun, 25 Mar 2001 21:01:52 -0600, 
Joe deBlaquiere <jadb@redhat.com> wrote:
>1. Would it be possible to lump some of the different MIPS variants
>together more closely? In my dream world I could build one kernel that
>would boot on every mips architecture. This way the work can be more
>general. As it stands now, if you want Tx39 or Vr41 variants you're
>working out of a different tree.

FWIW I am working on a Makefile rewrite for 2.5 which will help with
this problem.  Instead of one 120Mb kernel source tree for each
architecture, 2.5 will support logical kernel source trees and separate
source and object directories.  The logical source is built up from
base kernel code (Linus's tarball) plus zero or more layers that
contain additional or different code.  So you compile

2.4.x -> ix86 object directory
2.4.x + common mips -> common mips object directory
2.4.x + common mips + Tx39 -> Tx39 object directory
2.4.x + common mips + Vr41 -> Vr41 object directory

All use the same untouched 2.4.x tarball as the base.  You can compile
multiple targets from the same source at the same time, using different
object directories.  A change to base 2.4.x or to common mips is
automatically seen by all the object directories.


From owner-linux-mips@oss.sgi.com Sun Mar 25 19:28:10 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q3SAa01053
	for linux-mips-outgoing; Sun, 25 Mar 2001 19:28:10 -0800
Received: from dea.waldorf-gmbh.de (u-188-10.karlsruhe.ipdial.viaginterkom.de [62.180.10.188])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q3S8M01047
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 19:28:08 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2P3aUv18623;
	Sun, 25 Mar 2001 05:36:30 +0200
Date: Sun, 25 Mar 2001 05:35:54 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: jbglaw@lug-owl.de, linux-mips@oss.sgi.com,
   Harald Koerfgen <hkoerfg@web.de>
Subject: Re: elf2ecoff problem
Message-ID: <20010325053554.A18589@bacchus.dhis.org>
References: <20010324221757.B9810@lug-owl.de> <32583.985476116@ocs3.ocs-net>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <32583.985476116@ocs3.ocs-net>; from kaos@ocs.com.au on Sun, Mar 25, 2001 at 09:21:56AM +1000
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1211
Lines: 25

On Sun, Mar 25, 2001 at 09:21:56AM +1000, Keith Owens wrote:

> On Sat, 24 Mar 2001 22:17:58 +0100, 
> Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote:
> >./elf2ecoff /home/jbglaw/kernel_src/work/mips_linux/linux/vmlinux vmlinux.ecoff -a
> >Non-contiguous data can't be converted.
> > 17 .modinfo      00000018  ffffffff802730a0  ffffffff802730a0  001700a0  2**2
> >                  CONTENTS, ALLOC, LOAD, READONLY, DATA
> 
> This may not be relevant but vmlinux should not have a .modinfo
> section.  .modinfo is only created when code is compiled with -DMODULE
> so why is it in vmlinux?
> 
> There was a recent change to the attributes of .modinfo, from CONTENTS,
> READONLY to CONTENTS, ALLOC, LOAD, READONLY, DATA, this change was to
> remove gcc warning messages.  insmod treats sections .modinfo and
> .modstring as special cases and turns off the SHF_ALLOC flag, elf2ecoff
> might need special processing for these sections.

The .modinfo section gets into vmlinux through drivers/tc/tc.o where it
gets created because include/asm-mips/dec/tcmodule.h defines the cpp
symbol MODULE; <linux/module.h> gets included after that and believing
this is a module compilation puts some stuff into .modinfo.

  Ralf

From owner-linux-mips@oss.sgi.com Sun Mar 25 19:40:19 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q3eJk01698
	for linux-mips-outgoing; Sun, 25 Mar 2001 19:40:19 -0800
Received: from deliverator.sgi.com (deliverator.sgi.com [204.94.214.10])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q3eGM01691;
	Sun, 25 Mar 2001 19:40:16 -0800
Received: from sydney.sydney.sgi.com (sydney.sydney.sgi.com [134.14.48.2]) by deliverator.sgi.com (980309.SGI.8.8.8-aspam-6.2/980310.SGI-aspam) via SMTP id TAA02549; Sun, 25 Mar 2001 19:39: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 NAA17825; Mon, 26 Mar 2001 13:38:55 +1000
X-Mailer: exmh version 2.1.1 10/15/1999
From: Keith Owens <kaos@ocs.com.au>
To: Ralf Baechle <ralf@oss.sgi.com>
cc: jbglaw@lug-owl.de, linux-mips@oss.sgi.com,
   Harald Koerfgen <hkoerfg@web.de>
Subject: Re: elf2ecoff problem 
In-reply-to: Your message of "Sun, 25 Mar 2001 05:35:54 +0200."
             <20010325053554.A18589@bacchus.dhis.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 26 Mar 2001 13:38:56 +1000
Message-ID: <20271.985577936@kao2.melbourne.sgi.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 415
Lines: 9

On Sun, 25 Mar 2001 05:35:54 +0200, 
Ralf Baechle <ralf@oss.sgi.com> wrote:
>The .modinfo section gets into vmlinux through drivers/tc/tc.o where it
>gets created because include/asm-mips/dec/tcmodule.h defines the cpp
>symbol MODULE; <linux/module.h> gets included after that and believing
>this is a module compilation puts some stuff into .modinfo.

tc will have to use a name other than MODULE, say TC_MODULE.


From owner-linux-mips@oss.sgi.com Sun Mar 25 20:06:45 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q46jg02397
	for linux-mips-outgoing; Sun, 25 Mar 2001 20:06:45 -0800
Received: from mail.foobazco.org (snowman.foobazco.org [198.144.194.230])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q46iM02394
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 20:06:44 -0800
Received: from galt.foobazco.org (galt.foobazco.org [198.144.194.227])
	by mail.foobazco.org (Postfix) with ESMTP
	id 50E63109CE; Sun, 25 Mar 2001 20:07:08 -0800 (PST)
Received: by galt.foobazco.org (Postfix, from userid 1014)
	id B47741F429; Sun, 25 Mar 2001 20:06:42 -0800 (PST)
Date: Sun, 25 Mar 2001 20:06:42 -0800
From: Keith M Wesolowski <wesolows@foobazco.org>
To: Joe deBlaquiere <jadb@redhat.com>
Cc: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
Message-ID: <20010325200642.C25362@foobazco.org>
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses> <3ABEB120.8020609@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3ABEB120.8020609@redhat.com>; from jadb@redhat.com on Sun, Mar 25, 2001 at 09:01:52PM -0600
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1365
Lines: 26

On Sun, Mar 25, 2001 at 09:01:52PM -0600, Joe deBlaquiere wrote:

> 1. Would it be possible to lump some of the different MIPS variants
> together more closely? In my dream world I could build one kernel
> that would boot on every mips architecture. This way the work can be
> more general. As it stands now, if you want Tx39 or Vr41 variants
> you're working out of a different tree. With the number of SoC core
> products coming out at present, this predicament is only likely to
> get more serious. I know at one point in time you could boot a
> single ARM kernel on several different systems and it would adapt
> it's processor specifics at runtime. Such a design might help to
> bring the MIPS world together a bit.

I'm about 2/3 of the way through writing a patch that will bring
boot-time machine detection and parameters to mips - this is similar
to a scheme that was suggested some time ago by Jun and is also based
on a short discussion I had with Ralf about cleaning up proc.c.

This is only the first step, though, as there are a lot of ifdefs in
headers and such.  I will release this patch for review sometime in
the next week.

-- 
Keith M Wesolowski <wesolows@foobazco.org> http://foobazco.org/~wesolows
------(( Project Foobazco Coordinator and Network Administrator ))------
"I should have crushed his marketing-addled skull with a fucking bat."

From owner-linux-mips@oss.sgi.com Sun Mar 25 22:13:28 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2Q6DSa04453
	for linux-mips-outgoing; Sun, 25 Mar 2001 22:13:28 -0800
Received: from arianne.in.ishoni.com ([164.164.83.132])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2Q6DNM04450
	for <linux-mips@oss.sgi.com>; Sun, 25 Mar 2001 22:13:24 -0800
Received: from deepak ([192.168.1.240])
	by arianne.in.ishoni.com (8.11.2/8.11.2) with SMTP id f2Q6Ev925866
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 11:44:59 +0530
Reply-To: <deepak@ishoni.com>
From: "Deepak Shenoy" <deepak@ishoni.com>
To: <linux-mips@oss.sgi.com>
Subject: how do i build gcc cross compiler for mips, on host i386
Date: Mon, 26 Mar 2001 11:44:42 +0530
Message-ID: <C182A5918209D41190DE00C04F0CCD25F4862F@leonoid.in.ishoni.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 328
Lines: 14

I am trying to build Gcc mips cross compiler. I want to use this for
compiling 2.4.0 linux.
I also want to build libraries.

Which are the tar files i would need to download?
What is the sequence i should follow when building gcc cross compiler?

Information on this would be very helpful for me.

Thanks and Regards,
deepak




From owner-linux-mips@oss.sgi.com Mon Mar 26 08:46:16 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QGkG926308
	for linux-mips-outgoing; Mon, 26 Mar 2001 08:46:16 -0800
Received: from gandalf.physik.uni-konstanz.de (gandalf.physik.uni-konstanz.de [134.34.144.69])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QGkFM26301
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 08:46:15 -0800
Received: from bilbo.physik.uni-konstanz.de [134.34.144.81] (8)
	by gandalf.physik.uni-konstanz.de with esmtp (Exim 3.12 #1 (Debian))
	id 14ha8E-0002LM-00; Mon, 26 Mar 2001 18:46:14 +0200
Received: from agx by bilbo.physik.uni-konstanz.de with local (Exim 3.12 #1 (Debian))
	id 14ha8D-0005Lx-00; Mon, 26 Mar 2001 18:46:13 +0200
Date: Mon, 26 Mar 2001 18:46:13 +0200
From: Guido Guenther <guido.guenther@gmx.net>
To: linux-mips@oss.sgi.com
Subject: indy's hardware watchdog
Message-ID: <20010326184613.A20198@bilbo.physik.uni-konstanz.de>
Mail-Followup-To: linux-mips@oss.sgi.com
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 170
Lines: 5

I've written a small module to support the Indy's hardware watchdog.
It can be found at:
	http://honk.physik.uni-konstanz.de/linux-mips/indy-watchdog/
Regards,
 -- Guido

From owner-linux-mips@oss.sgi.com Mon Mar 26 09:19:32 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QHJWJ27832
	for linux-mips-outgoing; Mon, 26 Mar 2001 09:19:32 -0800
Received: from dea.waldorf-gmbh.de (u-200-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.200])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QHJSM27822
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 09:19:29 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2QHJ4Y08014;
	Mon, 26 Mar 2001 19:19:04 +0200
Date: Mon, 26 Mar 2001 19:19:04 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: Keith Owens <kaos@ocs.com.au>
Cc: jbglaw@lug-owl.de, linux-mips@oss.sgi.com,
   Harald Koerfgen <hkoerfg@web.de>
Subject: Re: elf2ecoff problem
Message-ID: <20010326191904.A7989@bacchus.dhis.org>
References: <20010325053554.A18589@bacchus.dhis.org> <20271.985577936@kao2.melbourne.sgi.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20271.985577936@kao2.melbourne.sgi.com>; from kaos@ocs.com.au on Mon, Mar 26, 2001 at 01:38:56PM +1000
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 494
Lines: 13

On Mon, Mar 26, 2001 at 01:38:56PM +1000, Keith Owens wrote:

> Ralf Baechle <ralf@oss.sgi.com> wrote:
> >The .modinfo section gets into vmlinux through drivers/tc/tc.o where it
> >gets created because include/asm-mips/dec/tcmodule.h defines the cpp
> >symbol MODULE; <linux/module.h> gets included after that and believing
> >this is a module compilation puts some stuff into .modinfo.
> 
> tc will have to use a name other than MODULE, say TC_MODULE.

I've now commited a fix to CVS.

  Ralf

From owner-linux-mips@oss.sgi.com Mon Mar 26 09:49:16 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QHnGI28853
	for linux-mips-outgoing; Mon, 26 Mar 2001 09:49:16 -0800
Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QHnFM28850
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 09:49:15 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 546CF7F3; Mon, 26 Mar 2001 19:49:13 +0200 (CEST)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 0C120F014; Mon, 26 Mar 2001 19:25:59 +0200 (CEST)
Date: Mon, 26 Mar 2001 19:25:59 +0200
From: Florian Lohoff <flo@rfc822.org>
To: Joe deBlaquiere <jadb@redhat.com>
Cc: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
Message-ID: <20010326192559.A8385@paradigm.rfc822.org>
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses> <3ABEB120.8020609@redhat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <3ABEB120.8020609@redhat.com>; from jadb@redhat.com on Sun, Mar 25, 2001 at 09:01:52PM -0600
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1373
Lines: 28

On Sun, Mar 25, 2001 at 09:01:52PM -0600, Joe deBlaquiere wrote:
> Just some unsorted random ideas:
> 
> 1. Would it be possible to lump some of the different MIPS variants
> together more closely? In my dream world I could build one kernel that
> would boot on every mips architecture. This way the work can be more
> general. As it stands now, if you want Tx39 or Vr41 variants you're
> working out of a different tree. With the number of SoC core products
> coming out at present, this predicament is only likely to get more
> serious. I know at one point in time you could boot a single ARM kernel on
> several different systems and it would adapt it's processor specifics at
> runtime. Such a design might help to bring the MIPS world together a bit.

There is at least a problem with endianess - I dont think there can be
a little and big endian kernel coexist in the same object or at least
not with major rework.

Why would you suggest having vr41 and TX39 in a seperat tree ? I had a
look in the linux-vr tree and i dont like some of their #ifdef spaghetti
stuff so i am currently working on TX39 stuff on top of the oss tree
which could be made cleanly. (Dont integrate all TX39 archs into one
subarch *grrr*)

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Mon Mar 26 10:42:58 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QIgwx30213
	for linux-mips-outgoing; Mon, 26 Mar 2001 10:42:58 -0800
Received: from lacrosse.corp.redhat.com (host154.207-175-42.redhat.com [207.175.42.154])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QIgwM30210
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 10:42:58 -0800
Received: from mx.hsv.redhat.com (IDENT:root@spot.hsv.redhat.com [172.16.16.7])
	by lacrosse.corp.redhat.com (8.9.3/8.9.3) with ESMTP id NAA04790;
	Mon, 26 Mar 2001 13:42:51 -0500
Received: from redhat.com (IDENT:joe@uberdog.hsv.redhat.com [172.16.16.108])
	by mx.hsv.redhat.com (8.11.0/8.11.0) with ESMTP id f2QIj7x31555;
	Mon, 26 Mar 2001 12:45:07 -0600
Message-ID: <3ABF8ED5.2050007@redhat.com>
Date: Mon, 26 Mar 2001 12:47:49 -0600
From: Joe deBlaquiere <jadb@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.17-14 i686; en-US; 0.8) Gecko/20010217
X-Accept-Language: en
MIME-Version: 1.0
To: Florian Lohoff <flo@rfc822.org>
CC: "Kevin D. Kissell" <kevink@mips.com>, linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses> <3ABEB120.8020609@redhat.com> <20010326192559.A8385@paradigm.rfc822.org>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1806
Lines: 46



Florian Lohoff wrote:

> On Sun, Mar 25, 2001 at 09:01:52PM -0600, Joe deBlaquiere wrote:
> 
>> Just some unsorted random ideas:
>> 
>> 1. Would it be possible to lump some of the different MIPS variants
>> together more closely? In my dream world I could build one kernel that
>> would boot on every mips architecture. This way the work can be more
>> general. As it stands now, if you want Tx39 or Vr41 variants you're
>> working out of a different tree. With the number of SoC core products
>> coming out at present, this predicament is only likely to get more
>> serious. I know at one point in time you could boot a single ARM kernel on
>> several different systems and it would adapt it's processor specifics at
>> runtime. Such a design might help to bring the MIPS world together a bit.
> 
> 
> There is at least a problem with endianess - I dont think there can be
> a little and big endian kernel coexist in the same object or at least
> not with major rework.
> 

Well, yes that would be a problem, but at least within endianess, there's no reason why the processor specific stuff can't be abstracted and attached at runtime.

> Why would you suggest having vr41 and TX39 in a seperat tree ? I had a
> look in the linux-vr tree and i dont like some of their #ifdef spaghetti
> stuff so i am currently working on TX39 stuff on top of the oss tree
> which could be made cleanly. (Dont integrate all TX39 archs into one
> subarch *grrr*)
> 

It's kinda ugly, but some of that is that the original architecture didn't scale to having many different target platforms. I think a little sane multi-platform infrastructure would make things cleaner and better in the future.

> Flo


-- 
Joe deBlaquiere
Red Hat, Inc.
307 Wynn Drive
Huntsville AL, 35805
voice : (256)-704-9200
fax   : (256)-837-3839


From owner-linux-mips@oss.sgi.com Mon Mar 26 11:25:41 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QJPfG00583
	for linux-mips-outgoing; Mon, 26 Mar 2001 11:25:41 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QJPfM00578
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 11:25:41 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2QJLK015199;
	Mon, 26 Mar 2001 11:21:20 -0800
Message-ID: <3ABF9683.1D08617B@mvista.com>
Date: Mon, 26 Mar 2001 11:20:35 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: "Kevin D. Kissell" <kevink@mips.com>
CC: carlson@sibyte.com, Matthew Dharm <mdharm@momenco.com>,
   linux-mips@oss.sgi.com
Subject: Re: Multiple processor support?
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com> <01032316143609.00779@plugh.sibyte.com> <01b801c0b3fb$1770b740$0deca8c0@Ulysses>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 545
Lines: 17

"Kevin D. Kissell" wrote:
> 
> (Software cache coherency) It is possible,
> but tricky, and at times unavoidably inefficient to build a
> software-coherent SMP system.  I have not heard of anyone
> doing so with MIPS/Linux.
>

How would it be possible?  Any reference to the previous implementations?

I imagine you would need at least some kind of atomic operation (like ll/sc)
working reliably (which itself may require cache coherency).  Also, any such
scheme should not require massive change in the programming.

I am very curious....

Jun

From owner-linux-mips@oss.sgi.com Mon Mar 26 15:28:28 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2QNSSC08693
	for linux-mips-outgoing; Mon, 26 Mar 2001 15:28:28 -0800
Received: from hermes.mvista.com (gateway-1237.mvista.com [12.44.186.158])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2QNSSM08690
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 15:28:28 -0800
Received: from mvista.com (IDENT:jsun@orion.mvista.com [10.0.0.75])
	by hermes.mvista.com (8.11.0/8.11.0) with ESMTP id f2QNOu031012;
	Mon, 26 Mar 2001 15:24:56 -0800
Message-ID: <3ABFCF9B.FA35FF9B@mvista.com>
Date: Mon, 26 Mar 2001 15:24:11 -0800
From: Jun Sun <jsun@mvista.com>
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.18 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Joe deBlaquiere <jadb@redhat.com>
CC: Florian Lohoff <flo@rfc822.org>, "Kevin D. Kissell" <kevink@mips.com>,
   linux-mips@oss.sgi.com
Subject: Re: Embedded MIPS/Linux Needs
References: <00eb01c0b2c6$02c7ef60$0deca8c0@Ulysses> <3ABEB120.8020609@redhat.com> <20010326192559.A8385@paradigm.rfc822.org> <3ABF8ED5.2050007@redhat.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1207
Lines: 24

Joe deBlaquiere wrote:

> > Why would you suggest having vr41 and TX39 in a seperat tree ? I had a
> > look in the linux-vr tree and i dont like some of their #ifdef spaghetti
> > stuff so i am currently working on TX39 stuff on top of the oss tree
> > which could be made cleanly. (Dont integrate all TX39 archs into one
> > subarch *grrr*)
> >
> 
> It's kinda ugly, but some of that is that the original architecture didn't scale to having many different target platforms. I think a little sane multi-platform infrastructure would make things cleaner and better in the future.
> 

I was trying to move Vr41xx from linux-vr to oss tree and found a couple of
problems.  The most serious one that is that NEC Vr41xx TLB entry format is
slightly different from all other R4K-compatible CPUs.  Fixing this requires
either an ugly #ifdef in some common header files, or massively code
re-writing for all TLB related stuff.  Neither one is good.

I actually worked out a patch based on #ifdef approach, but a little too
"shameful" to submit it.  My feeling is that we need to separate TLB code from
cache code and introduce some way to plug in different TLB codes.  Then we can
get V41xx integrated nicely.

Jun

From owner-linux-mips@oss.sgi.com Mon Mar 26 21:38:27 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2R5cRb16629
	for linux-mips-outgoing; Mon, 26 Mar 2001 21:38:27 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2R5cMM16624
	for <linux-mips@oss.sgi.com>; Mon, 26 Mar 2001 21:38:22 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2R5cAt77271
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK);
	Tue, 27 Mar 2001 07:38:10 +0200 (CEST)
Received: (from xjezda00@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2R5c9455687;
	Tue, 27 Mar 2001 07:38:09 +0200 (CEST)
Date: Tue, 27 Mar 2001 07:38:09 +0200
From: David Jez <dave.jez@seznam.cz>
To: Guido Guenther <guido.guenther@gmx.net>
Cc: linux-mips@oss.sgi.com
Subject: Re: indy's hardware watchdog
Message-ID: <20010327073809.B55390@stud.fee.vutbr.cz>
References: <20010326184613.A20198@bilbo.physik.uni-konstanz.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010326184613.A20198@bilbo.physik.uni-konstanz.de>; from guido.guenther@gmx.net on Mon, Mar 26, 2001 at 06:46:13PM +0200
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 478
Lines: 11

> I've written a small module to support the Indy's hardware watchdog.
> It can be found at:
> 	http://honk.physik.uni-konstanz.de/linux-mips/indy-watchdog/
  Great. Thanks Guido. Btw. do you know if video input on indy is supported?

-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@fest.stud.fee.vutbr.cz
---------=[ ~EOF ]=------------------------------------

From owner-linux-mips@oss.sgi.com Tue Mar 27 09:55:35 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RHtZB03701
	for linux-mips-outgoing; Tue, 27 Mar 2001 09:55:35 -0800
Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.29.174.40])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RHtZM03697
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 09:55:35 -0800
Received: by woody.ichilton.co.uk (Postfix, from userid 1000)
	id D26DA8030; Tue, 27 Mar 2001 18:55:34 +0100 (BST)
Date: Tue, 27 Mar 2001 18:55:34 +0100
From: Ian Chilton <mailinglist@ichilton.co.uk>
To: linux-mips@oss.sgi.com
Subject: Re: indy's hardware watchdog
Message-ID: <20010327185534.C3617@woody.ichilton.co.uk>
Reply-To: Ian Chilton <ian@ichilton.co.uk>
References: <20010326184613.A20198@bilbo.physik.uni-konstanz.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.13i
In-Reply-To: <20010326184613.A20198@bilbo.physik.uni-konstanz.de>; from guido.guenther@gmx.net on Mon, Mar 26, 2001 at 06:46:13PM +0200
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 259
Lines: 17

Hello,

> I've written a small module to support the Indy's hardware watchdog.

Great, well done Guido!

I'll put a link to this on the Linux/MIPS site.


Shame it doesn't help when kernel debugging and the machine hangs at
the PROM  :-(


Bye for Now,

Ian


From owner-linux-mips@oss.sgi.com Tue Mar 27 09:54:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RHsUP03589
	for linux-mips-outgoing; Tue, 27 Mar 2001 09:54:30 -0800
Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.29.174.40])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RHsPM03584
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 09:54:25 -0800
Received: by woody.ichilton.co.uk (Postfix, from userid 1000)
	id DDDFF8030; Tue, 27 Mar 2001 18:54:23 +0100 (BST)
Date: Tue, 27 Mar 2001 18:54:23 +0100
From: Ian Chilton <mailinglist@ichilton.co.uk>
To: David Jez <dave.jez@seznam.cz>
Cc: linux-mips@oss.sgi.com, guido.guenther@gmx.net
Subject: Re: indy's hardware watchdog
Message-ID: <20010327185423.B3617@woody.ichilton.co.uk>
Reply-To: Ian Chilton <ian@ichilton.co.uk>
References: <20010326184613.A20198@bilbo.physik.uni-konstanz.de> <20010327073809.B55390@stud.fee.vutbr.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.13i
In-Reply-To: <20010327073809.B55390@stud.fee.vutbr.cz>; from dave.jez@seznam.cz on Tue, Mar 27, 2001 at 07:38:09AM +0200
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 300
Lines: 21

Hello,

> Btw. do you know if video input on indy is supported?

No, it isn't.

But, Ulf (grimsy) did start writing a driver for it, but never
finished.

If you look in any kernel tree, under drivers/char/ you will find
vino.c and vino.h


We just need someone to finish it  :)


Bye for Now,

Ian



From owner-linux-mips@oss.sgi.com Tue Mar 27 10:02:26 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RI2Qa04160
	for linux-mips-outgoing; Tue, 27 Mar 2001 10:02:26 -0800
Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RI2PM04154
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 10:02:26 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 4D8C17FA; Tue, 27 Mar 2001 20:02:24 +0200 (CEST)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id C120AF014; Tue, 27 Mar 2001 20:02:19 +0200 (CEST)
Date: Tue, 27 Mar 2001 20:02:19 +0200
From: Florian Lohoff <flo@rfc822.org>
To: linux-mips@oss.sgi.com
Subject: loop stuff
Message-ID: <20010327200219.B32706@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 438
Lines: 12

Hi,
does anyone know if the 2.4.2 kernel does support loop devices - I mean
in the sense of - "It works" - I do have problems with processes like
mke2fs getting hung while accessing the loop without any error message.

I am not running 2.4.x on any other platform so i cant verify ...

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Tue Mar 27 10:02:26 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RI2QA04159
	for linux-mips-outgoing; Tue, 27 Mar 2001 10:02:26 -0800
Received: from noose.gt.owl.de (postfix@noose.gt.owl.de [62.52.19.4])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RI2PM04153
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 10:02:26 -0800
Received: by noose.gt.owl.de (Postfix, from userid 10)
	id 2449B7F8; Tue, 27 Mar 2001 20:02:24 +0200 (CEST)
Received: by paradigm.rfc822.org (Postfix, from userid 1000)
	id 19796F014; Tue, 27 Mar 2001 20:01:05 +0200 (CEST)
Date: Tue, 27 Mar 2001 20:01:05 +0200
From: Florian Lohoff <flo@rfc822.org>
To: David Jez <dave.jez@seznam.cz>
Cc: Guido Guenther <guido.guenther@gmx.net>, linux-mips@oss.sgi.com
Subject: Re: indy's hardware watchdog
Message-ID: <20010327200105.A32706@paradigm.rfc822.org>
References: <20010326184613.A20198@bilbo.physik.uni-konstanz.de> <20010327073809.B55390@stud.fee.vutbr.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.15i
In-Reply-To: <20010327073809.B55390@stud.fee.vutbr.cz>; from dave.jez@seznam.cz on Tue, Mar 27, 2001 at 07:38:09AM +0200
Organization: rfc822 - pure communication
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 464
Lines: 13

On Tue, Mar 27, 2001 at 07:38:09AM +0200, David Jez wrote:
> > I've written a small module to support the Indy's hardware watchdog.
> > It can be found at:
> > 	http://honk.physik.uni-konstanz.de/linux-mips/indy-watchdog/
>   Great. Thanks Guido. Btw. do you know if video input on indy is supported?

It isnt.

Flo
-- 
Florian Lohoff                  flo@rfc822.org             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?


From owner-linux-mips@oss.sgi.com Tue Mar 27 10:06:45 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RI6j804661
	for linux-mips-outgoing; Tue, 27 Mar 2001 10:06:45 -0800
Received: from pobox.sibyte.com (pobox.sibyte.com [208.12.96.20])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RI6jM04658
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 10:06:45 -0800
Received: from postal.sibyte.com (moat.sibyte.com [208.12.96.21])
	by pobox.sibyte.com (Postfix) with SMTP
	id 60402205FE; Tue, 27 Mar 2001 10:06:39 -0800 (PST)
Received: from SMTP agent by mail gateway 
 Tue, 27 Mar 2001 09:59:29 -0800
Received: from plugh.sibyte.com (plugh.sibyte.com [10.21.64.158])
	by postal.sibyte.com (Postfix) with ESMTP
	id AFA6F1595F; Tue, 27 Mar 2001 10:06:39 -0800 (PST)
Received: by plugh.sibyte.com (Postfix, from userid 61017)
	id 087A5686D; Tue, 27 Mar 2001 10:09:00 -0800 (PST)
From: Justin Carlson <carlson@sibyte.com>
Reply-To: carlson@sibyte.com
Organization: Sibyte
To: Florian Lohoff <flo@rfc822.org>, linux-mips@oss.sgi.com
Subject: Re: loop stuff
Date: Tue, 27 Mar 2001 10:06:46 -0800
X-Mailer: KMail [version 1.0.29]
Content-Type: text/plain
References: <20010327200219.B32706@paradigm.rfc822.org>
In-Reply-To: <20010327200219.B32706@paradigm.rfc822.org>
MIME-Version: 1.0
Message-Id: <0103271008591B.00779@plugh.sibyte.com>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 594
Lines: 15

On Tue, 27 Mar 2001, Florian Lohoff wrote:
> Hi,
> does anyone know if the 2.4.2 kernel does support loop devices - I mean
> in the sense of - "It works" - I do have problems with processes like
> mke2fs getting hung while accessing the loop without any error message.
> 
> I am not running 2.4.x on any other platform so i cant verify ...
> 

This probably isn't a MIPS specific problem.  It's supposed to be fixed by some
of Jens Axboe's latest stuff, as well as in the 2.4.2ac series on kernel.org;
I'd guess it will be fixed when 2.4.3 is released and imported to
cvs@oss.sgi.com.

-Justin

From owner-linux-mips@oss.sgi.com Tue Mar 27 10:22:33 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RIMXi05279
	for linux-mips-outgoing; Tue, 27 Mar 2001 10:22:33 -0800
Received: from appliedmicro.ns.ca (dragon.appliedmicro.ns.ca [24.222.12.66])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RIMWM05275
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 10:22:32 -0800
Received: by dragon.appliedmicro.ns.ca id <7308>; Tue, 27 Mar 2001 14:14:32 -0400
Date: Tue, 27 Mar 2001 14:21:16 -0400
To: Florian Lohoff <flo@rfc822.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: loop stuff
Message-Id: <01Mar27.141432ast.7308@dragon.appliedmicro.ns.ca>
References: <20010327200219.B32706@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.12i
In-Reply-To: <20010327200219.B32706@paradigm.rfc822.org>; from flo@rfc822.org on Tue, Mar 27, 2001 at 02:02:19PM -0400
From: fifield@amirix.com (Jamie Fifield)
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 992
Lines: 30

I think Jens' latest loop patches made it into 2.4.3-pre3 (or pre4).

Anyway, they're working fine for me on my IA32 workstation.

jamie:~$ uname -a
Linux jamie 2.4.3-pre8 #1 Mon Mar 26 11:37:58 AST 2001 i686 unknown


On Tue, Mar 27, 2001 at 02:02:19PM -0400, Florian Lohoff wrote:
> Hi,
> does anyone know if the 2.4.2 kernel does support loop devices - I mean
> in the sense of - "It works" - I do have problems with processes like
> mke2fs getting hung while accessing the loop without any error message.
> 
> I am not running 2.4.x on any other platform so i cant verify ...
> 
> Flo
> -- 
> Florian Lohoff                  flo@rfc822.org             +49-5201-669912
>      Why is it called "common sense" when nobody seems to have any?
> 

-- 
Jamie Fifield

Software Designer		Jamie.Fifield@amirix.com
AMIRIX Systems Inc.		http://www.amirix.com/
Embedded Debian Project		http://www.emdebian.org/
77 Chain Lake Drive		902-450-1700 x247 (Phone)
Halifax, N.S. B3S 1E1		902-450-1704 (FAX)

From owner-linux-mips@oss.sgi.com Tue Mar 27 10:24:16 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RIOGx05559
	for linux-mips-outgoing; Tue, 27 Mar 2001 10:24:16 -0800
Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RIOBM05551
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 10:24:14 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id UAA22261;
	Tue, 27 Mar 2001 20:24:13 +0200 (MET DST)
Date: Tue, 27 Mar 2001 20:24:12 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Keith M Wesolowski <wesolows@foobazco.org>
cc: David Jez <dave.jez@seznam.cz>, Karel van Houten <K.H.C.vanHouten@kpn.com>,
   linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
In-Reply-To: <20010317093919.A19754@foobazco.org>
Message-ID: <Pine.GSO.3.96.1010327201744.17103A-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1086
Lines: 23

On Sat, 17 Mar 2001, Keith M Wesolowski wrote:

> That's not the problem.  The problem is that static binaries which use
> libdl used to be (and perhaps still are) broken.  The reason it's
> using libdl is that the nss libraries are never truly static, unless
> you compile glibc with a special non-recommended option.  I have
> indications that this may be fixed in glibc 2.2.2 using my current
> toolchain, but my information is not complete.

 Glibc is fine; it's the kernel that needs a fix (I've sent it here
already once or twice).  We might possibly consider putting a workaround
into glibc as well.

 The problem is mmap() fails if a non-zero preferred address is given but
the space is already occupied and no space *above* is available (space
below is not taken into account).  A glibc workaround might be to call
mmap() again with no preferred address specified this time. 

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


From owner-linux-mips@oss.sgi.com Tue Mar 27 11:03:10 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RJ3Av06686
	for linux-mips-outgoing; Tue, 27 Mar 2001 11:03:10 -0800
Received: from delta.ds2.pg.gda.pl (macro@delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RJ38M06683
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 11:03:08 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id VAA23797;
	Tue, 27 Mar 2001 21:02:36 +0200 (MET DST)
Date: Tue, 27 Mar 2001 21:02:33 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Karel van Houten <K.H.C.vanHouten@research.kpn.com>
cc: Simon Gee <simong@oz.agile.tv>, linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
In-Reply-To: <200103202012.VAA07412@sparta.research.kpn.com>
Message-ID: <Pine.GSO.3.96.1010327205904.17103B-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 813
Lines: 21

On Tue, 20 Mar 2001, Karel van Houten wrote:

> Well, I'm currently using:
> binutils 2.10.1
> gcc 2.95.3 (with Maciej's patches)
> glibc 2.2.2 (compiled with above toolchain).
> 
> This toolchain works for native compiles on my mipsel box.
> One drawback: I can't compile any kernels with this setup,
> For kernel compiles I use 2.8.1/egcs-2.90.27/glibc-2.0.6.

 What's wrong with the toolchain wrt the kernel now?  I've been compiling
2.4 kernels successfully till the end of January -- it's just a lack of
time and a nasty bug I want to track down that stop me from trying to
compile a new kernel these days.

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


From owner-linux-mips@oss.sgi.com Tue Mar 27 14:04:24 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2RM4Oh11930
	for linux-mips-outgoing; Tue, 27 Mar 2001 14:04:24 -0800
Received: from woody.ichilton.co.uk (woody.ichilton.co.uk [216.29.174.40])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2RM4NM11927
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 14:04:24 -0800
Received: by woody.ichilton.co.uk (Postfix, from userid 1000)
	id 1A756802F; Tue, 27 Mar 2001 23:04:23 +0100 (BST)
Date: Tue, 27 Mar 2001 23:04:22 +0100
From: Ian Chilton <mailinglist@ichilton.co.uk>
To: Michl Ladislav <xmichl03@stud.fee.vutbr.cz>
Cc: linux-mips@oss.sgi.com
Subject: Vino Video / Indycam  (was Re: indy's hardware watchdog)
Message-ID: <20010327230422.A4071@woody.ichilton.co.uk>
Reply-To: Ian Chilton <ian@ichilton.co.uk>
References: <20010327185423.B3617@woody.ichilton.co.uk> <Pine.BSF.4.33.0103272154440.97074-100000@fest.stud.fee.vutbr.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.3.13i
In-Reply-To: <Pine.BSF.4.33.0103272154440.97074-100000@fest.stud.fee.vutbr.cz>; from xmichl03@stud.fee.vutbr.cz on Tue, Mar 27, 2001 at 09:57:25PM +0200
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 508
Lines: 33

Hello,

> > If you look in any kernel tree, under drivers/char/ you will find
> > vino.c and vino.h

> well, i found them under drivers/media/video/

Seems they have been moved in 2.4.

In 2.2.18:

[ian@buzz:/usr/src/linux/drivers/char]$ ls vino*
vino.c  vino.h


In 2.4.2:

[ian@dipsy:/usr/src/linux/drivers/media/video]$ ls vino*
vino.c
[ian@dipsy:/usr/src/linux/drivers/char]$ ls vino*
vino.h


> but haven't any hw docs.

Yes, they are in:
ftp://oss.sgi.com/pub/linux/mips/doc/indy/


Bye for Now,

Ian


From owner-linux-mips@oss.sgi.com Tue Mar 27 23:12:49 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2S7Cnv28089
	for linux-mips-outgoing; Tue, 27 Mar 2001 23:12:49 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2S7CmM28086
	for <linux-mips@oss.sgi.com>; Tue, 27 Mar 2001 23:12:48 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id XAA06430;
	Tue, 27 Mar 2001 23:07:34 -0800 (PST)
Received: from copfs01.mips.com (copfs01 [192.168.205.101])
	by newman.mips.com (8.9.3/8.9.0) with ESMTP id XAA15408;
	Tue, 27 Mar 2001 23:07:31 -0800 (PST)
Received: from mips.com (copsun17 [192.168.205.27])
	by copfs01.mips.com (8.9.1/8.9.0) with ESMTP id JAA27891;
	Wed, 28 Mar 2001 09:06:49 +0200 (MEST)
Message-ID: <3AC18D89.A2A4386A@mips.com>
Date: Wed, 28 Mar 2001 09:06:49 +0200
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
MIME-Version: 1.0
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
CC: Keith M Wesolowski <wesolows@foobazco.org>, David Jez <dave.jez@seznam.cz>,
   Karel van Houten <K.H.C.vanHouten@kpn.com>, linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
References: <Pine.GSO.3.96.1010327201744.17103A-100000@delta.ds2.pg.gda.pl>
Content-Type: text/plain; charset=iso-8859-15
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1546
Lines: 39

"Maciej W. Rozycki" wrote:

> On Sat, 17 Mar 2001, Keith M Wesolowski wrote:
>
> > That's not the problem.  The problem is that static binaries which use
> > libdl used to be (and perhaps still are) broken.  The reason it's
> > using libdl is that the nss libraries are never truly static, unless
> > you compile glibc with a special non-recommended option.  I have
> > indications that this may be fixed in glibc 2.2.2 using my current
> > toolchain, but my information is not complete.
>
>  Glibc is fine; it's the kernel that needs a fix (I've sent it here
> already once or twice).  We might possibly consider putting a workaround
> into glibc as well.

Have the kernel fix made it into the CVS.
If not, could you please resent it.

>
>
>  The problem is mmap() fails if a non-zero preferred address is given but
> the space is already occupied and no space *above* is available (space
> below is not taken into account).  A glibc workaround might be to call
> mmap() again with no preferred address specified this time.
>
> --
> +  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
> +--------------------------------------------------------------+
> +        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com




From owner-linux-mips@oss.sgi.com Wed Mar 28 06:14:25 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SEEPw04473
	for linux-mips-outgoing; Wed, 28 Mar 2001 06:14:25 -0800
Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SE9PM04360
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 06:09:38 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id PAA25740;
	Wed, 28 Mar 2001 15:50:34 +0200 (MET DST)
Date: Wed, 28 Mar 2001 15:50:34 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Carsten Langgaard <carstenl@mips.com>
cc: Keith M Wesolowski <wesolows@foobazco.org>, David Jez <dave.jez@seznam.cz>,
   Karel van Houten <K.H.C.vanHouten@kpn.com>, linux-mips@oss.sgi.com
Subject: Re: rpm crashing on RH 7.0 indy
In-Reply-To: <3AC18D89.A2A4386A@mips.com>
Message-ID: <Pine.GSO.3.96.1010328154420.24847A-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2099
Lines: 74

On Wed, 28 Mar 2001, Carsten Langgaard wrote:

> Have the kernel fix made it into the CVS.
> If not, could you please resent it.

 I do not consider it clean enough for inclusion into the official kernel
at this stage.  It works, though.

 When appropriately cleaned up, I'll submit it to Linus as it's not
MIPS-specific and affects all systems -- mmap() fails equally badly on an
i386, for example.  No time to work on the patch at the moment, sorry.

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

patch-2.4.0-test4-mmap-3
diff -u --recursive --new-file linux-2.4.0-test4.macro/mm/mmap.c linux-2.4.0-test4/mm/mmap.c
--- linux-2.4.0-test4.macro/mm/mmap.c	Sun Jul 16 22:27:29 2000
+++ linux-2.4.0-test4/mm/mmap.c	Tue Jul 25 05:06:21 2000
@@ -175,7 +175,7 @@
 	if ((len = PAGE_ALIGN(len)) == 0)
 		return addr;
 
-	if (len > TASK_SIZE || addr > TASK_SIZE-len)
+	if (len > TASK_SIZE || ((flags & MAP_FIXED) && (addr > TASK_SIZE - len)))
 		return -EINVAL;
 
 	/* offset overflow? */
@@ -356,20 +356,31 @@
 unsigned long get_unmapped_area(unsigned long addr, unsigned long len)
 {
 	struct vm_area_struct * vmm;
+	int pass = 0;
 
 	if (len > TASK_SIZE)
 		return 0;
-	if (!addr)
-		addr = TASK_UNMAPPED_BASE;
-	addr = PAGE_ALIGN(addr);
-
-	for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {
-		/* At this point:  (!vmm || addr < vmm->vm_end). */
-		if (TASK_SIZE - len < addr)
-			return 0;
-		if (!vmm || addr + len <= vmm->vm_start)
-			return addr;
-		addr = vmm->vm_end;
+
+	while (1) {
+		if (!addr)
+			addr = TASK_UNMAPPED_BASE;
+		addr = PAGE_ALIGN(addr);
+
+		for (vmm = find_vma(current->mm, addr); ; vmm = vmm->vm_next) {
+			/* At this point:  (!vmm || addr < vmm->vm_end). */
+			if (TASK_SIZE - len < addr) {
+				if (pass > 0)
+					return 0;
+				else {
+					pass = 1;
+					addr = 0;
+					break;
+				}
+			}
+			if (!vmm || addr + len <= vmm->vm_start)
+				return addr;
+			addr = vmm->vm_end;
+		}
 	}
 }
 #endif


From owner-linux-mips@oss.sgi.com Wed Mar 28 07:52:15 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SFqF707056
	for linux-mips-outgoing; Wed, 28 Mar 2001 07:52:15 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SFqEM07047
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 07:52:14 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2SFqBt13776
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK);
	Wed, 28 Mar 2001 17:52:12 +0200 (CEST)
Received: (from xjezda00@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2SFqBl58620;
	Wed, 28 Mar 2001 17:52:11 +0200 (CEST)
Date: Wed, 28 Mar 2001 17:52:10 +0200
From: David Jez <dave.jez@seznam.cz>
To: Ian Chilton <ian@ichilton.co.uk>
Cc: linux-mips@oss.sgi.com, guido.guenther@gmx.net
Subject: Re: indy's hardware watchdog
Message-ID: <20010328175210.B56054@stud.fee.vutbr.cz>
References: <20010326184613.A20198@bilbo.physik.uni-konstanz.de> <20010327073809.B55390@stud.fee.vutbr.cz> <20010327185423.B3617@woody.ichilton.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010327185423.B3617@woody.ichilton.co.uk>; from mailinglist@ichilton.co.uk on Tue, Mar 27, 2001 at 06:54:23PM +0100
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 556
Lines: 17

> > Btw. do you know if video input on indy is supported?
> 
> But, Ulf (grimsy) did start writing a driver for it, but never
> finished.
> 
> If you look in any kernel tree, under drivers/char/ you will find
> vino.c and vino.h
> 
> We just need someone to finish it  :)
  Thanks, I'll checked this sources ;-)

-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@fest.stud.fee.vutbr.cz
---------=[ ~EOF ]=------------------------------------

From owner-linux-mips@oss.sgi.com Wed Mar 28 07:57:12 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SFvCM07649
	for linux-mips-outgoing; Wed, 28 Mar 2001 07:57:12 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SFvBM07646
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 07:57:11 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2SFv9t14543
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK);
	Wed, 28 Mar 2001 17:57:10 +0200 (CEST)
Received: (from xjezda00@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2SFv9T59024;
	Wed, 28 Mar 2001 17:57:09 +0200 (CEST)
Date: Wed, 28 Mar 2001 17:57:09 +0200
From: David Jez <dave.jez@seznam.cz>
To: Florian Lohoff <flo@rfc822.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: loop stuff
Message-ID: <20010328175709.C56054@stud.fee.vutbr.cz>
References: <20010327200219.B32706@paradigm.rfc822.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <20010327200219.B32706@paradigm.rfc822.org>; from flo@rfc822.org on Tue, Mar 27, 2001 at 08:02:19PM +0200
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 738
Lines: 17

> Hi,
  Hi Flo,

> does anyone know if the 2.4.2 kernel does support loop devices - I mean
> in the sense of - "It works" - I do have problems with processes like
> mke2fs getting hung while accessing the loop without any error message.
> 
> I am not running 2.4.x on any other platform so i cant verify ...
  Unfortunately this isn't a problem with MIPS platform but whole kernel.
Loopback is broken. You can use mke2fs -o loop <file> instead /dev/loop0,
because loop device will goes to hell.
-- 
-------------------------------------------------------
  David "Dave" Jez                Brno, CZ, Europe
 E-mail: dave.jez@seznam.cz
PGP key: finger xjezda00@fest.stud.fee.vutbr.cz
---------=[ ~EOF ]=------------------------------------

From owner-linux-mips@oss.sgi.com Wed Mar 28 08:25:56 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SGPuj09181
	for linux-mips-outgoing; Wed, 28 Mar 2001 08:25:56 -0800
Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SGMFM09079
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 08:22:23 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id SAA01783;
	Wed, 28 Mar 2001 18:09:38 +0200 (MET DST)
Date: Wed, 28 Mar 2001 18:09:37 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Reply-To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: Keith M Wesolowski <wesolows@foobazco.org>
cc: Brady Brown <bbrown@ti.com>, SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Tools miss-compile old kernel
In-Reply-To: <20010322164659.A6068@foobazco.org>
Message-ID: <Pine.GSO.3.96.1010328175514.917A-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1321
Lines: 26

On Thu, 22 Mar 2001, Keith M Wesolowski wrote:

> Upgrade to CVS binutils.  The one Maciej has on his site is apparently
> broken.  If you want a toolchain that is known to work at least in
> some cases, you can pull it from
> ftp://oss.sgi.com/pub/linux/mips/mips-linux/simple/crossdev/.  That is
> the toolchain I use to build kernels -and- userland (yes, I know,
> everyone says it can't be done, but...) and thus it Works For Me (TM).

 Weird, I've always used tools I packaged for both kernel and userland
builds and I had no troubles.  The latest 2.10.91 version available at my
site should be fine.  I've only tested it with an R3k, though.

 I'm actually going to upgrade it to 2.11 ASAP, but I won't do it until I
track down a weird kernel bug which is reproducibly triggered by a native
mipsel-linux build -- the kernel crashes completely and silently after sed
is invoked in a specific place upon running the libtool script in the ld
directory.  I suspect a corruption bug as the crash disappears if the
script is modified a bit (e.g. some white space is added), so I'm actually
glad I got bitten by the bug.

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


From owner-linux-mips@oss.sgi.com Wed Mar 28 11:19:04 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SJJ4P13070
	for linux-mips-outgoing; Wed, 28 Mar 2001 11:19:04 -0800
Received: from boco.fee.vutbr.cz (boco.fee.vutbr.cz [147.229.9.11])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SJJ3M13067
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 11:19:03 -0800
Received: from fest.stud.fee.vutbr.cz (fest.stud.fee.vutbr.cz [147.229.9.16])
	by boco.fee.vutbr.cz (8.11.3/8.11.3) with ESMTP id f2SJJ0t58494
	(using TLSv1/SSLv3 with cipher EDH-RSA-DES-CBC3-SHA (168 bits) verified OK)
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 21:19:01 +0200 (CEST)
Received: (from xmichl03@localhost)
	by fest.stud.fee.vutbr.cz (8.11.2/8.11.2) id f2SJIxe67033;
	Wed, 28 Mar 2001 21:18:59 +0200 (CEST)
From: Michl Ladislav <xmichl03@stud.fee.vutbr.cz>
Date: Wed, 28 Mar 2001 21:18:59 +0200 (CEST)
X-processed: pine.send
To: <linux-mips@oss.sgi.com>
Subject: newport console can do set_font
Message-ID: <Pine.BSF.4.33.0103282114440.66424-100000@fest.stud.fee.vutbr.cz>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 4881
Lines: 200

hi all,

i hope this is the right place to send this. comments and corrections are
welcome.

regards,
ladis

Index: drivers/video/newport_con.c
===================================================================
RCS file: /cvs/linux/drivers/video/newport_con.c,v
retrieving revision 1.23
diff -a -u -r1.23 newport_con.c
--- drivers/video/newport_con.c	2000/11/23 02:00:54	1.23
+++ drivers/video/newport_con.c	2001/03/28 19:12:34
@@ -20,6 +20,7 @@
 #include <linux/vt_kern.h>
 #include <linux/mm.h>
 #include <linux/module.h>
+#include <linux/slab.h>

 #include <asm/uaccess.h>
 #include <asm/system.h>
@@ -38,6 +39,14 @@

 #define FONT_DATA ((unsigned char *)font_vga_8x16.data)

+/* borrowed from fbcon.c */
+#define REFCOUNT(fd)	(((int *)(fd))[-1])
+#define FNTSIZE(fd)	(((int *)(fd))[-2])
+#define FNTCHARCNT(fd)	(((int *)(fd))[-3])
+#define FONT_EXTRA_WORDS 3
+
+static unsigned char *font_data[MAX_NR_CONSOLES];
+
 extern struct newport_regs *npregs;

 static int logo_active;
@@ -274,6 +283,7 @@
 static const char * __init newport_startup(void)
 #endif
 {
+    int i;
     struct newport_regs *p;

     npregs = (struct newport_regs *) (KSEG1 + 0x1f0f0000);
@@ -289,11 +299,14 @@
 	return NULL;
     }

+    for (i = 0; i < MAX_NR_CONSOLES; i++)
+        font_data[i] = FONT_DATA;
+
     newport_reset ();
     newport_get_revisions();
     newport_get_screensize();

-    // gfx_init (display_desc);
+    /* gfx_init (display_desc); */

     return "SGI Newport";
 }
@@ -329,7 +342,7 @@
 {
     unsigned char *p;

-    p = &FONT_DATA[(charattr & 0xff) << 4];
+    p = &font_data[vc->vc_num][(charattr & 0xff) << 4];
     charattr = (charattr >> 8) & 0xff;
     xpos <<= 3;
     ypos <<= 4;
@@ -378,7 +391,7 @@
 			     NPORT_DMODE0_L32);

     for (i = 0; i < count; i++, xpos += 8) {
-	p = &FONT_DATA[(s[i] & 0xff) << 4];
+	p = &font_data[vc->vc_num][(s[i] & 0xff) << 4];

 	newport_wait();

@@ -446,11 +459,82 @@
     return 1;
 }

-static int newport_font_op(struct vc_data *vc, struct console_font_op *f)
+static int newport_set_font(int unit, struct console_font_op *op)
 {
-    return -ENOSYS;
+	int w = op->width;
+	int h = op->height;
+	int size = h * op->charcount;
+	int i;
+	unsigned char *new_data, *data = op->data, *p;
+
+	/* ladis: when I grow up, there will be a day... and more sizes will
+	 * be supported ;-) */
+	if ((w != 8) || (h != 16) || (op->charcount != 256 && op->charcount != 512))
+		return -EINVAL;
+
+	if (!(new_data = kmalloc(FONT_EXTRA_WORDS * sizeof(int) + size, GFP_USER)))
+		return -ENOMEM;
+
+	new_data += FONT_EXTRA_WORDS * sizeof(int);
+	FNTSIZE(new_data) = size;
+	FNTCHARCNT(new_data) = op->charcount;
+	REFCOUNT(new_data) = 0; /* usage counter */
+
+	p = new_data;
+	for (i = 0; i < op->charcount; i++) {
+		memcpy(p, data, h);
+		data += 32;
+		p += h;
+        }
+
+	/* check if font is already used by other console */
+	for (i = 0; i < MAX_NR_CONSOLES; i++) {
+		if (font_data[i] != FONT_DATA && FNTSIZE(font_data[i]) == size
+		&& !memcmp(font_data[i], new_data, size)) {
+			kfree(new_data - FONT_EXTRA_WORDS * sizeof(int));
+			/* current font is the same as the new one */
+			if (i == unit)
+				return 0;
+			new_data = font_data[i];
+			break;
+		}
+	}
+	/* old font is user font */
+	if (font_data[unit] != FONT_DATA) {
+		if (--REFCOUNT(font_data[unit]) == 0)
+			kfree(font_data[unit] - FONT_EXTRA_WORDS * sizeof(int));
+	}
+	REFCOUNT(new_data)++;
+	font_data[unit] = new_data;
+
+	return 0;
 }

+static int newport_set_def_font(int unit, struct console_font_op *op)
+{
+	if (font_data[unit] != FONT_DATA) {
+		if (--REFCOUNT(font_data[unit]) == 0)
+			kfree(font_data[unit] - FONT_EXTRA_WORDS * sizeof(int));
+		font_data[unit] = FONT_DATA;
+	}
+
+	return 0;
+}
+
+static int newport_font_op(struct vc_data *vc, struct console_font_op *op)
+{
+	int unit = vc->vc_num;
+
+	switch (op->op) {
+		case KD_FONT_OP_SET:
+			return newport_set_font(unit, op);
+		case KD_FONT_OP_SET_DEFAULT:
+			return newport_set_def_font(unit, op);
+		default:
+			return -ENOSYS;
+	}
+}
+
 static int newport_set_palette(struct vc_data *vc, unsigned char *table)
 {
     return -EINVAL;
@@ -594,21 +678,21 @@
 };

 #ifdef MODULE
-
-int init_module(void) {
-    if (!newport_startup())
-       printk("Error loading SGI Newport Console driver\n");
-    else
-       printk("Loading SGI Newport Console Driver\n");

-    take_over_console(&newport_con,0,MAX_NR_CONSOLES-1,1);
-
-    return 0;
+int init_module(void)
+{
+	if (!newport_startup())
+		printk("Error loading SGI Newport Console driver\n");
+	else
+		printk("Loading SGI Newport Console Driver\n");
+	take_over_console(&newport_con,0,MAX_NR_CONSOLES-1,1);
+	return 0;
 }

-int cleanup_module(void) {
-    printk("Unloading SGI Newport Console Driver\n");
-    return 0;
+int cleanup_module(void)
+{
+	printk("Unloading SGI Newport Console Driver\n");
+	return 0;
 }

 #endif


From owner-linux-mips@oss.sgi.com Wed Mar 28 11:50:47 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SJolA14076
	for linux-mips-outgoing; Wed, 28 Mar 2001 11:50:47 -0800
Received: from gw-us4.philips.com (gw-us4.philips.com [63.114.235.90])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SJokM14073
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 11:50:46 -0800
Received: from smtprelay-us1.philips.com (localhost.philips.com [127.0.0.1])
          by gw-us4.philips.com with ESMTP id NAA26312;
          Wed, 28 Mar 2001 13:50:32 -0600 (CST)
          (envelope-from rajesh.palani@philips.com)
From: rajesh.palani@philips.com
Received: from smtprelay-nam2.philips.com(167.81.233.16) by gw-us4.philips.com via mwrap (4.0a)
	id xma026310; Wed, 28 Mar 01 13:50:32 -0600
Received: from AMLMS01.DIAMOND.PHILIPS.COM (amlms01sv1.diamond.philips.com [161.88.79.213]) 
	by smtprelay-us1.philips.com (8.9.3/8.8.5-1.2.2m-19990317) with ESMTP id NAA29269; Wed, 28 Mar 2001 13:50:32 -0600 (CST)
Received: by AMLMS01.DIAMOND.PHILIPS.COM (Soft-Switch LMS 4.0) with snapi
          via AMEC id 0056910011132437; Wed, 28 Mar 2001 13:53:04 -0600
To: <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: Problem with using modutils
Message-ID: <0056910011132437000002L172*@MHS>
Date: Wed, 28 Mar 2001 13:53:04 -0600
MIME-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1; name="MEMO 03/28/01 13:50:07"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by oss.sgi.com id f2SJokM14074
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 940
Lines: 20

Hi,

   I am trying to use insmod on a MIPS platform.  I try to install a simple module & get the following errors:

   local symbol gcc2_compiled. with index 10 exceeds local_symtab_size 10
   local symbol __gnu_compiled_c with index 11 exceeds local_symtab_size 10

   I use the following line for generating the object file:
   mipsel-linux-gcc -D__KERNEL__  -DMODULE -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=r3000 -mlong-calls -mips1 -pipe  -c

   I am using modutils version 2.3.11.  We have tried both Debian and RedHat sources cross-compiled for MIPS with the following options:
CC=mipsel-linux-gcc CFLAGS="-I../linux/include -DMIPS" RANLIB=mipsel-linux-ranlib AR=mipsel-linux-ar ./configure  --disable-kerneld
--disable-compat-2-0 --enable-insmod-static --target=mipsel-linux
However the problem still remains.

   Any pointers would be greatly appreciated.

   Best regards,

   Rajesh

From owner-linux-mips@oss.sgi.com Wed Mar 28 14:20:03 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SMK3417554
	for linux-mips-outgoing; Wed, 28 Mar 2001 14:20:03 -0800
Received: from dea.waldorf-gmbh.de (u-138-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.138])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SMJlM17549
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 14:19:57 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2SMJVR04755;
	Thu, 29 Mar 2001 00:19:31 +0200
Date: Thu, 29 Mar 2001 00:19:31 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: rajesh.palani@philips.com
Cc: <linux-mips@oss.sgi.com>, <linux-mips@fnet.fr>
Subject: Re: Problem with using modutils
Message-ID: <20010329001931.B4585@bacchus.dhis.org>
References: <0056910011132437000002L172*@MHS>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <0056910011132437000002L172*@MHS>; from rajesh.palani@philips.com on Wed, Mar 28, 2001 at 01:53:04PM -0600
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1260
Lines: 25

On Wed, Mar 28, 2001 at 01:53:04PM -0600, rajesh.palani@philips.com wrote:

>    I am trying to use insmod on a MIPS platform.  I try to install a simple module & get the following errors:
> 
>    local symbol gcc2_compiled. with index 10 exceeds local_symtab_size 10
>    local symbol __gnu_compiled_c with index 11 exceeds local_symtab_size 10

This is a gas bug which somebody just fixed.  As a workaround for the time
until we can deploy the fix please re-link modules with a command like
ld -r -o new.o broken.o.

>    I use the following line for generating the object file:
>    mipsel-linux-gcc -D__KERNEL__  -DMODULE -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer  -G 0 -mno-abicalls -fno-pic -mcpu=r3000 -mlong-calls -mips1 -pipe  -c

That's correct.

>    I am using modutils version 2.3.11.  We have tried both Debian and RedHat sources cross-compiled for MIPS with the following options:
> CC=mipsel-linux-gcc CFLAGS="-I../linux/include -DMIPS" RANLIB=mipsel-linux-ranlib AR=mipsel-linux-ar ./configure  --disable-kerneld
> --disable-compat-2-0 --enable-insmod-static --target=mipsel-linux
> However the problem still remains.

Please upgrade to the latest modutils from ftp.kernel.org; it has a bugfixes
which are important for MIPS.

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 28 14:57:11 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2SMvB518415
	for linux-mips-outgoing; Wed, 28 Mar 2001 14:57:11 -0800
Received: from dea.waldorf-gmbh.de (u-138-18.karlsruhe.ipdial.viaginterkom.de [62.180.18.138])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2SMv6M18412
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 14:57:06 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2SMugO04834;
	Thu, 29 Mar 2001 00:56:42 +0200
Date: Thu, 29 Mar 2001 00:56:42 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: Michl Ladislav <xmichl03@stud.fee.vutbr.cz>
Cc: <linux-mips@oss.sgi.com>
Subject: Re: newport console can do set_font
Message-ID: <20010329005641.A4822@bacchus.dhis.org>
References: <Pine.BSF.4.33.0103282114440.66424-100000@fest.stud.fee.vutbr.cz>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <Pine.BSF.4.33.0103282114440.66424-100000@fest.stud.fee.vutbr.cz>; from xmichl03@stud.fee.vutbr.cz on Wed, Mar 28, 2001 at 09:18:59PM +0200
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 431
Lines: 13

On Wed, Mar 28, 2001 at 09:18:59PM +0200, Michl Ladislav wrote:

> i hope this is the right place to send this. comments and corrections are
> welcome.

Seems like some MTA / MUA or maybe just your editor tampered with whitespace
in the patch so I can no longer apply it automatically.  No problem as this
was a small patch but for future patches please try to ensure this doesn't
happen again.  Patch looks good.

Thanks,

  Ralf

From owner-linux-mips@oss.sgi.com Wed Mar 28 23:56:30 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2T7uUx26867
	for linux-mips-outgoing; Wed, 28 Mar 2001 23:56:30 -0800
Received: from surfers.oz.agile.tv (agile-50.OntheNet.com.au [203.144.13.50])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2T7uOM26864
	for <linux-mips@oss.sgi.com>; Wed, 28 Mar 2001 23:56:25 -0800
Received: from agile.tv (IDENT:ldavies@tugun.oz.agile.tv [192.168.16.20])
	by surfers.oz.agile.tv (8.11.0/8.11.0) with ESMTP id f2T7uOo21807;
	Thu, 29 Mar 2001 17:56:24 +1000
Message-ID: <3AC2EAA7.C6089289@agile.tv>
Date: Thu, 29 Mar 2001 17:56:23 +1000
From: Liam Davies <ldavies@agile.tv>
Reply-To: ldavies@oz.agile.tv
Organization: Agile TV
X-Mailer: Mozilla 4.75 [en] (X11; U; Linux 2.2.16-22 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: linux-mips@oss.sgi.com
Subject: PThread troubles with glibc-2.2.2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 4841
Lines: 134

Hi,

I am having troubles with the pthread libs. I currently have installed
(from Maciej's site)
glibc-2.2.2-2
glibc-devel-2.2.2-2
gcc-2.95.3-14
binutils-2.10.1-3
kernel 2.4.0

When compiled with -lpthread the program just loops around doing
sysmips(ATOMIC_SET...)
and sched_yield. It doesn't do it if I have no -l or use some other lib
such as -lm -lz. Static/
dynamic doesn't make any difference.

Any help appreciated.. straces are attached

Thanks
Liam


-------------------

#include <stdio.h>

int
main (void)
{
        int i;

        for(i=0;i< 10; i++){
                printf("%d ", i);
        }

  return 0;
}

------------
gcc -g -Wall -D_REENTRANT -o ex1 ex1.c -lpthread

execve("./ex1", ["./ex1"], [/* 21 vars */]) = 0
uname({sys="Linux", node="node4.oz.agile.tv", ...}) = 0
brk(0)                                  = 0x100000a0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2aaab000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11630, ...}) = 0
mmap(NULL, 11630, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aaac000
close(3)                                = 0
open("/lib/libpthread.so.0", O_RDONLY)  = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0pD\376"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=120080, ...}) = 0
mmap(NULL, 367264, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aaaf000
mprotect(0x2aac2000, 289440, PROT_NONE) = 0
mmap(0x2ab01000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12000) = 0x2ab01000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\244X\377"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1647420, ...}) = 0
mmap(NULL, 1719184, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2ab09000

mprotect(0x2ac62000, 306064, PROT_NONE) = 0
mmap(0x2aca1000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x158000) = 0x2aca1000
mmap(0x2aca9000, 15248, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2aca9000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\244X\377"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1647420, ...}) = 0
close(3)                                = 0
mprotect(0x2ab09000, 1413120, PROT_READ|PROT_WRITE) = 0
mprotect(0x2ab09000, 1413120, PROT_READ|PROT_EXEC) = 0
mprotect(0x2aaaf000, 77824, PROT_READ|PROT_WRITE) = 0
mprotect(0x2aaaf000, 77824, PROT_READ|PROT_EXEC) = 0
munmap(0x2aaac000, 11630)               = 0
sysmips(0x7d1, 0x2aca5e38, 0x1, 0)      = 4149
sched_yield(0x7ffffbf0, 0, 0x1, 0, 0x2ab10450) = 0
sysmips(0x7d1, 0x2aca5e38, 0x1, 0)      = 4149
sched_yield(0x7ffffbf0, 0, 0x1, 0, 0x2ab10450) = 0
sysmips(0x7d1, 0x2aca5e38, 0x1, 0)      = 4149
sched_yield(0x7ffffbf0, 0, 0x1, 0, 0x2ab10450) = 0
sysmips(0x7d1, 0x2aca5e38, 0x1, 0)      = 4149
sched_yield(0x7ffffbf0, 0, 0x1, 0, 0x2ab10450) = 0
sysmips(0x7d1, 0x2aca5e38, 0x1, 0)      = 4149
sched_yield(0x7ffffbf0, 0, 0x1, 0, 0x2ab10450) = 0
...

-----------------

gcc -g -Wall  -D_REENTRANT -o ex1 ex1.c

execve("./ex1", ["./ex1"], [/* 22 vars */]) = 0
uname({sys="Linux", node="node4.oz.agile.tv", ...}) = 0
brk(0)                                  = 0x100000a0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2aaab000
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=11630, ...}) = 0
mmap(NULL, 11630, PROT_READ, MAP_PRIVATE, 3, 0) = 0x2aaac000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\10\0\1\0\0\0\244X\377"...,
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=1647420, ...}) = 0
mmap(NULL, 1719184, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x2aaaf000

mprotect(0x2ac08000, 306064, PROT_NONE) = 0
mmap(0x2ac47000, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x158000) = 0x2ac47000
mmap(0x2ac4f000, 15248, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2ac4f000
close(3)                                = 0
mprotect(0x2aaaf000, 1413120, PROT_READ|PROT_WRITE) = 0
mprotect(0x2aaaf000, 1413120, PROT_READ|PROT_EXEC) = 0
munmap(0x2aaac000, 11630)               = 0
getpid()                                = 17640
fstat64(1, {st_mode=S_IFREG|0644, st_size=1296, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
= 0x2aaac000
write(1, "0 1 2 3 4 5 6 7 8 9 ", 200 1 2 3 4 5 6 7 8 9 )    = 20
munmap(0x2aaac000, 4096)                = 0
exit(0)                                 = ?



From owner-linux-mips@oss.sgi.com Thu Mar 29 01:12:56 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2T9CuN28544
	for linux-mips-outgoing; Thu, 29 Mar 2001 01:12:56 -0800
Received: from mx.mips.com (mx.mips.com [206.31.31.226])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2T9CtM28541
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 01:12:55 -0800
Received: from newman.mips.com (ns-dmz [206.31.31.225])
	by mx.mips.com (8.9.3/8.9.0) with ESMTP id BAA19212;
	Thu, 29 Mar 2001 01:12:57 -0800 (PST)
Received: from Ulysses (ulysses [192.168.236.13])
	by newman.mips.com (8.9.3/8.9.0) with SMTP id BAA26372;
	Thu, 29 Mar 2001 01:12:50 -0800 (PST)
Message-ID: <000901c0b830$fed84060$0deca8c0@Ulysses>
From: "Kevin D. Kissell" <kevink@mips.com>
To: "Jun Sun" <jsun@mvista.com>
Cc: <carlson@sibyte.com>, "Matthew Dharm" <mdharm@momenco.com>,
   <linux-mips@oss.sgi.com>
References: <NEBBLJGMNKKEEMNLHGAIKELLCAAA.mdharm@momenco.com> <01032316143609.00779@plugh.sibyte.com> <01b801c0b3fb$1770b740$0deca8c0@Ulysses> <3ABF9683.1D08617B@mvista.com>
Subject: Re: Multiple processor support?
Date: Thu, 29 Mar 2001 11:16:41 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.50.4133.2400
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 2242
Lines: 51

> > (Software cache coherency) It is possible,
> > but tricky, and at times unavoidably inefficient to build a
> > software-coherent SMP system.  I have not heard of anyone
> > doing so with MIPS/Linux.
> >
>
> How would it be possible?  Any reference to the previous implementations?

Lots of work on software coherent schemes was done in the
mid-late 1980s.  Check out the ASPLOS, and ISCA proceedings
from the period for references.  In essence, such schemes involve
the identification of critical regions at risk, the use of barriers around
such regions, and an explicit cache flush/purge protocol.  You can think
of the more common MP "TLB shootdown" protocols as being a variant
of a software cache coherence scheme.

> I imagine you would need at least some kind of atomic operation (like
ll/sc)
> working reliably (which itself may require cache coherency).

MIPS ll/sc, as defined and implemented, does require hardware
coherency support for correct multiprocessor operation.  But one
can, in principle, construct a software-coherent SMP system even
in the absence of such a primitive - many of the implementations
of software coherent SMPs used software coherence precisely
because they were based on simple switch/crossbar interconnects
where snooping was not possible.

> Also, any such
> scheme should not require massive change in the programming.

Whether progams need to change depends on the coherency
and consistency models assumed by the program.  Certainly
a naive multithreaded program that assumes an SGI-like model
could not be dropped onto a software-coherent MP system without
recompilation with specialized compilers at a minimum, and
more likely not without recoding.  On the other hand, if one's objective
is to run multiple, independent programs on different CPUs in
an SMP system, it should only be the OS that should need to
change to deal with the coherence issues for shared user pages
and shared kernel data structures, and to ensure that any
multithreaded application that is not explicitly set up to handle
software cache coherency has its threads bound to the same
CPU and caches (defeats some of the point of having a
multithreaded program, I know, but...).

            Regards,

            Kevin K.



From owner-linux-mips@oss.sgi.com Thu Mar 29 09:28:43 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2THSha06168
	for linux-mips-outgoing; Thu, 29 Mar 2001 09:28:43 -0800
Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2THSgM06163
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 09:28:42 -0800
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 <01K1S3PFS8JU000NH7@research.kpn.com> for
 linux-mips@oss.sgi.com; Thu, 29 Mar 2001 19:28:40 +0200
Received: from sparta.research.kpn.com (sparta.research.kpn.com [139.63.192.6])
	by sparta.research.kpn.com (8.8.8+Sun/8.8.8) with ESMTP id TAA01350; Thu,
 29 Mar 2001 19:28:37 +0200 (MET DST)
Date: Thu, 29 Mar 2001 19:28:37 +0200
From: "Houten K.H.C. van (Karel)" <K.H.C.vanHouten@research.kpn.com>
X-Face: ";:TzQQC{mTp~$W,'m4@Lu1Lu$rtG_~5kvYO~F:C'KExk9o1X"iRz[0%{bq?6Aj#>VhSD?v
 1W9`.Qsf+P&*iQEL8&y,RDj&U.]!(R-?c-h5h%Iw%r$|%6+Jc>GTJe!_1&A0o'lC[`I#={2BzOXT1P
 q366I$WL=;[+SDo1RoIT+a}_y68Y:jQ^xp4=*4-ryiymi>hy
Subject: Re: Recommended toolchain
In-reply-to: "Your message of Tue, 27 Mar 2001 21:02:33 +0200."
 <Pine.GSO.3.96.1010327205904.17103B-100000@delta.ds2.pg.gda.pl>
To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Cc: Karel van Houten <K.H.C.vanHouten@research.kpn.com>,
   Simon Gee <simong@oz.agile.tv>, linux-mips@oss.sgi.com,
   K.H.C.vanHouten@research.kpn.com
Reply-to: vhouten@kpn.com
Message-id: <200103291728.TAA01350@sparta.research.kpn.com>
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1685
Lines: 42


Hi all,

"Maciej W. Rozycki" writes:
> What's wrong with the toolchain wrt the kernel now?  I've been compiling
>2.4 kernels successfully till the end of January -- it's just a lack of
>time and a nasty bug I want to track down that stop me from trying to
>compile a new kernel these days.

This happens when I compile kernel 2.4.0-test9 with
binutils 2.10.1, gcc 2.95.3, glibc 2.2.2 on my 5000/260 (R4k)
(the same source/config compiles fine with 2.8.1/egcs-2.90.27/glibc-2.0.6):

# make boot
....
ld -static -G 0 -T arch/mips/ld.script.little -Ttext 0x80040000 arch/mips/kernel
/head.o arch/mips/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/mips/kernel/kernel.o arch/mips/mm/mm.o kernel/kernel.o mm/mm.o fs/f
s.o ipc/ipc.o arch/mips/dec/dec.o \
        drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/ne
t/net.o drivers/media/media.o drivers/parport/parport.a  drivers/scsi/scsidrv.o 
drivers/cdrom/cdrom.a drivers/tc/tc.a \
        net/network.o \
        arch/mips/lib/lib.a /usr/src/linux/lib/lib.a arch/mips/dec/prom/rexlib.a
 \
        --end-group \
        -o vmlinux
nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aU] \)\|\(\.\.ng$\)\|\(LASH[RL
]DI\)' | sort > System.map
make[1]: Entering directory `/usr/src/linux-2.4.0t9-R4k/arch/mips/boot'
./elf2ecoff /usr/src/linux/vmlinux vmlinux.ecoff -a
wrote 20 byte file header.
wrote 56 byte a.out header.
wrote 240 bytes of section headers.
wrote 4 byte pad.
writing 30560 bytes...
Intersegment gap (-2147256160 bytes) too large.
make[1]: *** [vmlinux.ecoff] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.0t9-R4k/arch/mips/boot'
make: *** [boot] Error 2


From owner-linux-mips@oss.sgi.com Thu Mar 29 09:39:05 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2THd5O06564
	for linux-mips-outgoing; Thu, 29 Mar 2001 09:39:05 -0800
Received: from hermes.research.kpn.com (hermes.research.kpn.com [139.63.192.8])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2THd4M06561
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 09:39:04 -0800
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 <01K1S43AL8TK000OD0@research.kpn.com> for
 linux-mips@oss.sgi.com; Thu, 29 Mar 2001 19:39:02 +0200
Received: (from karel@localhost)	by sparta.research.kpn.com (8.8.8+Sun/8.8.8)
 id TAA01695; Thu, 29 Mar 2001 19:39:02 +0200 (MET DST)
X-URL: http://www-lsdm.research.kpn.com/~karel
Date: Thu, 29 Mar 2001 19:39:01 +0200 (MET DST)
From: Karel van Houten <K.H.C.vanHouten@research.kpn.com>
Subject: Re: Recommended toolchain
In-reply-to: <200103291728.TAA01350@sparta.research.kpn.com>
To: linux-mips@oss.sgi.com
Cc: macro@ds2.pg.gda.pl (Maciej W. Rozycki)
Reply-to: vhouten@kpn.com
Message-id: <200103291739.TAA01695@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
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 737
Lines: 22

I wrote:
> This happens when I compile kernel 2.4.0-test9 with
> binutils 2.10.1, gcc 2.95.3, glibc 2.2.2 on my 5000/260 (R4k)
> (the same source/config compiles fine with 2.8.1/egcs-2.90.27/glibc-2.0.6):
> ....

Oh, and the resulting (ELF) kernel doesn't boot at all:
>>boot 3/rz0 1/new
delo V0.7 Copyright 2000 Florian Lohoff <flo@rfc822.org>
Loading /etc/delo.conf .. ok
Loading /boot/vmlinux.new ....... ok

KN05 V2.1k    (PC: 0xa002cab8, SP: 0x8043fef0)
>>                            

-- 
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 owner-linux-mips@oss.sgi.com Thu Mar 29 10:01:44 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2TI1ib07234
	for linux-mips-outgoing; Thu, 29 Mar 2001 10:01:44 -0800
Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2THuNM07111
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 09:59:38 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id TAA16328;
	Thu, 29 Mar 2001 19:51:30 +0200 (MET DST)
Date: Thu, 29 Mar 2001 19:51:29 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: vhouten@kpn.com
cc: Karel van Houten <K.H.C.vanHouten@research.kpn.com>,
   Simon Gee <simong@oz.agile.tv>, linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
In-Reply-To: <200103291728.TAA01350@sparta.research.kpn.com>
Message-ID: <Pine.GSO.3.96.1010329194523.16049A-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1074
Lines: 27

On Thu, 29 Mar 2001, Houten K.H.C. van (Karel) wrote:

> This happens when I compile kernel 2.4.0-test9 with
> binutils 2.10.1, gcc 2.95.3, glibc 2.2.2 on my 5000/260 (R4k)
> (the same source/config compiles fine with 2.8.1/egcs-2.90.27/glibc-2.0.6):
[...]
> ./elf2ecoff /usr/src/linux/vmlinux vmlinux.ecoff -a
> wrote 20 byte file header.
> wrote 56 byte a.out header.
> wrote 240 bytes of section headers.
> wrote 4 byte pad.
> writing 30560 bytes...
> Intersegment gap (-2147256160 bytes) too large.
> make[1]: *** [vmlinux.ecoff] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4.0t9-R4k/arch/mips/boot'
> make: *** [boot] Error 2

 I recall I needed to edit the ld script for linux 2.4.0-test12 that I am
currently using.  Just watch out which sections have improper addresses. 
Alternatively grab a newer version -- the script was fixed later (by Ralf,
IIRC).

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


From owner-linux-mips@oss.sgi.com Thu Mar 29 10:22:40 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2TIMeD08271
	for linux-mips-outgoing; Thu, 29 Mar 2001 10:22:40 -0800
Received: from delta.ds2.pg.gda.pl (delta.ds2.pg.gda.pl [213.192.72.1])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2TIMAM08253
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 10:22:11 -0800
Received: from localhost by delta.ds2.pg.gda.pl (8.9.3/8.9.3) with SMTP id UAA16956;
	Thu, 29 Mar 2001 20:10:16 +0200 (MET DST)
Date: Thu, 29 Mar 2001 20:10:15 +0200 (MET DST)
From: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
Reply-To: "Maciej W. Rozycki" <macro@ds2.pg.gda.pl>
To: vhouten@kpn.com
cc: linux-mips@oss.sgi.com
Subject: Re: Recommended toolchain
In-Reply-To: <200103291739.TAA01695@sparta.research.kpn.com>
Message-ID: <Pine.GSO.3.96.1010329195202.16049B-100000@delta.ds2.pg.gda.pl>
Organization: Technical University of Gdansk
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 1413
Lines: 32

On Thu, 29 Mar 2001, Karel van Houten wrote:

> Oh, and the resulting (ELF) kernel doesn't boot at all:
> >>boot 3/rz0 1/new
> delo V0.7 Copyright 2000 Florian Lohoff <flo@rfc822.org>
> Loading /etc/delo.conf .. ok
> Loading /boot/vmlinux.new ....... ok
> 
> KN05 V2.1k    (PC: 0xa002cab8, SP: 0x8043fef0)
> >>                            

 Well, this might be related to R4k you are using.  I have been able to
run kernels up to 2.4.0-test12 fine on my /240.  I tried the final 2.4.0
(or was it 2.4.1? -- I don't rememeber) on my machine and it booted but it
was very unstable -- I got a shell prompt but any moderate fs activity
killed it immediately.

 As it was the time I was building binutils 2.10.91 package I checked if
the version of binutils matters.  It didn't.  The 2.4.0-test12 version was
stable and the other one was not regardless of the binutils version used. 

 So I guess there may be something wrong with the R4k code generation in
gcc 2.95.2(3) (or possibly binutils, but the latter is quite unlikely).  I
can't run-time test R4k code but I may see if I can review the generated
binary of startup code up to the first line output for any
inconsistencies.  Don't hold your breath, though... 

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


From owner-linux-mips@oss.sgi.com Thu Mar 29 12:39:07 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2TKd7911063
	for linux-mips-outgoing; Thu, 29 Mar 2001 12:39:07 -0800
Received: from tower.ti.com (tower.ti.com [192.94.94.5])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2TKd6M11060
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 12:39:06 -0800
Received: from dlep8.itg.ti.com ([157.170.134.88])
	by tower.ti.com (8.11.1/8.11.1) with ESMTP id f2TKd0r26234
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 14:39:00 -0600 (CST)
Received: from dlep8.itg.ti.com (localhost [127.0.0.1])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA03927
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 14:39:00 -0600 (CST)
Received: from dlep3.itg.ti.com (dlep3-maint.itg.ti.com [157.170.133.16])
	by dlep8.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA03885
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 14:38:59 -0600 (CST)
Received: from ti.com (IDENT:bbrown@bbrowndt.sc.ti.com [158.218.100.126])
	by dlep3.itg.ti.com (8.9.3/8.9.3) with ESMTP id OAA19263
	for <linux-mips@oss.sgi.com>; Thu, 29 Mar 2001 14:38:58 -0600 (CST)
Message-ID: <3AC39EC4.BB1E24B8@ti.com>
Date: Thu, 29 Mar 2001 13:44:52 -0700
From: Brady Brown <bbrown@ti.com>
Organization: Texas Instruments
X-Mailer: Mozilla 4.72 [en] (X11; U; Linux 2.2.14-5.0 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: SGI news group <linux-mips@oss.sgi.com>
Subject: Tip build error
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 964
Lines: 30

I pulled the CVS tip yesterday and had problems building it for ATLAS because of
the changes to the set_cp0_config arguments. Patch below to
arch/mips/mm/mips32.c of how I fixed this. I think this is the intended new use?



--- mips32.c.orig       Thu Mar 29 13:29:29 2001
+++ mips32.c    Thu Mar 29 13:34:36 2001
@@ -1051,10 +1051,11 @@

        printk("CPU revision is: %08x\n", read_32bit_cp0_register(CP0_PRID));

+       clear_cp0_config(CONF_CM_CMASK);
 #ifdef CONFIG_MIPS_UNCACHED
-       set_cp0_config(CONF_CM_CMASK, CONF_CM_UNCACHED);
+       set_cp0_config(CONF_CM_UNCACHED);
 #else
-       set_cp0_config(CONF_CM_CMASK, CONF_CM_CACHABLE_NONCOHERENT);
+       set_cp0_config(CONF_CM_CACHABLE_NONCOHERENT);
 #endif

        probe_icache(config);

--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Brady Brown (bbrown@ti.com)       Work:(801)619-6103
Texas Instruments: Broadband Access Group
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



From owner-linux-mips@oss.sgi.com Fri Mar 30 17:12:34 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2V1CYY13800
	for linux-mips-outgoing; Fri, 30 Mar 2001 17:12:34 -0800
Received: from dea.waldorf-gmbh.de (u-155-19.karlsruhe.ipdial.viaginterkom.de [62.180.19.155])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2V1CVM13797
	for <linux-mips@oss.sgi.com>; Fri, 30 Mar 2001 17:12:32 -0800
Received: (from ralf@localhost)
	by dea.waldorf-gmbh.de (8.11.1/8.11.1) id f2V1CHV18339;
	Sat, 31 Mar 2001 03:12:17 +0200
Date: Sat, 31 Mar 2001 03:12:17 +0200
From: Ralf Baechle <ralf@oss.sgi.com>
To: Brady Brown <bbrown@ti.com>
Cc: SGI news group <linux-mips@oss.sgi.com>
Subject: Re: Tip build error
Message-ID: <20010331031217.A17423@bacchus.dhis.org>
References: <3AC39EC4.BB1E24B8@ti.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5i
In-Reply-To: <3AC39EC4.BB1E24B8@ti.com>; from bbrown@ti.com on Thu, Mar 29, 2001 at 01:44:52PM -0700
X-Accept-Language: de,en,fr
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 442
Lines: 13

On Thu, Mar 29, 2001 at 01:44:52PM -0700, Brady Brown wrote:

> I pulled the CVS tip yesterday and had problems building it for ATLAS
> because of the changes to the set_cp0_config arguments. Patch below to
> arch/mips/mm/mips32.c of how I fixed this. I think this is the intended
> new use?

No, set_cp0_status only sets bits, clear_cp0_status clears bits,
change_cp0_status is the old set_cp0_status function.

I fixed this in CVS.

  Ralf

From owner-linux-mips@oss.sgi.com Fri Mar 30 22:47:31 2001
Received: (from majordomo@localhost)
	by oss.sgi.com (8.11.3/8.11.3) id f2V6lVU18547
	for linux-mips-outgoing; Fri, 30 Mar 2001 22:47:31 -0800
Received: from sioux.meginc.com (Sioux.meginc.com [207.246.76.19])
	by oss.sgi.com (8.11.3/8.11.3) with ESMTP id f2V6lUM18544
	for <linux-mips@oss.sgi.com>; Fri, 30 Mar 2001 22:47:30 -0800
Received: from dell ([207.246.76.132])
	by sioux.meginc.com (8.9.3/8.9.1) with SMTP id BAA70679
	for <linux-mips@oss.sgi.com>; Sat, 31 Mar 2001 01:50:03 -0500 (EST)
	(envelope-from bebarker@meginc.com)
Content-Type: text/plain;
  charset="iso-8859-1"
From: Brandon Barker <bebarker@meginc.com>
To: linux-mips@oss.sgi.com
Subject: PS2
Date: Sat, 31 Mar 2001 01:55:35 -0500
X-Mailer: KMail [version 1.2]
MIME-Version: 1.0
Message-Id: <01033101553500.08484@dell>
Content-Transfer-Encoding: 8bit
Sender: owner-linux-mips@oss.sgi.com
Precedence: bulk
Content-Length: 239
Lines: 5

What are the chances of Linux being ported to the PS2 (playstation 2)?  I saw 
a Wulfstation project on Sourceforge but it seemed to be inactive; it was 
trying to make a port that would allow us to build clusters of PS2s.

Brandon Barker

