Error: device data collection failed
Description
"root@beelink:~/PCILeechGen# sudo ./bin/pcileechgen check --bdf 0000:03:00.0 Checking device 0000:03:00.0...
[OK] Device found: 10ec:8125 Ethernet controller [OK] Config space readable: 4096 bytes [OK] IOMMU is enabled [OK] VFIO modules loaded [OK] IOMMU group: 20 [OK] Device is alone in its IOMMU group [OK] Power state: D0 (active) [WARN] Currently bound to "r8169" (will need unbinding)
Capabilities (5): [01] Power Management at offset 0x40 [05] MSI at offset 0x50 [10] PCI Express at offset 0x70 [11] MSI-X at offset 0xb0 [03] Vital Product Data at offset 0xd0
Extended Capabilities (7): [0001] Advanced Error Reporting at offset 0x100 [0002] Virtual Channel (No MFVC) at offset 0x148 [0003] Device Serial Number at offset 0x168 [0017] Unknown at offset 0x178 [0018] Latency Tolerance Reporting at offset 0x204 [001e] L1 PM Substates at offset 0x20c [000b] Vendor Specific at offset 0x21c
BARs: BAR0: io at 0xb000, size 256 B BAR2: mem64 at 0xbc000000, size 64 KB BAR4: mem64 at 0xbc010000, size 16 KB
--- Board Compatibility --- Donor Link: Gen2 (5.0 GT/s) x1 Donor DSN: 0x01000000684CE000
Compatible boards: [OK] PCIeSquirrel xc7a35tfgg484-2 x1 (exact match) [OK] ScreamerM2 xc7a35tcsg325-2 x1 (exact match) [OK] pciescreamer xc7a35tfgg484-2 x1 (exact match) [OK] EnigmaX1 xc7a75tfgg484-2 x1 (exact match) [OK] CaptainDMA_M2_x1 xc7a35tcsg325-2 x1 (exact match) [OK] CaptainDMA_M2_x4 xc7a35tcsg325-2 x4 [OK] CaptainDMA_35T xc7a35tfgg484-2 x1 (exact match) [OK] CaptainDMA_75T xc7a75tfgg484-2 x1 (exact match) [OK] CaptainDMA_100T xc7a100tfgg484-2 x1 (exact match) [OK] ZDMA xc7a100tfgg484-2 x4 [OK] GBOX xc7a35tfgg484-2 x1 (exact match) [OK] NeTV2_35T xc7a35tfgg484-2 x1 (exact match) [OK] NeTV2_100T xc7a100tfgg484-2 x1 (exact match) [OK] ac701_ft601 xc7a200tfbg676-2 x4 [OK] acorn xc7a200tfbg484-3 x4 [OK] litefury xc7a100tfgg484-2 x4 [OK] sp605_ft601 xc6slx45tfgg484-2 x1 (exact match)
Total: 17 boards
--- Summary --- [OK] Device is ready for firmware generation "
`root@beelink:~/PCILeechGen# sudo ./bin/pcileechgen build --bdf 0000:03:00.0 --board CaptainDMA_100T 2026/03/08 21:10:36 INFO target device bdf=0000:03:00.0 2026/03/08 21:10:36 INFO collecting donor device data 2026/03/08 21:10:36 INFO BAR read complete bar=2 bytes=4096 2026/03/08 21:10:36 INFO BAR read complete bar=4 bytes=4096 2026/03/08 21:10:36 INFO BAR profiled bar=2 active_registers=1024 2026/03/08 21:10:36 INFO BAR profiled bar=4 active_registers=1024 2026/03/08 21:10:36 INFO MSI-X detected vectors=32 table_bar=4 table_offset=0x0 pba_bar=4 pba_offset=0x800 2026/03/08 21:10:36 WARN BAR content is all 0xFF — device may be inaccessible or in D3 power state bar=2 bytes=4096 class=0x020000 2026/03/08 21:10:36 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
Build/generation failure
Device Context File
Doesn't make it that far
Windows Event Log
NA
Device Manager Error Details
NA
Terminal Output
root@beelink:~/PCILeechGen# dmesg | grep -e DMAR -e IOMMU [ 0.423345] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported [ 0.432552] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
this is the same root cause as #18. when the device is still bound to r8169, the bar memory reads through sysfs mmap can return 0xff because the kernel driver is actively managing the device.
i've pushed a fix that automatically enables pci memory space + bus master bits after vfio-pci bind, which should resolve this. make sure to update to the latest version and try again.
if you still hit issues, you can try manually:
sudo setpci -s 0000:03:00.0 COMMAND=0x06
before running the build command.