* development/improvement of boot
@ 1998-08-16 4:00 cekim
1998-08-16 4:00 ` Michal Jaegermann
1998-08-16 4:00 ` Joachim Wesner
0 siblings, 2 replies; 3+ messages in thread
From: cekim @ 1998-08-16 4:00 UTC (permalink / raw)
I have been playing with my alpha linux setup for 9 months now and I am
getting pretty comfortable with the do's and don'ts, even a little driver
code here and there. I have gotten to the point that I have a stable
predictable machine that serves my everyday use.
Now I am just getting picky with the following, but hey, why not?
#IFNDEF WHINE
#DEFINE WHINE ALOT
All told this setup (linux-alpha-arc firmaware) is loading/configuring the
SCSI drivers 4 times to some degree or another:
1. SCSI BIOS load through arc_bios emulated instructions just after POST
2. SCSI config while ARC firmare flash screen is showing and counting
memory/config status
3. Milo load linux scsi drivers to read kernel and boot
4. kernel re-loads scsi drivers, for no appearent reason other than standard
operating procedure.
Now the first 2 really are not under our control and are understandably
redundant to the linux system as there are the equivalent of bios code on an
x86 machine (absolutely usless real-mode drivers - to the best of my
understanding, although the alpha has no "real" mode so it is a difference in
driver interface or behvaior that requires the "linux" driver to override
some of the bios code and use other parts.)
Perhaps in the distant future soemone could code native instructions to do
this and speed it up (flash it into the SCSI controller and be done).
BUT..
Anyway, my concern is with the direct redundancy of the SCSI driver load in
Milo and linux.
I hate to wait for anything and I will go way out of my way to speed things up
even if the net increase, with the added effort and debug is negative (thus my
purchase of the ALpha and many pointless hours spent hacking minute annoyances
in my code).
Even with the SCSI reset and pause disabled in the kernel and my recompiled
milo this loading of the SCSI driver is SLOW. Yes, I only boot once a day
and we are talking about a matter of seconds here, but I have developed
something of a rule of thumb since I began programming on this machine:
If it is something that does not involve millions/billions of recursive
loops/calculations and it takes any time at all to run, I must have coded
soemthing very bad.
#ENDIF
SO, my question is as follows:
Is there a way to have the linux kernel load to "start in the middle"?
The Lilo/kernel paradigm, seems to do exactly what I am describing on x86
systems. The Kernel itself (see the asm code) has the code for bootstrapping
itself from the lowest level(off of a floppy), but this code is circumvented
when loading via lilo.
Since MILO really is not used to load anything other than linux, it seems
silly to not integrate its functionailty into the kernel. The argument that
Milo must stay small to fit in the Flash, seems weak because most setups read
milo/linload off of a fixed disk.
Has anyone looked at this, or done this?
I would hate to have to foul this up by myself.
Thanks,
/Mike
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: development/improvement of boot
1998-08-16 4:00 development/improvement of boot cekim
@ 1998-08-16 4:00 ` Michal Jaegermann
1998-08-16 4:00 ` Joachim Wesner
1 sibling, 0 replies; 3+ messages in thread
From: Michal Jaegermann @ 1998-08-16 4:00 UTC (permalink / raw)
cekim@ix.netcom.com wrote:
:
: 3. Milo load linux scsi drivers to read kernel and boot
: 4. kernel re-loads scsi drivers, for no appearent reason other than standard
: operating procedure.
.....
: Anyway, my concern is with the direct redundancy of the SCSI driver load in
: Milo and linux.
As quite often I have a relatively old milo and a new kernel various
drivers loaded by this kernel are NOT the same as those used by milo
to get to the point where these can be loaded. Personally I would
be **extremely** annoyed if I would be condemned to drivers supplied
by milo (as a matter of fact I load a smalled number of drivers in
my kernel, some possibly as modules, then milo does; milo has to
acommodate a wide range of possible hardware and I can have a kernel
customized to my needs).
For assorted reasons hacking milo is way more complicated than making
changes in a kernel and is likely to stay that way. I did changes
to milo in the past but this is not something you want repeat very
often.
If you are so annoyed, and you are rebooting your box all the time (why?),
then set it on autoboot and, after you turned it on, instead of staring
into your monitor go and make yourself a cup of coffe (or maybe better
something else to reduce these hyperactivity tendencies - some herbal tea
should be good). When you will be back you will be greeted by a login
prompt and you will not care what contortions were performed by your
computer in the meantime.
Michal
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: development/improvement of boot
1998-08-16 4:00 development/improvement of boot cekim
1998-08-16 4:00 ` Michal Jaegermann
@ 1998-08-16 4:00 ` Joachim Wesner
1 sibling, 0 replies; 3+ messages in thread
From: Joachim Wesner @ 1998-08-16 4:00 UTC (permalink / raw)
cekim@ix.netcom.com wrote:
> Now I am just getting picky with the following, but hey, why not?
>
> #IFNDEF WHINE
> #DEFINE WHINE ALOT
>
> All told this setup (linux-alpha-arc firmaware) is loading/configuring the
> SCSI drivers 4 times to some degree or another:
>
> 1. SCSI BIOS load through arc_bios emulated instructions just after POST
> 2. SCSI config while ARC firmare flash screen is showing and counting
> memory/config status
> 3. Milo load linux scsi drivers to read kernel and boot
> 4. kernel re-loads scsi drivers, for no appearent reason other than standard
> operating procedure.
Actually most of the time I see even 5 steps in the above and on very
rare occasions only your 4 and I CANT`T TELL WHAT CAUSES THE DIFFERENCE
!!
When "(soft)" rebooting to try out another kernel I just made I often
see:
3) Milo loads linux scsi drivers to read kernel and boot (up to the MILO
prompt, resp. the counting down and the "ESC to reboot immediately"
message)
4) After the prompt, MILO does not immediatelly load and start unzipping
the kernel (BUT, yes, on a few cases it does, damn') instead reloads all
the driver stuff then resets the SCSI controller and checks for the tape
and and and....
5) "Month later" the the Kernel is loaded, unzipped and the very same
init stuff all over again...
#define MOSTLY ANNOYING
Joachim
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-08-16 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-16 4:00 development/improvement of boot cekim
1998-08-16 4:00 ` Michal Jaegermann
1998-08-16 4:00 ` Joachim Wesner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox