Showing results for 
Show  only  | Search instead for 
Did you mean: 
Registered: ‎08-27-2020

Duplicate label error "adv7511" when building petalinux project


I am trying to building a petalinux project(petalinux-build) , I get the following error(from log.do_compile) :

DEBUG: Executing shell function do_compile
/home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_arm-system.dtb: ERROR (duplicate_label): Duplicate label 'adv7511' on /fpga-axi@0/i2c@41600000/i2cswitch@74/i2c@1/adv7511 and /amba/i2c@e0004000/i2cswitch@74/i2c@1/hdmi-tx@39
ERROR: Input tree has errors, aborting (use -f to force output)
WARNING: /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/run.do_compile.4436:1 exit 2 from 'dtc -I dts -O dtb -R 8 -p 0x1000 -i /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0 -i /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/../components/plnx_workspace/device-tree/device-tree-generation -o /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_arm-system.dtb /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/../components/plnx_workspace/device-tree/device-tree-generation/plnx_arm-system.pp'
ERROR: Function failed: do_compile (log file is located at /home/yang/Documents/Yang_Project/peta_linux_projects/Zynq_HDMI_petaProj/build/tmp/work/plnx_arm-xilinx-linux-gnueabi/device-tree-generation/xilinx+gitAUTOINC+3c7407f6f8-r0/temp/log.do_compile.4436)

I use adi linux kernel(adi-4.9.0) as external src kernel. How shold I modify these errors?

I attach my device tree files.

thanks in advance !


0 Kudos
5 Replies
Registered: ‎09-12-2007

Can you share the xsa/hdf file?

0 Kudos
Registered: ‎08-27-2020

Here is my .hdf and .bit.

My tool version :

Vivado 2017.4

Petalinux 2017.4


Tags (1)
0 Kudos
Registered: ‎09-12-2007

I have tested this, and I am not seeing any duplicates (as there are none).

I used the devicetree generator and DTC manually


In petalinux-config -> DTG Settings. Have you anything set here?

0 Kudos
Registered: ‎10-04-2017

  This is because ADI hardcodes the pl device nodes in the kernel device tree so you get this error because a second node is generated in the pl.dtsi 

   If you use ADIs petalinux build it will take care of this but it is a mess IMO.


0 Kudos
Registered: ‎08-27-2020


Thank !

I modify my devicetree and petalinux-build success. 

Then I got some error (HDMI no signal) when I try to bootiing from SD card.

How should I modify my tree?


Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 4.9.0 (piercey@piercey-VirtualBox) (gcc version 6.2.1 20161016 (Li naro GCC 6.2-2016.11) ) #1 SMP PREEMPT Sun Sep 13 11:45:05 CST 2020
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Zynq ZC706 Development Board
bootconsole [earlycon0] enabled
cma: Reserved 128 MiB at 0x38000000
Memory policy: Data cache writealloc
percpu: Embedded 13 pages/cpu @ef7cf000 s23564 r8192 d21492 u53248
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260608
Kernel command line: console=ttyPS0,115200 earlyprintk
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 894104K/1048576K available (5596K kernel code, 242K rwdata, 2252K rodata , 256K init, 154K bss, 23400K reserved, 131072K cma-reserved, 131072K highmem)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc057f67c (5598 kB)
.init : 0xc07dc000 - 0xc081c000 ( 256 kB)
.data : 0xc081c000 - 0xc0858b00 ( 243 kB)
.bss : 0xc0858b00 - 0xc087f434 ( 155 kB)
Preemptible hierarchical RCU implementation.
Build-time adjustment of leaf fanout to 32.
RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
efuse mapped to f0802000
slcr mapped to f0804000
L2C: platform modifies aux control register: 0x72360000 -> 0x72760000
L2C: DT/platform modifies aux control register: 0x72360000 -> 0x72760000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410000c8, AUX_CTRL 0x76760001
zynq_clock_init: clkc starts at f0804100
Zynq clock init
sched_clock: 64 bits at 333MHz, resolution 3ns, wraps every 4398046511103ns
clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x4ce07af025 , max_idle_ns: 440795209040 ns
Switching to timer-based delay loop, resolution 3ns
clocksource: ttc_clocksource: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 5375 38477 ns
timer #0 at f080c000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.6 6 BogoMIPS (lpj=3333333)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x82c0 - 0x8318
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated (1333.33 BogoMIPS).
CPU: All CPU(s) started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911 2604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
zynq-ocm f800c000.ocmc: ZYNQ OCM pool: 256 KiB @ 0xf0880000
zynq-pinctrl 700.pinctrl: zynq pinctrl initialized
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
media: Linux media interface: v0.10
Linux video capture interface: v2.00
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@l>
PTP clock support registered
EDAC MC: Ver: 3.0.0
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arm_global_timer
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
UDP hash table entries: 512 (order: 2, 16384 bytes)
UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 5512K (c7a9e000 - c8000000)
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
workingset: timestamp_bits=30 max_order=18 bucket_order=0
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
OF: /amba_pl/axi-clkgen@79000000: could not get #clock-cells for /fixedregulator
adi-axi-clkgen: probe of 79000000.axi-clkgen failed with error -22
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac: DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Even ts-16
xilinx-vdma 43000000.axivdma: missing xlnx,flush-fsync property
xilinx-vdma 43000000.axivdma: missing xlnx,addrwidth property
xilinx-vdma 43000000.axivdma: unable to request IRQ 0
xilinx-vdma 43000000.axivdma: dma_async_device_register: device has no channels!
xilinx-vdma 43000000.axivdma: Xilinx AXI VDMA Engine Driver Probed!!
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 26, base_baud = 3125000) is a xuartps
▒console [ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
xdevcfg f8007000.devcfg: ioremap 0xf8007000 to f0875000
[drm] Initialized
brd: module loaded
loop: module loaded
m25p80 spi32764.0: found s25fl128s, expected n25q512a
m25p80 spi32764.0: s25fl128s (32768 Kbytes)
4 ofpart partitions found on MTD device spi32764.0
Creating 4 MTD partitions on "spi32764.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000002000000 : "spare"
MACsec IEEE 802.1AE
libphy: Fixed MDIO Bus: probed
libphy: mdio_driver_register: xgmiitorgmii
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <>
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 30 (00 :0a:35:00:1e:53)
Marvell 88E1116R e000b000.etherne:07: attached PHY driver [Marvell 88E1116R] (mi i_bus:phy_addr=e000b000.etherne:07, irq=-1)
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
usbcore: registered new interface driver usb-storage
usbcore: registered new interface driver usbserial
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial support registered for generic
usbcore: registered new interface driver ftdi_sio
usbserial: USB Serial support registered for FTDI USB Serial Device
e0002000.usb supply vbus not found, using dummy regulator
ULPI transceiver vendor/product ID 0x0424/0x0007
Found SMSC USB3320 ULPI transceiver.
ULPI integrity check: passed.
ci_hdrc ci_hdrc.0: EHCI Host Controller
ci_hdrc ci_hdrc.0: new USB bus registered, assigned bus number 1
ci_hdrc ci_hdrc.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 23
si570 1-005d: registered, current frequency 148500000 Hz
i2c i2c-0: Added multiplexed i2c bus 1
i2c i2c-0: Added multiplexed i2c bus 2
at24 3-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
i2c i2c-0: Added multiplexed i2c bus 3
4-0021 supply vcc not found, using dummy regulator
pca953x 4-0021: interrupt support not compiled in
i2c i2c-0: Added multiplexed i2c bus 4
rtc-pcf8563 5-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c i2c-0: Added multiplexed i2c bus 5
i2c i2c-0: Added multiplexed i2c bus 6
i2c i2c-0: Added multiplexed i2c bus 7
i2c i2c-0: Added multiplexed i2c bus 8
pca954x 0-0074: registered 8 multiplexed busses for I2C switch pca9548
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
gspca_main: v2.14.0 registered
ucd9000 8-0065: Device ID UCD90120A||110603
random: fast init done
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f096b000 with timeout 10s
Xilinx Zynq CpuIdle Driver started
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
mmc0: SDHCI controller on e0100000.sdhci [e0100000.sdhci] using ADMA
ledtrig-cpu: registered to indicate activity on CPUs
hidraw: raw HID events driver (C) Jiri Kosina
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
OF: /amba_pl/axi-spdif-tx@75c00000: could not get #clock-cells for /fixedregulat or
ERROR: could not get clock /amba_pl/axi-spdif-tx@75c00000:axi(0)
axi-spdif: probe of 75c00000.axi-spdif-tx failed with error -2
NET: Registered protocol family 17
Registering SWP/SWPB emulation handler
rtc-pcf8563 5-0051: setting system clock to 2020-09-13 02:13:03 UTC (1599963183)
ALSA device list:
No soundcards found.
mmc0: new high speed SDHC card at address 59b4
Freeing unused kernel memory: 256K (c07dc000 - c081c000)
This architecture does not have kernel memory protection.
mmcblk0: mmc0:59b4 USDU1 14.7 GiB
mmcblk0: p1 p2
INIT: version 2.88 booting
Starting udev
udevd[910]: starting version 3.2
udevd[911]: starting eudev-3.2
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
Populating dev cache
Sun Sep 13 04:00:00 UTC 2020
Starting internet superserver: inetd.
Running postinst /etc/rpm-postinsts/100-sysvinit-inittab...
update-rc.d: /etc/init.d/run-postinsts exists during rc.d purge (continuing)
Removing any system startup links for run-postinsts ...
INIT: Entering runlevel: 5
Configuring network interfaces... udhcpc (v1.24.1) started
Sending discover...
Sending discover...
Sending discover...
No lease, forking to background
Starting Dropbear SSH server: Generating key, this may take a while...
Public key portion is:
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCNcml9ceJ/yQjvrxiYSyGBD+FRJzn3zSqNA6HVI6g8 +cEpAyvyVTpD0EJ/5pu3BYuAaXR+mX4AQUI0ihQlMUeWrK0Ug9RNCRHZpET6fYr9F2Gv5VAZhAjtLP6+ KoMnDKg6l/PX11yZg7j3xwt74nayj+Z60rqkb/wA1Us58Y3YGdYT4Xv/9mnDSkBKG7FVIGP0aXMp+pd3 ERaJAwcbHfzn5i52GfUV4MEm9Q7xyMlXVRRzprY5CQAuoA8nCPkKhadciHrgxsHpc2bIOXcCESv60MAl FM8dB+nk4ukRVMJUIqXh0QDjZHLncucqUXXbt/Q19n1JAFTAJhENal0LU8gz root@ZC706_hdmi_lin ux
Fingerprint: md5 7b:76:a1:02:92:38:5c:f8:ec:24:42:34:5b:e4:44:4f
Starting syslogd/klogd: done
Starting tcf-agent: OK

PetaLinux 2017.4 ZC706_hdmi_linux /dev/ttyPS0

0 Kudos