From: "Peter Petrakis" <voodoo@alphadriven.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 20:57:22 -0500 [thread overview]
Message-ID: <ODEEIIAMNNHHFAMGOBAPMEMPCAAA.voodoo@alphadriven.org> (raw)
In-Reply-To: <Pine.LNX.4.21.0203051828430.29831-100000@spawn.hockeyfiend.com>
I've implied a couple definitions that may be confusing some folks.
DBLX is a firmware that is designed to
a) manage flash
b) linux bootloader
c) recover mechinism
BIOS in the Alpha world can be broken down into a few parts.
a) SROM, left untouched unless you are nuts.
b) firmware (aka SRM, ARC, MILO, & DBM)
c) the bios emulator capibilities exercised in b).
I'm concerned with b and c. Not a, well not right now anyways :-).
> 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.
Yes I remember those requirements. They where quite expansive although
if it where finished to the extent it was planned it would be quite
impressive and very powerful. My understanding and perspective at the time
was that the 2 kernel monty had some fundamental issues that where "tricky".
I suppose it has been a long time since I last used it, August.
> 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.
That's what you mean when you said "static".
> 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
Their DS10's work. I don't know what they did to the kernel to get there
but it works and they have a cluster of them running. It's actually at the
top of their list.
> 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 initialize
> 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 think you're right. About the only thing that mentions milo is under
arch/alpha/kernel .
voodoo@deadite:/usr/src/linux/arch/alpha/kernel$ grep -l -i milo *
process.c
setup.c
sys_ruffian.c
sys_sio.c
sys_sx164.c
traps.c
If you look at ruffian you find that it's implying that the previous
firmware did most of the setup for it. So yeah MILO will probably need to
fill out to 'turn on' the boards. We might as well follow the SRM
spec to avoid code duplication in the kernel although we could probably
setup the PCI layer better than SRM :-).
> 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 reinitialize 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).
I was referring to my revised BIOS definition subsection B. DBLX did
'not' go out of it's way to initialize the PCI config space on the bus or
assign IRQs for that matter and when it did it was 'only' under it test
mode.
I suspect if that was implemented those patches would have been unnecesarry.
Though you know better than I do ;-).
> 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.
Well it only took 2-3 mins to XMODEM over a full kernel or SRM at 115200
baud. For the rest of us it had to work and when it didnt DBLX had policy
that would let you recover 'without' physicaly touching the machine.
> 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.
Agreed.
> I love Alphas for that very reason. SROM, while being cryptic, does
> relieve the requirements on firmware quite a bit.
Nothing some good docs can't fix. Cryptic part. SROM is what gave Alpha the
freedom to support atleast 4 completely different OS; VMS,DU,NT,LINUX, and
what ever those Netapps run but their firmware is OpenBoot. Yes, Just like
SPARC.
> I think it would be more practical if flash was a socketed part, but even
sockets cost $$$. Take a look at a UX board. There is no socketed SROM like
all other Alphas, nor an obvious SROM port.
> 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.
Considering their perspective and the support they have it's going to be a
some time before that becomes a reputable alternative to PC BIOS.
> 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.
Groovy... >:->
"Now, Who's with me?!!!!"
....
"I'll stand by ye <raises furrowed eyebrow>"
"You can count on my steel <raises torch high>"
"A sword by your side! <sword raised high>"
"I'm with you!!! I'll bid my bow to your will sir!"
<others rumbling "me too">
"HAIL! HAIL! HAIL! HAIL!"
If I'm the only one laughing, it's not funny. ;-)
Peter
--
www.linuxalpha.org www.alphadriven.org
Peter Petrakis Warrior/Engineer voodoo@alphadriven.org
"<BLAM!!> Who the hell are you!? Name's Ash <click clock> Housewares..."
next prev parent reply other threads:[~2002-03-06 2:03 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
2002-03-06 1:57 ` Peter Petrakis [this message]
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