Re: initramfs with mdev: No match for argument: busybox-mdev


Mike Looijmans
 

My guess is that your busybox isn't configured to produce mdev. Run "bitbake -c menuconfig busybox" and enable it (and save the config fragment for later)

On 02-04-2020 12:08, y1dekel via lists.yoctoproject.org wrote:
I am new to yocto. I have read some messages on this forum which suggest ways to build an image with initramfs and mdev.
So far I have implemented all advises but I am getting this message:
ERROR: image-argus-tiny-initramfs-1.0-r0 do_rootfs: Could not invoke
dnf. Command
'/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/recipe-sysroot-native/usr/bin/dnf
-v --rpmverbosity=info -y -c
/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/rootfs/etc/dnf/dnf.conf
--setopt=reposdir=/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/rootfs/etc/yum.repos.d
--installroot=/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/rootfs
--setopt=logdir=/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/temp
--repofrompath=oe-repo,/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/oe-rootfs-repo
--nogpgcheck install base-passwd busybox busybox-mdev dropbear
initramfs-live-boot-tiny packagegroup-core-boot run-postinsts'
returned 1:
DNF version: 4.1.0
cachedir:
/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/1.0-r0/rootfs/var/cache/dnf
Added oe-repo repo from
/home/ubuntu/yocto_warrior/argus-build/tmp/work/raspberrypi3-poky-linux-gnueabi/image-argus-tiny-initramfs/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 02 Apr 2020 09:20:31 AM UTC.
Last metadata expiration check: 0:00:01 ago on Thu 02 Apr 2020
09:20:36 AM UTC.
No module defaults found
No match for argument: busybox-mdev
I have added an mdev include fragment as follows:
CONFIG_MDEV=y
CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y
PACKAGES =+ "${PN}-mdev"
INITSCRIPT_PACKAGES = "${PN}-httpd ${PN}-syslog ${PN}-udhcpd
${PN}-mdev ${PN}-hwclock"
INITSCRIPT_NAME_${PN}-mdev = "mdev"
INITSCRIPT_PARAMS_${PN}-mdev = "start 04 S ."
CONFFILES_${PN}-mdev = "${sysconfdir}/mdev.conf"
I also implemented a receipt for our image as follows:
VIRTUAL-RUNTIME_dev_manager = "busybox-mdev"
PACKAGE_INSTALL = "initramfs-live-boot-tiny packagegroup-core-boot
dropbear ${VIRTUAL-RUNTIME_base-utils}
${VIRTUAL-RUNTIME_dev_manager} base-passwd ${ROOTFS_BOOTSTRAP_INSTALL}"
...
Any idea what I might be missing here?
--
Mike Looijmans

Join yocto@lists.yoctoproject.org to automatically receive all group messages.