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 & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • 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
      • Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Vietnam
      • 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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
ZedBoard Hardware Design using petalinux configure zedboard,but usb-otg can not work
  • 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 8 replies
  • Subscribers 341 subscribers
  • Views 1287 views
  • Users 0 members are here
Related

using petalinux configure zedboard,but usb-otg can not work

Former Member
Former Member over 10 years ago

I made a project using VIVADO 2014.4, based on ZedBoard CTT, Vivado 2014.2. Then I created the boot and image using petalinux. With SD boot, it started ok, but the usb-otg interface not worked, by plug in a u-disk. Is there something wrong. Who can give me some advice?

Thanks.

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

    This is an English language forum. Please translate your question into English so that we can help you or post on the alternate forum: 

    http://zedboard.org/forums/zedboard%E8%8B%B1%E8%AA%9E%E3%83%95%E3%82%A9%E3%83%BC%E3%83%A9%E3%83%A0

     

    -Gary

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

    is there sonme encountered the similar problemuFF1Fwho can give me some help?

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

    Hi mybear,

    I think the problem is that by default, USB OTG support is not included in the PetaLinux kernel.  Here is a link to some instructions on how to add this support to your project.

    Ron

    U-Boot - USB Host.pdf

    https://avnet.egnyte.com/dl/5x1BuppFNW

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

    thank you very much, i will try it.

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

    I tried, but i failed. some items in the pdf can not be found in the config file. I do not know how to modify the config file. Could you give me more help? Thanks.

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

    When you say USB-OTG is not working, what are the symptoms?

    1. Do you see any indication that the device has power (illuminated LED perhaps)?

    2. If this is a USB-disk, have you tried it simply with a USB flash stick?

    3. Do you see any registration messages from Linux when the device is plugged in?

    4. If yes to 3, can you see any partitions on the device?  I recently had a problem with a PicoZed board in 2014.4 where everything appeared operational, but I could only see /dev/sda  and not /dev/sda1.   I knew for sure there was a vfat partition, so I plugged in a powered USB hub and attached my flash stick to that, and it worked fine.   So sometimes there can be enough power to detect a device, but not actually enough to work completely.   This is doubly true for a USB Disk Drive, which you should always plug into a powered hub.

    Ron

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

    This problem has been identified by Xilinx in 2015.2, and a patch has been posted to the xilinx github.  I'm working on trying to integrate the fixes right now.  There appear to be at least two problems.  Essentially the problem causes the board to be recognized as an OTG-device, rather than an OTG-host  And in this mode it shuts off the power supply to the USB-OTG connector.

    I currently have the power working, but so far I'm still stuck trying to get a response from the kernel when I plug in a USB stick.  So stay tuned (and of course if somebody else has figured this out, I'd like to know the magic!)

    Ron

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

    Everyone interested in USB-OTG:

    Modifications made to the PetaLinux 2015.4 tools and driver set have resolved issues on Zynq boards around the USB-OTG functionality.  In the default kernel configuration, there are no longer any changes required to activity USB-OTG, and the requirement for adding a special application for activating USB power has been eliminated.  This is good news.

    The only addition required for USB-OTG operation in PetaLinux on Avnet Zynq boards is to update the device tree (system-top.dts) file to add the following entry:

    /{
        usb_phy0:phy0 {
            compatible="ulpi-phy";
            #phy-cells = <0>;
           reg = <0xe0002000 0x1000>;
           view-port=<0x170>;
           drv-vbus;
        };
    };
     
     
    &usb0 {
            status = "okay";
            dr_mode = "host";
            usb-phy = <&usb_phy0>;
    } ;
     
    Ron
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Reject 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 © 2026 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