cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vinaymanik
Visitor
Visitor
546 Views
Registered: ‎01-24-2019

petalinux build error udev-extraconf: No match found

petalinux version : 2020.2

host os: centos7

get error during build after making any changes to rootfs. created the project using BSP xilinx-zc702-v2020.2-final.bsp. 

i have following error whi[le running the build command. tried disabling udev-extraconf. leads to some other failures. these source files are there in directory compononets/yocto. some how the system not building the package. an one know how to fix this? 

ERROR: petalinux-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf -v --rpmverbosity=info -y -c /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf --setopt=reposdir=/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs/etc/yum.repos.d --installroot=/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs --setopt=logdir=/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp --repofrompath=oe-repo,/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install base-passwd bridge-utils can-utils haveged kernel-modules mtd-utils openssh-sftp-server packagegroup-core-boot packagegroup-core-ssh-dropbear pciutils run-postinsts shadow tcf-agent udev-extraconf' returned 1:
DNF version: 4.2.2
cachedir: /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo
repo: using cache for: oe-repo
not found other for:
not found modules for:
not found deltainfo for:
not found updateinfo for:
oe-repo: using metadata from Thu 29 Apr 2021 04:44:48 PM UTC.
No module defaults found
No match for argument: udev-extraconf
Error: Unable to find a match

ERROR: Logfile of failure stored in: /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/temp/log.do_rootfs.59269
ERROR: Task (/proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/components/yocto/layers/meta-petalinux/recipes-core/images/petalinux-image-minimal.bb:do_rootfs) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2579 tasks of which 2578 didn't need to be rerun and 1 failed.

Tags (1)
0 Kudos
10 Replies
shabbirk
Moderator
Moderator
485 Views
Registered: ‎12-04-2016

Hi @vinaymanik 

Can I know what changes to rootfs causing the failure? It would be good if you can narrow down to the specific option of rootfs causing the error

 

Regards

Shabbir

0 Kudos
vinaymanik
Visitor
Visitor
456 Views
Registered: ‎01-24-2019

i didnt make any changes to config. just re-running the command petalinux-config -c rootfs and close the menuconfig window without any changes. then do_rootfs fails 

if i do -mrproper and run the build command, all passes. but i noticed that, QEMU fails to boot propery at that time. gets an error saying /etc/inittab[2] and it hangs here. 

so my understading is that, in both cases, rootfs is not getting build correctly. 

not seeing this issue on Ubuntu. 

0 Kudos
shabbirk
Moderator
Moderator
402 Views
Registered: ‎12-04-2016

Hi @vinaymanik 

Can you check to see if the answer provided as part of this forum thread helps in booting QEMU

https://forums.xilinx.com/t5/Embedded-Linux/petalinux-build-sdk-failed-for-zc702/td-p/1235892

 

Regards

Shabbir

0 Kudos
vinaymanik
Visitor
Visitor
343 Views
Registered: ‎01-24-2019

no, it didnt help. still get the same error for udev-extraconf during the process do_rootfs

one change i notices that, earlier petalinux-build -c udev-extraconf used to fail. now thats getting executed successfully

but rootfs still fails. 

 

0 Kudos
hokim
Scholar
Scholar
304 Views
Registered: ‎10-21-2015

Hi 

The error happens because rpm file  for udev-extracconf doesn't  exist  under build/tmp/rpm

Bitbake doesn't generate rpm file  when it is an empty package which contains no files

You should figure out why the package is empty. 

You might modify udev-extraconf recipe(bb file)

0 Kudos
vinaymanik
Visitor
Visitor
278 Views
Registered: ‎01-24-2019

i can see rpm files for udev-extraconf under buil/tmp/deploy/rpm directory 

[vini@aremote05 slt_02]$
[vini@aremote05 slt_02]$ ls build/tmp/deploy/rpm/cortexa9t2hf_neon/ude
udev-extraconf-1.1-r0.cortexa9t2hf_neon.rpm udev-extraconf-dbg-1.1-r0.cortexa9t2hf_neon.rpm udev-extraconf-dev-1.1-r0.cortexa9t2hf_neon.rpm udev-extraconf-lic-1.1-r0.cortexa9t2hf_neon.rpm

 

0 Kudos
hokim
Scholar
Scholar
265 Views
Registered: ‎10-21-2015

Hi

Can you see udev-extraconf-1.1-r0.cortexa9t2hf_neon.rpm after following command?

$ find  /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo -name udev-extraconf-1.1-r0.cortexa9t2hf_neon.rpm

Strictly speaking, dnf tries to install udev-extraconf from it

If the rpm file exists, you have to check the repodata file like this

$ vi /proj/gpfs/vini/Desktop/petalinux/slt_04/xilinx-zc702-2020.2/build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo/repodata/*-filelists.xml.gz

Then search udev-extraconf in vi editor

 

  

0 Kudos
hokim
Scholar
Scholar
249 Views
Registered: ‎10-21-2015

Hi

Your problem might be originated from corrupted yocto layer under components.

You can build the image again after cleaning up it

$ cd <peta-proj-dir>

$ petalinux-build -x mrproper

$ rm -fr components

$ petalinux-config --silentconfig

$ petalinux-build

0 Kudos
vinaymanik
Visitor
Visitor
237 Views
Registered: ‎01-24-2019

this is present in repodata

 

</package>
<package pkgid="eb2cd2c8cd541f1cdc085a18b58cb9df0cc3f5a226a57d8ec0cc2257b7e76078" name="udev-extraconf-dbg" arch="cortexa9t2hf_neon">
<version epoch="0" ver="1.1" rel="r0"/>
</package>
<package pkgid="ffd3dee664738df56d34a1cd06f757cc1163ae160d12306350fa80f662f7770d" name="udev-extraconf-lic" arch="cortexa9t2hf_neon">
<version epoch="0" ver="1.1" rel="r0"/>
<file type="dir">/usr</file>
<file type="dir">/usr/share</file>
<file type="dir">/usr/share/licenses</file>
<file type="dir">/usr/share/licenses/udev-extraconf</file>
<file>/usr/share/licenses/udev-extraconf/COPYING.MIT</file>
<file>/usr/share/licenses/udev-extraconf/generic_MIT</file>
</package>

 

i couldnt find fpga-manager-script here. i get for these 2 packags 

oe-repo: using metadata from Fri 21 May 2021 12:11:12 AM UTC.
No module defaults found
No match for argument: fpga-manager-script
No match for argument: udev-extraconf
Error: Unable to find a match

 

 

0 Kudos
hokim
Scholar
Scholar
171 Views
Registered: ‎10-21-2015

HI 

The dnf error seems to be caused by the absence of package with name="udev-extraconf" in repdata

It means do_rootfs task of petalinux-image-minimal recipe couldn't  hardlink(copy) the rpm file from build/tmp/deploy/rpm to build/tmp/work/zynq_generic-xilinx-linux-gnueabi/petalinux-image-minimal/1.0-r0/oe-rootfs-repo/rpm by executing the function of https://github.com/Xilinx/poky/blob/rel-v2020.2/meta/lib/oe/package_manager.py#L644-L725

I don't think the function is wrong

Your project or your system seems to have something wrong

Cleanup your project and build it  again 

 

0 Kudos