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
Using Xilinx Tools Forum How to generate Device Tree (dts) file?
  • 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 336 subscribers
  • Views 2410 views
  • Users 0 members are here
Related

How to generate Device Tree (dts) file?

Former Member
Former Member over 11 years ago

Hi

I'm trying to build Linux to run on Zedboard with an AD-FMCOMMS1-EBZ card.

I'm new to Linux so I'm following the Xilinx wiki:
http://www.wiki.xilinx.com/Getting+Started

My colleague has created a simple Hardware and FPGA design that uses some basic features of the FMCOMMS1.

The SDK (libgen) fails when creating the device tree (dts) file as the hardware design (xml file) includes references to devices on the FMCOMMS1 board that are not known to the Xilinx SDK:
http://www.wiki.xilinx.com/Build+Device+Tree+Blob

I'm getting this error:
http://www.xilinx.com/support/answers/43758.html

According to answer #35443 I'm supposed to add a repository with the custom drivers, but Analog Devices don't support this?

Instead AD provide info on how to modify an existing dts file:
http://wiki.analog.com/resources/tools-software/linux-drivers/iio-dds/axi-dac-dds-hdl

So I assume I need to create a dts file with just the standard Zynq peripherals used by our design, then manually add the custom (AD) drivers afterwards.

I've tried following Eli's instructions to get a 'standard' dts file, but I still get the same error from libgen as my xml file still contains info about custom devices even though the mss file now only contains the standard devices:
http://billauer.co.il/blog/2012/07/device-tree-file-xilinx-dtb-linux/

I've tried to manually edit the xml file with guesswork to remove bits that may be offending the tcl 'generate' script used by libgen but without any luck, I still keep getting the same error....

Does anybody know how to modify the xml so libgen works? Or is there another way to solve the problem?

Many thanks, Sam.

  • Sign in to reply
  • Cancel
  • zedhed
    0 zedhed over 11 years ago

    Hi samking,

    Have you considered yet another path besides relying upon the devicetree generator to do the mapping work for you?

    Here is another path that I would recommend over the ones shown above.  Since this is a AD-FMCOMMS1-EBZ design, I would recommend starting from one of the ADI supplied device tree files, say zynq-zed-adv7511-xcomm.dts and modifiying the contents manually to match the devices withing your colleague's hardware platform.  Here is a page with some further information on the ADI supplied example device tree files.

    http://wiki.analog.com/resources/tools-software/linux-drivers/platforms/zynq

    I think the devicetree generator is great for getting started with basic designs but it has some limitations (like the ones you found).  Since it sounds like you are moving on to more advanced design techniques, perhaps you would consider giving up the devicetree generator and resorting to hand editing the DTS.  Yes, this will involve some investment up front in resolving the differences between the example ADI devicetree and your current hardware platform, but I think in the end it will give you peace of mind in knowing there is a way forward for your design.

    Regards,

    -Kevin

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

    Thanks Kevin, we're up and running now.

    • 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