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
      •  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 & Tria Boards Community
  • Avnet Boards Forums
  • More
  • Cancel
Avnet Boards Forums
Avnet Boards General The USB3 through Petalinux 2018.2 in UltraZed-3EG-IO in peripheral mode is not recognized
  • 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 2 replies
  • Subscribers 347 subscribers
  • Views 449 views
  • Users 0 members are here
  • ZedBoard General Questions
  • Zedboard Hardware Design
  • Ultrazed Hardware Design
Related

The USB3 through Petalinux 2018.2 in UltraZed-3EG-IO in peripheral mode is not recognized

sint12345
sint12345 over 5 years ago

The USB3 through Petalinux 2018.2 in UltraZed-3EG-IO in peripheral mode is not recognized
====================================================================

The parameter is # CONFIG_USB_DWC3_GADGET is not set in the TeraTerm after running the zcat /proc/config.gz

Although this parameter was saved in .config file after setting it in kernel by using the command petalinux-config -c kernel and save


I have followed the rules in the wiki, and saw that.

I have verified in kernel that all was set ( before was config get hw after config kernel and after petalinux build)

?

USB support----->

    <*> USB Gadget Support

        <M> USB Gadget Drivers

        <M> Gadget Filesystem

        <M> Ethernet Gadget (with CDC Ethernet support)

            [*] RNDIS support

File systems  --->

    Pseudo filesystems  --->

        {M} Userspace-driven configuration filesystem


I have added to sysytem-user.dtsi at the end of the file this part:


Devicetree

?

usb0: usb@fe200000 {

    #address-cells = <2>;

    #size-cells = <2>;

    status = "disabled";

    compatible = "xlnx,zynqmp-dwc3";

    clock-names = "bus_clk", "ref_clk";

    clocks = <&clk125>, <&clk125>;

 

    dwc3_0: dwc3@fe200000 {

        compatible = "snps,dwc3";

        status = "disabled";

        reg = <0x0 0xfe200000 0x0 0x40000>;

        interrupt-parent = <&gic>;

        interrupts = <0 65 4>;

    };

};

 

&usb0 {

    status = "okay";

};

 

&dwc3_0 {

    status = "okay";

    dr_mode = "peripheral";

};



I verified all parameters are set through teraterm

CONFIG_USB_DWC3 = y
CONFIG_USB_DWC3_DUAL_ROLE = y
CONFIG_USB_SUPPORT=y
CONFIG_USB_COMMON=y
CONFIG_USB_ARCH_HAS_HCD=y
CONFIG_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_PLATFORM=y

CONFIG_CONFIGFS_FS=m
CONFIG_USB_GADGET=y
CONFIG_USB_LIBCOMPOSITE=m
CONFIG_USB_ETH=m
CONFIG_USB_ETH_RNDIS=y

Although We didn't see the system.dts s changing to peripheral after running the command (I think it is mistake)

dtc -I dtb -O dts -o system.dts system.dtb

In any way it seems that the parameter was not changed in image.ub or system.dtb afyer converting it to files and text.

I will try to run the third stage:

insmod configfs.ko

 

insmod libcomposite.ko

 

insmod u_ether.ko

 

insmod usb_f_rndis.ko

 

mount -t configfs none /sys/kernel/config

 

cd /sys/kernel/config/usb_gadget

 

mkdir g1

 

cd g1

 

echo "64" > bMaxPacketSize0

 

echo "0x200" > bcdUSB

 

echo "0x100" > bcdDevice

 

echo "0x03FD" > idVendor

 

echo "0x0502" > idProduct

 

mkdir configs/c1.1

 

mkdir functions/rndis.rn0

 

ln -s functions/rndis.rn0/ configs/c1.1/

 

echo "fe200000.dwc3" > UDC

 

ifconfig usb0 10.10.70.1

 

ifconfig usb0 up


I will attach the series of commands that were used.

BR,

Shiri

  • Sign in to reply
  • Cancel
Parents
  • drozwood90
    0 drozwood90 over 5 years ago

    Hi there,

     

    First question I have, are you using an adapter for the USB-B to your device?

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • sint12345
    0 sint12345 over 5 years ago in reply to drozwood90

    No adapter,

     

    Thanks,

     

    Shiri

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • sint12345
    0 sint12345 over 5 years ago in reply to drozwood90

    No adapter,

     

    Thanks,

     

    Shiri

    • 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