Skip to content

Restore PCIE Configuration

Jong Han edited this page Jun 19, 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. Run a script file:
./pci_save_restore.sh save dma
This saves PCIE configuration information in /tmp directory. 
  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_save_restore.sh restore dma
This restores PCIE configuration as initial configuration. 
  1. Remove nf10.ko driver and load nf10.ko driver.

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

Clone this wiki locally