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 MiniZed with minimal Petalinux: no USB mass storage
  • 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 Verified Answer
  • Replies 2 replies
  • Subscribers 328 subscribers
  • Views 1018 views
  • Users 0 members are here
Related

MiniZed with minimal Petalinux: no USB mass storage

unicyclebloke
unicyclebloke over 6 years ago
I am trying to create a minimal PetaLinux 2017.4 image which will boot from the QSPI like in Avnet's Integrating Sensors Lab 1 and allow copying from the MiniZed's USB drive.

I worked through Lab 1, but it relies on a pre-built BSP and gives no explanation of how the BSP was created. I want to understand the toolchain better than that. The QSPI only installation is used to bootstrap an eMMC image via USB in Lab 2.

It seems that I can simply import the hardware definition into my Petalinux project, do a little configuration, and build. No BSP required.

This worked fine, and I installed the image and it boots fine. But I can't see the USB drive anymore.

I'm new to building Linux, and have no idea what I've missed. In Vivado, USB0 is enabled the PS. In MenuConfig, the kernel appears to have all the right options turned on for USB support (http://www.wiki.xilinx.com/Zynq+Linux+USB+Device+Driver). I don't know anything about device trees, but zynq-7000.dtsi has a section like this:

        usb0: usb@e0002000 {
            compatible = "xlnx,zynq-usb-2.20a", "chipidea,usb2";
            status = "disabled";         <<<<<< This looks suspicious
            clocks = <&clkc 28>;
            interrupt-parent = <&intc>;
            interrupts = <0 21 4>;
            reg = <0xe0002000 0x1000>;
            phy_type = "ulpi";
        };

 
  • Sign in to reply
  • Cancel
  • unicyclebloke
    0 unicyclebloke over 6 years ago

    I may have answered my own question: https://elinux.org/Device_Tree_Linux#disabled_nodes. I'll try this later and see what happens.
     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject Answer
    • Cancel
  • unicyclebloke
    0 unicyclebloke over 6 years ago

    I solved this by creating two new Petalinux projects and diffing them. One following Avnet's Lab 1 using the pre-built blackbox BSP, and the other simply importing the hardware definition:

    Project 1:
    petalinux-create --type project --name project2 --source <path to BSP>
    petalinux-config --get-hw-definition <path to HDF>

    Project 2:
    petalinux-create --type project --template zynq --name project2
    petalinux-config --get-hw-definition <path to HDF>

    There were many additional files in the BSP-based project, but I ignored most of them. The key differences were a small patch to make petalinux-build work with single core devices (I knew about this one), and a small DTSI change related to USB0. I copied just those two changes into Project 2 and built it. Now the USB stick works perfectly.

    • 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