element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Avnet Boards Forums
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Software Application Development Why flashcp can not control QSPI flash!
  • Forum
  • Documents
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Avnet Boards Forums to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 1 reply
  • Subscribers 310 subscribers
  • Views 1516 views
  • Users 0 members are here
Related

Why flashcp can not control QSPI flash!

Former Member
Former Member over 12 years ago

My linux is 3.3.0 from http://git.xilinx.com and i found the driver of QSPI to be located at  /driver/spi/spi-xilinx-qps.c.

The flash is s25fl256s1 of spansion. My dts file about qspi is follow.



qspi0: spi@e000d000 {
   compatible = "xlnx,ps7-qspi-1.00.a";
   reg = <0xE000D000 0x1000>;
   interrupts = <0 19 0>;
   interrupt-parent = <&gic>;
   speed-hz = <200000000>;
   bus-num = <1>;
   num-chip-select = <1>;
   #address-cells = <1>;
   #size-cells = <0>;
   is-dual = <0>;
   flash@0 {
   compatible = "s25fl256s1";
   reg = <0x0>;
   spi-max-frequency = <50000000>;
   #address-cells = <1>;
   #size-cells = <1>;
   partition@qspi-fsbl {
    label = "qspi-fsbl";
    reg = <0x0 0x80000>;
    };
   partition@qspi-u-boot {
    label = "qspi-u-boot";
    reg = <0x80000 0x80000>;
    };
   partition@qspi-linux {
    label = "qspi-linux";
    reg = <0x100000 0x500000>;
    };
   partition@qspi-device-tree {
    label = "qspi-device-tree";
    reg = <0x600000 0x20000>;
    };
   partition@qspi-user {
    label = "qspi-user";
    reg = <0x620000 0xE0000>;
    };
   partition@qspi-scratch {
    label = "qspi-scratch";
    reg = <0x700000 0x100000>;
    };
   partition@qspi-rootfs {
    label = "qspi-rootfs";
    reg = <0x800000 0x800000>;
    };
   };



The linux boot information is follow:



m25p80 spi1.0: s25fl256s1 (32768 Kbytes)                                                                                          
5 ofpart partitions found on MTD device spi1.0                                                                                     
Creating 5 MTD partitions on "spi1.0":                                                                                             
0x000000000000-0x000000500000 : "qspi-boot"                                                                                         u001E
0x000000500000-0x0000007c0000 : "qspi-linux"
0x0000007c0000-0x000000800000 : "qspi-device-tree"
0x000000800000-0x000000c00000 : "qspi-rootfs"
0x000000c00000-0x000001000000 : "qspi-user"                                                                                        
xqspips e000d000.spi: at 0xE000D000 mapped to 0xE0862000, irq=51   



mnt # flashcp -v ramdisk8M.image.gz  /dev/mtd4
Erasing blocks: 51/51 (100%)
Writing data: 3257k/0k (100%))
Verifying data: 10k/0k (3257%)File does not seem to match flash data. First mismatch at 0x00000000-0x00002800



The flashcp command seemed not work well and i read the mtdblock use "sf read" command in u-boot comfirm that  write unsuccessfully.

I don't know where is wrong, have the driver of spi-xilinx-qps.c some problems?

Can anyone give me some suggest?Thank!

  • Sign in to reply
  • Cancel
  • Former Member
    0 Former Member over 12 years ago

    I encounter the same problem with kernel 3.5, it appears the flash cannot be erased from Linux, though simply reading it seems to work.

    I tried lowering the SPI speed, but that did not help.

    Has anyone stumbled upon a solution or is the QSPI permanently borked on the zedboard?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube