diff mbox series

[1/2] configs/rock5b: enable mdev to enable automatic module loading

Message ID 20240909182103.3667296-2-niklas.cassel@wdc.com
State Accepted
Headers show
Series rock5b quality of life improvements | expand

Commit Message

Niklas Cassel Sept. 9, 2024, 6:21 p.m. UTC
From: Niklas Cassel <cassel@kernel.org>

Enable mdev so that coldplug will automatically load kernel modules that
were unavailable before rootfs was mounted.

mdev will also enable hotplug so that kernel modules will be automatically
loaded when a new device is inserted in e.g. USB or PCIe after boot.

Before this change:
$ lsmod | wc -l
0

After this change:
$ lsmod | wc -l
43

Signed-off-by: Niklas Cassel <cassel@kernel.org>
---
 configs/rock5b_defconfig | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Petazzoni Sept. 14, 2024, 8:15 p.m. UTC | #1
On Mon,  9 Sep 2024 20:21:02 +0200
Niklas Cassel via buildroot <buildroot@buildroot.org> wrote:

> From: Niklas Cassel <cassel@kernel.org>
> 
> Enable mdev so that coldplug will automatically load kernel modules that
> were unavailable before rootfs was mounted.
> 
> mdev will also enable hotplug so that kernel modules will be automatically
> loaded when a new device is inserted in e.g. USB or PCIe after boot.
> 
> Before this change:
> $ lsmod | wc -l
> 0
> 
> After this change:
> $ lsmod | wc -l
> 43
> 
> Signed-off-by: Niklas Cassel <cassel@kernel.org>
> ---
>  configs/rock5b_defconfig | 1 +
>  1 file changed, 1 insertion(+)

Applied to master, thanks.

Thomas
diff mbox series

Patch

diff --git a/configs/rock5b_defconfig b/configs/rock5b_defconfig
index e3c4414948..b88d8c5da3 100644
--- a/configs/rock5b_defconfig
+++ b/configs/rock5b_defconfig
@@ -47,6 +47,7 @@  BR2_PACKAGE_HOST_DTC=y
 BR2_PACKAGE_HOST_GENIMAGE=y
 BR2_PACKAGE_HOST_MTOOLS=y
 BR2_SYSTEM_DHCP="eth0"
+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
 BR2_ROOTFS_POST_BUILD_SCRIPT="board/radxa/rock5b/post-build.sh"
 BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh"
 BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/radxa/rock5b/genimage.cfg"