Thanks for your reply. Now I used the patch command and it revelaed that /src/flash/nor/drivers.c was not patched. Since it was only two additional lines I added them manually. Now no errors and I can build OpenOCD without errors.
But I cannot communicate with the target or halt it. The bootstrap resistor is not present. Since I have only connected VTref, GND, TDI, TDO, TMS and TCK the reset configuration of my buspirate should not matter. Here is the interface config.I wonder what I am doing wrong.
Why connect VTref? Does the buspirate use it?
I'm not quite sure, but IIRC my WDR3600 did not have any voltage present on that pin. I did not need to connect it. What router model?
I never used the buspirate, only Rpi1/3. Maybe someone else here knows more?
What exactly did you do with your router? It might be necessary to pull the CS- or one of the Data-Pins of the Flash to ground while powering up the router and executing the initialization commands in OpenOCD. Depending on the flash-content it might prevent the CPU to halt otherwise.
There's some risk to damage the router though. Did not happen with mine, but I just want to point it out.
(Last edited by freezer2k on 9 Jun 2016, 23:22)