This method is intended for users who want to be able to reconfigure the FPGA but not re-boot the system, which is sometimes helpful when debugging problems. This is not intended to be used in an open system product. This is for Linux environments.
First issue a warm reset so that the system is up and running functionally. Then run the following command:
% cp /sys/bus/pci/deviced/0000:03:00:0/config myConfig
Where 03:00:0 is your own domain:bus:dev.func number that the BIOS chooses for you.
This will leave you with a file called myConfig with all the configuration data.
You can take a look at the content with the following command:
% od -x myConfig
Now the FPGA can be reconfigured using JTAG or some other method. To reinstate the PCIe configuration space in the endpoint, run the following command:
% cp myConfig /sys/bus/pci/devices/0000:03:00:0/config
The endpoint should be up and running now on your system.
10/08/2010 - Initial Release