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 USB Host on Microzed with Petalinux 2017.2
  • 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 5 replies
  • Subscribers 331 subscribers
  • Views 1235 views
  • Users 0 members are here
Related

USB Host on Microzed with Petalinux 2017.2

inchara
inchara over 7 years ago

Does anyone have the USB host working on Microzed SOM board with 2017.2 tools? Tried all options and all the solutions out there on the Avnet and Xilinx forums but still can't get it working.

1) USB Host works with prebuilt Pulsar Linux image available on http://zedboard.org/support/design/1519/10

2) USB Host works with prebuilt Vivado / Petalinux 2014.4 image available on http://zedboard.org/support/design/1519/10

3) USB host doesn't work with 2017.2 tools  - a basic platform design (no custom PL components) and then Petalinux build.

Followed several suggestions across Xilinx/Microzed forums, app notes, tutorials, etc. -- looked at the device tree entries, interrupts,reset and others.. still the USB is not detected.

(1) and (2) means that the hardware is good. Checked reset, 5V etc.. all good. The board is not configured for the USB device mode, it is still what came out of factory - USB Host mode.

with (3) there is hardly anything in the hdf / bit file because it is just opening the Vivado and adding a Zynq IP and then generating the bit/hdf files. So I guess the platform is also good. That leaves the Petalinux 2017.2.

Opened a ticket with Xilinx support, and have been exchanging files/logs and they keep telling what is available on the internet forums (for other boards / tool versions) and have been of zero help even after several days.

Would Avnet or microzed.org be able to provide a Petalinux 2017.2 project for Microzed SOM with all the peripherals working?

Any help would be appreciated.

  • Sign in to reply
  • Cancel
Parents
  • olebon
    0 olebon over 7 years ago

    I was able to use a 16GB USB stick on Microzed (Petalinux 2017.4)  without any magic commands like explicit connecting modules. All I did is just followed https://www.beyond-circuits.com/wordpress/tutorial/tutorial23/ with a call to petalinux-config -c rootfs with defgault settings. Before calling petalinux-build I also updated device tree by substituting whatever is in project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi to

        /{
            usb_phy0: usb_phy@0 {
                compatible = "usb-nop-xceiv";
                #phy-cells = <0>;
            };
        };

        &usb0 {
            dr_mode = "host";
            usb-phy = <&usb_phy0>;
        };

    On power on it looks like:

    PetaLinux 2017.4 uz_min /dev/ttyPS0

    uz_min login: root
    Password:
    root@uz_min:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002
    Bus 001 Device 002: ID 154b:00e1
    root@uz_min:~# fdisk -l

    Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
    255 heads, 63 sectors/track, 1936 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

            Device Boot      Start         End      Blocks  Id System
    /dev/mmcblk0p1               1        1937    15554048   c Win95 FAT32 (LBA)

    Disk /dev/sda: 16.0 GB, 16025387008 bytes
    255 heads, 63 sectors/track, 1948 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks  Id System
    /dev/sda1               1        1949    15649776   c Win95 FAT32 (LBA)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • olebon
    0 olebon over 7 years ago

    I was able to use a 16GB USB stick on Microzed (Petalinux 2017.4)  without any magic commands like explicit connecting modules. All I did is just followed https://www.beyond-circuits.com/wordpress/tutorial/tutorial23/ with a call to petalinux-config -c rootfs with defgault settings. Before calling petalinux-build I also updated device tree by substituting whatever is in project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi to

        /{
            usb_phy0: usb_phy@0 {
                compatible = "usb-nop-xceiv";
                #phy-cells = <0>;
            };
        };

        &usb0 {
            dr_mode = "host";
            usb-phy = <&usb_phy0>;
        };

    On power on it looks like:

    PetaLinux 2017.4 uz_min /dev/ttyPS0

    uz_min login: root
    Password:
    root@uz_min:~# lsusb
    Bus 001 Device 001: ID 1d6b:0002
    Bus 001 Device 002: ID 154b:00e1
    root@uz_min:~# fdisk -l

    Disk /dev/mmcblk0: 15.9 GB, 15931539456 bytes
    255 heads, 63 sectors/track, 1936 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

            Device Boot      Start         End      Blocks  Id System
    /dev/mmcblk0p1               1        1937    15554048   c Win95 FAT32 (LBA)

    Disk /dev/sda: 16.0 GB, 16025387008 bytes
    255 heads, 63 sectors/track, 1948 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks  Id System
    /dev/sda1               1        1949    15649776   c Win95 FAT32 (LBA)

    • 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