openocd: 0.11.0 jtagspi driver doesn't work properly with n25q256
When we use the current stable 0.11.0 of openocd on our Sinara controllers (Kasli, Metlino, Sayma, etc.), the wrong SPI commands will be sent because the on-board flash device, Micron 256Mb NOR flash (equivalent to
n25q256 in openocd source code due to matching device ID), is defined with 4-byte addressing SPI commands (since commit ntfreak@
42f1cc57) while the jtagspi driver is only compatible with the standard 3-byte addressing mode. IMO the ARTIQ package should take care of this.
To my knowledge, there are 4 types of workaround:
Fix in openocd upstream: this is being discussed over http://openocd.zylin.com/#/c/4876/.
Adopt jordens' fix: modify m-labs/openocd@
1739532081to resolve conflicts with openocd upstream.
Revert recent changes to nix-scripts (e.g.
c9efc20aeb): It is at least safe to use our own fork on the older openocd 0.10.0 with proxy bitstream support.
Deleting a branch is permanent. It CANNOT be undone. Continue?