From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 29131 invoked from network); 30 Apr 1998 17:26:22 -0000 Received: from mail11.digital.com (192.208.46.10) by mail2.redhat.com with SMTP; 30 Apr 1998 17:26:22 -0000 Received: from tparch.tay1.dec.com (tparch.tay1.dec.com [16.119.0.10]) by mail11.digital.com (8.8.8/8.8.8/WV1.0d) with SMTP id NAA26259; Thu, 30 Apr 1998 13:26:11 -0400 (EDT) Received: from ives.amt.tay1.dec.com by tparch.tay1.dec.com (5.65/MS-010395) id AA11224; Thu, 30 Apr 1998 13:40:17 -0400 Received: from linux03.amt.tay1.dec.com by ives.amt.tay1.dec.com; (5.65v3.2/1.1.7.2/05Oct95-1258PM) id AA22902; Thu, 30 Apr 1998 13:26:08 -0400 Received: from linux03 (localhost [127.0.0.1]) by linux03.amt.tay1.dec.com (8.8.5/8.8.5) with ESMTP id NAA03197; Thu, 30 Apr 1998 13:27:33 -0400 Message-Id: <199804301727.NAA03197@linux03.amt.tay1.dec.com> X-Mailer: exmh version 1.6.9 05/05/96 To: andrewl@deliverator.io.com Cc: axp-list@redhat.com From: jestabro@amt.tay1.dec.com Subject: Re: MILO and PCI and BIOS ... gory details >LONG< In-Reply-To: Your message of Wed, 29 Apr 1998 23:23:58 -0500. <199804300423.XAA29648@deliverator.io.com> Mime-Version: 1.0 Content-Type: text/plain Date: Thu, 30 Apr 1998 13:27:33 +0500 Sender: jestabro@amt.tay1.dec.com >>> "Andrew P. Lentvorski" said: > First, we could use some help here with creating a 2.1.X version of MILO. > It would probably make Jay Estabrook's job a lot easier support wise. Hallelujah! ;-} > The upshot of this is that AlphaBIOS does a clean init of all the board > BIOS ROM's and should work with all boards currently cupported under NT Alpha. > This gets you to a nice default state. Yes, mostly; AlphaBIOS may enable the BIOS ROM for the emulation, but then disable it when the emulation is done. This can cause problems with Xservers, as many seem to require access to the BIOS ROM for mode tables and info. I don't know how this should be attacked for multi-head situations; I guess you could place the ROMS at different addresses via the PCI Config space address register for this use... > The reason BIOS emulation was needed in earlier MILO's is that you could > blow it into the flash ROM and completely replace any other bootloader. Correct. > Flashing milo is no longer a terribly good option. > It may work fine, but it will probably be more work than it is worth as > newer hardware comes online. Correct also. > 2) After AlphaBIOS kicks up, you can activate linload.exe to boot the milo > image. I don't (yet) know what linload.exe is specifically doing as I > haven't looked at (and may not be able to get) code for it. However, it > just seems to set up some basic processor/chipset interaction state, nothing > having to do with the BIOS. You can't get code for linload.exe, as it is encumbered in some way that makes this illegal. Indeed, it's not rocket science, but does have it's complexities: 1. interact with ARC/AlphaBIOS to get the Boot Selection details, and original boot device, along with some HW details such as memory size, and utilize the console routines to read the indicated MILO file. 2. do the necessary "swap-to-PAL" to go from NT-PALcode to the EBSDK PALcode contained within MILO, which is required for correct MILO and LINUX kernel operation. > 3) PALCode--Again, I haven't looked at it too closely, but it looks like it > just sets up some very basic system functionality and then throws execution > over to MILO. There doesn't seem to be any PCI board initialization here. > Just some initialization related to the specifics of the processor/chipset > (ie. EV56/Pyxis for my LX164 board) like memory mappings, etc. so that you > can activate the linux kernel. There doesn't appear to be anything related > to BIOS in here. All correct. > MILO uses some "old" versions > of drivers to create effectively a mini Linux kernel. (Any volunteers > to bring these drivers up to 2.1.9X+?) MILO uses the drivers from the kernel build you point it at; it's one of the better reasons for porting MILO to later kernel revs, rather than the other way around. > The only use that MILO makes of > BIOS emulation routines is to "reinitialize" the vga graphics controller. Correct. > The "current" version of the Digital emulation library appears not to be > "new" enough to run the BIOS in the Millenium II cards. AFAIK, this is not true; I've used a Mill II on an LX successfully, and others have used them in other platforms as well (MIATA for one, prolly SX too). > Surprisingly, the downloadable milo > binaries DO initialize a Millenium II card. I have asked Jay about the > discrepancy, but am still waiting for an answer If you're building MILO under RH 5.0, you can't be including the DEC BIOS emulator, as there are problems with that combination. The free X86 emulator is indeed not up to the task, AFAIK, and that's what you're seeing, I think. > However, the downloadable binary > is NOT strong enough to handle two Millenium II cards. This is prolly true of two *anything* cards... :-\ > Thus, if I can > tear the vga bios emulation out and replace it with straight-up vga reset > commands, I can leverage the nice, strong AlphaBIOS emulator and not use > any BIOS emulation at all in MILO. Absolutely; I'd give this a try under RH 5.0 with those latest MILO sources against 2.0.30 that I put in the Kernels/ directory on gatekeeper. You'll need to change only a couple of things to get rid of the emulator, but you will need to rebuild a few of the ancillary binaries that come in 4.2 format that won't execute under 5.0. I don't think there's a true need to go so far as porting to 2.1.xx, at least for now, as that's still a moving target, to some extent. > Hopefully, I can shamelessly copy some > code from svgalib to just change the mode to 80x25 basic text and > then get on with working on debugging X. Perhaps not necessary, but keep it in mind, as the methods for managing the screen memory and scrolling may differ between AlphaBIOS and MILO/kernel, which may indeed require a bit of "reset" type fiddling... > Hopefully, I can patch the > milo code to dump the x86 emulation code completely. This will, however, > completely demolish using methods other than AlphaBIOS to boot Linux. This > should probably be part of a milo-2.1.X rewrite. I'd happily accept patches against 2.0.xx sources for such an option... :-) --Jay++ ------------------------------------------------------------------------------- American Non Sequitur Society: we don't make sense, but we do like pizza... Jay A Estabrook Alpha Migration Tools - LINUX Project Digital Equipment Corp. (978) 506-4202 or (DTN) 226-4202 151 Taylor Street - TAY1-2 enet: Jay.Estabrook@digital.com Littleton, MA 01460-1407 -------------------------------------------------------------------------------