ufrisk / pcileech-fpga

FPGA modules used together with the PCILeech Direct Memory Access (DMA) Attack Software
913 stars 206 forks source link

Error: couldn't open pcileech_screamer_m2_top.bin #55

Closed ArcadeHustle closed 4 years ago

ArcadeHustle commented 4 years ago

Is there a binary build of pcileech_screamer_m2_top.bin so I don't have to go through all the nonsense of setting up Xilinx Vivado WebPACK 2019.2?

I can't get my new M2 screamer to recognize so I want to try to flash new firmware.

I also had to change the openOCD config to use "adapter driver", and ""adapter_khz" or it wasn't going to work.

adapter driver ftdi ftdi_vid_pid 0x0403 0x6011 ftdi_channel 0 ftdi_layout_init 0x0098 0x008b reset_config none

source [find cpld/xilinx-xc7.cfg] source [find cpld/jtagspi.cfg] adapter_khz 10000

proc fpga_program {} { global _CHIPNAME xc7_program $_CHIPNAME.tap }

Before changing those I got the following errors openocd -f openocd.cfg Open On-Chip Debugger 0.10.0+dev-01243-ge41c0f4-dirty (2020-05-19-19:08) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "jtag". To override use transport select . DEPRECATED! use adapter speed not adapter_khz fpga_program Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling" Info : clock speed 10000 kHz Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: xc7.tap: IR capture error; saw 0x3f not 0x01 Warn : Bypassing JTAG setup events due to errors Info : accepting 'telnet' connection on tcp/4444 jtagspi_init 0 bscan_spi_xc7a35t.bit jtagspi_program top.bin 0x0 fpga_program Error: JTAG scan chain interrogation failed: all ones Error: Check JTAG interface, timings, target power, etc. Error: Trying to use configured scan chain anyway... Error: xc7.tap: IR capture error; saw 0x3f not 0x01 Warn : Bypassing JTAG setup events due to errors Error: Unknown flash device (ID 0x00ffffff)

ArcadeHustle commented 4 years ago

With the proper config I see this error now

openocd -f flash_screamer.cfg Open On-Chip Debugger 0.10.0+dev-01243-ge41c0f4-dirty (2020-05-19-19:08) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html Info : auto-selecting first available session transport "jtag". To override use 'transport select '. Info : clock speed 10000 kHz Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0) Info : JTAG tap: xc7.tap tap/device found: 0x0362d093 (mfg: 0x049 (Xilinx), part: 0x362d, ver: 0x0) Info : Found flash device 'issi is25lp256d' (ID 0x0019609d) Warn : device needs paging or 4-byte addresses - not implemented Error: couldn't open pcileech_screamer_m2_top.bin auto erase enabled

ArcadeHustle commented 4 years ago

I see now that I am an idiot and you have simply moved your "releases" section outside of Git to mega.nz I was expecting the .bins to be here: https://github.com/ufrisk/pcileech-fpga/releases