Hey,
Programming of the NOR Flash trough JTAG with the "SoC EDS Command shell" Which you can download from the altera website.
For this you need a NOR Flash that is supported by Altera. You can find the Supported Memory Devices in => "
https://www.altera.com/en_US/pdfs/literature/ug/ug_soc_eds.pdf ",on page 196.
If you have a Supported type, But still doesn't work. Check Your "BootSel settings" You can find the different settings => "
https://www.altera.com/content/dam/altera-www/global/en_US/pdfs/literature/hb/cyclone-v/cv_5400a.pdf " , PAge 4
WARNING, i have bricked a NOR flash one time. I got the readback of 0xFFFFFFFF. After replacing the NOR chip (Be sure that it is a Supported Memory Devices) it worked again.
For the 2Gbit with ID 22ba20. I had have contact with an application engineer from altera. Because, in the beginning i also used a different type (not Supported by altera).
But i don't think they will give the source code for the EDS tool. And i also think that altera won't support other devices in the near future. So my advice would be, replace it.
And if you want more Flash memory, Get a SLC NAND Or e.MMC NAND chip on there.
Cheers,
HidTec