ufrisk / pcileech

Direct Memory Access (DMA) Attack Software
GNU Affero General Public License v3.0
4.72k stars 706 forks source link

Litefury + ft2232 vs AMD #241

Closed Kmakinator closed 1 year ago

Kmakinator commented 1 year ago

Hi, i read that this was a problem in the past, but right now i have it in Litefury vs AMD, it return what's below,

From what i already found this might be some handshake or device registration problem. Is there way for me to debug it somehow? Or it requires $100K logic analyzers? I'm not looking for ready solution (well maybe ;) ) because i want also to learn a bit about debugging such problems.

DEVICE: FPGA: ERROR: Unable to retrieve required Device PCIe ID [8,v4.9,0000]

----- FPGA DEVICE CONFIG REGISTERS: CORE-READ-ONLY     SIZE: 40 BYTES -----
0000    89 ab 00 00 28 00 00 00  04 09 08 00 00 00 00 00   ....(...........
0010    17 4d d8 81 00 00 00 00  44 4d d8 81 00 00 00 00   .M......DM......
0020    00 00 01 00 ff ff ff ff                            ........

----- FPGA DEVICE CONFIG REGISTERS: CORE-READ-WRITE    SIZE: 30 BYTES -----
0000    cd ef 04 00 1e 00 00 00  a0 86 01 00 00 00 00 00   ................
0010    ee 10 07 00 ee 10 66 06  02 3c 00 00 00 00         ......f..<....

----- FPGA DEVICE CONFIG REGISTERS: PCIE-READ-ONLY     SIZE: 0 BYTES -----

----- FPGA DEVICE CONFIG REGISTERS: PCIE-READ-WRITE    SIZE: 0 BYTES -----

----- PCIe CORE Dynamic Reconfiguration Port (DRP)  SIZE: 0x100 BYTES -----
0000    00 00 00 01 00 02 00 00  00 00 00 00 00 00 f0 00   ................
0010    ff ff 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
0020    00 00 00 00 00 00 00 00  00 00 00 40 00 00 00 00   ...........@....
0030    00 00 09 02 30 00 22 7f  02 00 01 00 00 03 11 0c   ....0." ........
0040    02 a1 00 43 01 00 1f fd  7f ff 09 ff 01 20 01 48   ...C.... .... .H
0050    00 05 01 60 11 9c 00 00  00 00 00 00 00 00 00 00   ...`............
0060    00 00 10 60 00 02 40 21  00 40 3d 48 00 23 00 00   ...`..@!.@=H.#..
0070    00 00 00 00 00 00 00 00  00 00 00 00 00 15 00 01   ................
0080    00 01 00 00 00 01 00 00  00 01 00 00 00 01 00 00   ................
0090    00 01 00 00 00 01 00 00  00 00 00 00 00 00 00 00   ................
00a0    00 00 00 00 00 00 00 00  00 02 00 00 12 34 10 18   .............4..
00b0    00 0b 00 01 00 11 00 00  00 00 00 00 00 01 00 00   ................
00c0    00 28 00 41 ff ff ff ff  00 e0 00 00 80 08 00 22   .(.A..........."
00d0    07 ff 03 52 02 48 00 08  00 40 0e 84 fa ac 00 00   ...R.H...@......
00e0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
00f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................

----- PCIe CONFIGURATION SPACE (no user set values) SIZE: 0x200 BYTES -----
0000    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
...
01f0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................

----- PCIe SHADOW CONFIGURATION SPACE (only user set values) SIZE: 0x1000 BYTES -----
0000    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
...
0ff0    00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00   ................
ufrisk commented 1 year ago

USB communication between the LiteFury and your PC is working fine.

The PCIe connection is not. You haven't had a PCIe id assigned from the host system. Reason unknown.

For AMD have a look at this (even tho it may not be your issue: https://github.com/ufrisk/LeechCore/wiki/Device_FPGA_AMD_Thunderbolt

Kmakinator commented 1 year ago

Thanks, for link (didn't help) but i have some success on my own. I've setup vendor/device class to Samsung 980 Pro SSD and it clicked after few restarts. Still not sure if it's glitch or it really helped.

Thanks again and take care

ufrisk commented 1 year ago

Awesome to see you managed to resolve it, and thanks for letting me know :)