PCILeechGen
PCILeechGen copied to clipboard
Error: device data collection failed
Description
root@beelink:~/PCILeechGen# sudo setpci -s 0000:03:00.0 COMMAND=0x06
root@beelink:~/PCILeechGen# sudo ./bin/pcileechgen build --bdf 0000:03:00.0 --board CaptainDMA_100T
2026/03/09 14:40:04 INFO target device bdf=0000:03:00.0
2026/03/09 14:40:04 INFO collecting donor device data
2026/03/09 14:40:04 INFO BAR read complete bar=2 bytes=4096
2026/03/09 14:40:04 INFO BAR read complete bar=4 bytes=4096
2026/03/09 14:40:04 INFO BAR profiled bar=2 active_registers=1024
2026/03/09 14:40:04 INFO BAR profiled bar=4 active_registers=1024
2026/03/09 14:40:04 INFO MSI-X detected vectors=32 table_bar=4 table_offset=0x0 pba_bar=4 pba_offset=0x800
2026/03/09 14:40:04 WARN BAR content is all 0xFF — device may be inaccessible or in D3 power state bar=2 bytes=4096 class=0x020000
2026/03/09 14:40:04 WARN BAR content is all 0xFF — device may be inaccessible or in D3 power state bar=4 bytes=4096 class=0x020000
Error: device data collection failed: BAR content for class 0x020000 is all 0xFF (driver "r8169"). The device is not responding — possible causes:
• device is in D3 (sleep) power state
• IOMMU/VT-d not enabled or misconfigured
• VFIO cannot access the device memory region
Without valid BAR data, Windows will produce Code 10 and DMA will not work
Usage:
pcileechgen build [flags]
Flags:
--bdf string donor device BDF address (e.g. 0000:03:00.0)
--board string target FPGA board name (required, e.g. PCIeSquirrel)
--from-json string load donor device data from JSON file (offline build)
-h, --help help for build
--jobs int number of parallel Vivado jobs (default 4)
--lib-dir string path to pcileech-fpga library (default "lib/pcileech-fpga")
--output string output directory (default "pcileech_datastore")
--skip-vivado skip Vivado synthesis (only generate artifacts)
--timeout int Vivado synthesis timeout in seconds (default 3600)
--vivado-path string path to Vivado installation
device data collection failed: BAR content for class 0x020000 is all 0xFF (driver "r8169"). The device is not responding — possible causes:
• device is in D3 (sleep) power state
• IOMMU/VT-d not enabled or misconfigured
• VFIO cannot access the device memory region
Without valid BAR data, Windows will produce Code 10 and DMA will not work
Error Type
Code 10 (device cannot start)
Device Context File
NA
Windows Event Log
Device Manager Error Details
No response
Terminal Output
found the bug. when the device is on r8169, sysfs bar reads return 0xff but the tool was treating that as a success and never retrying through vfio. fixed it so 0xff reads now trigger auto rebind to vfio-pci and retry. please update and rebuild.