From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: Date: Wed, 8 Sep 1999 22:30:09 +0200 (MEST) From: Stefan Reinauer Subject: Re: Milo 2.2 - things are becoming generic. In-Reply-To: <19990908182954.A2907@snowball.ucd.ie> On Wed, 8 Sep 1999, Nikita Schmidt wrote: > > 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. *wargl* Of course. I haven't thought of this. If we do it like the kernel and "alias" the alpha_mv to the platform specific machine vector, we don' have all the problems as long as we still have non-generic milos. > > 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 actually thought about using the hwrpb for cpu detection to get some hint on the used hardware. This is of course not neccessary if we take the machine vector from the defines. And yes, only alpha_mv is needed for I/O. This solves the no-IO problem at least for the moment :) > 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. > 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. Since I have some statement from the deskstation guys that they won't continue development on their flawed-by-design firmware, I don't think this is a real big problem. Afaik only the 164UX and 164BX use it. (Am I wrong?) which milo is used for the BX at all? PC164 or Ruffian? I haven't seen such a board life yet. > 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. 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) > 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 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) The comparable 2.0 milo is a bit more than 360k, but I really think, this can still be optimized. > 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. 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. ;-> > 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. Of course it's micropal.S. I just can't read the source sometimes :) > 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 Why is it sufficient for Mikasa to swap palcodes later? Couldn't we do that just for the other platforms, too ? 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. > > * 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... 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. What shall I do now with files that I threw away and rewrote completely? 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? 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 :) -- SuSE GmbH Can you afford *NOT* Schanzäckerstr. 10 to use Linux? D-90443 Nürnberg Germany AlphaPowered