Subject: Re: Boot ROM hacking
To: Andrew Gillham <gillhaa@ghost.whirlpool.com>
From: Matthias Drochner <M.Drochner@fz-juelich.de>
List: port-i386
Date: 12/17/1999 18:48:07
gillhaa@ghost.whirlpool.com said:
> Has anyone here done much with 'netboot' ROMs?

A lot. Works well.

> I suppose I should first test it on an EPROM on an expansion card
> first, but since the NCR BIOS works great stuffed in the BIOS, I
> thought I would try that first.

You could have a look at the header of the NCR BIOS extension
and check which additional headers (PCI or PnP or whatever) it uses.

> I created a 64K ROM

For expansion ROMs, this is too much in most cases. BIOSes
tend to ignore ROMs they don't find space for.
(You know, it must be within the ISA hole, even for PCI devs.)

> Anyway, I know what I want to do is a total hack, but my hope is
> to create a boot ROM that can support netbooting

Technically it should be possible, but indeed somewhat hackish.
Since there is normally no EEPROM or so to store configuration
data, it is hard to tell the code whether to netboot or diskboot
in a clean way. The devopen() function is the key point. (And make
sure you disable the filesystems of the other sort - the f_devdata
are different for disk/net.)

best regards
Matthias