* milo sources?
@ 1999-04-20 1:20 Jeff Garzik
1999-04-22 20:26 ` Nikita Schmidt
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 1999-04-20 1:20 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
Where are the latest? Should we set up sources on a CVS server
somewhere? A versioned release with all these new features would be
nice...
FWIW, I am very interested in evolving MILO long-term into a featureful,
and maintainable piece of code. I even thought about making MILO simply
a set of kernel configuration parameters, so that it would be easier to
track kernel sources.
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: milo sources?
1999-04-20 1:20 milo sources? Jeff Garzik
@ 1999-04-22 20:26 ` Nikita Schmidt
1999-06-24 1:08 ` Jeff Garzik
0 siblings, 1 reply; 4+ messages in thread
From: Nikita Schmidt @ 1999-04-22 20:26 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1714 bytes --]
On Monday, 19 Apr, Jeff Garzik wrote:
> Where are the latest? Should we set up sources on a CVS server
> somewhere? A versioned release with all these new features would be
> nice...
The latest official sources are on gatekeeper in the Kernels directory.
The branch I currently maintain, which can be considered as advanced
when compared to the official version, can be found at:
ftp://genie.ucd.ie/pub/alpha/milo
This is the version I would personally call "the latest".
There are also other branches with their own "latest" sources.
>
> FWIW, I am very interested in evolving MILO long-term into a featureful,
> and maintainable piece of code. I even thought about making MILO simply
> a set of kernel configuration parameters, so that it would be easier to
> track kernel sources.
That is, merge MILO with the kernel sources? This way it will be much
easier to maintain it, but most people will not appreciate having to
download extra 1.5 Mb... On the other hand, people use only a very
small amount of all the existing drivers, and MILO can be counted as yet
another kernel feature.
I actually have a bunch of ideas on re-organising MILO. One of them is
to teach MILO to use kernel sources rather than pre-built libraries and
object files, and to build whatever it (MILO) needs on its private
premises. It should be possible to make a single configuration process,
which would include config.in from different (relevant to MILO) parts of
the kernel tree and of course one for MILO itself. The resulting
configuration would then be used for both kernel and MILO compilation.
I shall probably elaborate more on the ideas I have in a couple of
days...
Nikita
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: milo sources?
1999-04-22 20:26 ` Nikita Schmidt
@ 1999-06-24 1:08 ` Jeff Garzik
1999-06-24 14:32 ` Nikita Schmidt
0 siblings, 1 reply; 4+ messages in thread
From: Jeff Garzik @ 1999-06-24 1:08 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2577 bytes --]
Nikita Schmidt wrote:
>
> On Monday, 19 Apr, Jeff Garzik wrote:
> > Where are the latest? Should we set up sources on a CVS server
> > somewhere? A versioned release with all these new features would be
> > nice...
>
> The latest official sources are on gatekeeper in the Kernels directory.
>
> The branch I currently maintain, which can be considered as advanced
> when compared to the official version, can be found at:
> ftp://genie.ucd.ie/pub/alpha/milo
> This is the version I would personally call "the latest".
>
> There are also other branches with their own "latest" sources.
>
> >
> > FWIW, I am very interested in evolving MILO long-term into a featureful,
> > and maintainable piece of code. I even thought about making MILO simply
> > a set of kernel configuration parameters, so that it would be easier to
> > track kernel sources.
>
> That is, merge MILO with the kernel sources? This way it will be much
> easier to maintain it, but most people will not appreciate having to
> download extra 1.5 Mb... On the other hand, people use only a very
> small amount of all the existing drivers, and MILO can be counted as yet
> another kernel feature.
It is a pain the way things are now. I think that MILO should be a
kernel patch, or it should be completely separate and come with no
drivers (using the krnl src like you describe below). I don't have any
concrete ideas here, but at the same time would like to clean up the
package.
> I actually have a bunch of ideas on re-organising MILO. One of them is
> to teach MILO to use kernel sources rather than pre-built libraries and
> object files, and to build whatever it (MILO) needs on its private
> premises. It should be possible to make a single configuration process,
> which would include config.in from different (relevant to MILO) parts of
> the kernel tree and of course one for MILO itself. The resulting
> configuration would then be used for both kernel and MILO compilation.
>
> I shall probably elaborate more on the ideas I have in a couple of
> days...
Please do ;-)
The x86emu project is promising. Has there been other work as well? It
will take some work to merge the BIOS emulator back into MILO but the
x86emu emulator has some worthwhile updates (32-bit insn support for
one).
It would be nice to be able to have something _stable_ and flashable
into firmware. Flashing MILO has not been supported for a long time
(Jay E. outlined the reasons a couple times on axp-list)
Keep the MILO alive :)
Jeff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: milo sources?
1999-06-24 1:08 ` Jeff Garzik
@ 1999-06-24 14:32 ` Nikita Schmidt
0 siblings, 0 replies; 4+ messages in thread
From: Nikita Schmidt @ 1999-06-24 14:32 UTC (permalink / raw)
On Wednesday, 23 Jun, Jeff Garzik wrote:
>
> The x86emu project is promising. Has there been other work as well? It
> will take some work to merge the BIOS emulator back into MILO but the
> x86emu emulator has some worthwhile updates (32-bit insn support for
> one).
GRUB is also worth looking into. At least the filesystem code is much
cleaner than what we have in MILO. Perhaps some user interface might be
useful as well? GRUB is supposed to be user-friendly, but I never saw
how it actually works.
> It would be nice to be able to have something _stable_ and flashable
> into firmware. Flashing MILO has not been supported for a long time
> (Jay E. outlined the reasons a couple times on axp-list)
That may take too much effort for keeping in sync with all Alpha system
varieties. It might be feasible, though, if SRM and AlphaBIOS sources
were open.
Here is, briefly, what I have in mind to do with MILO.
General
-------
1. Logically separate the UI, filesystems and kernel bootstrap from the
rest so that they can be linked against kernel drivers for a full-blown
MILO as well as against SRM callbacks to provide an aboot-like thing
with MILO interface for consistency.
2. Put kernel driver compiling under MILO's control: this way MILO will
only require kernel sources, which is, I believe, a reasonable
requirement. Kernel configuration will also be controlled by MILO.
I have already modified MILO configuration scripts to include kernel
configuration for this "new generation" MILO, but couldn't do much more
than that due to serios lack of time.
3. Separate platform-dependent and platform-independent files. By
"platform-dependent" I mean those with #ifdef CONFIG_ALPHA_...; it is a
good idea to reduce the number of such files as much as possible.
It is a question whether the target platform is a configuration option
or not. I would rather see it not belonging to the configuration, for
it would make building distributions easier: configure once, build as
many times as necessary for different platforms.
It would be nice to not have to re-compile anything when the target
platform changes, just by giving appropriate objects to the linker.
The code generated will be generic, not using BWX and stuff, but that
does not really seem important.
Should the kernel drivers be compiled as generic or a separate set for
each system? I tend to prefer them being generic to simplify the
process.
New features
------------
1. The wtint PALcall, which is missing in MILO, although required by the
Digital UNIX PALcode specification. It is a nice power-saving facility.
I implanted it into my MILO as an experimental feature by
reverse-engineering from the SRM PALcode, and this immediately reduced
the CPU fan noise while the machine is idle. (The kernel needs
modifications to use wtint, though.) The problem is that it seems to be
highly platform-specific and I did not see any documentation how to
enter low power mode except for the 21066 family CPUs.
We can at least provide a stub to facilitate the use of wtint in the
mainstream kernel. Those who boot from SRM will benefit from it.
2. Some nice things from the console specification, such as console
print routines for early kernel panic diagnostics, and correct reaction
to the CPU restart flags in HWRPB to distinguish between halt, cold
reboot and warm reboot.
3. Ability to run programs under MILO. This will be useful for various
console tools such as diagnostic and tuning routines, which we don't
want to keep inside MILO.
Technical reorganisation
------------------------
At the moment, nearly everything is in a wrong place. Files should be
rearranged to make maintenance easier. Memory layouts should be less
dependent on Makefile settings and driven by linker scripts.
I'm thinking of integrating linload.exe into MILO: its code will then
shrink to a trivial swppal. This can be arranged as a 512-byte preamble
containing the ARC COFF header and a small code segment. SRM will be
able to easily skip the preamble as it is exactly one sector long.
I intend to move MILO to lower physical addresses; then both the
compressed and uncompressed images will fit below the kernel, making
MILO memory management easier and the kernel's page map less fragmented.
I don't know if this will bring us any benefit, though.
Memory sizing is easy to implement by querying core logic chipset
rather than doing silly things like relying on SRM or AlphaBIOS or PAL
impure area to provide the information.
There is also a lot of things to do to streamline MILO startup and
general logic (what goes after what, when to build HWRPB, how to manage
environment etc.)
Speaking of environment, I propose to replace the current MILO reboot
block with an environment block which would preserve MILO variables
across kernel bootstrap/halt. On systems equipped with NVRAM that MILO
can read, environments will be merged. Stuff like the boot command,
which is currently kept in the reboot block, will always go to the RAM
portion. An initial RAM environment block will reside inside the MILO
image and will be configurable by tools like miloctl - this is useful
for systems without NVRAM. Variables can control which device to be
used as the console terminal (VGA or serial), verbosity level, default
bootstrap command, timeouts etc.
OK. I have more concrete details on most of the topics discussed, but I
think that would be just too much for the first time.
Comments, opinions, suggestions anyone?
Nikita
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1999-06-24 14:32 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-20 1:20 milo sources? Jeff Garzik
1999-04-22 20:26 ` Nikita Schmidt
1999-06-24 1:08 ` Jeff Garzik
1999-06-24 14:32 ` Nikita Schmidt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox