Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* UDB flash and failsafe loader experiments
@ 1996-10-29 10:01 Eric Smith
  0 siblings, 0 replies; 2+ messages in thread
From: Eric Smith @ 1996-10-29 10:01 UTC (permalink / raw)


Now that DEC has made the Multia/UDB Failsafe Loader and Firmware Update
disk images available:
	ftp://ftp.digital.com/pub/DEC/Alpha/firmware/interim/udb/

I decided to start experimenting with the Flash, with the goal of eventually
running Milo from flash (as is commonly done on some other platforms).

The UDB has three Intel 28F020 flash chips, each of which store 256 Kbytes.
The SRM console firmware normally occupies the first two chips, and the ARC
console normally occupies the third.

The SRM console knows the three chips as the files rom0flash, rom1flash, and
rom2flash.  It also knows the first two together as roms01flash, the last two
together as roms12flash, and all three together as roms012flash.  And srmflash
and arcflash may be used in place of roms01flash and rom2flash (even if you
rearrange the flash contents).

From the SRM console, I found that I could save the current flash contents
to a formatted floppy (FAT filesystem) by giving these commands:

>>>cat srmflash >fat:srm.exe/dva0
>>>cat arcflash >fat:arc.exe/dva0

I've always wondered why the UDB boots SRM first, then switches to ARC.  So I
experimented with swapping the order of the firmware by using the update
command.

After power cycling the UDB, it went directly into ARC.  I surmise that the SROM
code jumps to the first valid firmware image that it can find.  Perhaps it even
requires that the boot image resides at the start of flash; I didn't try wiping
out rom0flash.

However, you probably don't want to do this because there doesn't appear to be
any way to get the ARC console to load and execute the SRM console.  With this
flash configuration if you tell ARC to set the default environment to Unix or
VMS, it claims to do it.  But when you try to reboot, you still get arc.

I then tried the fail safe loader.  By moving a jumper from W10 to W11 (in a
VX42, for a VX40 move the jumper from W8 to W7), the system booted SRM from the
fail safe loader disk.  I was then able to restore my original flash contents
by giving these commands:

>>>update -path fat:srm.exe -target srmflash
>>>update -path fat:arc.exe -target arcflash

And everything was back to normal.

Now that I am confident that I can reload the flash if I screw it up, I'm
going to try to get Milo and FMU to use it.

Cheers,
Eric

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: UDB flash and failsafe loader experiments
       [not found] <19961029100127.7445.qmail@brouhaha.com>
@ 1996-10-29 14:29 ` jestabro
  0 siblings, 0 replies; 2+ messages in thread
From: jestabro @ 1996-10-29 14:29 UTC (permalink / raw)


>>> Eric Smith said:
> 
> And everything was back to normal.

Nice going! :-)

> Now that I am confident that I can reload the flash if I screw it up, I'm
> going to try to get Milo and FMU to use it.

OK, just a short word of caution here, nothing that should stop you, just
prepare you... :-)

You may very well run into problems that we (Dave Rusling and I) sort-of
pushed under the rug, and decided to depend on ARC or SRM setting up
correctly for the particular platform it is running on/was built for. Things
that a FLASHed MILO *will* need to know/do.

I'll give you an example:

The UDB design was based *very* heavily on the NONAME; because of this, it
took us hardly any time to get the UDB support going (most of the work was
TGA-related, both console and X). But its not *exactly* the same, as we came
to find out the hard way. Around 1.3.90 or so, I tried to use a vt100
attached to the serial port of a UDB. *Very* strange behavior: 16 character
bursts separated by 10 second pauses. Totally unusable. Interrupts were
being completely lost, and hardware resets after timeouts were flushing the
(16 character :-) UART FIFO.

Seems that the UDB designers decided that the serial interrupts would be
*level* triggered (like normal PCI interrupts), rather than the more standard
edge triggered (E)ISA. Go figure.

In the PCI bus probe/setup code of the kernel at that time, we'd clear the
edge/level mask to all zeros (edge), then set the appropriate bits when we
found a PCI bus device needing an interrupt. This was fine on NONAME, not
on UDB. So, rather than clear the entire mask, we'd first *read* the mask
and clear only those bits that could only have a PCI interrupt assigned to
them (9, 10, 11, and 15, IIRC), and then set about finding the PCI devices,
etc.

Voila. Same code would then work on UDB and NONAME. *But* we were depending
on the kindness of strangers (ARC and SRM).

So, be prepared... :-)

--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.                 (508) 952-4202 or (DTN) 227-4202
151 Taylor Street - TAY1-2              enet: jestabro@amt.tay1.dec.com
Littleton, MA 01460-1407                decnet: tallis::jestabro
-------------------------------------------------------------------------------

--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1996-10-29 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <19961029100127.7445.qmail@brouhaha.com>
1996-10-29 14:29 ` UDB flash and failsafe loader experiments jestabro
1996-10-29 10:01 Eric Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox