I wonder if there's anything useful in this (admittedly old) thread about the IPQ8064?
https://sourceforge.net/p/openocd/mailman/openocd-devel/thread/[email protected]/ Bear in mind that some aspects of OpenOCD (e.g. script command names etc.) may have changed since this thread was posted. I wonder if you need some sort of "init" or "reset" in your script when connecting? There may be other relevant info in the mailing list archives: https://sourceforge.net/p/openocd/mailman/search/?q=ipq8065&mail_list=openocd-devel
