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 What is the command to read from memory through uart in PL side? devmem 0x5000 ? Also how to set the USB3
  • 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
  • Replies 1 reply
  • Subscribers 346 subscribers
  • Views 1216 views
  • Users 0 members are here
  • ZedBoard General Questions
  • Zedboard Hardware Design
  • Ultrazed Hardware Design
  • Zedboard Training
Related

What is the command to read from memory through uart in PL side? devmem 0x5000 ? Also how to set the USB3

sint12345
sint12345 over 5 years ago

Hi,

 

In UltraZed-3EG-IO-Card.

 

1. I cannot read from memory of PL side, when I am in sdcard mode. in sdk mode I don't have problem reading those addresses.

 

2. I cannot also set the USB3

 

Although I done huge effort that all tools and files will have the same version 2018.2 ( I installed new Petlinux 2018.2, create new project with bsp of 2018.2, created a new project from scratsch in Vivado 2018.2, also installed Vivado 2018.2)

 

I cannot read from PL memory, I tried all options:

 

devmem 0x80000000 16

devmem 0x80000000 32

 

I got the following response:

 

root@uz3eg-2016-2:~# devmem 0x80000000 16

[  132.165708] INFO: rcu_sched detected stalls on CPUs/tasks:

[  132.171117]  1-...: (3 GPs behind) idle=43b/140000000000000/0 softirq=1625/1627 fqs=1

[  132.179018]  (detected by 0, t=5267 jiffies, g=1120, c=1119, q=15)

[  132.185175] Task dump for CPU 1:

[  132.188385] devmem          R  running task        0  1893   1885 0x00000000

[  132.195416] Call trace:

[  132.197855] [<ffffffc00008529c>] __switch_to+0x94/0xa8

[  132.202974] [<ffffffc0004710f4>] memory_open+0x54/0x70

[  132.208094] [<ffffffc000170830>] chrdev_open+0xc0/0x190

[  132.213302] [<ffffffc00016a330>] do_dentry_open.isra.15+0x1c4/0x2ec

[  132.219550] [<ffffffc071b88878>] 0xffffffc071b88878

[  132.224410] rcu_sched kthread starved for 5250 jiffies! g1120 c1119 f0x0 s3 ->state=0x1

 

When I read the DDR memory I don't have problem

 

devmem 0x5000

 

I tried to set the memory to be dedicated to 0xa0000000

 

In the dtsi file I have added the memory dedicated part also, but I got the same response

/include/ "system-conf.dtsi"
/include/ "openamp.dtsi"
/{

reserved-memory {
      #address-cells = <2>;
      #size-cells = <2>;
      ranges;

      reserved: dma_buffer@0 {
        reg = <0x0 0x0 0x0 0x00A00000>;
      };
   };
  
   reserved-driver@0 {
      compatible = "xlnx,reserved-memory";
      memory-region = <&reserved>;
   };
  
   chosen {
  bootargs = "earlycon console=ttyPS0,115200 clk_ignore_unused root=/dev/mmcblk0p2 rw rootwait isolcpus=3";
};

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

 

I also cannot set the USB3,

 

I tried with the following commands to set the USB3:

 

ifconfig usb0 192.168.100.1 netmask 255.255.255.0  and modprobe g_ether

 

But they were not recognized

 

[ 1661.448807] Configuring USB3:

[ 1661.451673] enable g_ether driver...

modprobe: module g_ether not found in modules.dep

[ 1661.458012] usb0 up...

ifconfig: SIOCGIFFLAGS: No such device

[ 1661.470591] setting Static IP to 192.168.100.1

ifconfig: SIOCSIFADDR: No such device

[ 1661.484095] setting MTU to 15300

ifconfig: SIOCSIFMTU: No such device

 

Thanks in advance,

 

Shiri.

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

    Hi there,

     

    1) You would have to setup something in Vivado, then using that device's memory (configured in the address map), you can then peek/poke that.  If there are security layers that are impeding you in PetaLinux, you might have to take care of that as well.  This is something you have to setup, you do not necessarily automatically gain access to these components in the PL.  This link might be of some use.

    https://forums.xilinx.com/t5/Embedded-Linux/accessing-pl-bram-memory-from-petalinux/td-p/937016

    You can also see similar information in the Hardware Technical Training Course that we have published.

     

    2) Are you using a USB B to A adapter?  If so, you will need to ensure that you have a properly SI rated adapter.  Searching the Xilinx forums, as well as here, there are many posts where inexpensive or low quality adapters are used and the customer has issues with USB3.0.

    From this thread, I found the Xilinx recommended adapter:

    https://www.element14.com/community/thread/72404/l/usb-30-configuration-ultrazed-eg?displayFullThread=true

     

    Here is a link to this adapter:

    https://www.whizzsystems.com/usb3-micro-b-plug-adapter/

     

    Although I don’t fully understand the effects of the adapter myself, it appears in the Xilinx documentation and you can see that it is used on the ZCU102 board:

    https://xilinx-wiki.atlassian.net/wiki/spaces/A/pages/18841729/Zynq+Ultrascale+MPSOC+Linux+USB+device+driver

     

    According to other posters in that Element14 thread, the USB 3.0 options have been removed from kernel config menu although I have not confirmed that myself.

     

    Also, please verify that you are not using USB as the boot mode or under U-Boot and being caught by these known issues:

    https://www.xilinx.com/support/answers/72376.html

    https://www.xilinx.com/support/answers/72409.html

     

    I can also confirm that is the adapter that I use and do not have issues with USB 3.0 on my UltraZed systems.

     

    --Dan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • 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