All of lore.kernel.org
 help / color / mirror / Atom feed
* #yocto #raspberrypi #linux . Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image.
@ 2020-05-27 10:37 Siddhartha V
  2020-05-28 15:42 ` [yocto] " Khem Raj
  0 siblings, 1 reply; 3+ messages in thread
From: Siddhartha V @ 2020-05-27 10:37 UTC (permalink / raw)
  To: yocto


[-- Attachment #1.1: Type: text/plain, Size: 4600 bytes --]

Hello,

I am building the xen minimal image using yocto warrior *("bitbake xen-image-minimal")* by giving the target machine as *"raspberrypi4"*. It reached 99% but at last I got below error and the whole process terminated with error.

ERROR: xen-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command '/home/siddhu/Documents/yocto/ build/tmp/work/raspberrypi4- poky-linux-gnueabi/xen-image- minimal/1.0-r0/recipe-sysroot- native/usr/bin/dnf -v --rpmverbosity=info -y -c /home/siddhu/Documents/yocto/ build/tmp/work/raspberrypi4- poky-linux-gnueabi/xen-image- minimal/1.0-r0/rootfs/etc/dnf/ dnf.conf --setopt=reposdir=/home/ siddhu/Documents/yocto/build/ tmp/work/raspberrypi4-poky- linux-gnueabi/xen-image- minimal/1.0-r0/rootfs/etc/yum. repos.d --installroot=/home/siddhu/ Documents/yocto/build/tmp/ work/raspberrypi4-poky-linux- gnueabi/xen-image-minimal/1.0- r0/rootfs --setopt=logdir=/home/siddhu/ Documents/yocto/build/tmp/ work/raspberrypi4-poky-linux- gnueabi/xen-image-minimal/1.0- r0/temp --repofrompath=oe-repo,/home/ siddhu/Documents/yocto/build/ tmp/work/raspberrypi4-poky- linux-gnueabi/xen-image- minimal/1.0-r0/oe-rootfs-repo --nogpgcheck install kernel-module-xen-blkback kernel-module-xen-gntalloc kernel-module-xen-gntdev kernel-module-xen-netback kernel-module-xen-wdt packagegroup-core-boot packagegroup-core-ssh-dropbear packagegroup-core-ssh-openssh qemu run-postinsts xen-base locale-base-en-us locale-base-en-gb' returned 1:

DNF version: 4.1.0

cachedir: /home/siddhu/Documents/yocto/ build/tmp/work/raspberrypi4- poky-linux-gnueabi/xen-image- minimal/1.0-r0/rootfs/var/ cache/dnf

Added oe-repo repo from /home/siddhu/Documents/yocto/ build/tmp/work/raspberrypi4- poky-linux-gnueabi/xen-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 Wed 27 May 2020 06:15:39 AM UTC.

Last metadata expiration check: 0:00:01 ago on Wed 27 May 2020 06:15:45 AM UTC.

No module defaults found

No match for argument: kernel-module-xen-blkback

No match for argument: kernel-module-xen-gntalloc

No match for argument: kernel-module-xen-gntdev

No match for argument: kernel-module-xen-netback

No match for argument: kernel-module-xen-wdt

Error: Unable to find a match

ERROR: xen-image-minimal-1.0-r0 do_rootfs:

ERROR: xen-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs

ERROR: Logfile of failure stored in: /home/siddhu/Documents/yocto/ build/tmp/work/raspberrypi4- poky-linux-gnueabi/xen-image- minimal/1.0-r0/temp/log.do_ rootfs.14256

ERROR: Task (/home/siddhu/Documents/yocto/ sources/meta-virtualization/ recipes-extended/images/xen- image-minimal.bb:do_rootfs) failed with exit code '1'

NOTE: Tasks Summary: Attempted 2605 tasks of which 2152 didn't need to be rerun and 1 failed.

Summary: 1 task failed:

/home/siddhu/Documents/yocto/ sources/meta-virtualization/ recipes-extended/images/xen- image-minimal.bb:do_rootfs

Summary: There were 3 ERROR messages shown, returning a non-zero exit code.

May I know what mistake I am doing here please. I have attached screenshot also.

*My bblayer.conf file is as below:*

# POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"

BBFILES ?= ""
BBLAYERS ?= " \

/home/siddhu/Documents/yocto/ sources/poky/meta \
/home/siddhu/Documents/yocto/ sources/poky/meta-poky \
/home/siddhu/Documents/yocto/ sources/poky/meta-yocto-bsp \
/home/siddhu/Documents/yocto/ sources/meta-openembedded/ meta-oe \
/home/siddhu/Documents/yocto/ sources/meta-openembedded/ meta-multimedia \
/home/siddhu/Documents/yocto/ sources/meta-openembedded/ meta-python \
/home/siddhu/Documents/yocto/ sources/meta-openembedded/ meta-networking \
/home/siddhu/Documents/yocto/ sources/meta-openembedded/ meta-filesystems \
/home/siddhu/Documents/yocto/ sources/meta-cloud-services \
/home/siddhu/Documents/yocto/ sources/meta-selinux \
/home/siddhu/Documents/yocto/ sources/meta-virtualization\
/home/siddhu/Documents/yocto/ sources/meta-raspberrypi \
"

*My local.conf file I have added the below details:*

MACHINE ??= "raspberrypi4"
DISTRO_FEATURES += "virtualization xen"
PACKAGE_CLASSES ?= "package_rpm"
CONF_VERSION = "1"
IMAGE_FEATURES += "ssh-server-dropbear"

I have tried the same for "cubieboard2" also even there I faced the same issue.Eagerly waiting for the response.

Regards,
Siddhartha V

[-- Attachment #1.2: Type: text/html, Size: 17681 bytes --]

[-- Attachment #2: fail@_99_.png --]
[-- Type: image/png, Size: 159119 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] #yocto #raspberrypi #linux . Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image.
  2020-05-27 10:37 #yocto #raspberrypi #linux . Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image Siddhartha V
@ 2020-05-28 15:42 ` Khem Raj
  2020-05-28 15:45   ` Siddhartha V
  0 siblings, 1 reply; 3+ messages in thread
From: Khem Raj @ 2020-05-28 15:42 UTC (permalink / raw)
  To: yocto



On 5/27/20 3:37 AM, Siddhartha V wrote:
> Hello,
> 
> I am building the xen minimal image using yocto warrior* ("bitbake 
> xen-image-minimal") *by giving the target machine as *"raspberrypi4"*. 
> It reached 99% but at last I got below error and the whole process 
> terminated with error.
> 
> ERROR: xen-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command 
> '/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf 
> -v --rpmverbosity=info -y -c 
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf 
> --setopt=reposdir=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/etc/yum.repos.d 
> --installroot=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs 
> --setopt=logdir=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/temp 
> --repofrompath=oe-repo,/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/oe-rootfs-repo 
> --nogpgcheck install kernel-module-xen-blkback 
> kernel-module-xen-gntalloc kernel-module-xen-gntdev 
> kernel-module-xen-netback kernel-module-xen-wdt packagegroup-core-boot 
> packagegroup-core-ssh-dropbear packagegroup-core-ssh-openssh qemu 
> run-postinsts xen-base locale-base-en-us locale-base-en-gb' returned 1:
> 
> DNF version: 4.1.0
> 
> cachedir: 
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/var/cache/dnf
> 
> Added oe-repo repo from 
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-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 Wed 27 May 2020 06:15:39 AM UTC.
> 
> Last metadata expiration check: 0:00:01 ago on Wed 27 May 2020 06:15:45 
> AM UTC.
> 
> No module defaults found
> 
> No match for argument: kernel-module-xen-blkback
> 
> No match for argument: kernel-module-xen-gntalloc
> 
> No match for argument: kernel-module-xen-gntdev
> 
> No match for argument: kernel-module-xen-netback
> 
> No match for argument: kernel-module-xen-wdt
> 

it seems XEN related options are missing from kernel config. Perhaps you 
can add a config fragment adding them and stitch it to linux-raspberrypi 
recipe via bbappend.

> Error: Unable to find a match
> 
> ERROR: xen-image-minimal-1.0-r0 do_rootfs:
> 
> ERROR: xen-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> 
> ERROR: Logfile of failure stored in: 
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/temp/log.do_rootfs.14256
> 
> ERROR: Task 
> (/home/siddhu/Documents/yocto/sources/meta-virtualization/recipes-extended/images/xen-image-minimal.bb:do_rootfs) 
> failed with exit code '1'
> 
> NOTE: Tasks Summary: Attempted 2605 tasks of which 2152 didn't need to 
> be rerun and 1 failed.
> 
> Summary: 1 task failed:
> 
>    
> /home/siddhu/Documents/yocto/sources/meta-virtualization/recipes-extended/images/xen-image-minimal.bb:do_rootfs
> 
> Summary: There were 3 ERROR messages shown, returning a non-zero exit code.
> 
> May I know what mistake I am doing here please. I have attached 
> screenshot also.
> 
> 
> *My bblayer.conf file is as below:*
> 
> # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf
> # changes incompatibly
> POKY_BBLAYERS_CONF_VERSION = "2"
> BBPATH = "${TOPDIR}"
> 
> BBFILES ?= ""
> BBLAYERS ?= " \
> 
>    /home/siddhu/Documents/yocto/sources/poky/meta \
>    /home/siddhu/Documents/yocto/sources/poky/meta-poky \
>    /home/siddhu/Documents/yocto/sources/poky/meta-yocto-bsp \
>    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-oe \
>    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-multimedia \
>    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-python \
>    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-networking \
>    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-filesystems \
>    /home/siddhu/Documents/yocto/sources/meta-cloud-services \
>    /home/siddhu/Documents/yocto/sources/meta-selinux \
>    /home/siddhu/Documents/yocto/sources/meta-virtualization\
>    /home/siddhu/Documents/yocto/sources/meta-raspberrypi \
>    "
> 
> *My local.conf file I have added the below details:*
> 
> MACHINE ??= "raspberrypi4"
> DISTRO_FEATURES += "virtualization xen"
> PACKAGE_CLASSES ?= "package_rpm"
> CONF_VERSION = "1"
> IMAGE_FEATURES += "ssh-server-dropbear"
> 
> 
> I have tried the same for "cubieboard2" also even there I faced the same 
> issue.Eagerly waiting for the response.
> 
> Regards,
> Siddhartha V
> 
> 
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [yocto] #yocto #raspberrypi #linux . Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image.
  2020-05-28 15:42 ` [yocto] " Khem Raj
@ 2020-05-28 15:45   ` Siddhartha V
  0 siblings, 0 replies; 3+ messages in thread
From: Siddhartha V @ 2020-05-28 15:45 UTC (permalink / raw)
  To: Khem Raj; +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 6936 bytes --]

hello sir,

   Thanks for the reply. I searched for what you have suggested, but it
looks like I am missing something here. I didn't see kernel.conf file I
have shared my bblayers.conf details also , please let me know what I am
missing here. I am using the yocto for the first time for kernel build.

Please suggest me if I am doing anything wrong here.

Below is the bblayers.conf file details:


 # POKY_BBLAYERS_CONF_VERSION is increased each time
build/conf/bblayers.conf
 # changes incompatibly
 POKY_BBLAYERS_CONF_VERSION = "2"
 BBPATH = "${TOPDIR}"

 BBFILES ?= ""
 BBLAYERS ?= " \

   /home/siddhu/Documents/yocto/sources/poky/meta \
   /home/siddhu/Documents/yocto/sources/poky/meta-poky \
   /home/siddhu/Documents/yocto/sources/poky/meta-yocto-bsp \
   /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-oe \
   /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-multimedia \
   /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-python \
   /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-networking \
   /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-filesystems \
   /home/siddhu/Documents/yocto/sources/meta-cloud-services \
   /home/siddhu/Documents/yocto/sources/meta-selinux \
   /home/siddhu/Documents/yocto/sources/meta-virtualization\
   /home/siddhu/Documents/yocto/sources/meta-raspberrypi \
   "

Am I missing any layers here? Please suggest me


Regards,
Siddhartha V

On Thu, 28 May, 2020, 9:12 PM Khem Raj, <raj.khem@gmail.com> wrote:

>
>
> On 5/27/20 3:37 AM, Siddhartha V wrote:
> > Hello,
> >
> > I am building the xen minimal image using yocto warrior* ("bitbake
> > xen-image-minimal") *by giving the target machine as *"raspberrypi4"*.
> > It reached 99% but at last I got below error and the whole process
> > terminated with error.
> >
> > ERROR: xen-image-minimal-1.0-r0 do_rootfs: Could not invoke dnf. Command
> >
> '/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/recipe-sysroot-native/usr/bin/dnf
>
> > -v --rpmverbosity=info -y -c
> >
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/etc/dnf/dnf.conf
>
> >
> --setopt=reposdir=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/etc/yum.repos.d
>
> >
> --installroot=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs
>
> >
> --setopt=logdir=/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/temp
>
> >
> --repofrompath=oe-repo,/home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/oe-rootfs-repo
>
> > --nogpgcheck install kernel-module-xen-blkback
> > kernel-module-xen-gntalloc kernel-module-xen-gntdev
> > kernel-module-xen-netback kernel-module-xen-wdt packagegroup-core-boot
> > packagegroup-core-ssh-dropbear packagegroup-core-ssh-openssh qemu
> > run-postinsts xen-base locale-base-en-us locale-base-en-gb' returned 1:
> >
> > DNF version: 4.1.0
> >
> > cachedir:
> >
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/rootfs/var/cache/dnf
> >
> > Added oe-repo repo from
> >
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-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 Wed 27 May 2020 06:15:39 AM UTC.
> >
> > Last metadata expiration check: 0:00:01 ago on Wed 27 May 2020 06:15:45
> > AM UTC.
> >
> > No module defaults found
> >
> > No match for argument: kernel-module-xen-blkback
> >
> > No match for argument: kernel-module-xen-gntalloc
> >
> > No match for argument: kernel-module-xen-gntdev
> >
> > No match for argument: kernel-module-xen-netback
> >
> > No match for argument: kernel-module-xen-wdt
> >
>
> it seems XEN related options are missing from kernel config. Perhaps you
> can add a config fragment adding them and stitch it to linux-raspberrypi
> recipe via bbappend.
>
> > Error: Unable to find a match
> >
> > ERROR: xen-image-minimal-1.0-r0 do_rootfs:
> >
> > ERROR: xen-image-minimal-1.0-r0 do_rootfs: Function failed: do_rootfs
> >
> > ERROR: Logfile of failure stored in:
> >
> /home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/xen-image-minimal/1.0-r0/temp/log.do_rootfs.14256
> >
> > ERROR: Task
> >
> (/home/siddhu/Documents/yocto/sources/meta-virtualization/recipes-extended/images/xen-image-minimal.bb:do_rootfs)
>
> > failed with exit code '1'
> >
> > NOTE: Tasks Summary: Attempted 2605 tasks of which 2152 didn't need to
> > be rerun and 1 failed.
> >
> > Summary: 1 task failed:
> >
> >
> >
> /home/siddhu/Documents/yocto/sources/meta-virtualization/recipes-extended/images/xen-image-minimal.bb:
> do_rootfs
> >
> > Summary: There were 3 ERROR messages shown, returning a non-zero exit
> code.
> >
> > May I know what mistake I am doing here please. I have attached
> > screenshot also.
> >
> >
> > *My bblayer.conf file is as below:*
> >
> > # POKY_BBLAYERS_CONF_VERSION is increased each time
> build/conf/bblayers.conf
> > # changes incompatibly
> > POKY_BBLAYERS_CONF_VERSION = "2"
> > BBPATH = "${TOPDIR}"
> >
> > BBFILES ?= ""
> > BBLAYERS ?= " \
> >
> >    /home/siddhu/Documents/yocto/sources/poky/meta \
> >    /home/siddhu/Documents/yocto/sources/poky/meta-poky \
> >    /home/siddhu/Documents/yocto/sources/poky/meta-yocto-bsp \
> >    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-oe \
> >
> /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-multimedia \
> >    /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-python \
> >
> /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-networking \
> >
> /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-filesystems \
> >    /home/siddhu/Documents/yocto/sources/meta-cloud-services \
> >    /home/siddhu/Documents/yocto/sources/meta-selinux \
> >    /home/siddhu/Documents/yocto/sources/meta-virtualization\
> >    /home/siddhu/Documents/yocto/sources/meta-raspberrypi \
> >    "
> >
> > *My local.conf file I have added the below details:*
> >
> > MACHINE ??= "raspberrypi4"
> > DISTRO_FEATURES += "virtualization xen"
> > PACKAGE_CLASSES ?= "package_rpm"
> > CONF_VERSION = "1"
> > IMAGE_FEATURES += "ssh-server-dropbear"
> >
> >
> > I have tried the same for "cubieboard2" also even there I faced the same
> > issue.Eagerly waiting for the response.
> >
> > Regards,
> > Siddhartha V
> >
> >
> >
> >
> 
>

[-- Attachment #2: Type: text/html, Size: 9181 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-05-28 15:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-27 10:37 #yocto #raspberrypi #linux . Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image Siddhartha V
2020-05-28 15:42 ` [yocto] " Khem Raj
2020-05-28 15:45   ` Siddhartha V

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.