Re: Boot from one card only

Stefan Hajnoczi <[email protected]> Fri, 8 Jan 2010 09:34:41 +0000
Newsgroups gmane.network.etherboot.user
Message-ID <[email protected]>
Once started from a ROM, gPXE does not remember where it came from.
It will try to boot from all network interfaces for which you have a
driver built in.

There is high-level support in usr/autoboot.c to prioritize a
particular network interface but the find_boot_netdev function is
currently empty.  I think the way to implement it would be by storing
away the PCI device/function of the network card when the ROM entry
point gets called - the BIOS will pass it in %ax (see BIOS Boot
Specification).

For the time being, you can embed a gPXE script into your ROM that
boots from the particular card.  Documentation to get you started:
http://etherboot.org/wiki/scripting

Stefan

------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev