-
Notifications
You must be signed in to change notification settings - Fork 125
Restore PCIE Configuration
This page describes restoring PCIE configuration to avoid a host PC reboot. In the projects, after succeeding to generate a bit file, a host PC needs to be rebooted after programming FPGA with the bit file. This reboot is needed because of disappeared a part of the host PC PCIE configuration after the programming. While a host PC is rebooted, one scans all hardware configured, then the FPGA PCIE configuration is restore. This rebooting issue can be resolved by workaround with some scripts.
-
Power on a host PC and prepare a bit image file for HW test.
-
Program the FPGA with the bit image.
-
Reboot the host PC. Run 'lspci -d:4244 -vxx'

- Run a script file:
./pci_save_restore.sh save dma
This saves PCIE configuration information in /tmp directory.
-
Load nf10.ko driver.
-
Test HW configured with the bit image file.
-
Generate another bit file.
-
Program the FPGA with a new bit file.
-
Without rebooting a host PC, run a script
$./pci_save_restore.sh restore dma
This restores PCIE configuration as initial configuration.
-
Remove nf10.ko driver and load nf10.ko driver.
-
Test HW.
Now, with the script command of ./pci_save_restore.sh restore dam, a host PC can run a test without reboot after programming the FPGA.