I wonder if there's anything useful in this (admittedly old) thread about the IPQ8064?
https://sourceforge.net/p/openocd/mailman/openocd-devel/thread/0e021734-0b7a-0cfa-8dc5-a810bb8c4...@suse.de/ 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