From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 78EE43EC09 for ; Tue, 5 Mar 2002 19:43:32 -0500 (EST) Received: from lacrosse.corp.redhat.com (IDENT:root@lacrosse.corp.redhat.com [172.16.52.154]) by localhost.localdomain (8.11.6/8.11.6) with ESMTP id g260hWq19231 for ; Tue, 5 Mar 2002 19:43:32 -0500 Received: (from mail@localhost) by lacrosse.corp.redhat.com (8.11.6/8.9.3) id g260hVE20285 for axp-list@listman.redhat.com; Tue, 5 Mar 2002 19:43:31 -0500 Received: from localhost.localdomain (int-mx1.corp.redhat.com [172.16.52.254]) by lacrosse.corp.redhat.com (8.11.6/8.9.3) with ESMTP id g260hUG20277 for ; Tue, 5 Mar 2002 19:43:30 -0500 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by localhost.localdomain (8.11.6/8.11.6) with SMTP id g260hUq19225 for ; Tue, 5 Mar 2002 19:43:30 -0500 Received: from spawn.hockeyfiend.com (mail@dsl092-073-086.bos1.dsl.speakeasy.net [66.92.73.86]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id g260gVq07961 for ; Tue, 5 Mar 2002 19:42:32 -0500 Received: from chris (helo=localhost) by spawn.hockeyfiend.com with local-esmtp (Exim 3.34 #1 (Debian)) id 16iPWi-0007qW-00; Tue, 05 Mar 2002 19:43:28 -0500 Date: Tue, 5 Mar 2002 19:43:28 -0500 (EST) From: "Christopher C. Chimelis" X-Sender: chris@spawn.hockeyfiend.com To: axp-list@redhat.com Cc: stepan@suse.de Subject: Re: MILO vs Kernel in ROM; WAS Laundry List In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Loop: axp-list@redhat.com Sender: axp-list-admin@redhat.com Errors-To: axp-list-admin@redhat.com X-BeenThere: axp-list@redhat.com X-Mailman-Version: 2.0.1 Precedence: bulk Reply-To: axp-list@redhat.com List-Help: List-Post: List-Subscribe: , List-Id: Linux and Red Hat on Alpha processors List-Unsubscribe: , List-Archive: 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