From: Nikita Schmidt <cetus@snowball.ucd.ie>
Subject: Re: Milo 2.2 - things are becoming generic.
Date: Wed, 8 Sep 1999 18:29:55 +0100 [thread overview]
Message-ID: <19990908182954.A2907@snowball.ucd.ie> (raw)
In-Reply-To: <Pine.LNX.4.10.9909081335050.27353-100000@Wotan.suse.de>
On Wednesday, 8 Sep, Stefan Reinauer wrote:
> Hi...
>
> I want to generalize milo in 2 steps:
>
> 1. Make a platform dependant milo link against a generic kernel. This
> means you have to #define CONFIG_ALPHA_{PLATFORM} only in the milo
> Makefile and this selects the correct palcode and dependencies in the
> different source files as well as the hard coded hwrpb.
..and the machine vector.
Good idea: this way kernel bits and most of MILO will have to be
compiled only once in a multi-platform build.
>
> To do this, I need to initialize the hwrpb and alpha_mv before I do
> any I/O. Afaik, this means we have no possibility to do any output on
> vga/serial in the stub and relocation code.
Why do you need HWRPB for I/O? Alpha_mv alone should suffice, and it
will be statically linked into MILO anyway.
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.
>
> 2. I don't know much about the ARC stuff, but is it somehow possible to
> determine via ARC, which board/machine is used? I know there's no
> hwrpb, but at least the AlphaBIOS prints out the machine's "name" so
> it must know it, hardcoded or not.
Apparently yes, at least as a string of characters: see
GetConfigurationData call in the firmware vector. There is also
ReturnExtendedSystemInformation in the vendor vector which provides
system information in more reasonable form, but it is not available on
the Deskstation ARCS firmware.
> I would love to have a function to give ldmilo a) the name
> of the milo to load and possibly the machine type, too.
> What we could *maybe* do is get the machine type via an ARC environment
> variable.
ARC passes SystemPartition, OSLoadFilename, OSLoadPartition, and
OSLoadOptions to linload/ldmilo. IIRC, current practice is that
OSLoadFilename points to the MILO image file and OSLoadOptions get
passed as arguments to the kernel. You probably can stick additional
information into OSLoadFilename after the MILO filename, if you really
need it.
Are you thinking of doing more generic MILOs - e.g., one MILO per
PALcode? What exactly possibilities are there for different system
types that a single MILO can serve? Maybe they are detectable by the
MILO itself?
I don't like to rely on anything from the console, as it makes it harder
to eventually support flashable MILOs. Information obtained from the
firmware should be used only as a convenience (e.g., for autoboot), not
for vital decisions such as system type or memory size. It might be
nice, for instance, to fill HWRPB's DSR with the symbolic system name
obtained through GetConfigurationData(): there is nothing in the system
that depends on it, but it will show up nicely in /proc/cpuinfo.
>
> In the linload Sources I found that the last line executed is (or
> should be)
> JumpToPal(Linux_Entry);
>
> As far as I can see, this doesn't really swap the PALcode, but only
> jumps into the milo head.S.
Head.S? I thought it was micropal.S. The idea at this stage is not to
swap the PALcode, but rather pass the control to MILO in PALmode so it
can relocate itself to where it wants to be and *then* swap to its
PALcode, after it has been put in its permanent place.
> Otherwise the PALcode gets swapped twice,
> since milo does this again. (This wouldn't really make sense in my
> opinion)
Currently MILO swaps PALcode three times (two on MIKASA), which is
clearly redundant.
>
> Now I have some other things:
>
> * MILO license. MILO itself is under a free Digital license, the kernel
> which is linked against milo ist GPL, so I guess the result has to be
> GPL again. Am I wrong? I just don't want to run into problems here.
I'm not an expert so I can't advise on this, but I think you're right.
There is however one nasty clause in the Digital's licence that requires
anybody who makes changes to the code to "prominently mark" those
modifications "as not part of the original". What a nuisance!
I had an idea to overcome it with a statment saying that the original
code is on gatekeeper.dec.com and that you can run diff and see exactly
what changes have been made, but it is not what I'd actually call
"prominent" marking...
Regards,
Nikita
next prev parent reply other threads:[~1999-09-08 17:29 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 [this message]
1999-09-08 20:30 ` Stefan Reinauer
1999-09-09 12:55 ` Nikita Schmidt
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