cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,824 Views
Registered: ‎01-13-2016

ZC706 enabling ADV7511 with Yocto

I cloned Yocto to try building a Linux image. I have poky branch sumo. I also pulled the xilinx repo and got the bsp added to my build.

 

This all works fine. I ran bitbake core-image-sato and I got a full complete build. I can boot with this output just fine, and am getting root access through the J21 UART port.

 

However, even though the OS boots up fine, I don't get any display out from the HDMI. I believe core-image-sato is supposed to come with some desktop manager, Matchbox I think? So I would like to get some sort of display out to a monitor.

 

What do I need to do to enable the HDMI port on the 706 board with Yocto?

0 Kudos
4 Replies
Highlighted
Moderator
Moderator
1,797 Views
Registered: ‎04-24-2017

Re: ZC706 enabling ADV7511 with Yocto

Hi @lm_atl,

 

Have you enabled below Linux Kernel Configuration
Device Drivers --->
Graphics support --->
<*> Direct Rendering Manager (XFree86 4.1.0 and higher DRI support) --->
<*> DRM Support for Analog FPGA platforms

Device Drivers --->
Graphics support --->
Console display driver support --->
<*> Framebuffer Console support

Thanks,
Sandeep
PetaLinux Yocto | Embedded SW Support

---------------------------------------------------------------------------
Don’t forget to Reply, Kudo, and Accept as Solution.
---------------------------------------------------------------------------
0 Kudos
Highlighted
Voyager
Voyager
1,778 Views
Registered: ‎10-21-2015

Re: ZC706 enabling ADV7511 with Yocto

You need to install some modules from ADI(Analog Device Inc) linux repository

They are the followings

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

 

I attached recipes for them

0 Kudos
Highlighted
Explorer
Explorer
1,762 Views
Registered: ‎01-13-2016

Re: ZC706 enabling ADV7511 with Yocto

Thanks, thats very helpful!

 

I'm new at Yocto and trying to learn how to use everything, would it be sufficient for me to unpack the .tar you included to my computer and add the .bb files for those 3 to the bblayers.conf file? Or is there more to it than that?

0 Kudos
Highlighted
Voyager
Voyager
1,746 Views
Registered: ‎10-21-2015

Re: ZC706 enabling ADV7511 with Yocto

First of all, make sure your vivado project includes logic for ADV7511

https://github.com/analogdevicesinc/hdl/tree/master/projects/adv7511/zc706

 

I attached my project simplified for zed board.

 

Then your devicetree should be like this

&axi_iic_0 {
    adv7511: adv7511@39 {
        compatible = "adi,adv7511";
        reg = <0x39>, <0x3f>;
        reg-names = "primary", "edid";

        adi,input-depth = <8>;
        adi,input-colorspace = "yuv422";
        adi,input-clock = "1x";
        adi,input-style = <1>;
        adi,input-justification = "right";
        adi,clock-delay = <0>;

        ports {
            #address-cells = <1>;
            #size-cells = <0>;

            port@0 {
                reg = <0>;
                adv7511_in: endpoint {
                    remote-endpoint = <&axi_hdmi_out>;
                };
            };
        };
    };
};

&axi_clkgen_0 {
    compatible = "adi,axi-clkgen-2.00.a";
    #clock-cells = <0>;
    clocks = <&clkc 16>;
};

&axi_hdmi_tx_0 {
    compatible = "adi,axi-hdmi-tx-1.00.a";
    dmas = <&axi_vdma_0 0>;
    dma-names = "video";
    clocks = <&axi_clkgen_0>;

    port {
        axi_hdmi_out: endpoint {
            remote-endpoint = <&adv7511_in>;
        };
    };
};

 In yocto, don't forget to add IMAGE_INSTALL_append = " adi-axi-hdmi adv7511 clk-axi-clkgen" to  core-image-sato.bbappend