Error trying to add a new board #1
-
Hi! First of all, thank you very much for your work; it is very impressive. I am trying to add a new board to the software, a Kintex7. Nevertheless, I am experiencing some difficulties. I created all the necessary folders and files. Concerning the fuzzer file, I reused the playground from the Basys3 because they share some specifications. I installed OpenOCD, and I even verified that it works correctly outside of the context of ConFuzz. However, when I try to call the main_fuzzer.py with the --board and --fuzzer-name arguments, I am experiencing the errors shown in the image. It seems to be an error with the TCP connexion I think... I would greatly appreciate it if you could help me. Thank you very much in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
Hi cmenendezzz, I think you are right, ConFuzz is not able to establish a TCP connection to the OpenOCD server after starting it. Are you sure the default TCP port (6666) is accessible? Maybe make sure that there are no OpenOCD processes running from previous tests. You could also try specifying a different port in src/constants.py. You could use the -d command line argument to start the fuzzer. This should print additional messages that could help. For example, the OpenOCD commands issued in the background. Try running them manually to verify they are running without errors. It looks like you are using Windows, maybe you could try to use a Linux environment to make sure this is not an OS-specific error. Kind regards, |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I just fixed the openocd issue erasing the 't' from the folder xc7k70 in 'static' ... :) |
Beta Was this translation helpful? Give feedback.
-
Very good, this looks much better. :) I guess your JTAG tap names are not aligned. Try setting the OPENOCD_TAP_NAME constant of your board to "xc7k70". Or modify your OpenOCD configuration to use a tap called xc7.tap. |
Beta Was this translation helpful? Give feedback.
-
Which board are you using? Can you post your openocd-xc7k70.cfg? You need to make sure the tap names are correct and a tcl function to program the board can be called (xc7_program $tap; for 7-series and xcu_program $tap; for UltraScale). These functions are included in OpenOCD by default. However, ConFuzz calls them using the OPENOCD_TAP_NAME constant (f"{CONSTANTS.BOARD_CONSTANTS.OPENOCD_TAP_NAME}_program $tap"). Therefore, you either have to change the tap name accordingly or create an alias that calls the respective program function. |
Beta Was this translation helpful? Give feedback.
-
It worked! Thank you very much! Here are the informations I used:
And the config. file:
i added thoses lines :
because i am using an ft2232 in order to communicate with the FPGA |
Beta Was this translation helpful? Give feedback.
Very good, this looks much better. :)
I guess your JTAG tap names are not aligned. Try setting the OPENOCD_TAP_NAME constant of your board to "xc7k70". Or modify your OpenOCD configuration to use a tap called xc7.tap.