element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Issue with uboot 2016.2 and QSPI
  • 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 3 replies
  • Subscribers 329 subscribers
  • Views 288 views
  • Users 0 members are here
Related

Issue with uboot 2016.2 and QSPI

Former Member
Former Member over 9 years ago

Hi,

I am running custom Linux 4.4 on a Picozed with a custom carrier.

I have recently upgraded to U-boot 2016.2 from 2015.2 and have attempted to make the transition from the config based setup to the devicetreein u-boot.

I have come across this issue:

U-Boot 2016.01-dirty (Sep 06 2016 - 16:24:18 +1200)

Model: Zynq PicoZed Board
Board: Xilinx Zynq
DRAM:  ECC disabled 0 Bytes
MMC:   sdhci@e0100000: 0, sdhci@e0101000: 1
*** Warning - spi_flash_probe() failed, using default environment

In:    serial@e0000000
Out:   serial@e0000000
Err:   serial@e0000000
Model: Zynq PicoZed Board
Board: Xilinx Zynq
Net:   ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0
Copying Linux from QSPI flash to RAM...
Failed to initialize SPI flash at 0:0 (error -2)

------------------

----

Anyone able to help?  Is there anything obvious I am doing wrong?

 

Thanks,

 

Tim

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

    Here is my uboot devicetree

    /dts-v1/;
    #include "zynq-7000.dtsi"

    / {
        model = "Zynq PicoZed Board";
        compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

        aliases {
            serial0 = &uart0;
                    spi0 = &qspi;
                    mmc0 = &sdhci0;                
                    mmc1 = &sdhci1;
        };

        memory {
            device_type = "memory";
            reg = <0 0x40000000>;
        };
    };

    &clkc {
            ps-clk-frequency = <33333333>;
    };

    &uart0 {
        u-boot,dm-pre-reloc;
        status = "okay";
    };

    &qspi {
            u-boot,dm-pre-reloc;
            status = "okay";
            is-dual = <0x0>;
            num-cs = <0x1>;

            flash@0 {
                    compatible = "micron,n25q128a13";
                    reg = <0x0>;
                    spi-tx-bus-width = <0x1>;
                    spi-rx-bus-width = <0x4>;
                    spi-max-frequency = <0x2faf080>;
                    #address-cells = <0x1>;
                    #size-cells = <0x1>;

                    partition@qspi-bootimage {
                            label = "qspi-bootimage";
                            reg = <0x0 0x600000>;
                    };

                    partition@qspi-kernel {
                            label = "qspi-kernel";
                            reg = <0x600000 0x500000>;
                    };

                    partition@qspi-device-tree {
                            label = "qspi-device-tree";
                            reg = <0xb00000 0x80000>;
                    };

                    partition@qspi-bootargs {
                            label = "qspi-bootargs";
                            reg = <0xb80000 0x80000>;
                    };

                    partition@qspi-bootscript {
                            label = "qspi-bootscript";
                            reg = <0xc00000 0x40000>;

                   };

                    partition@qspi-rootfs {
                            label = "qspi-rootfs";
                            reg = <0xc40000 0x3c0000>;
                    };        
            };
    };


    &gem0 {
            status = "okay";
            phy-mode = "rgmii-id";
            phy-handle = <&ethernet_phy>;

            ethernet_phy: ethernet-phy@0 {
                    reg = <0>;
            };
    };

    &sdhci0 {
            u-boot,dm-pre-reloc;
            status = "okay";
    };

    &sdhci1 {
            u-boot,dm-pre-reloc;
            status = "okay";
    };

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • Former Member
    0 Former Member over 9 years ago

    Here is my uboot devicetree

    /dts-v1/;
    #include "zynq-7000.dtsi"

    / {
        model = "Zynq PicoZed Board";
        compatible = "xlnx,zynq-picozed", "xlnx,zynq-7000";

        aliases {
            serial0 = &uart0;
                    spi0 = &qspi;
                    mmc0 = &sdhci0;                
                    mmc1 = &sdhci1;
        };

        memory {
            device_type = "memory";
            reg = <0 0x40000000>;
        };
    };

    &clkc {
            ps-clk-frequency = <33333333>;
    };

    &uart0 {
        u-boot,dm-pre-reloc;
        status = "okay";
    };

    &qspi {
            u-boot,dm-pre-reloc;
            status = "okay";
            is-dual = <0x0>;
            num-cs = <0x1>;

            flash@0 {
                    compatible = "micron,n25q128a13";
                    reg = <0x0>;
                    spi-tx-bus-width = <0x1>;
                    spi-rx-bus-width = <0x4>;
                    spi-max-frequency = <0x2faf080>;
                    #address-cells = <0x1>;
                    #size-cells = <0x1>;

                    partition@qspi-bootimage {
                            label = "qspi-bootimage";
                            reg = <0x0 0x600000>;
                    };

                    partition@qspi-kernel {
                            label = "qspi-kernel";
                            reg = <0x600000 0x500000>;
                    };

                    partition@qspi-device-tree {
                            label = "qspi-device-tree";
                            reg = <0xb00000 0x80000>;
                    };

                    partition@qspi-bootargs {
                            label = "qspi-bootargs";
                            reg = <0xb80000 0x80000>;
                    };

                    partition@qspi-bootscript {
                            label = "qspi-bootscript";
                            reg = <0xc00000 0x40000>;

                   };

                    partition@qspi-rootfs {
                            label = "qspi-rootfs";
                            reg = <0xc40000 0x3c0000>;
                    };        
            };
    };


    &gem0 {
            status = "okay";
            phy-mode = "rgmii-id";
            phy-handle = <&ethernet_phy>;

            ethernet_phy: ethernet-phy@0 {
                    reg = <0>;
            };
    };

    &sdhci0 {
            u-boot,dm-pre-reloc;
            status = "okay";
    };

    &sdhci1 {
            u-boot,dm-pre-reloc;
            status = "okay";
    };

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
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