[Buildroot] Firmware auto-loading does not work
peter at korsgaard.com
Wed Jan 25 12:51:22 UTC 2017
>>>>> "Guillaume" == Guillaume GARDET <- Oliséo <guillaume.gardet at oliseo.fr>> writes:
> I am using buildroot 2016.05 (with a 2.6.37 kernel) and firmware
> auto-loading does not work. I need to do it manually (through
> sysfs). I tried mdev and eudev, both are not working.
> Is there a known bug about that? In busybox, maybe?
If you have tried both eudev and mdev, then it is unlikely to be a bug
in busybox (mdev). Are you using busybox modprobe applet or kmod?
What mdev or eudev does is just to read the modalias file from the
device in sysfs and call modprobe with the content. Can you verify that
your driver(s) provide sensible modalias data and that the module gets
correctly loaded if you do:
modprobe "$(cat /sysfs/path/to/device/modalias)"
We do have 1 bugfix in mdev module loading since 2016.05 for modalias
data containing spaces, but if you also have problems with eudev then
that cannot be it:
Author: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Date: Fri Jul 1 21:56:19 2016 +0300
package/busybox: support spaces in module aliases in mdev
The new change which enabled automatic module loading on boot does not handle
the cases when module alias includes spaces. It prevents modules to be loaded
since script fails:
% find /sys/ -name modalias | xargs sort -u
sort: /sys/devices/platform/Fixed: No such file or directory
First alias in question is "platform:Fixed MDIO bus".
Amend the script to support above like cases.
Fixes: 07f46c2b6dae ("package/busybox: support automatic module loading with mdev")
Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Bye, Peter Korsgaard
More information about the buildroot