03-26-2018 08:44 AM
I have a customized zynq board which has 32 MB flash. I flash petalinux to qspi and linux boot up from qspi flash without a problem. I partition the flash as:
root@linux_pfa:~# cat /proc/mtd
dev: size erasesize name
mtd0: 00500000 00010000 "boot"
mtd1: 00020000 00010000 "bootenv"
mtd2: 00a80000 00010000 "kernel"
mtd3: 01060000 00010000 "spare"
Now I try to mount the partition mtd3 to jffs2 file system as:
mount -t jffs2 /dev/mtdblock3 flash
the mounting works and I can create a file and save to the partition.
The problem is that when I power cycle the board, the petalinux in the qspi cannot boot up any more, and I have to re-flash petalinux to qspi. What do I miss? I want to be able to mount a qspi partition jffs2 and save data to it. Please help, thanks.
03-28-2018 06:18 AM
Which flash chips are you using and is it using quad mode or dual-parallel or dual-stacked mode? Have seen a similar thing on a custom board where something in petalinux was clearing the 'quad' mode bit in the flash chip configuration register. It is a sticky bit that is set correctly by download but if petalinux clears it then on a power-down/reboot nothing works and the only option is to download the prog to flash again.
03-28-2018 09:12 AM
Thanks for the info. We use "micron,s25fl256s1" flash chip in spi-quad mode. Is there a way to prevent petalinux to clear the quad mod bit in the flash configuration register? or anyway to get around with the problem?
Thank you so much.