Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: cekim@ix.netcom.com
Subject: development/improvement of boot
Date: 1998/08/16	[thread overview]
Message-ID: <6r5v0v$eic$1@nnrp1.dejanews.com> (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



             reply	other threads:[~1998-08-16  4:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-08-16  4:00 cekim [this message]
1998-08-16  4:00 ` development/improvement of boot Michal Jaegermann
1998-08-16  4:00 ` Joachim Wesner
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