Skip to contentSkip to conversation

Userland loader / run time loader

DISCUSSION Larry McVoy 8 participants 17 messages Jun 13, 1997 – Jun 17, 1997 MIPS

lore
Share & tools
lore
#0 lore raw

Can someone give me some info on what has been done or needs to be done to have a 100% self hosting Linux development suite on MIPS? Last I checked, it was missing the loader & rld. Is that still true? If so, do we know why it is hard? I have someone that may be willing to fix this if it is still a problem. Thanks.

--lm

#1 lore raw
Quoted 5 lines

Can someone give me some info on what has been done or needs to be done to have a 100% self hosting Linux development suite on MIPS? Last I checked, it was missing the loader & rld. Is that still true? If so, do we know why it is hard? I have someone that may be willing to fix this if it is still a problem. Thanks.

The development suite is fully useable for bootstrapping itself. Check the little endian rpm packages on my workstation kernel.panic.julia.de; they all were built from unchanged RedHat 4.1 source packages and use shared libraries.

Aside of a possibility to load the kernel from an ext2fs filesystem the most urgent thing we need currently is debugging, debugging ...

Things look different if we're talking about 64bit. Last time I checked with the Kazumoto Koshima who did a 64bit Hurd port to Sony NeWS the 64bit linker was still not what I'd call reliable ...

Ralf

#3 lore raw
In reply to Alex deVries
Quoted 9 lines

To begin with, excuse my noviceness in this all. Those are LSB binaries, whereas the sgi-linux box that I have access to (bogomips.ingenia.com) will only run MSB.

As written on this list earlier, we don't have bi-endian support. So, which one is it we're going to support to begin with? How is it that Ralf is able to execute LSB binaries?

Am I missing something big?

{\grin[evil] Because I've got four types of MIPS boxes running Linux at home and to two more I've got access.}

I think this also explains why I'm so interested in running biendianess - I'm running out of diskspace ...

Quoted 2 lines

Also, there was talk of getting merged up with kernel 2.1.4[234]. Any luck so far?

Yes. I haven't merged all the files of my home CVS archive yet into David's CVS archive from which he sends patches to Linus but the biggest part is now in sync.

Ralf

#5 lore raw
In reply to Alex deVries
Quoted 6 lines
Quoted 2 lines

{\grin[evil] Because I've got four types of MIPS boxes running Linux at home and to two more I've got access.}

To address the needs of us lowly folk who have fewer than 2 MIPS boxes[1], which endian are we going to be supporting first? It would be _very_ pleasant to be able to run all these binaries that Ralf has prepared.

The dependencies from the byteorder are very low. As long as we do not have a kernel with the capability to execute binaries of both byteorder at the same time byteorder is almost a non-issue for development. Just recompiling, that's it.

Quoted 2 lines

Also, exactly how difficult is it to alternate the kernel between big and little endian?

Well, depends on what you mean. The simple solution is just recompiling everything. Works for kernel and user apps. The more complex solution is to make the kernel capable of running user apps of both byteorder at the same time. Among other things this requires that we go through all the kernel source and fix the user space access routines. A bit more of an effort ;-) Mips already did that once for RISC/os.

Quoted 3 lines

This is getting cooler by the minute...

[1] In my case, 0, but access network access to 1.

Slower than 10mbit/s doesn't count :-)

Ralf

#4 lore raw
In reply to Ralf Baechle
Quoted 8 lines · Ralf Baechle
Quoted 4 lines · Alex

As written on this list earlier, we don't have bi-endian support. So, which one is it we're going to support to begin with? How is it that Ralf is able to execute LSB binaries?
Am I missing something big?

{\grin[evil] Because I've got four types of MIPS boxes running Linux at home and to two more I've got access.}

To address the needs of us lowly folk who have fewer than 2 MIPS boxes[1], which endian are we going to be supporting first? It would be _very_ pleasant to be able to run all these binaries that Ralf has prepared.

Also, exactly how difficult is it to alternate the kernel between big and little endian?

This is getting cooler by the minute...

[1] In my case, 0, but access network access to 1.

- Alex

#2 lore raw
In reply to Ralf Baechle
Quoted 4 lines · Ralf Baechle

The development suite is fully useable for bootstrapping itself. Check the little endian rpm packages on my workstation kernel.panic.julia.de; they all were built from unchanged RedHat 4.1 source packages and use shared libraries.

To begin with, excuse my noviceness in this all. Those are LSB binaries, whereas the sgi-linux box that I have access to (bogomips.ingenia.com) will only run MSB.

As written on this list earlier, we don't have bi-endian support. So, which one is it we're going to support to begin with? How is it that Ralf is able to execute LSB binaries?

Am I missing something big?

Also, there was talk of getting merged up with kernel 2.1.4[234]. Any luck so far?

- Alex "ready to debug, debug, debug!" deVries

#6 lore raw
In reply to Alex deVries
Quoted 4 lines

To address the needs of us lowly folk who have fewer than 2 MIPS boxes[1], which endian are we going to be supporting first? It would be _very_ pleasant to be able to run all these binaries that Ralf has prepared.

Some time ago, someone mentioned that making the kernel support both big endian and little endian binaries in RISC/os consumed too much of their time.

The time we will spend trying to get this bloating hack into the kernel could be easily spent on some more productive things.

I will put together a root file system and a bunch of rpms soonish (ie, that is, as soon as I boot my Indy into Linux).

Miguel.

#7 lore raw

A pointed question about endianness...

I'm going to repeat this question because I still haven't gotten a firm answer.

As previously discussed, there are good reasons to produce a kernel which can handle bi-endianness. But, as Mike says, just not this week...

As we speak, Ralf has produced a batch of MIPS LSB binaries that would be glorious to be able to run. The kernel that Mike Shaver and I have is MSB, as are our kernel, cross-compiler and rudamentary binaries. I believe this is because we're branching off of Dave M's work.

But, can we please agree on one endianness? I don't care which it is, so long as we all agree. Mike and I are quite willing to give up MSB.

My proposal is to use Ralf's LSB binaries as a launchpad[1], and produce only LSB binaries until we get bi-endianness going.

Also, Ralf, could you put up a binary of your kernel and a tar ball of your root fs?

- Alex

[1] Which are mirrored on ftp://ftp.engsoc.carleton.ca/pub/mips if you're having problems getting them from .de. That is, until whatever.sgi.com is setup.

Alex deVries "Alex can cut a mean rug."
System Administrator - M. Dittberner <[email protected]>
The EngSoc Project

#8 lore raw

Re: A pointed question about endianness...

Quoted 10 lines

As we speak, Ralf has produced a batch of MIPS LSB binaries that would be glorious to be able to run. The kernel that Mike Shaver and I have is MSB, as are our kernel, cross-compiler and rudamentary binaries. I believe this is because we're branching off of Dave M's work.

But, can we please agree on one endianness? I don't care which it is, so long as we all agree. Mike and I are quite willing to give up MSB.

My proposal is to use Ralf's LSB binaries as a launchpad[1], and produce only LSB binaries until we get bi-endianness going.

Well, the point in a bi-endian kernel is that it will give us the possibility of running binaries with the opposite byteorder of the kernel. We don't have that feature available right now, so we're bound to whatever byteorder the kernel is running. Which again is fixed on many machines. This means that for now we'll have to build both little endian and big endian binaries; on SGI we'll only be able to execute big endian binaries.

I think your missunderstood that bi-endianess gives us the possibility to execute binaries of both endianess concurrently on the same kernel. It does that but it also give us at all the possibility to run binaries of the other byteorder. So your proposal is currently technically not possible.

Btw, question to the SGI gurus - is the kernel byteorder of SGI machines be reconfigurable?

Quoted 2 lines

Also, Ralf, could you put up a binary of your kernel and a tar ball of your root fs?

Ok, I'll put it on http://www.uni-koblenz.de/~linux/vmlinux-2.1.42-pre3.gz.
Not on kernel.panic because I've run out of disk space. Feel free to put it on your ftp server. My root fs is definately to big for upload over a 14.4k line, so stay tuned.

Quoted 3 lines

[1] Which are mirrored on ftp://ftp.engsoc.carleton.ca/pub/mips if you're having problems getting them from .de. That is, until whatever.sgi.com is setup.

Hmm... Ariel, Larry or whoever knows about that - what is the current state of linux.sgi.com?

Ralf

#9 lore raw

Re: A pointed question about endianness...

Quoted 3 lines · Ralf Baechle

Btw, question to the SGI gurus - is the kernel byteorder of SGI machines be reconfigurable?

As the guys in the US won't be in for a while yet.....

My belief is that Indy's were designed to require a PROM change. I have also heard that there was a problem running NT that required some mods to the boards.
These were never released to the field.

So the answer is yes, but in practice no!

Cheers, Alistair

Signature · 4 lines
Alistair Lambie					    [email protected]
Silicon Graphics New Zealand				  SGI Voicemail: 56791
Level 5, Walsh Wrightson Tower,				    Ph: +64-4-802 1455
94-96 Dixon St, Wellington, NZ			  	   Fax: +64-4-802 1459
#16 lore raw
In reply to Miguel de Icaza
Quoted 11 lines · Miguel de Icaza
Quoted 4 lines

To address the needs of us lowly folk who have fewer than 2 MIPS boxes[1], which endian are we going to be supporting first? It would be _very_ pleasant to be able to run all these binaries that Ralf has prepared.

Some time ago, someone mentioned that making the kernel support both big endian and little endian binaries in RISC/os consumed too much of their time.

The time we will spend trying to get this bloating hack into the kernel could be easily spent on some more productive things.

I reported on the RISC/os experience. It wasn't so much that it
took too much time, but rather that it was hard to support on the SVR3 kernel interface, due to the messy definition of the streams interface at the system call level. It is much easier if you can assume only dynamically linked binaries, as in SVR4, and you can do much (although not all) of the work in user mode, and much of the rest of the work can happen as a side-effect of copyin/copyout.

Quoted 2 lines

I will put together a root file system and a bunch of rpms soonish (ie, that is, as soon as I boot my Indy into Linux).

That is clearly more expedient than trying to do bi-endian binary
support. Once the source-level endian issues are resolved (and most should already be resolved in any GNU sources), having both litte- and big-endian binaries and file systems is fairly simple.

#11 lore raw

Re: A pointed question about endianness...

In reply to Alex deVries
Quoted 7 lines · Alex deVries

I'm going to repeat this question because I still haven't gotten a firm answer.

As previously discussed, there are good reasons to produce a kernel which can handle bi-endianness. But, as Mike says, just not this week...

Quoted 7 lines

As we speak, Ralf has produced a batch of MIPS LSB binaries that would be glorious to be able to run. The kernel that Mike Shaver and I have is MSB, as are our kernel, cross-compiler and rudamentary binaries. I believe this is because we're branching off of Dave M's work.

But, can we please agree on one endianness? I don't care which it is, so long as we all agree. Mike and I are quite willing to give up MSB.

You probably can't agree on one, unless you can agree on one set
of systems. Most MIPS architecture systems, including all SGI systems, are big-endian, but all DEC systems and all MIPS Magnum 4000 systems configured to run NT are little-endian. (All other MIPS systems are big-endian.)

#10 lore raw

Re: A pointed question about endianness...

In reply to Alistair Lambie
Quoted 5 lines · Alistair Lambie
Quoted 3 lines · Ralf Baechle

Btw, question to the SGI gurus - is the kernel byteorder of SGI machines be reconfigurable?

Quoted 8 lines

As the guys in the US won't be in for a while yet.....

My belief is that Indy's were designed to require a PROM change. I have also heard that there was a problem running NT that required some mods to the boards.
These were never released to the field.

So the answer is yes, but in practice no!

...
Indy never ran anything little-endian, although the memory controller
could in principle support it. The rest of the system probably would not work correctly. As far as I know, only the MIPS Magnum systems really work both ways. (They actually work better little-endian, but most were shipped big-endian.)

#12 lore raw

Re: A pointed question about endianness...

In reply to William J. Earl
Quoted 5 lines

You probably can't agree on one, unless you can agree on one set
of systems. Most MIPS architecture systems, including all SGI systems, are big-endian, but all DEC systems and all MIPS Magnum 4000 systems configured to run NT are little-endian. (All other MIPS systems are big-endian.)

It's worse than that. SNI RM series is configurable, Algorithmics eval boards are configurable. Acer PICA (derived from the Magnum) is le only, Sony machines are fixed to be, Deskstation MIPS machines are fixed to le ...

Ralf

#13 lore raw

Re: A pointed question about endianness...

Quoted 12 lines

From: Ralf Baechle <[email protected]>
Subject: Re: A pointed question about endianness...
To: wje@fir (William J. Earl)
Date: Mon, 16 Jun 1997 23:18:40 +0200 (MET DST)

Quoted 5 lines

You probably can't agree on one, unless you can agree on one set
of systems. Most MIPS architecture systems, including all SGI systems, are big-endian, but all DEC systems and all MIPS Magnum 4000 systems configured to run NT are little-endian. (All other MIPS systems are big-endian.)

Quoted 4 lines

It's worse than that. SNI RM series is configurable, Algorithmics eval boards are configurable.

Ralf

Is anyone working on the Algorithmics boards? We have 5 of them over
here currently being used with VxWorks (which isn't officially supported on these boards). I could cause lots of trouble over here if Linux did work on them. :-)

Mike McDonald
[email protected]

#14 lore raw

Re: A pointed question about endianness...

Quoted 4 lines

Is anyone working on the Algorithmics boards? We have 5 of them over
here currently being used with VxWorks (which isn't officially supported on these boards). I could cause lots of trouble over here if Linux did work on them. :-)

Me, I've got a P4032 donated by Algorithmics here. The port hasn't yet reached a state where I'd be pround of it, but bascially it works diskless. Some guys from a Silicon Valley company are currently also porting Linux to that port, supported but otherwise mostly independant from me. They're using similar board from Algorithmics which is based on a R5000 derivate.

Ok, patch 2.1.43 just has been released. **Input** ...

Ralf

#15 lore raw

Re: A pointed question about endianness...

Quoted 6 lines

From: Ralf Baechle <[email protected]>
Subject: Re: A pointed question about endianness...
To: mikemac (Mike McDonald)
Date: Tue, 17 Jun 1997 02:57:04 +0200 (MET DST)

Quoted 8 lines
Quoted 4 lines

Is anyone working on the Algorithmics boards? We have 5 of them over
here currently being used with VxWorks (which isn't officially supported on these boards). I could cause lots of trouble over here if Linux did work on them. :-)

Me, I've got a P4032 donated by Algorithmics here. The port hasn't yet reached a state where I'd be pround of it, but bascially it works diskless.

That's the beast. So, when are you going to stop messing around with
those Indies and start doing some real work? :-)

Mike McDonald
[email protected]