Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: "Christopher C. Chimelis" <chris@debian.org>
To: axp-list@redhat.com
Cc: stepan@suse.de
Subject: Re: MILO vs Kernel in ROM;  WAS  Laundry List
Date: Tue, 5 Mar 2002 19:43:28 -0500 (EST)	[thread overview]
Message-ID: <Pine.LNX.4.21.0203051828430.29831-100000@spawn.hockeyfiend.com> (raw)
In-Reply-To: <ODEEIIAMNNHHFAMGOBAPIEMNCAAA.voodoo@alphadriven.org>

On Tue, 5 Mar 2002, Peter Petrakis wrote:

> Doing that double kernel boot isnt as easy as it sounds. I don't think
> DBLX fully supports it.

It's not as tricky as it seems to do a double kernel boot, though.  Eric
and I talked about doing it, but just lacked the time to implement it
(there were some fundamental problems to solve, but given time, I'm sure
those could be ironed out).  The advantages in a DBLX situation were
immense, especially since we could store a very small "static" kernel (one
that didn't change in configuration) in flash and use it to boot the final
kernel thereby saving quite a bit of flash.  The only real stumbling block
that we had to hurdle was the requirements that API set out for DBLX
(initrd, mostly, which seemed to always grow to fill the flash that we
would be saving).  If the initrd requirement was gone, I don't see many
other obstacles to prevent a "kernel booting a kernel" situation. 

Actually, I speak too loosely there, it should end up being more of a
stripped-down kernel that functions as an enhanced bootloader that, in
turn, boots another kernel.

> MILO is more akin to SRM but with interchangable
> driver support, You're not bound to the driver support for VMS :-). There is
> no reason MILO couldnt do everything SRM can, there is a spec in the AAH for
> the console. Now the LinuxBIOS project is going out of it's way to avoid
> BIOS
> initialization all together. This 'will' present problems because they're
> counting on the Linux device drivers to do the right thing with an
> uninialized BIOS.

If the LinuxBIOS guys are expecting a firmware-less Alpha to properly set
up PCI (especially PCI-PCI bridges on some boards) and interrupt routing,
they've got another thing coming :-P

Also, correct me if I'm not remembering correctly, but doesn't the current
kernel code rely on some things being already working?  I know that's the
case with the SRM-boot path, but am unsure about the MILO path since I
never had to work on those bits.  If that's the case, though, there will
have to be more code added to the kernel (maybe alot more) to initialise
each board type to something better than the "power-on" or
"reset" states.  That could probably will cost them in compiled kernel
size (this is really a problem for older boards, if memory serves me
correctly, since newer boards seemed to use more and more x86-market
parts).

> I'm pretty sure the PCI spec expects BIOS to be used as
> well, if not the functionality should be picked up in the driver. Which is
> not the case in Linux, most of the time. Just in the small set of hardware
> we used to QA DBLX we
> had to patch kernel drivers to solve 'weird' problems on boot and reboot.

Those patches weren't problems in the BIOS, though.  Those patches covered
problems in drivers that assumed entirely too much and never took the
safer way out (which would've been to reinitialise the device in
question).  Generic PCI code seemed pretty thorough in that regard,
though, so only a handful of drivers would've required modification (in my
experience, vendor-written drivers suffered from these problems quite a
bit since they knew the operation of their boards a bit too well on
x86...drivers written by third-parties usually erred on the safe side and
were ok with DBLX).

> MILO can serve as a console and be able to boot kernels from flash ontop of
> harddisk, floppy, and net. Once milo is fixed up some the direct boot option
> is a moot point to everyone except those who are in a cluster envirionment
> which is a minority. DBLX as developed for API's machine which all had 2MB
> flash took up by itself between 400-500K. That left room for TWO kernels or
> a kernel, backup DBLX, and SRM console. So if you're kernel failed to boot
> it would drop you back into the DBLX (firmware) and let you boot SRM or
> whatever else you want from there to recover. If you have only 1MB of flash
> and your stuck with the future MILO, your just waiting another 15 secs to
> boot. You are not losing any functionality.

Pete's absolutely correct about flash usage with DBLX.  Being the "let's
wing it because I know how to reflash this beast" kinda guy that I was
then, I tended to only use about 70% of flash, and that's with a full
monolithic kernel :-)  Since DBLX was designed with clusters in mind,
though, safety from trying to boot a bad kernel was a huge consideration
for API.

The MILO thing that Pete and I talked about the other day actually sounds
interesting, although I'm not convinced anymore that flashing a kernel is
such a good idea (too easy to really hose flash and make a system
virtually unbootable for anyone who doesn't have the proper cabling and
SROM knowledge).  Also, given what I've seen of people's nearly religious
habit of upgrading to the latest kernel with every released revision, I'm
really leaning towards the thinking of being able to flash a kernel as a
bad thing and more prone to problems than anything else.

> On Alpha it is relatively easy to boot linux from flash. It's when things go
> wrong, recovering from those failure modes is very difficult. We have a HUGE
> advantage over PCs because of how Alphas use SROM which does all of the
> critical
> setup for you. By critical I mean setting up the cache lines, turning over
> the northbridge, and memory tests (is it ECC, what's the SPD say?). If you
> totally NUKE your flash you can still recover you Alpha through SROM. All
> you need is power, a cpu, some RAM, and a custom serial cable. SROM can
> operate without RAM as well but you wont be able to load anything, thats
> beside the point.

I love Alphas for that very reason.  SROM, while being cryptic, does
relieve the requirements on firmware quite a bit.

> The poor guys at LinuxBIOS (on PCs) have to do the critical setup SROM does
> AND  jump to Linux. Just look at their news section
> http://www.acl.lanl.gov/linuxbios/news/index.html . Look at their major
> accomplishments like the dual athlon support and read in to what they had to
> fix to just get that far. Moreover they have NO firmware to control the boot
> process, none. The way they change kernels is to flash it in from Linux, if
> you can get there. If you fail you have to cut the flash off and burn it on
> a ROM burner, if you have one.  The one they use cost $1K,
> http://www.needhams.com/e30.html. Hmmm, Practical.

I think it would be more practical if flash was a socketed part, but even
still, it requires hardware that most people don't have.  I feel their
pain, though, WRT to bringing up dual CPU support on x86...PC BIOS
normally do quite a bit WRT getting the system properly running enough to
load the bootloader and kernel.  Without BIOS, they must be facing quite a
bit of work trying to replace that functionality.

> Now that I've rattled on for far too long let me summarize. MILO could fully
> support booting Linux from flash but MILO must retain it's current
> functionality. Once this is true, booting Linux from flash will be as
> reliable as it you boot it off a floppy or your HD.

True.  There is much that can be done with MILO and, after hearing Pete
describe what he had in mind, it sounds like a worthwhile project.

C




  reply	other threads:[~2002-03-06  0:43 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-04  6:57 Laundry List -- WAS "X on Alpha" Davies, Huw
2002-03-04 19:52 ` Peter Petrakis
2002-03-04 20:31   ` 'Bryce'
2002-03-04 21:28     ` Peter Petrakis
2002-03-05 15:24       ` alvin
2002-03-05 19:58         ` MILO vs Kernel in ROM; WAS Laundry List Peter Petrakis
2002-03-06  0:43           ` Christopher C. Chimelis [this message]
2002-03-06  1:57             ` Peter Petrakis
2002-03-06  2:52       ` Laundry List ... one more thing Ted Goodridge, Jr
2002-03-06 17:02         ` Michael A. Foley
2002-03-04 22:14     ` Laundry List -- WAS "X on Alpha" Michal Jaegermann
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