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: 
Highlighted
Adventurer
Adventurer
295 Views
Registered: ‎09-06-2019

xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi,

I am running a VCU TRD design based on the ZCU106 and am running into an issue where the VCU Core Encoder clock fails resulting in the following message:

Could not get core_enc clock

Does any one know why this would happen? 

Thanks!

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
Adventurer
Adventurer
53 Views
Registered: ‎09-06-2019

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi @kvasantr  and @watari 

I was able to resolve this issue by rebuilding the pl and recompiling the kernel. Thanks for your input and help!

View solution in original post

6 Replies
Mentor watari
Mentor
290 Views
Registered: ‎06-16-2013

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi tkato@poc.com 

 

What version are you using ? 2019.1 ? 2019.2 ? or other ?

 

If 2019.1, I have never seen like this message.

 

Best regards,

0 Kudos
Adventurer
Adventurer
285 Views
Registered: ‎09-06-2019

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi @watari

Using 2019.1 in drivers/soc/xilinx/xlnx_vcu.c in the probe function:

static int xvcu_probe(struct platform_device *pdev)
{
   .
   .
   .
	xvcu->core_enc = devm_clk_get(pdev->dev.parent, "vcu_core_enc");
	if (IS_ERR(xvcu->core_enc)) {
		dev_err(&pdev->dev, "Could not get core_enc clock\n");
		return PTR_ERR(xvcu->core_enc);
	}
   .
   .
   .
}

 

 

0 Kudos
Mentor watari
Mentor
263 Views
Registered: ‎06-16-2013

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi tkato@poc.com 

 

As I already mentioned before, I had already evaluated VCU TRD 2019.1 by gstreamer and have never seen like this message.

 

In your case, I suspect clock setting or using different version between pmufw and linux kernel/dtb.

 

Make sure boot log about clock message.

 

Best regards,

Moderator
Moderator
138 Views
Registered: ‎11-09-2015

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

tkato@poc.com wrote:

Hi,

I am running a VCU TRD design based on the ZCU106

[Florent] - This is very unclear. Are you using the ZCU106 or a custom board?
What changed did you do compared to the VCU TRD? Do you get the same error with the pre-built image of the VCU TRD?


 


Florent
Product Application Engineer - Xilinx Technical Support EMEA
**~ Don't forget to reply, give kudos, and accept as solution.~**
0 Kudos
Moderator
Moderator
91 Views
Registered: ‎04-12-2017

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hello tkato@poc.com 

The issue is with your device tree and this error print is coming from the following code:

https://github.com/Xilinx/linux-xlnx/blob/master/drivers/soc/xilinx/xlnx_vcu.c#L276

The generic function devm_clk_get tries to read the clock from the device tree and if it cannot find this particular property in the device tree binding then it returns this error.

Refer following link as an example for VCU device tree:

https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devicetree/bindings/soc/xilinx/xlnx%2Cvcu.txt

 

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
Adventurer
Adventurer
54 Views
Registered: ‎09-06-2019

Re: xilinx-vcu : Could not get core_enc clock

Jump to solution

Hi @kvasantr  and @watari 

I was able to resolve this issue by rebuilding the pl and recompiling the kernel. Thanks for your input and help!

View solution in original post