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
Contributor
Contributor
310 Views
Registered: ‎03-21-2019

petalinux 2018.3 linux Package Version issue

HI all.

i am working on adrv9009 with zcu102 up to 4 days before i am able to build my petalinux project for adrv9009 project i dont know what happened with git code suddenly we are getting error while building petalinux adrv9009 projects. i seen git code committed 4 dayes before here
https://github.com/analogdevicesinc/linux

after this committed code i am getting error in petalinux 2018.3 project

error : ERROR: linux-xlnx-4.14-r0 do_kernel_version_sanity_check: Package Version (4.14) does not match of kernel being built (4.19). Please update the PV variable to match the kernel source or set KERNEL_VERSION_SANITY_SKIP="1" in your recipe.

can u please help me in this .??

note: i changed PV variable in meta-adi/meta-adi-xilinx/recipes-kernel/linux/linuxxlnx_%.bbappend

but i am getting licence issue .

ERROR: linux-xlnx-4.19-r0 do_populate_lic: QA Issue: linux-xlnx: The LIC_FILES_CHKSUM does not match for file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7

0 Kudos
6 Replies
Moderator
Moderator
293 Views
Registered: ‎12-04-2016

Re: petalinux 2018.3 linux Package Version issue

Hi @manibenwa 

You can check out their ad9361-xilinx-4.14 branch instead of using master branch

https://github.com/analogdevicesinc/linux/tree/ad9361-xilinx-4.14

 

BTW, not the right place for this query. Request to contact analog devices or their forums

0 Kudos
Contributor
Contributor
256 Views
Registered: ‎03-21-2019

Re: petalinux 2018.3 linux Package Version issue

Hi @shabbirk  

Thanks for your reply,

i alredy posted in analog forums i am waiting for reply,

like u said i changed master branch in https://github.com/analogdevicesinc/meta-adi/blob/master/meta-adi-xilinx/recipes-kernel/linux/linux-xlnx_%25.bbappend

we get the following error right at the start:

checkout and clobber any unimportant files
git checkout -f ${machine_branch}
which triggered exception FetchError: Fetcher failure: Unable to resolve 'ad9361-xilinx-4.14' in upstream git repository in git ls-remote output for github.com/Xilinx/linux-xlnx.git

 

so where i have to chage to get ad9361-xilinx-4.14 branch into my project

This is my  .bbappend file

DESCRIPTION = "ADI kernel"
BRANCH = "master"
# always use latest source revision
SRCREV = "${AUTOREV}"
SRC_URI += "git://github.com/analogdevicesinc/linux.git;protocol=https;branch=${BRANCH}"
KBRANCH = "${BRANCH}"
PV = "4.14"
# override kernel config file
KBUILD_DEFCONFIG_zynq = "zynq_xcomm_adv7511_defconfig"
KBUILD_DEFCONFIG_zynqmp = "adi_zynqmp_defconfig"
KBUILD_DEFCONFIG_microblaze = "adi_mb_defconfig"

# In adi_mb_defconfig, CONFIG_INITRAMFS_SOURCE is enabled by default.
# Since we are in petalinux already, a simpleImage will be build with the proper
# initramfs so that, we don't have to provide an external one...
do_configure_prepend_microblaze() {
sed -i 's,CONFIG_INITRAMFS_SOURCE=.*,,' ${B}/.config
}

 

I'm totally confused on what could be the right combination between Xilinx git and ADI's. Appreciate your help.

0 Kudos
Visitor mborden
Visitor
182 Views
Registered: ‎06-12-2019

Re: petalinux 2018.3 linux Package Version issue

I recently ran into a similar issue. I was able to build using the following modifications to linux-xlnx_%.bbappend:

1) Modify the BRANCH = "master" entry to your branch of interest, i.e. BRANCH = "ad9361-xilinx-4.14"

2) Update the "SRC_URI +=" line to be simply "SRC_URI =" (remove the +). This bbappend recipe originally added the linux-adi kernel URI to the SRC_URI list, and that works fine for master branch, as that's universal to both repos. However, your branch won't exist in the Xilinx Linux repo so changing the SRC_URI value to only use the ADI Linux repo will fix that. 

3) Keep the PV value at 4.14. If you check the Makefile for the branch you're pulling from, the PATCHLEVEL is still 4.14. 
https://github.com/analogdevicesinc/linux/blob/ad9361-xilinx-4.14/Makefile

4) Override the LIC_FILE_CHECKSUM by adding this line:

LIC_FILES_CHKSUM = "file://COPYING;md5=d7810fab7487fb0aad327b76f1be7cd7"

Where the checksum is the value of the COPYING file in the branch of interest, i.e. https://github.com/analogdevicesinc/linux/blob/ad9361-xilinx-4.14/COPYING. You can obtain this with the following command:

md5sum COPYING

Good luck!

 

 

 

0 Kudos
Explorer
Explorer
151 Views
Registered: ‎10-04-2017

Re: petalinux 2018.3 linux Package Version issue

Are you using the correct adi branch in your layers?  If it is pulling the top of the kernel tree that seems to indicate the layers you are using are not for 2018.3.

jeff

0 Kudos
Visitor mborden
Visitor
97 Views
Registered: ‎06-12-2019

Re: petalinux 2018.3 linux Package Version issue

Understood, though I think this might be an ADI maintenance issue. The recipe for the Linux kernel from the meta-adi repository (https://github.com/analogdevicesinc/meta-adi) was created pointing to the master branch this past April and hasn't been updated since then. At that time, the compatabilty matrix published by ADI indicated that the Xilinx 2018.3 tools were compatible with the master branch:

https://wiki.analog.com/resources/fpga/docs/releases

Since then, the separate ADI Linux Kernel git repository has been recently updated with some merges to master, which lead to the initial problems that OP had. 

Unfortunately, in looking into this issue further, I do see this most recent commit to the meta-adi-xilinx Linux kernel recipe specifically changed the SRC_URI modification that I made in my suggested response:

https://github.com/analogdevicesinc/meta-adi/commit/838bb11217c41edd504ae210b2368e3847864a4d#diff-b82fdcf3ea13a446eced385a1ae01d60

Namely this will cause problems with any sort of custom kernel configuration. Unfortunately, because of these changes, the ADI Wiki disclaimers that "this was tested with 2018.3" are no longer totally accurate, as the ADI Linux Kernel git repo updates introduces some breaking changes to the meta-adi workflow. As such, I'd have to agree with the original response to OP that this is likely something that has to be addressed directly with ADI. Hopefully it is on their roadmap, as the "breaking changes" originated from merging a number of xilinx_2019.1 updates into the ADI Linux Kernel repo. 

0 Kudos
Explorer
Explorer
80 Views
Registered: ‎10-04-2017

Re: petalinux 2018.3 linux Package Version issue

Hello,

 I just checked mine and I am using the ADI master branch at commit 7b66c2e70521aaecf1e8d57191e4b9fc94088964 and it is still using 4.14.  Since I am using an Ultra96 I had to make changes to how the devicetree works but at this commit I was able to build and boot my Ultra96 using Xilinx 2018.3 tools.

 

jeff

 

0 Kudos