Skip to contentSkip to conversation

Failure to build xen-image-minimal. Yocto bitbake failed @99% while building xen-minimal-image

DISCUSSION [email protected] 3 participants 7 messages May 27, 2020 – Jun 3, 2020 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Hello dear meta-virtualization team,

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

#1 lore raw
Quoted 31 lines · On Wed, May 27, 2020 at 3:34 AM <[email protected]> wrote:

Hello dear meta-virtualization team,

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

Quoted 7 lines

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

Have you checked that these modules are enabled in your kernel config ?

We provide reference fragments in meta-virtualization, but if the kernel recipe you are using doesn't support fragment merging (like linux-yocto, which is what I test), then you won't have those configs enabled simply by using meta-virt.

Cheers,

Bruce

Quoted 63 lines

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

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II
#2 lore raw

hello,

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.

Quoted 153 lines · Bruce Ashfield
Quoted 4 lines · On Wed, May 27, 2020 at 3:34 AM <[email protected]> wrote:

Hello dear meta-virtualization team,

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.

Quoted 2 lines

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:

Quoted 4 lines

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

Quoted 2 lines

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

Quoted 7 lines

repo: using cache for: oe-repo

not found other for:

not found modules for:

Quoted 7 lines

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.

Quoted 5 lines

No module defaults found

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

Quoted 7 lines

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

Have you checked that these modules are enabled in your kernel config ?

We provide reference fragments in meta-virtualization, but if the kernel recipe you are using doesn't support fragment merging (like linux-yocto, which is what I test), then you won't have those configs enabled simply by using meta-virt.

Cheers,

Bruce

Quoted 10 lines

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

Quoted 2 lines

ERROR: Task

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

Quoted 2 lines

NOTE: Tasks Summary: Attempted 2605 tasks of which 2152 didn't need to

be rerun and 1 failed.

Quoted 4 lines

Summary: 1 task failed:

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

Quoted 2 lines

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

code.

Quoted 2 lines

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

screenshot also.

Quoted 5 lines

My bblayer.conf file is as below:

# POKY_BBLAYERS_CONF_VERSION is increased each time

build/conf/bblayers.conf

Quoted 4 lines
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
Quoted 8 lines

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

\

Quoted 2 lines
  /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-python \
  /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-networking

\

Quoted 1 line

/home/siddhu/Documents/yocto/sources/meta-openembedded/meta-filesystems \

Quoted 8 lines
  /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:

Quoted 8 lines

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.

Quoted 5 lines

Regards,
Siddhartha V

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 2 lines
Thanks and Regards.
Siddhartha V.
#3 lore raw
In reply to Bruce Ashfield

Hello @ Bruce Ashfield sir,

I have searched for what you have suggested. But, I couldn't find the kernel.config file anywhere actually I thibk I am mising something important. MAy I know what mistake I am doing please. Can I get any  link or info how to proceed with this  issue please.

*My bblayer.conf file is as below: (* Am I missing any layers here? *)*

# 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"

--
Best Regards,
Siddhartha V

#4 lore raw

Hi Siddhartha,

I don't know if this is your problem, but it might be. Three months ago I had more or less the same question for the Raspberry-Pi 3, you might want to read that thread:
https://lists.yoctoproject.org/g/yocto/topic/71688106#48662

The problem was that the meta-raspberrypi layer uses an incompatible kernel recipe, so you have to manually update it. To quote myself from the thread above:
"If I understand you correctly, I need to add a linux-raspberrypi_4.19.bbappend file in my own layer that applies the Xen configuration fragments."

I later found out that the Raspberry-Pi 3 is not supported by XEN since it has an incompatible GIC, but that was a different problem. ;)

Best regards,
Aljoscha

#5 lore raw

Hello @ Aljoscha Lautenbach sir,

Yes RPI3 doesn't support the xen as there is no GIC. Whereas RPI4 has GIC400 we can run xen. I am actually working RPI4.

This is the first time I am working with yocto and xen. I literally a newbee to this topic. I gone through the thread that you have shared with me thank you so much.

But as I am  seeing many things for the first time here. I will sure work on your inputs. If I found anything new strange issue or any problem i will let you know based on that.

I will go through how to add them mannually and another point i noticed there was that own layer stuff but I really don't know how to do it. But sure i will give my best and will try to achieve it.

Meanwhile may I get any link or reference material so that I can read and learn regarding yocto and xen please.

Any suggestions will be much helpful for me sir.

Regards,
Siddhartha V

Quoted 15 lines · Aljoscha Lautenbach

Hi Siddhartha,

I don't know if this is your problem, but it might be. Three months ago I had more or less the same question for the Raspberry-Pi 3, you might want to read that thread:
https://lists.yoctoproject.org/g/yocto/topic/71688106#48662

The problem was that the meta-raspberrypi layer uses an incompatible kernel recipe, so you have to manually update it. To quote myself from the thread above:
"If I understand you correctly, I need to add a linux-raspberrypi_4.19.bbappend file in my own layer that applies the Xen configuration fragments."

Quoted 5 lines

I later found out that the Raspberry-Pi 3 is not supported by XEN since it has an incompatible GIC, but that was a different problem. ;)

Best regards,
Aljoscha

--
Best Regards,
Siddhartha V

A message that is not in the archive (sent off-list or not yet received): CAEkELtD1DUvhGaQpDTLwrTgUx_wFqPFDHcLVn1XWpxFmFeDCeQ@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CADkTA4NZ2TZ-i9WmoK-6MuJzZA2tzOcqie1rDk0NuPVgac-NGQ@mail.gmail.com

#8 lore raw

Hello sir,

As you suggested I serached for the kernel config file. In my case the
location is "home/siddhu/Documents/yocto/build/tmp/work/raspberrypi4-poky-linux-gnueabi/linux-raspberrypi/rpi-kernel-misc.cfg" I found this rpi-kernel-misc.cfg config file but inside this file I have
only one line:

CONFIG_SENSORS_RPI_POE_FAN=m

Should I add the Xen related modules that I am getting in the error here?

Thanks ,
Siddhartha V

Quoted 229 lines · Bruce Ashfield
Quoted 4 lines · siddhartha v

Hello sir,

I have searched for what you have suggested. But, I couldn't find

the kernel.config file anywhere actually I thibk I am mising something important. MAy I know what mistake I am doing please. Can I get any link or info how to proceed with this issue please.

Quoted 1 line

The Yocto mega manual should have the details on where to find it. But it is found in the build/tmp/work/<your machine>/<your kernel version>/<your machine>-build/.config, if you are using linux-yocto.

Other kernels will put it in a similar directory structure.

Bruce

Quoted 3 lines

My bblayer.conf file is as below: (Am I missing any layers here?)

# POKY_BBLAYERS_CONF_VERSION is increased each time

build/conf/bblayers.conf

Quoted 36 lines
# 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"

Thanks,
Siddhartha V

On Wed, May 27, 2020 at 5:53 PM Bruce Ashfield <[email protected]>

Quoted 6 lines · wrote:
Quoted 6 lines · On Wed, May 27, 2020 at 3:34 AM <[email protected]> wrote:
Quoted 4 lines

Hello dear meta-virtualization team,

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.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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:

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

repo: using cache for: oe-repo

not found other for:

not found modules for:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

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.

Quoted 29 lines
Quoted 29 lines
Quoted 5 lines

No module defaults found

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

Quoted 7 lines

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

Have you checked that these modules are enabled in your kernel config ?

We provide reference fragments in meta-virtualization, but if the kernel recipe you are using doesn't support fragment merging (like linux-yocto, which is what I test), then you won't have those configs enabled simply by using meta-virt.

Cheers,

Bruce

Quoted 5 lines

Error: Unable to find a match

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

ERROR: Task

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

NOTE: Tasks Summary: Attempted 2605 tasks of which 2152 didn't need

to be rerun and 1 failed.

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Summary: 1 task failed:

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

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

code.

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

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

screenshot also.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

My bblayer.conf file is as below:

# POKY_BBLAYERS_CONF_VERSION is increased each time

build/conf/bblayers.conf

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
# changes incompatibly
POKY_BBLAYERS_CONF_VERSION = "2"
BBPATH = "${TOPDIR}"
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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 \

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
  /home/siddhu/Documents/yocto/sources/meta-openembedded/meta-python \

/home/siddhu/Documents/yocto/sources/meta-openembedded/meta-networking \

Quoted 1 line
Quoted 1 line
Quoted 1 line

/home/siddhu/Documents/yocto/sources/meta-openembedded/meta-filesystems \

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
  /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:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

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.

Quoted 15 lines
Quoted 8 lines
Quoted 5 lines

Regards,
Siddhartha V

Quoted 4 lines

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Quoted 4 lines

--
Thanks and Regards.
Siddhartha V.

--
- Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end
- "Use the force Harry" - Gandalf, Star Trek II

Signature · 2 lines
Thanks and Regards.
Siddhartha V.