alphalinux.org MILO (Mini Loader) list (1999-2001)
 help / color / mirror / Atom feed
From: Nikita Schmidt <cetus@snowball.ucd.ie>
Subject: Re: Milo 2.2 - things are becoming generic.
Date: Thu, 9 Sep 1999 13:55:01 +0100	[thread overview]
Message-ID: <19990909135501.B4685@snowball.ucd.ie> (raw)
In-Reply-To: <Pine.LNX.4.10.9909082017350.13179-100000@Wotan.suse.de>

On Wednesday,  8 Sep, Stefan Reinauer wrote:

> On Wed, 8 Sep 1999, Nikita Schmidt wrote:

> 

> > I don't think that "production" (non-debug) MILOs should do any I/O

> > before passing control to the uncompressed full image.  For the debug

> > versions even a less than ideal solution should be fine.

> 

> True. On the other hand, it's just the debug versions that need debug

> output. I had rather big problems to determine my errors with exactly no

> output, when I started.

> 

Yes, some debug output in the stub will be useful.  You can link

alpha_mv into MILO twice for that purpose (one copy into the compressed

image and another one into the stub/decompressor).  Since it's a debug

version, some waste of memory doesn't matter.  Alternatively you could

put it only into the stub and make the main working image link to it

using linker scripts, but it's not worth the effort.

> 

> I made some tests on our Ruffians and it seems that at least Jay's hacked

> version of ldmilo ignores the OSLoadFileName. I just entered "blubb" there

> (which is the german equivalent of "foo") and it just loaded "milo"

> Having ldmilo interpreting this variable would be very nice. Or we leave

> it as it is now and "misuse" the meaning of it (not that elegant)

> 

True, ldmilo (originally written by Deskstation) just merely ignores

OSLoadFilename, but nothing prevents us from taking linload's source and

adapting it to our needs.  The difference between ldmilo and linload is

only caused by the absence of the vendor vector (as defined by Digital)

in ARCSBIOS.  If I remember correctly, the only thing linload needs from

it is Print, and it is replaced in ldmilo by sprintf/Write combination

(this is why ldmilo is bigger - it has to carry sprintf's code inside).

What I wanted to do was to integrate linload/ldmilo into MILO.  This

would drastically simplify whatever remains from linload, since all the

file loading would go away: milo.exe will boot straight from ARC.

OSLoadFilename would become completely free for our use.  SRM would load

milo.exe starting a couple of blocks after the beginning of the file,

skipping the NT .exe header and perhaps the code related to booting from

ARC.

This way the part of MILO responsible for booting from ARC (the

remainings of linload) would pass the parameters such as OSLoadOptions

straight into the designated area in the MILO, rather than through some

peculiar memory location.

> 

> I even thought about a single milo for all boxes. This may be to big

> though. But one per palcode is a very good idea since it wouldn't be much

> bigger. I stripped down my milo from 490k to about 410k. (Only with ncr,

> but debug versions. a version linked against the generic kernel is about

> 20k bigger at the moment)

I think a generic, single MILO is a serious undertaking.

> 

> Yes, you are right. On the other hand, we could just "decide" that only a

> specific milo is allowed for flashing and a generic milo can be put on an

> installation CD for example. ;->

> 

True.

> > Currently MILO swaps PALcode three times (two on MIKASA), which is

> > clearly redundant.

> 

> Ups? I only found two of them.. once in boot_main (which is the one not

> executed on MIKASA) and once in devices.c

First time it happens in micropal.S at the very end where it jumps to

the pal_reset entry of the MILO palcode.  That means all parts of MILO

except micropal.S and relocate.c run under MILO palcode.

> Why is it sufficient for Mikasa to swap palcodes later? Couldn't we do

> that just for the other platforms, too ?

I have absolutely no idea why that palcode swap is needed at all.  I

guess it has been there since old times when it was really required and

nobody wanted to touch it, since it worked.  It's no surprise at all

that Mikasa works fine without it!

> 

> Again, the same for the wrfen at the very beginning of

> boot_main.c:__main() - if it's not neccessary (or possible) on Ruffian, is

> it really neccessary on other boards? I'd like to get the boot process a

> bit more stripped down and/or explained for a real release of the current

> code.

I avoided that question simply because I don't know.  I don't understand

how wrfen() can break things.  The only person I know of who can shed some

light here is Jay Estabrook.

> 

> Well.. I just read the LICENSE file and it seems to state that everything

> except the PALcode and the BIOS emulation is GPL. The headers of the

> sources on the other hand give not a single statement about GPL.

Again, I'm not a lawyer, but my understanding is that in case of

contradicting licences you can choose whatever you want, though my

feeling is that it's safer to choose the more restrictive one.

> What shall I do now with files that I threw away and rewrote completely?

Put them under GPL.

> I sometimes took the kernel source and just copied the function headers to

> be sure what it refers to in the kernel. On the other hand, I did the same

> with the milo sources. For example, I took the entry.S of the kernel and

> stripped it down until it fitted my needs. What license header do I have

> to put in the file before release?

Whatever the kernel licence allows you to.  I think it's safe just to

say it's GPL.

> I don't think that anyone would give this a wrong sense, but as I had lots

> of contract problems with buerocratic german publishers, I try to be kind

> of aware now :)

Can you ask SuSE's lawyers?  Lawyers tend to be very conservative and

interpret every nuance in the worst possible sense, but the advices they

give are bulletproof.  You might also try to persuade Digital

authorities to resolve this licensing mess somehow...

Nikita

  reply	other threads:[~1999-09-09 12:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-09-08 14:18 Milo 2.2 - things are becoming generic Stefan Reinauer
1999-09-08 17:29 ` Nikita Schmidt
1999-09-08 20:30   ` Stefan Reinauer
1999-09-09 12:55     ` Nikita Schmidt [this message]
1999-09-10  7:24 ` Jeff Garzik
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox