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 DTC: non-existing node
  • 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 4 replies
  • Subscribers 329 subscribers
  • Views 1943 views
  • Users 0 members are here
Related

DTC: non-existing node

suppamax
suppamax over 10 years ago

Hi everybody,

I'd like to write a linux application for microzed.
The Zynq will also use some logic in PL, in particular an AXI_DMA a custom IP (AXI_counter) streaming data to it.

I generated the DTS following this wiki: http://www.wiki.xilinx.com/Build+Device+Tree+Blob

The problem is that when I try to generate the device tree blob I got this error

>dtc -I dts -O dtb -o xilinx.dtb xilinx.dts
ERROR (phandle_references): Reference to non-existent node or label "AXI_counter_0"

ERROR (phandle_references): Reference to non-existent node or label "AXI_counter_0"

ERROR: Input tree has errors, aborting (use -f to force output)


  • Sign in to reply
  • Cancel
Parents
  • zedhed
    0 zedhed over 10 years ago

    Hi suppamax,

    You may be missing an alias for the AXI_counter_0 instance within your device tree source file.

    Can you post the contents of that file in the thread here?

    Regards,

    -Kevin

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

    Hi suppamax,

    You may be missing an alias for the AXI_counter_0 instance within your device tree source file.

    Can you post the contents of that file in the thread here?

    Regards,

    -Kevin

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
  • suppamax
    0 suppamax over 10 years ago in reply to zedhed

    Here it is

    /*
    * Device Tree Generator version: 1.1
    *
    * (C) Copyright 2007-2013 Xilinx, Inc.
    * (C) Copyright 2007-2013 Michal Simek
    * (C) Copyright 2007-2012 PetaLogix Qld Pty Ltd
    *
    * Michal SIMEK <monstr@monstr.eu>
    *
    * CAUTION: This file is automatically generated by HSM.
    * Version: HSM
    * Today is: Sunday, the 22 of February, 2015; 16:27:49
    *
    * project directory: device-tree_bsp_1
    */

    /dts-v1/;
    / {
    t#address-cells = <1>;
    t#size-cells = <1>;
    tcompatible = "xlnx,zynq-7000";
    tmodel = "Xilinx Zynq";
    taliases {
    ttethernet0 = &ps7_ethernet_0;
    ttserial0 = &ps7_uart_1;
    ttspi0 = &ps7_qspi_0;
    t} ;
    tchosen {
    ttbootargs = "console=ttyPS0,115200 root=/dev/ram rw ip=:::::eth0:dhcp earlyprintk";
    ttlinux,stdout-path = "/amba@0/serial@e0001000";
    t} ;
    tcpus {
    tt#address-cells = <1>;
    tt#size-cells = <0>;
    ttps7_cortexa9_0: cpu@0 {
    tttbus-handle = <&ps7_axi_interconnect_0>;
    tttclock-latency = <1000>;
    tttclocks = <&clkc 3>;
    tttcompatible = "arm,cortex-a9";
    tttdevice_type = "cpu";
    tttinterrupt-handle = <&ps7_scugic_0>;
    tttoperating-points = <666667 1000000 333334 1000000 222223 1000000>;
    tttreg = <0x0>;
    tt} ;
    ttps7_cortexa9_1: cpu@1 {
    tttbus-handle = <&ps7_axi_interconnect_0>;
    tttclocks = <&clkc 3>;
    tttcompatible = "arm,cortex-a9";
    tttdevice_type = "cpu";
    tttinterrupt-handle = <&ps7_scugic_0>;
    tttreg = <0x1>;
    tt} ;
    t} ;
    tpmu {
    ttcompatible = "arm,cortex-a9-pmu";
    ttinterrupt-parent = <&ps7_scugic_0>;
    ttinterrupts = <0 5 4>, <0 6 4>;
    ttreg = <0xf8891000 0x1000>, <0xf8893000 0x1000>;
    ttreg-names = "cpu0", "cpu1";
    t} ;
    tps7_ddr_0: memory@0 {
    ttdevice_type = "memory";
    ttreg = <0x0 0x40000000>;
    t} ;
    tps7_axi_interconnect_0: amba@0 {
    tt#address-cells = <1>;
    tt#size-cells = <1>;
    ttcompatible = "xlnx,ps7-axi-interconnect-1.00.a", "simple-bus";
    ttranges ;
    ttaxi_dma_0: axidma@40400000 {
    ttt#address-cells = <1>;
    ttt#size-cells = <1>;
    tttcompatible = "xlnx,axi-dma";
    tttranges = <0x40400000 0x40400000 0x10000>;
    tttreg = <0x40400000 0x10000>;
    tttxlnx,include-sg ;
    tttdma-channel@40400030 {
    ttttaxistream-connected-slave = <&AXI_counter_0>;
    ttttaxistream-control-connected-slave = <&AXI_counter_0>;
    ttttcompatible = "xlnx,axi-dma-s2mm-channel";
    ttttxlnx,datawidth = <0x20>;
    ttttxlnx,device-id = <0x0>;
    ttt} ;
    tt} ;
    ttps7_afi_0: ps7-afi@f8008000 {
    tttcompatible = "xlnx,ps7-afi-1.00.a";
    tttreg = <0xf8008000 0x1000>;
    tt} ;
    ttps7_afi_1: ps7-afi@f8009000 {
    tttcompatible = "xlnx,ps7-afi-1.00.a";
    tttreg = <0xf8009000 0x1000>;
    tt} ;
    ttps7_afi_2: ps7-afi@f800a000 {
    tttcompatible = "xlnx,ps7-afi-1.00.a";
    tttreg = <0xf800a000 0x1000>;
    tt} ;
    ttps7_afi_3: ps7-afi@f800b000 {
    tttcompatible = "xlnx,ps7-afi-1.00.a";
    tttreg = <0xf800b000 0x1000>;
    tt} ;
    ttps7_clockc_0: ps7-clockc@0 {
    tttcompatible = "xlnx,ps7-clockc-1.00.a";
    tttxlnx,has-modem = <0x0>;
    tttxlnx,input-crystal-freq-hz = <0x1f78a40>;
    tt} ;
    ttps7_ddrc_0: ps7-ddrc@f8006000 {
    tttcompatible = "xlnx,zynq-ddrc-1.0";
    tttreg = <0xf8006000 0x1000>;
    tttxlnx,has-ecc = <0x0>;
    tt} ;
    ttps7_dev_cfg_0: ps7-dev-cfg@f8007000 {
    tttclock-names = "ref_clk", "fclk0", "fclk1", "fclk2", "fclk3";
    tttclocks = <&clkc 12>, <&clkc 15>, <&clkc 16>, <&clkc 17>, <&clkc 18>;
    tttcompatible = "xlnx,zynq-devcfg-1.0";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 8 4>;
    tttreg = <0xf8007000 0x100>;
    tt} ;
    ttps7_dma_s: ps7-dma@f8003000 {
    ttt#dma-cells = <1>;
    ttt#dma-channels = <8>;
    ttt#dma-requests = <4>;
    tttclock-names = "apb_pclk";
    tttclocks = <&clkc 27>;
    tttcompatible = "arm,primecell", "arm,pl330";
    tttinterrupt-names = "abort", "dma0", "dma1", "dma2", "dma3",
    tttt"dma4", "dma5", "dma6", "dma7";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 13 4>, <0 14 4>, <0 15 4>, <0 16 4>, <0 17 4>, <0 40 4>, <0 41 4>, <0 42 4>, <0 43 4>;
    tttreg = <0xf8003000 0x1000>;
    tt} ;
    ttps7_ethernet_0: ps7-ethernet@e000b000 {
    ttt#address-cells = <1>;
    ttt#size-cells = <0>;
    tttclock-names = "ref_clk", "aper_clk";
    tttclocks = <&clkc 13>, <&clkc 30>;
    tttcompatible = "xlnx,ps7-ethernet-1.00.a";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 22 4>;
    tttlocal-mac-address = [00 0a 35 00 00 00];
    tttphy-handle = <&phy0>;
    tttphy-mode = "rgmii-id";
    tttreg = <0xe000b000 0x1000>;
    tttxlnx,eth-mode = <0x1>;
    tttxlnx,has-mdio = <0x1>;
    tttxlnx,ptp-enet-clock = <110000000>;
    tttmdio {
    tttt#address-cells = <1>;
    tttt#size-cells = <0>;
    ttttphy0: phy@7 {
    tttttcompatible = "marvell,88e1116r";
    tttttdevice_type = "ethernet-phy";
    tttttreg = <7>;
    tttt} ;
    ttt} ;
    tt} ;
    ttps7_globaltimer_0: ps7-globaltimer@f8f00200 {
    tttclocks = <&clkc 4>;
    tttcompatible = "arm,cortex-a9-global-timer";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <1 11 0x301>;
    tttreg = <0xf8f00200 0x100>;
    tt} ;
    ttps7_gpio_0: ps7-gpio@e000a000 {
    ttt#gpio-cells = <2>;
    tttclocks = <&clkc 42>;
    tttcompatible = "xlnx,zynq-gpio-1.0";
    tttemio-gpio-width = <64>;
    tttgpio-controller ;
    tttgpio-mask-high = <0x0>;
    tttgpio-mask-low = <0x5600>;
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 20 4>;
    tttreg = <0xe000a000 0x1000>;
    tt} ;
    ttps7_iop_bus_config_0: ps7-iop-bus-config@e0200000 {
    tttcompatible = "xlnx,ps7-iop-bus-config-1.00.a";
    tttreg = <0xe0200000 0x1000>;
    tt} ;
    ttps7_ocmc_0: ps7-ocmc@f800c000 {
    tttcompatible = "xlnx,zynq-ocmc-1.0";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 3 4>;
    tttreg = <0xf800c000 0x1000>;
    tt} ;
    ttps7_pl310_0: ps7-pl310@f8f02000 {
    tttarm,data-latency = <3 2 2>;
    tttarm,tag-latency = <2 2 2>;
    tttcache-level = <2>;
    tttcache-unified ;
    tttcompatible = "arm,pl310-cache";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 2 4>;
    tttreg = <0xf8f02000 0x1000>;
    tt} ;
    ttps7_pmu_0: ps7-pmu@f8891000 {
    ttt#address-cells = <1>;
    ttt#size-cells = <1>;
    tttcompatible = "xlnx,ps7-pmu-1.00.a";
    tttranges = <0xf8891000 0xf8891000 0x1000 0xf8893000 0xf8893000 0x1000>;
    tt} ;
    ttps7_qspi_0: ps7-qspi@e000d000 {
    tttclock-names = "ref_clk", "aper_clk";
    tttclocks = <&clkc 10>, <&clkc 43>;
    tttcompatible = "xlnx,zynq-qspi-1.0";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 19 4>;
    tttis-dual = <0>;
    tttnum-chip-select = <1>;
    tttreg = <0xe000d000 0x1000>;
    tttxlnx,fb-clk = <0x1>;
    tttxlnx,qspi-mode = <0x0>;
    tt} ;
    ttps7_qspi_linear_0: ps7-qspi-linear@fc000000 {
    tttclock-names = "ref_clk", "aper_clk";
    tttclocks = <&clkc 10>, <&clkc 43>;
    tttcompatible = "xlnx,ps7-qspi-linear-1.00.a";
    tttreg = <0xfc000000 0x1000000>;
    tt} ;
    ttps7_scugic_0: ps7-scugic@f8f01000 {
    ttt#address-cells = <2>;
    ttt#interrupt-cells = <3>;
    ttt#size-cells = <1>;
    tttcompatible = "arm,cortex-a9-gic", "arm,gic";
    tttinterrupt-controller ;
    tttnum_cpus = <2>;
    tttnum_interrupts = <96>;
    tttreg = <0xf8f01000 0x1000>, <0xf8f00100 0x100>;
    tt} ;
    ttps7_scutimer_0: ps7-scutimer@f8f00600 {
    tttclocks = <&clkc 4>;
    tttcompatible = "arm,cortex-a9-twd-timer";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <1 13 0x301>;
    tttreg = <0xf8f00600 0x20>;
    tt} ;
    ttps7_scuwdt_0: ps7-scuwdt@f8f00620 {
    tttclocks = <&clkc 4>;
    tttcompatible = "xlnx,ps7-scuwdt-1.00.a";
    tttdevice_type = "watchdog";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <1 14 0x301>;
    tttreg = <0xf8f00620 0xe0>;
    tt} ;
    ttps7_sd_0: ps7-sdio@e0100000 {
    tttclock-frequency = <51000000>;
    tttclock-names = "clk_xin", "clk_ahb";
    tttclocks = <&clkc 21>, <&clkc 32>;
    tttcompatible = "arasan,sdhci-8.9a";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 24 4>;
    tttreg = <0xe0100000 0x1000>;
    tttxlnx,has-cd = <0x1>;
    tttxlnx,has-power = <0x0>;
    tttxlnx,has-wp = <0x1>;
    tt} ;
    ttps7_slcr_0: ps7-slcr@f8000000 {
    ttt#address-cells = <1>;
    ttt#size-cells = <1>;
    tttcompatible = "xlnx,zynq-slcr", "syscon";
    tttranges ;
    tttreg = <0xf8000000 0x1000>;
    tttclkc: clkc@100 {
    tttt#clock-cells = <1>;
    ttttclock-output-names = "armpll", "ddrpll", "iopll", "cpu_6or4x", "cpu_3or2x",
    ttttt"cpu_2x", "cpu_1x", "ddr2x", "ddr3x", "dci",
    ttttt"lqspi", "smc", "pcap", "gem0", "gem1",
    ttttt"fclk0", "fclk1", "fclk2", "fclk3", "can0",
    ttttt"can1", "sdio0", "sdio1", "uart0", "uart1",
    ttttt"spi0", "spi1", "dma", "usb0_aper", "usb1_aper",
    ttttt"gem0_aper", "gem1_aper", "sdio0_aper", "sdio1_aper", "spi0_aper",
    ttttt"spi1_aper", "can0_aper", "can1_aper", "i2c0_aper", "i2c1_aper",
    ttttt"uart0_aper", "uart1_aper", "gpio_aper", "lqspi_aper", "smc_aper",
    ttttt"swdt", "dbg_trc", "dbg_apb";
    ttttcompatible = "xlnx,ps7-clkc";
    ttttfclk-enable = <0xf>;
    ttttps-clk-frequency = <33333333>;
    ttttreg = <0x100 0x100>;
    ttt} ;
    tt} ;
    ttps7_ttc_0: ps7-ttc@f8001000 {
    tttclocks = <&clkc 6>;
    tttcompatible = "cdns,ttc";
    tttinterrupt-names = "ttc0", "ttc1", "ttc2";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 10 4>, <0 11 4>, <0 12 4>;
    tttreg = <0xf8001000 0x1000>;
    tt} ;
    ttps7_uart_1: serial@e0001000 {
    tttclock-names = "ref_clk", "aper_clk";
    tttclocks = <&clkc 24>, <&clkc 41>;
    tttcompatible = "xlnx,xuartps";
    tttcurrent-speed = <115200>;
    tttdevice_type = "serial";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 50 4>;
    tttport-number = <0>;
    tttreg = <0xe0001000 0x1000>;
    tttxlnx,has-modem = <0x0>;
    tt} ;
    ttps7_usb_0: ps7-usb@e0002000 {
    tttclocks = <&clkc 28>;
    tttcompatible = "xlnx,ps7-usb-1.00.a", "xlnx,zynq-usb-1.00.a";
    tttdr_mode = "host";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 21 4>;
    tttphy_type = "ulpi";
    tttreg = <0xe0002000 0x1000>;
    tttusb-reset = <&ps7_gpio_0 7 0>;
    tt} ;
    ttps7_xadc: ps7-xadc@f8007100 {
    tttclocks = <&clkc 12>;
    tttcompatible = "xlnx,zynq-xadc-1.00.a";
    tttinterrupt-parent = <&ps7_scugic_0>;
    tttinterrupts = <0 7 4>;
    tttreg = <0xf8007100 0x20>;
    tt} ;
    t} ;
    } ;

    • 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