Bug 15583 - core-image-tiny-initramfs fails to build due to misconfiguration in busysbox
Summary: core-image-tiny-initramfs fails to build due to misconfiguration in busysbox
Status: RESOLVED NOTABUG
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.0.0
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2024-08-28 18:32 UTC by Iuliu Vasilescu
Modified: 2024-08-29 14:41 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Iuliu Vasilescu 2024-08-28 18:32:51 UTC
I've tried to build core-image-tiny-initramfs, for raspberypi4-64. This fails due to dependency on busybox-mdev that should be created by the busybox recipe. However in this recipe, in:
poky/meta/recipe-core/busybox/busybox/defconfig

these lines are commented:
# CONFIG_MDEV
# CONFIG_FEATURE_MDEV_CONF
...

This is why the package busybox-mdev never gets built. In my opinion, these options should be activated by default. I can't think of a reason why they are not, requiring another layer to activated them. Activating them make the core-image-tiny-initramfs compile without error.

Iuliu.
Comment 1 Richard Purdie 2024-08-29 14:39:56 UTC
The mdev feature is controlled by a config fragment, i.e. meta/recipes-core/busybox/busybox/mdev.cfg 

In meta/recipes-core/busybox/busybox_1.36.1.bb this is controlled by:

${@["", "file://mdev.cfg"][(d.getVar('VIRTUAL-RUNTIME_dev_manager') == 'busybox-mdev')]} \

so it is only enabled when the init manager is selected.

I don't think we should enable this unless something is using it. That is a distro policy decision (which can add the cfg to busybox.
Comment 2 Tim Orling 2024-08-29 14:41:44 UTC
And since you are using a raspberrypi4-64 machine, you may want to ask in a meta-rapsberrypi issue on GitHub https://github.com/agherzan/meta-raspberrypi

But first make sure you have your "distro" configured properly, as RP said.