UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Explorer
Explorer
7,771 Views
Registered: ‎06-22-2011

set root file system in qspi

hi all,

 

I don't have sd card on my board, so i need to set root file system in qspi flash.

Is it read-only or writable ?

 

I have another 4Gb qspi flash chip connected to PL, is there a common driver for it?

 

best regards

 

Chao Xiang

 

0 Kudos
3 Replies
Scholar sampatd
Scholar
7,765 Views
Registered: ‎09-05-2011

Re: set root file system in qspi

First, check if your flash device is supported:

http://www.xilinx.com/support/answers/50991.html

 

Zynq QSPI driver:

http://www.wiki.xilinx.com/Zynq+QSPI+Driver

 

AXI QSPI driver:

http://www.wiki.xilinx.com/Linux+SPI+Driver

 

You can use the command 'flashcp' to mount the rootfs on qspi. Please check the above mentioned links.

0 Kudos
Xilinx Employee
Xilinx Employee
7,745 Views
Registered: ‎07-23-2012

Re: set root file system in qspi

Zynq QSPI controller can't support a 4GB flash.
-----------------------------------------------------------------------------------------------
Please mark the post as "Accept as solution" if the information provided answers your query/resolves your issue.

Give Kudos to a post which you think is helpful.
0 Kudos
Scholar milosoftware
Scholar
7,741 Views
Registered: ‎10-26-2012

Re: set root file system in qspi

For read-only filesystem use squashfs. For read-write, use ubifs.

 

Most QSPI flash chips share the same protocols. You probably mean 4 gigabit, hence 512 megabyte? Dunno if that will work, the biggest I've used on the zynq was 64MB (512Mb). The chip must support 'paging'.

 

For larger memories you may want to use NAND flash instead. You can even use both, e.g. load bootloader and kernel from QSPI and then mount the root filesystem on NAND. That'd give you good boot times combined with cheap and large storage.

0 Kudos