[Buildroot] CONFIG_FEATURE_MDEV_LOAD_FIRMWARE not enough to get firmware loading working

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jul 11 13:45:48 UTC 2011


Hi Nicolas,

Le Mon, 11 Jul 2011 14:59:30 +0200,
"Dechesne, Nicolas" <n-dechesne at ti.com> a écrit :

> it seems that enabling CONFIG_FEATURE_MDEV_LOAD_FIRMWARE in the
> busybox config is not enough to get mdev firmware loading
> out-of-the-box, and we need to create an init script that ends up
> doing something like this:
> 
> echo /sbin/mdev > /proc/sys/kernel/hotplug
> 
> is that expected or are we missing something?

If you compile your kernel with Buildroot, then Buildroot already takes
care of this, see http://git.buildroot.net/buildroot/tree/linux/linux.mk#n141 :

ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV),y)
	$(call KCONFIG_SET_OPT,CONFIG_UEVENT_HELPER_PATH,\"/sbin/mdev\",$(@D)/.config)
endif

If Buildroot is not responsible of compiling your kernel, then it's up
to you to adjust your kernel configuration similarly.

Regards,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com



More information about the buildroot mailing list