Skip to content

Restore PCIE Configuration

Jong Hun Han edited this page Oct 24, 2013 · 2 revisions

Rebooting Issue

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.

Restoring PCIE Configuration Procedure

  1. Power on a host PC and prepare a bit image file for HW test.

  2. Program the FPGA with the bit image.

  3. Reboot the host PC. Run 'lspci -d:4244 -vxx'

  1. Load nf10.ko driver.

  2. Test HW configured with the bit image file.

  3. Generate another bit file.

  4. Program the FPGA with a new bit file.

  5. Without rebooting a host PC, run a script

$./pci_rescan_run.sh
This restores PCIE configuration as initial configuration.
  1. 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.

  2. Remove nf10.ko driver and load nf10.ko driver.

  3. 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.

Clone this wiki locally