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
Visitor elhvt
Visitor
253 Views
Registered: ‎10-17-2019

Petalinux with external Linux Distribution

I am trying to build a project pointing to external Linux files:

On petalinux-config I am choosing

Linux Components Selection --> linux kernel (ext-loc-src)

Then "External linux-kernel local source settings -->

/home/edshor/popcorn/components/linux-kernel/linux-4.4.137) EXternal

In the above folder I extracted the fiels from "linux-4.4.137.tar.gz"

But when I run petalinux-build I get this errors:

[INFO] building project
[INFO] sourcing bitbake
[INFO] generating user layers
INFO: bitbake petalinux-user-image
WARNING: Layer plnx-generated should set LAYERSERIES_COMPAT_plnx-generated in its conf/layer.conf file to list the core layer names it is compatible with.
WARNING: Layer meta-user should set LAYERSERIES_COMPAT_meta-user in its conf/layer.conf file to list the core layer names it is compatible with.
Loading cache: 100% |#################################################| Time: 0:00:00
Loaded 3810 entries from dependency cache.
Parsing recipes: 100% |###############################################| Time: 0:00:03
Parsing of 2777 .bb files complete (2768 cached, 9 parsed). 3812 targets, 150 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies
Initialising tasks: 100% |############################################| Time: 0:00:04
Checking sstate mirror object availability: 100% |####################| Time: 0:00:14
Sstate summary: Wanted 543 Found 0 Missed 1086 Current 683 (0% match, 55% complete)
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: linux-xlnx-4.19-xilinx-v2019.1+git999-r0 do_populate_lic: QA Issue: linux-xlnx: The LIC_FILES_CHKSUM does not match for file://COPYING;md5=bbea815ee2795b2f4230826c0c6b8814
linux-xlnx: The new md5 checksum is d7810fab7487fb0aad327b76f1be7cd7
linux-xlnx: Here is the selected license text:
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv

NOTE! This copyright does *not* cover user programs that use kernel
services by normal system calls - this is merely considered normal use
of the kernel, and does *not* fall under the heading of "derived work".
Also note that the GPL below is copyrighted by the Free Software
Foundation, but the instance of code that it refers to (the Linux
kernel) is copyrighted by me and others who actually wrote it.

Also note that the only valid version of the GPL as far as the kernel
is concerned is _this_ particular version of the license (ie v2, not
...
`Gnomovision' (which makes passes at compilers) written by James Hacker.

<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice

This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
linux-xlnx: Check if the license information has changed in /home/edshor/popcorn/components/linux-kernel/linux-4.4.137/COPYING to verify that the LICENSE value "GPLv2" remains valid [license-checksum]
ERROR: linux-xlnx-4.19-xilinx-v2019.1+git999-r0 do_populate_lic: Fatal QA errors found, failing task.
ERROR: linux-xlnx-4.19-xilinx-v2019.1+git999-r0 do_populate_lic: Function failed: populate_lic_qa_checksum
ERROR: Logfile of failure stored in: /home/edshor/popcorn/build/tmp/work/plnx_zynqmp-xilinx-linux/linux-xlnx/4.19-xilinx-v2019.1+git999-r0/temp/log.do_populate_lic.13317
ERROR: Task (/opt/pkg/petalinux/2019.1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.1.bb:do_populate_lic) failed with exit code '1'
NOTE: Tasks Summary: Attempted 23 tasks of which 22 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
/opt/pkg/petalinux/2019.1/components/yocto/source/aarch64/layers/meta-xilinx/meta-xilinx-bsp/recipes-kernel/linux/linux-xlnx_2019.1.bb:do_populate_lic
Summary: There were 2 WARNING messages shown.
Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
ERROR: Failed to build project

 

What am I doing wrong?

 

Thanks

 

Edson

 

 

 

 

 

 

0 Kudos
5 Replies
Moderator
Moderator
208 Views
Registered: ‎12-04-2016

Re: Petalinux with external Linux Distribution

Hi Edson

Please follow the steps as described in UG1144 "Configuring Out-of-tree Build" section:

https://www.xilinx.com/support/documentation/sw_manuals/xilinx2018_3/ug1144-petalinux-tools-reference-guide.pdf

 

Best Regards

Shabbir

0 Kudos
Visitor elhvt
Visitor
184 Views
Registered: ‎10-17-2019

Re: Petalinux with external Linux Distribution

Hi Shabbir,

 

I am following the steps from this section, on page 107 of UG1144.

The only difference is that I am not changing the U-Boot, keeping the u-boot-xlnx option. Do I need to change it also? If so, where can I find the U-Boot compatible with Linux 4.4.137?

Thanks.

 

Edson

 

0 Kudos
Moderator
Moderator
164 Views
Registered: ‎05-10-2017

Re: Petalinux with external Linux Distribution

2019.1 release uses 4.19 kernel version. Please use this version for your ext src

-------------------------------------------------------------------------
Don’t forget to reply, kudo, and accept as solution.
-------------------------------------------------------------------------
0 Kudos
Visitor elhvt
Visitor
153 Views
Registered: ‎10-17-2019

Re: Petalinux with external Linux Distribution

I need to use 4.4.137.

Do you mean that I can not use any Linux distribution with Petalinux?

I thought this tied version stuff was only between Vivado and Petalinux! 

0 Kudos
Adventurer
Adventurer
97 Views
Registered: ‎12-21-2012

回复: Petalinux with external Linux Distribution

Only compiled in 2018.3, don't know if there are differences between these two versions. In 2018 the source should be in ../components/ext_sources.

I didn't use external uboot either, but my kernel was v4.14 which is the kernel version of petalinux v2018.3, so I'm not sure if your errors were caused by mismatch of kernel and uboot. Maybe you can try to compile v4.19 and see if this error comes.

0 Kudos