cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
robertzhen
Visitor
Visitor
665 Views
Registered: ‎03-26-2018

Petalinux fails to boot after mounting a qspi partition to jffs2 file system

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:

mkdir flash

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.

 

 

0 Kudos
2 Replies
mb1000
Visitor
Visitor
599 Views
Registered: ‎01-12-2018

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.

0 Kudos
robertzhen
Visitor
Visitor
587 Views
Registered: ‎03-26-2018

Hi MD,

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.

 

0 Kudos