Boot cyclone V soc from NAND-flash
Hi, everybody!
I'm working with a SOM board (http://inmys.ru/products/som-cyclone-v-se) which has a QSPI-flash and a NAND-flash. I have no problems with booting from QSPI (I generated preloader_mkpimage.img, socfpga.dtb,u-boot.img,zImage, rootfs.jffs2 using different tools and programmed QSPI according to map shown in https://rocketboards.org/foswiki/Documentation/GSRD131QspiBoot). The problem is that HPS can't be rebooted using reboot command (from Linux command line) or by watchdog because QSPI must be reset when CPU is rebooting (see https://rocketboards.org/foswiki/Documentation/SocBoardQspiBoot), but there is no QSPI reset signal on the board...
Now I'm trying to program NAND-flash and boot Linux from it. After booting from SD-card I can see NAND partitions using command cat /proc/mtd, also nandtest -m /dev/mtdX command works normally. However, it's not clear what memory map to use for NAND. Is memory map for NAND from "Booting from NAND flash" - https://rocketboards.org/foswiki/Documentation/A10GsrdNandBootLTS#6 valid for Cyclone V? If so, how to generate 4x Uboot&U-Boot Device Tree Images? In cv_5400a (https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/cyclone-v/cv_5400a.pdf) it is only said that preloader images are located in the first 4 blocks of the device.
By now I've made several attempts to write files in NAND in different ways, but every time nothing at all happens.
I would be grateful if anyone clarifies NAND programming procedure (files generation, NAND address map, etc).