On Sat, Jan 23, 2016 at 12:24:38AM +0000, Bob Moore wrote:
I'm new to qemu/seabios and am in the process of developing an
option rom for a pcie device. I want to use seabios as a driver for
debugging this code. I see documentation that says I can put my
option rom into a file with name of the form pciVVVV,DDDD.rom to
contain my compiled/linked code that will be used when the device
having that VendorID/DeviceId is processed in init_pcirom(). The
lookup_hardcode() call looks for this file on a list via
romfile_find(). The list looks to be populated from FW_CFG_FILE_DIR
but I can't seem to find where the entries on this list actually
come from. Is there a specific directory in the qemu project that
is configured to contain these entries? Or maybe these are just
configured in a file someplace?
Any help would be greatly appreciated.
As discussed offline, it's possible to use the qemu command line
-option-rom option. Alternatively, one can place the rom in fwcfg
directly via the -fw_cfg command line option. If you're writing qemu
code the fw_cfg_add_file() function is also available.
HGST E-mail Confidentiality Notice & Disclaimer:
This e-mail and any files transmitted with it may contain confidential or legally
privileged information of HGST and are intended solely for the use of the individual or
entity to which they are addressed. If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance on it, is
prohibited. If you have received this e-mail in error, please notify the sender
immediately and delete the e-mail in its entirety from your system.
This email was sent to a public email list.