UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Participant silentlab54
Participant
803 Views
Registered: ‎08-29-2018

ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Hi all, 

 

I'm using a Xilinx ZC702 EVK (rev 1.1). I want to implement the HDMI video output to connect a display. I want to develop my solution with Petalinux v2018.02-final.

I know the HDMI peripheral is obtained by ADV7511 from Analog Devices and from a specific PL logic which resides on the Zynq Processor. I have already ported (successfully, I think) into my Zynq .bit design and created the BOOT.bin image.

 

My linux-xlnx kernel contains the support for ADV7511, for the I2C subsystem, for the ADI AXI DMA. Am I forgetting something?

 

This is my boot dump:

U-Boot 2018.01 (Nov 05 2018 - 12:32:05 +0100) Xilinx Zynq ZC702

Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
Silicon: v3.1
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0 (SD)
** No device specified **
Using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
Silicon: v3.1
Net:   ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
U-BOOT for theo-xlnx-linux

Hit any key to stop autoboot:  0
Device: sdhci@e0100000
Manufacturer ID: 3
OEM: 5344
Name: SS08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading image.ub
3868116 bytes read in 254 ms (14.5 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x10000104
     Data Size:    3842054 Bytes = 3.7 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    sha1
     Hash value:   a04a5d67f217f1e89e9017e894aadef862763299
   Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'fdt@system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x103aa20c
     Data Size:    24149 Bytes = 23.6 KiB
     Architecture: ARM
     Hash algo:    sha1
     Hash value:   6d925556d3db19ad29b822bcf540118b4b43242f
   Verifying Hash Integrity ... sha1+ OK
   Booting using the fdt blob at 0x103aa20c
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 07ff7000, end 07fffe54 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC)) #1 SMP PREEMPT Mon Nov 5 12:41:33 CET 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Zynq ZC702 Development Board
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
cma: Reserved 16 MiB at 0x3f000000
random: fast init done
percpu: Embedded 16 pages/cpu @ef7c6000 s34700 r8192 d22644 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 260608
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
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: 1012860K/1048576K available (6144K kernel code, 230K rwdata, 1492K rodata, 1024K init, 151K bss, 19332K reserved, 16384K cma-reserved, 245760K 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 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a39b40   ( 231 kB)
       .bss : 0xc0a39b40 - 0xc0a5fa04   ( 152 kB)
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
        Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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: 537538477 ns
timer #0 at f080c000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 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 0x100000 - 0x100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 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: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
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
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 27, base_baud = 3125000) is a xuartps
`▒▒k▒▒▒▒[ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
XGpio: /amba_pl/gpio@41200000: registered, base is 1020
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
fpga-region fpga-full: FPGA Region probed
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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
ERROR: could not get clock /amba_pl/dma@40400000:m_axi_s2mm_aclk(2)
xilinx-vdma 40400000.dma: Xilinx AXI DMA Engine Driver Probed!!
brd: module loaded
loop: module loaded
m25p80 spi0.0: found n25q128a11, expected n25q512a
m25p80 spi0.0: n25q128a11 (16384 Kbytes)
4 ofpart partitions found on MTD device spi0.0
Creating 4 MTD partitions on "spi0.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000001000000 : "spare"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 31 (00:0a:35:00:1e:53)
Marvell 88E1116R e000b000.ethernet-ffffffff:07: attached PHY driver [Marvell 88E1116R] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:07, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
chipidea-usb2 e0002000.usb: 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
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 24
si570 2-005d: registered, current frequency 148500000 Hz
i2c i2c-1: Added multiplexed i2c bus 2
i2c i2c-1: Added multiplexed i2c bus 3
at24 4-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
i2c i2c-1: Added multiplexed i2c bus 4
i2c i2c-1: Added multiplexed i2c bus 5
rtc rtc0: invalid alarm value: 2018-11-30 35:73:0
rtc-pcf8563 6-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c i2c-1: Added multiplexed i2c bus 6
i2c i2c-1: Added multiplexed i2c bus 7
i2c i2c-1: Added multiplexed i2c bus 8
i2c i2c-1: Added multiplexed i2c bus 9
pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
ucd9200 9-0034: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0034: 4 rails configured
ucd9200 9-0035: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0035: 4 rails configured
ucd9200 9-0036: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0036: 2 rails configured
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f09bc000 with timeout 10s
EDAC MC: ECC not enabled
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
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
input: gpio-keys as /devices/soc0/gpio-keys/input/input0
rtc-pcf8563 6-0051: setting system clock to 2018-11-05 14:45:03 UTC (1541429103)
of_cfs_init
of_cfs_init: OK
ALSA device list:
  No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SS08G 7.40 GiB
 mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Starting udev
udevd[809]: starting version 3.2.2
udevd[810]: starting eudev-3.2.2
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting internet superserver: inetd.
INIT: Entering runlevel: 5
Configuring network interfaces... ifup: option with empty value "       gateway"
Starting system message bus: dbus.
Starting Xserver
Starting Dropbear SSH server: dropbear.

Starting rpcbind daemon...done.

X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.10.0-327.el7.x86_64 x86_64
Current Operating System: Linux theo-xlnx-linux 4.14.0-xilinx-v2018.2 #1 SMP PREEMPT Mon Nov 5 12:41:33 CET 2018 armv7l
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
Build Date: 11 June 2018  05:07:06PM

Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov  5 14:45:06 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
Starting watchdog: (EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.
[  OK  ]
starting statd: done
Starting bluetooth: bluetoothd.
Starting Distributed Compiler Daemon: distcc.
exportfs: can't open /etc/exports for reading
NFS daemon support not enabled in kernel
Starting syslogd/klogd: done
Starting internet superserver: xinetd.
 * Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon
Starting Telephony daemon
Starting tcf-agent: OK

PetaLinux 2018.2 theo-xlnx-linux /dev/ttyPS0

theo-xlnx-linux login: xinit: giving up
xinit: unable to connect to X server: Network is unreachable
xinit: server error

I've quickly read a lot of documentation but I was unable to find a working petalinux example of HDMI implementation into ZC702 board.

 

Can anybody give me some suggestions? What's wrong in my design? 

 

Thanks in advance for your answers.

0 Kudos
7 Replies
Participant silentlab54
Participant
777 Views
Registered: ‎08-29-2018

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Hi all,

 

I've updated my petalinux kernel configuration, because I've found that the ADV7511 kernel support wasn't complete.

 

This is the updated boot dump:

U-Boot 2018.01 (Nov 05 2018 - 16:52:06 +0100) Xilinx Zynq ZC702

Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
Silicon: v3.1
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0 (SD)
** No device specified **
Using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Model: Zynq ZC702 Development Board
Board: Xilinx Zynq
Silicon: v3.1
Net:   ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
U-BOOT for theo-xlnx-linux

Hit any key to stop autoboot:  0
Device: sdhci@e0100000
Manufacturer ID: 3
OEM: 5344
Name: SS08G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 7.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading image.ub
3875144 bytes read in 252 ms (14.7 MiB/s)
## Loading kernel from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Verifying Hash Integrity ... OK
   Trying 'kernel@1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  gzip compressed
     Data Start:   0x10000104
     Data Size:    3849083 Bytes = 3.7 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x00008000
     Entry Point:  0x00008000
     Hash algo:    sha1
     Hash value:   842a9a1cf06a499ff90af824d3ad7a867885e833
   Verifying Hash Integrity ... sha1+ OK
## Loading fdt from FIT Image at 10000000 ...
   Using 'conf@system-top.dtb' configuration
   Trying 'fdt@system-top.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x103abd80
     Data Size:    24149 Bytes = 23.6 KiB
     Architecture: ARM
     Hash algo:    sha1
     Hash value:   6d925556d3db19ad29b822bcf540118b4b43242f
   Verifying Hash Integrity ... sha1+ OK
   Booting using the fdt blob at 0x103abd80
   Uncompressing Kernel Image ... OK
   Loading Device Tree to 07ff7000, end 07fffe54 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Linux version 4.14.0-xilinx-v2018.2 (oe-user@oe-host) (gcc version 7.2.0 (GCC)) #1 SMP PREEMPT Mon Nov 5 17:00:30 CET 2018
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=18c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt: Machine model: Zynq ZC702 Development Board
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc
cma: Reserved 16 MiB at 0x3f000000
random: fast init done
percpu: Embedded 16 pages/cpu @ef7c6000 s34700 r8192 d22644 u65536
Built 1 zonelists, mobility grouping on.  Total pages: 260608
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
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: 1012860K/1048576K available (6144K kernel code, 231K rwdata, 1496K rodata, 1024K init, 151K bss, 19332K reserved, 16384K cma-reserved, 245760K 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 - 0xc0700000   (7136 kB)
      .init : 0xc0900000 - 0xc0a00000   (1024 kB)
      .data : 0xc0a00000 - 0xc0a39cc0   ( 232 kB)
       .bss : 0xc0a39cc0 - 0xc0a5fb84   ( 152 kB)
Preemptible hierarchical RCU implementation.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
        Tasks RCU enabled.
RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 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: 537538477 ns
timer #0 at f080c000, irq=17
Console: colour dummy device 80x30
Calibrating delay loop (skipped), value calculated using timer frequency.. 666.66 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 0x100000 - 0x100060
Hierarchical SRCU implementation.
smp: Bringing up secondary CPUs ...
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
smp: Brought up 1 node, 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: 19112604462750000 ns
futex hash table entries: 512 (order: 3, 32768 bytes)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor menu
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
e0001000.serial: ttyPS0 at MMIO 0xe0001000 (irq = 27, base_baud = 3125000) is a xuartps
`▒▒k▒▒▒▒[ttyPS0] enabled
console [ttyPS0] enabled
bootconsole [earlycon0] disabled
bootconsole [earlycon0] disabled
XGpio: /amba_pl/gpio@41200000: registered, base is 1020
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
PTP clock support registered
EDAC MC: Ver: 3.0.0
FPGA manager framework
fpga-region fpga-full: FPGA Region probed
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
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
hw perfevents: no interrupt-affinity property for /pmu@f8891000, guessing.
hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
workingset: timestamp_bits=30 max_order=18 bucket_order=0
jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
bounce: pool size: 64 pages
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
io scheduler mq-deadline registered
io scheduler kyber registered
dma-pl330 f8003000.dmac: Loaded driver for PL330 DMAC-241330
dma-pl330 f8003000.dmac:        DBUFF-128x8bytes Num_Chans-8 Num_Peri-4 Num_Events-16
ERROR: could not get clock /amba_pl/dma@40400000:m_axi_s2mm_aclk(2)
xilinx-vdma 40400000.dma: Xilinx AXI DMA Engine Driver Probed!!
brd: module loaded
loop: module loaded
m25p80 spi0.0: found n25q128a11, expected n25q512a
m25p80 spi0.0: n25q128a11 (16384 Kbytes)
4 ofpart partitions found on MTD device spi0.0
Creating 4 MTD partitions on "spi0.0":
0x000000000000-0x000000500000 : "boot"
0x000000500000-0x000000520000 : "bootenv"
0x000000520000-0x000000fa0000 : "kernel"
0x000000fa0000-0x000001000000 : "spare"
libphy: Fixed MDIO Bus: probed
CAN device driver interface
libphy: MACB_mii_bus: probed
macb e000b000.ethernet eth0: Cadence GEM rev 0x00020118 at 0xe000b000 irq 31 (00:0a:35:00:1e:53)
Marvell 88E1116R e000b000.ethernet-ffffffff:07: attached PHY driver [Marvell 88E1116R] (mii_bus:phy_addr=e000b000.ethernet-ffffffff:07, irq=POLL)
e1000e: Intel(R) PRO/1000 Network Driver - 3.2.6-k
e1000e: Copyright(c) 1999 - 2015 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
usbcore: registered new interface driver usb-storage
chipidea-usb2 e0002000.usb: 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
i2c /dev entries driver
cdns-i2c e0004000.i2c: 400 kHz mmio e0004000 irq 24
si570 2-005d: registered, current frequency 148500000 Hz
i2c i2c-1: Added multiplexed i2c bus 2
adv7511 3-0039: 3-0039 supply avdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply dvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply pvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply bgvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply dvdd-3v not found, using dummy regulator
i2c i2c-1: Added multiplexed i2c bus 3
at24 4-0054: 1024 byte 24c08 EEPROM, writable, 1 bytes/write
i2c i2c-1: Added multiplexed i2c bus 4
i2c i2c-1: Added multiplexed i2c bus 5
rtc rtc0: invalid alarm value: 2018-11-30 35:73:0
rtc-pcf8563 6-0051: rtc core: registered rtc-pcf8563 as rtc0
i2c i2c-1: Added multiplexed i2c bus 6
i2c i2c-1: Added multiplexed i2c bus 7
i2c i2c-1: Added multiplexed i2c bus 8
i2c i2c-1: Added multiplexed i2c bus 9
pca954x 1-0074: registered 8 multiplexed busses for I2C switch pca9548
IR NEC protocol handler initialized
IR RC5(x/sz) protocol handler initialized
IR RC6 protocol handler initialized
IR JVC protocol handler initialized
IR Sony protocol handler initialized
IR SANYO protocol handler initialized
IR Sharp protocol handler initialized
IR MCE Keyboard/mouse protocol handler initialized
IR XMP protocol handler initialized
ucd9200 9-0034: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0034: 4 rails configured
ucd9200 9-0035: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0035: 4 rails configured
ucd9200 9-0036: Device ID UCD9248-80|5.8.0.11400|091112
ucd9200 9-0036: 2 rails configured
cdns-wdt f8005000.watchdog: Xilinx Watchdog Timer at f09bc000 with timeout 10s
EDAC MC: ECC not enabled
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
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
fpga_manager fpga0: Xilinx Zynq FPGA Manager registered
NET: Registered protocol family 10
Segment Routing with IPv6
sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
NET: Registered protocol family 17
can: controller area network core (rev 20170425 abi 9)
NET: Registered protocol family 29
can: raw protocol (rev 20170425)
can: broadcast manager protocol (rev 20170425 t)
can: netlink gateway (rev 20170425) max_hops=1
Registering SWP/SWPB emulation handler
input: gpio-keys as /devices/soc0/gpio-keys/input/input0
rtc-pcf8563 6-0051: setting system clock to 2018-11-05 16:24:13 UTC (1541435053)
of_cfs_init
of_cfs_init: OK
ALSA device list:
  No soundcards found.
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SS08G 7.40 GiB
 mmcblk0: p1 p2
EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 179:2.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
INIT: version 2.88 booting
Starting udev
udevd[814]: starting version 3.2.2
udevd[815]: starting eudev-3.2.2
FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
Starting internet superserver: inetd.
Configuring packages on first boot....
 (This may take several minutes. Please do not power off the machine.)
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 ...
  /etc/rcS.d/S99run-postinsts
INIT: Entering runlevel: 5
Configuring network interfaces... ifup: option with empty value "       gateway"
Starting system message bus: dbus.
Starting Xserver
Starting Dropbear SSH server: Generating key, this may take a while...


X.Org X Server 1.19.3
Release Date: 2017-03-15
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.10.0-327.el7.x86_64 x86_64
Current Operating System: Linux theo-xlnx-linux 4.14.0-xilinx-v2018.2 #1 SMP PREEMPT Mon Nov 5 17:00:30 CET 2018 armv7l
Kernel command line: console=ttyPS0,115200 earlyprintk root=/dev/mmcblk0p2 rw rootwait
Build Date: 11 June 2018  05:07:06PM

Current version of pixman: 0.34.0
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Mon Nov  5 16:24:16 2018
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(EE)
Fatal server error:
(EE) no screens found(EE)
(EE)
Please consult the The X.Org Foundation support
         at http://wiki.x.org
 for help.
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE)
(EE) Server terminated with error (1). Closing log file.

PetaLinux 2018.2 theo-xlnx-linux /dev/ttyPS0

theo-xlnx-linux login:

Any ideas?

 

Thanks in advance for your answers.

 

0 Kudos
Explorer
Explorer
756 Views
Registered: ‎10-21-2015

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Highlighted
Participant silentlab54
Participant
713 Views
Registered: ‎08-29-2018

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Hi hokim,

 

thank you for your reply. I've followed the link that you have suggested. 

 

I've integrated the recipes in my petalinux/yocto project (following the UG1144 guide and the walkthrough of the post) and I was able to build correctly the modules adv7511 and clk-axi-clkgen.

 

Unfortunately, I'm not able to build the last module: adi-axi-hdmi. I attach below the output of the command "petalinux-build -c adi-axi-hdmi":

 

user@localhost:~/xilinx_work/peta-xlnx-linux$ petalinux-build -c adi-axi-hdmi
[INFO] building adi-axi-hdmi
[INFO] sourcing bitbake
INFO: bitbake adi-axi-hdmi
Loading cache: 100% |############################################################################################| Time: 0:00:01
Loaded 3426 entries from dependency cache.
Parsing recipes: 100% |##########################################################################################| Time: 0:00:06
Parsing of 2555 .bb files complete (2520 cached, 35 parsed). 3428 targets, 148 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |#######################################################################################| Time: 0:00:01
Checking sstate mirror object availability: 100% |###############################################################| Time: 0:00:03
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: adi-axi-hdmi-1.0-r0 do_compile: oe_runmake failed
ERROR: adi-axi-hdmi-1.0-r0 do_compile: Function failed: do_compile (log file is located at /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/temp/log.do_compile.2235)
ERROR: Logfile of failure stored in: /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/temp/log.do_compile.2235
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 2 KERNEL_src=/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source KERNEL_PATH=/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source KERNEL_VERSION=4.14.0-xilinx-v2018.2 CC=arm-xilinx-linux-gnueabi-gcc  -mno-thumb-interwork -marm -fuse-ld=bfd LD=arm-xilinx-linux-gnueabi-ld.bfd   AR=arm-xilinx-linux-gnueabi-ar  O=/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-build-artifacts KBUILD_EXTRA_SYMBOLS=
| make -C /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source M=/xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0
| make[1]: Entering directory '/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source'
| make[2]: Entering directory '/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-build-artifacts'
|   AR      /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/built-in.o
|   CC [M]  /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.o
|   CC [M]  /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.o
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c: In function 'axi_hdmi_load':
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:86:19: error: too many arguments to function 'drm_fbdev_cma_init'
|   private->fbdev = drm_fbdev_cma_init(dev, 32, 1, 1);
|                    ^~~~~~~~~~~~~~~~~~
| In file included from /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.h:14:0,
|                  from /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:26:
| /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_fb_cma_helper.h:22:23: note: declared here
|  struct drm_fbdev_cma *drm_fbdev_cma_init(struct drm_device *dev,
|                        ^~~~~~~~~~~~~~~~~~
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c: At top level:
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:133:14: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
|   .unload   = axi_hdmi_unload,
|               ^~~~~~~~~~~~~~~
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:133:14: note: (near initialization for 'axi_hdmi_driver.unload')
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c: In function 'axi_hdmi_encoder_create':
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c:389:27: error: passing argument 1 of 'drm_bridge_attach' from incompatible pointer type [-Werror=incompatible-pointer-types]
|    ret = drm_bridge_attach(dev, bridge);
|                            ^~~
| In file included from /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_crtc.h:43:0,
|                  from /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_atomic_helper.h:31,
|                  from /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c:19:
| /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_bridge.h:251:5: note: expected 'struct drm_encoder *' but argument is of type 'struct drm_device *'
|  int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
|      ^~~~~~~~~~~~~~~~~
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c:389:9: error: too few arguments to function 'drm_bridge_attach'
|    ret = drm_bridge_attach(dev, bridge);
|          ^~~~~~~~~~~~~~~~~
| In file included from /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_crtc.h:43:0,
|                  from /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_atomic_helper.h:31,
|                  from /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c:19:
| /xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/include/drm/drm_bridge.h:251:5: note: declared here
|  int drm_bridge_attach(struct drm_encoder *encoder, struct drm_bridge *bridge,
|      ^~~~~~~~~~~~~~~~~
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c: At top level:
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.c:471:10: error: 'drm_atomic_helper_connector_dpms' undeclared here (not in a function); did you mean 'drm_atomic_helper_connector_reset'?
|   .dpms = drm_atomic_helper_connector_dpms,
|           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|           drm_atomic_helper_connector_reset
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:138:21: error: 'drm_gem_cma_dumb_map_offset' undeclared here (not in a function); did you mean 'drm_gem_dumb_map_offset'?
|   .dumb_map_offset = drm_gem_cma_dumb_map_offset,
|                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~
|                      drm_gem_dumb_map_offset
| cc1: some warnings being treated as errors
| make[3]: *** [/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/Makefile.build:314: /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_encoder.o] Error 1
| make[3]: *** Waiting for unfinished jobs....
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c: In function 'axi_hdmi_platform_probe':
| /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.c:216:9: error: implicit declaration of function 'drm_platform_init'; did you mean 'early_platform_init'? [-Werror=implicit-function-declaration]
|   return drm_platform_init(&axi_hdmi_driver, pdev);
|          ^~~~~~~~~~~~~~~~~
|          early_platform_init
| cc1: some warnings being treated as errors
| make[3]: *** [/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/scripts/Makefile.build:314: /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/axi_hdmi_drv.o] Error 1
| make[2]: *** [/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source/Makefile:1503: _module_/xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0] Error 2
| make[2]: Leaving directory '/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-build-artifacts'
| make[1]: *** [Makefile:146: sub-make] Error 2
| make[1]: Leaving directory '/xilinx_work/peta-xlnx-linux/build/tmp/work-shared/plnx-zynq7/kernel-source'
| make: *** [Makefile:7: all] Error 2
| ERROR: oe_runmake failed
| WARNING: /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/temp/run.do_compile.2235:1 exit 1 from 'exit 1'
| ERROR: Function failed: do_compile (log file is located at /xilinx_work/peta-xlnx-linux/build/tmp/work/plnx_zynq7-xilinx-linux-gnueabi/adi-axi-hdmi/1.0-r0/temp/log.do_compile.2235)
ERROR: Task (/xilinx_work/peta-xlnx-linux/project-spec/meta-user/recipes-modules/adi-axi-hdmi/adi-axi-hdmi.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 727 tasks of which 724 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /xilinx_work/peta-xlnx-linux/project-spec/meta-user/recipes-modules/adi-axi-hdmi/adi-axi-hdmi.bb:do_compile
Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build adi-axi-hdmi
user@localhost:~/xilinx_work/peta-xlnx-linux$

May you help me?

 

Thanks in advance for your answers.

 

0 Kudos
Explorer
Explorer
703 Views
Registered: ‎10-21-2015

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

The old version was used for petalinux2017.4

The attached file is the update for petalinux2018.2

 

https://github.com/analogdevicesinc/linux/tree/master/drivers/gpu/drm/adi_axi_hdmi

https://github.com/analogdevicesinc/linux/tree/master/drivers/gpu/drm/i2c : adv7511.h, adv7511_core.c adv7511_audio.c

https://github.com/analogdevicesinc/linux/blob/master/drivers/clk/clk-axi-clkgen.c

 

We should refer the above link whenever petalinux updates

 

0 Kudos
Participant silentlab54
Participant
683 Views
Registered: ‎08-29-2018

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Hi, 

 

Thank you hokim, now I've compiled all the modules succesfully and I've included them into my rootfs, but with no luck: adv7511 isn't working correctly.

 

The kernel outputs the messages related to the adv7511 voltages:

adv7511 3-0039: 3-0039 supply avdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply dvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply pvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply bgvdd not found, using dummy regulator
adv7511 3-0039: 3-0039 supply dvdd-3v not found, using dummy regulator

 

I think the device tree is correct: I've double checked the petalinux sources, the i2c mux and the adv7511 are mapped in the zc702 dts file.

 

I've tryed different PL implementations (my product and the .bit sourced by Analog Devices), with no luck and the same kernel output.

I've also included the fsbl.elf derived from the two different PL vivado projects.

 

In the petalinux kernel menuconfig I've included the support of the features listed in the post that you have linked above.

 

Any ideas or debug tools to understand where could be the problem?

 

P.s.: the adv7511 supplied with my ZC702 board works correctly. I've flashed into the SD card the analog devices .img and I saw the framebuffer working correctly.

 

Thanks in advance for your answers!

0 Kudos
Explorer
Explorer
671 Views
Registered: ‎10-21-2015

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

0 Kudos
Participant silentlab54
Participant
205 Views
Registered: ‎08-29-2018

Re: ZC702 + Petalinux + ADV7511 HDMI Video out for X server: working example?

Hi,

I'm not using Zed board, but only Xilinx ZC702: therefore, I need informations and hints strictly related to ZC702.

Actually, I successfully developed my project, which doesn't require ADV7511, but, for debug purposes, I need to have the HDMI output up&running.

Honestly, I don't understand why ADV7511 (HDMI output) on ZC702 doesn't work "out of the box" in Xilinx Petalinux. This is the first time I encounter an evaluation kit with a primary peripheral installed but not activated by the vendor.

1) Why do I need to change the kernel from petalinux Kernel to ADI kernel? The 2018.3 xlnx kernel is not sufficient to have ADV7511 up&running?

2) I don't see in ADI kernel a specific defconfig for ZC702 + ADV7511, but only a generic zynq defconfig (I've opened it with menuconfig and I saw the ADV7511 kernel support was not enabled..)

3) Do I have to modify the xilinx device tree? Why petalinux 2018.3 xlnx kernel is not sufficient to have ADV7511 up&running?

Thanks in advance for the help.

 

0 Kudos