[Buildroot] Firmware auto-loading does not work

Fabio Estevam festevam at gmail.com
Fri Feb 3 13:30:07 UTC 2017


On Fri, Feb 3, 2017 at 7:51 AM, Guillaume GARDET - Oliséo
<guillaume.gardet at oliseo.fr> wrote:

> The thing is that the PATH is not good :
> * requested :
> /sys/devices/platform/musb-omap2430/musb-hdrc.0/usb2/2-1/2-1:1.0/firmware/2-1:1.0
> * real:
> /sys/devices/platform/musb-omap2430.0/musb-hdrc.0/usb2/2-1/2-1:1.0/firmware/2-1:1.0
>
> The only difference is the ".0" missing after musb-omap2430. Any idea why
> there is this difference?

This depends on how you registered the musb-omap2430 platform device.
If you pass '-1' as the id then it will not register with the .0 in
the name.

Check how we do this on arch/arm/mach-imx/devices/platform-pata_imx.c,
for example.

imx_add_platform_device("pata_imx", -1, res, ARRAY_SIZE(res), NULL, 0);

The '-1' is the key thing here.


More information about the buildroot mailing list