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!

Showing results for 
Search instead for 
Did you mean: 
Visitor kingkong_529
Registered: ‎07-17-2017

Is there some ZC706 qspi flash example program,example test step which is succeed?


I have problem when test ZC706 qspi flash refer to "http://www.wiki.xilinx.com/Zynq+QSPI+Driver".
I have config the kernel refer to "Xilinx QSPI Driver Kernel Configuration"
I have config the device tree refer to "Devicetree Settings", and I change the string from "compatible = "n25q128""
to "compatible = "n25q128a11"".
And then,I can find the partitions with the command "cat /proc/mtd":

dev: size erasesize name
mtd0: 00e00000 00020000 "qspi-fsbl-uboot"
mtd1: 00500000 00020000 "qspi-linux"
mtd2: 00020000 00020000 "qspi-device-tree"
mtd3: 00ce0000 00020000 "qspi-rootfs"
mtd4: 00000000 00000000 "qspi-bitstream"

the linux boot log is follow:

m25p80 spi0.0: found s25fl128s, expected n25q128a11
m25p80 spi0.0: s25fl128s (32768 Kbytes)
5 ofpart partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000100000 : "qspi-fsbl-uboot"
0x000000100000-0x000000600000 : "qspi-linux"
0x000000600000-0x000000620000 : "qspi-device-tree"
0x000000620000-0x000000c00000 : "qspi-rootfs"
0x000000c00000-0x000001000000 : "qspi-bitstream"


# flashcp -v ./sample.bin /dev/mtd3
Erasing block: 1/32 (3%) random: nonblocking pool is initialized
Erasing block: 32/32 (100%)
Writing kb: 4096/4096 (100%)
Verifying kb: 0/4096 (0%) flashcp: verification mismatch at 0x0

It is Verifying failed。

There is two problem:
1.the rang of the adress show in "cat /proc/mtd" are not the same with the devicetree and the boot log.
2.flashcp verifying failed.

Is there something wrong with my step ?and Is there example program and example test step which is succeed on
ZC706 ?

0 Kudos
1 Reply
Xilinx Employee
Xilinx Employee
Registered: ‎08-01-2008

Re: Is there some ZC706 qspi flash example program,example test step which is succeed?

you can find example design here
Thanks and Regards
Please mark the post as an answer "Accept as solution" in case it helped resolve your query.
Give kudos in case a post in case it guided to the solution.
0 Kudos