-
Notifications
You must be signed in to change notification settings - Fork 129
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'
-
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_rescan_run.sh
This restores PCIE configuration as initial configuration.
-
Run 'lspci -d:4244 -vxx'. Find out whether it shows PCIE configuration. If it does not show any PCIE configuration, you need to check DMA core used to generate the bit file.
-
Remove nf10.ko driver and load nf10.ko driver.
-
Test HW.
Now, the script command of ./pci_rescan_run.sh restores PCIE configuration, and a host PC can run HW test without reboot after programming the FPGA. It is also useful to use a script command of ./impact_run for programming FPGA. This script loads a bit image file and restores PCIE configuration. You can find in PCIE-Programming how the script can be used.