* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
@ 2009-04-29 18:11 ` Greg KH
2009-04-29 18:12 ` Greg KH
` (10 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-04-29 18:11 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
> I have an OMAP3 board, and want usb (host mode) configured as a
> loadable module. Using a generic rule such as this:
> RUN+="/sbin/modprobe -b $env{MODALIAS}"
>
> ends up passing "platform:musb_hdrc" to modprobe, which obviously
> fails.
Why would that fail? Do you have the proper modalias in the kernel
module to handle this? If not, can you add it?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
2009-04-29 18:11 ` Greg KH
@ 2009-04-29 18:12 ` Greg KH
2009-04-29 18:31 ` Chris Hallinan
` (9 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-04-29 18:12 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
> > I have an OMAP3 board, and want usb (host mode) configured as a
> > loadable module. Using a generic rule such as this:
> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
> >
> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
> > fails.
>
> Why would that fail? Do you have the proper modalias in the kernel
> module to handle this? If not, can you add it?
I see:
MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
"musb_hdrc" somehow?
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
2009-04-29 18:11 ` Greg KH
2009-04-29 18:12 ` Greg KH
@ 2009-04-29 18:31 ` Chris Hallinan
2009-04-29 18:44 ` Greg KH
` (8 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chris Hallinan @ 2009-04-29 18:31 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
>> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
>> > I have an OMAP3 board, and want usb (host mode) configured as a
>> > loadable module. Using a generic rule such as this:
>> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
>> >
>> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
>> > fails.
>>
>> Why would that fail? Do you have the proper modalias in the kernel
>> module to handle this? If not, can you add it?
>
> I see:
> MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
> in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
> "musb_hdrc" somehow?
From musb_core.c:
#define MUSB_DRIVER_NAME "musb_hdrc"
const char musb_driver_name[] = MUSB_DRIVER_NAME;
So somewhere else in kernel code (common Kobject/platform code, I
don't know) must be prepending the string "platform:" to the driver
name. Is this what you think the problem is? All of the platform
drivers display this way. From a simple script I wrote that dumps
env:
export MODALIAS="platform:twl4030_usb"
export MODALIAS="platform:twl4030_gpio"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_rtc"
export MODALIAS="platform:twl4030_gpio"
export MODALIAS="platform:twl4030_usb"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:gpio-keys"
export MODALIAS="platform:i2c_omap"
export MODALIAS="platform:leds-gpio"
export MODALIAS="platform:i2c_omap"
export MODALIAS="platform:mmci-omap-hs"
export MODALIAS="platform:musb_hdrc"
export MODALIAS="platform:omap3beagle_lcd"
export MODALIAS="platform:omap2-nand"
export MODALIAS="platform:omapfb"
export MODALIAS="platform:serial8250"
export MODALIAS="platform:serial8250"
export MODALIAS="platform:i2c_omap"
export MODALIAS="platform:gpio-keys"
export MODALIAS="platform:i2c_omap"
export MODALIAS="platform:leds-gpio"
export MODALIAS="platform:omap2-nand"
export MODALIAS="platform:mmci-omap-hs"
export MODALIAS="platform:musb_hdrc"
export MODALIAS="platform:omap3beagle_lcd"
export MODALIAS="platform:serial8250"
export MODALIAS="platform:omapfb"
export MODALIAS="platform:serial8250"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_reg"
export MODALIAS="platform:twl4030_rtc"
-Chris
--
Life is like Linux - it never stands still.
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (2 preceding siblings ...)
2009-04-29 18:31 ` Chris Hallinan
@ 2009-04-29 18:44 ` Greg KH
2009-04-29 19:15 ` Chris Hallinan
` (7 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-04-29 18:44 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 02:31:49PM -0400, Chris Hallinan wrote:
> On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
> >> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
> >> > I have an OMAP3 board, and want usb (host mode) configured as a
> >> > loadable module. Using a generic rule such as this:
> >> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
> >> >
> >> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
> >> > fails.
> >>
> >> Why would that fail? Do you have the proper modalias in the kernel
> >> module to handle this? If not, can you add it?
> >
> > I see:
> > MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
> > in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
> > "musb_hdrc" somehow?
>
> >From musb_core.c:
>
> #define MUSB_DRIVER_NAME "musb_hdrc"
> const char musb_driver_name[] = MUSB_DRIVER_NAME;
Good, so you should be fine.
Can you run:
modprobe -n -v platform:musb_hdrc
on your system?
It should try to load that module, as it looks like you have it set up
properly, based on the module alias.
> So somewhere else in kernel code (common Kobject/platform code, I
> don't know) must be prepending the string "platform:" to the driver
> name. Is this what you think the problem is? All of the platform
> drivers display this way. From a simple script I wrote that dumps
> env:
Yes, that is correct, this is what is supposed to be happening.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (3 preceding siblings ...)
2009-04-29 18:44 ` Greg KH
@ 2009-04-29 19:15 ` Chris Hallinan
2009-04-29 19:25 ` Greg KH
` (6 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chris Hallinan @ 2009-04-29 19:15 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 2:44 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Apr 29, 2009 at 02:31:49PM -0400, Chris Hallinan wrote:
>> On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@kroah.com> wrote:
>> > On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
>> >> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
>> >> > I have an OMAP3 board, and want usb (host mode) configured as a
>> >> > loadable module. Using a generic rule such as this:
>> >> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
>> >> >
>> >> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
>> >> > fails.
>> >>
>> >> Why would that fail? Do you have the proper modalias in the kernel
>> >> module to handle this? If not, can you add it?
>> >
>> > I see:
>> > MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
>> > in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
>> > "musb_hdrc" somehow?
>>
>> >From musb_core.c:
>>
>> #define MUSB_DRIVER_NAME "musb_hdrc"
>> const char musb_driver_name[] = MUSB_DRIVER_NAME;
>
> Good, so you should be fine.
>
> Can you run:
> modprobe -n -v platform:musb_hdrc
> on your system?
>
# modprobe -n -v platform:musb_hdrc
FATAL: Module platform:musb_hdrc not found.
# modprobe --version
module-init-tools version 3.7
But...
# modprobe -n -v musb_hdrc
insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/core/usbcore.ko
insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/musb/musb_hdrc.ko
Seems to be complaining about the "platform:" prefix, I think. This
is the very latest version of module-init-tools from git tree a couple
days ago.
-Chris
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (4 preceding siblings ...)
2009-04-29 19:15 ` Chris Hallinan
@ 2009-04-29 19:25 ` Greg KH
2009-04-29 19:33 ` Kay Sievers
` (5 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-04-29 19:25 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 03:15:13PM -0400, Chris Hallinan wrote:
> On Wed, Apr 29, 2009 at 2:44 PM, Greg KH <greg@kroah.com> wrote:
> > On Wed, Apr 29, 2009 at 02:31:49PM -0400, Chris Hallinan wrote:
> >> On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@kroah.com> wrote:
> >> > On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
> >> >> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
> >> >> > I have an OMAP3 board, and want usb (host mode) configured as a
> >> >> > loadable module. Using a generic rule such as this:
> >> >> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
> >> >> >
> >> >> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
> >> >> > fails.
> >> >>
> >> >> Why would that fail? Do you have the proper modalias in the kernel
> >> >> module to handle this? If not, can you add it?
> >> >
> >> > I see:
> >> > MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
> >> > in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
> >> > "musb_hdrc" somehow?
> >>
> >> >From musb_core.c:
> >>
> >> #define MUSB_DRIVER_NAME "musb_hdrc"
> >> const char musb_driver_name[] = MUSB_DRIVER_NAME;
> >
> > Good, so you should be fine.
> >
> > Can you run:
> > modprobe -n -v platform:musb_hdrc
> > on your system?
> >
>
> # modprobe -n -v platform:musb_hdrc
> FATAL: Module platform:musb_hdrc not found.
> # modprobe --version
> module-init-tools version 3.7
>
> But...
>
> # modprobe -n -v musb_hdrc
> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/core/usbcore.ko
> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/musb/musb_hdrc.ko
>
> Seems to be complaining about the "platform:" prefix, I think. This
> is the very latest version of module-init-tools from git tree a couple
> days ago.
But your kernel is over a year old, not much we can do about that :)
I suggest poking your distro, it seems they need to provide a fix
for your kernel, nothing we can do here, everything works just fine with
the latest kernel releases from what I can tell.
good luck,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (5 preceding siblings ...)
2009-04-29 19:25 ` Greg KH
@ 2009-04-29 19:33 ` Kay Sievers
2009-04-29 19:35 ` Chris Hallinan
` (4 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2009-04-29 19:33 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 21:15, Chris Hallinan <challinan@gmail.com> wrote:
> # modprobe -n -v musb_hdrc
> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/core/usbcore.ko
> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/musb/musb_hdrc.ko
The kernel module itself needs an alias like this:
modinfo pcspkr
filename:
/lib/modules/2.6.30-rc3-00425-g27b1833-dirty/kernel/drivers/input/misc/pcspkr.ko
alias: platform:pcspkr
license: GPL
description: PC Speaker beeper driver
...
If it does not show that, you need to add it to the kernel module
itself, as Greg pointed out earlier with the MODULE_ALIAS() thing.
Thanks,
Kay
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (6 preceding siblings ...)
2009-04-29 19:33 ` Kay Sievers
@ 2009-04-29 19:35 ` Chris Hallinan
2009-04-29 19:46 ` Kay Sievers
` (3 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Chris Hallinan @ 2009-04-29 19:35 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 3:25 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Apr 29, 2009 at 03:15:13PM -0400, Chris Hallinan wrote:
>> On Wed, Apr 29, 2009 at 2:44 PM, Greg KH <greg@kroah.com> wrote:
>> > On Wed, Apr 29, 2009 at 02:31:49PM -0400, Chris Hallinan wrote:
>> >> On Wed, Apr 29, 2009 at 2:12 PM, Greg KH <greg@kroah.com> wrote:
>> >> > On Wed, Apr 29, 2009 at 11:11:35AM -0700, Greg KH wrote:
>> >> >> On Wed, Apr 29, 2009 at 02:05:37PM -0400, Chris Hallinan wrote:
>> >> >> > I have an OMAP3 board, and want usb (host mode) configured as a
>> >> >> > loadable module. Using a generic rule such as this:
>> >> >> > RUN+="/sbin/modprobe -b $env{MODALIAS}"
>> >> >> >
>> >> >> > ends up passing "platform:musb_hdrc" to modprobe, which obviously
>> >> >> > fails.
>> >> >>
>> >> >> Why would that fail? Do you have the proper modalias in the kernel
>> >> >> module to handle this? If not, can you add it?
>> >> >
>> >> > I see:
>> >> > MODULE_ALIAS("platform:" MUSB_DRIVER_NAME);
>> >> > in the musb code, perhaps MUSB_DRIVER_NAME is not set correctly to be
>> >> > "musb_hdrc" somehow?
>> >>
>> >> >From musb_core.c:
>> >>
>> >> #define MUSB_DRIVER_NAME "musb_hdrc"
>> >> const char musb_driver_name[] = MUSB_DRIVER_NAME;
>> >
>> > Good, so you should be fine.
>> >
>> > Can you run:
>> > modprobe -n -v platform:musb_hdrc
>> > on your system?
>> >
>>
>> # modprobe -n -v platform:musb_hdrc
>> FATAL: Module platform:musb_hdrc not found.
>> # modprobe --version
>> module-init-tools version 3.7
>>
>> But...
>>
>> # modprobe -n -v musb_hdrc
>> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/core/usbcore.ko
>> insmod /lib/modules/2.6.24_mvl5024/kernel/drivers/usb/musb/musb_hdrc.ko
>>
>> Seems to be complaining about the "platform:" prefix, I think. This
>> is the very latest version of module-init-tools from git tree a couple
>> days ago.
>
> But your kernel is over a year old, not much we can do about that :)
>
> I suggest poking your distro, it seems they need to provide a fix
> for your kernel, nothing we can do here, everything works just fine with
> the latest kernel releases from what I can tell.
>
Erm, I am the distro maintainer! I tried just today w/ 2.6.29. The
problem seems like a mismatch. Kernel passes "platform:musb_hdrc".
Udev receives and passes same to modprobe. The answer I'm seeking is
"what is the correct/proper approach?" Should I seek to modify the
kernel and remove the "platform:" prefix, or should I seek a
modification to modprobe to be able to understand and strip off the
"platform:" prefix? Or should udev have a construct/rules syntax to
strip the "platform:" prefix?
Thanks,
Chris
--
Life is like Linux - it never stands still.
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (7 preceding siblings ...)
2009-04-29 19:35 ` Chris Hallinan
@ 2009-04-29 19:46 ` Kay Sievers
2009-04-29 19:53 ` Chris Hallinan
` (2 subsequent siblings)
11 siblings, 0 replies; 13+ messages in thread
From: Kay Sievers @ 2009-04-29 19:46 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 21:35, Chris Hallinan <challinan@gmail.com> wrote:
> Erm, I am the distro maintainer! I tried just today w/ 2.6.29. The
> problem seems like a mismatch. Kernel passes "platform:musb_hdrc".
> Udev receives and passes same to modprobe. The answer I'm seeking is
> "what is the correct/proper approach?" Should I seek to modify the
> kernel and remove the "platform:" prefix, or should I seek a
> modification to modprobe to be able to understand and strip off the
> "platform:" prefix? Or should udev have a construct/rules syntax to
> strip the "platform:" prefix?
The module itself, if that's still needed.
Kay
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (8 preceding siblings ...)
2009-04-29 19:46 ` Kay Sievers
@ 2009-04-29 19:53 ` Chris Hallinan
2009-04-29 20:18 ` Greg KH
2009-04-30 0:48 ` Chris Hallinan
11 siblings, 0 replies; 13+ messages in thread
From: Chris Hallinan @ 2009-04-29 19:53 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 3:46 PM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> On Wed, Apr 29, 2009 at 21:35, Chris Hallinan <challinan@gmail.com> wrote:
>
>> Erm, I am the distro maintainer! I tried just today w/ 2.6.29. The
>> problem seems like a mismatch. Kernel passes "platform:musb_hdrc".
>> Udev receives and passes same to modprobe. The answer I'm seeking is
>> "what is the correct/proper approach?" Should I seek to modify the
>> kernel and remove the "platform:" prefix, or should I seek a
>> modification to modprobe to be able to understand and strip off the
>> "platform:" prefix? Or should udev have a construct/rules syntax to
>> strip the "platform:" prefix?
>
> The module itself, if that's still needed.
>
OK, the light bulb just came on!
Thanks, Kay, and Greg for hanging in there with me. I added
MODULE_ALIAS("platform:musb_hdrc) to musb_core.c, and all works as advertised.
Thanks again,
Chris
--
Life is like Linux - it never stands still.
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (9 preceding siblings ...)
2009-04-29 19:53 ` Chris Hallinan
@ 2009-04-29 20:18 ` Greg KH
2009-04-30 0:48 ` Chris Hallinan
11 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2009-04-29 20:18 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 03:53:53PM -0400, Chris Hallinan wrote:
> On Wed, Apr 29, 2009 at 3:46 PM, Kay Sievers <kay.sievers@vrfy.org> wrote:
> > On Wed, Apr 29, 2009 at 21:35, Chris Hallinan <challinan@gmail.com> wrote:
> >
> >> Erm, I am the distro maintainer!
Heh, my condolences...
You should possibly post from your company email address if you expect
us to know this, gmail.com doesn't exactly specify much :)
> >> I tried just today w/ 2.6.29. The
> >> problem seems like a mismatch. Kernel passes "platform:musb_hdrc".
> >> Udev receives and passes same to modprobe. The answer I'm seeking is
> >> "what is the correct/proper approach?" Should I seek to modify the
> >> kernel and remove the "platform:" prefix, or should I seek a
> >> modification to modprobe to be able to understand and strip off the
> >> "platform:" prefix? Or should udev have a construct/rules syntax to
> >> strip the "platform:" prefix?
> >
> > The module itself, if that's still needed.
> >
>
> OK, the light bulb just came on!
>
> Thanks, Kay, and Greg for hanging in there with me. I added
> MODULE_ALIAS("platform:musb_hdrc) to musb_core.c, and all works as advertised.
But that alias is already there, it was added in the 2.6.27-rc kernel,
in commit 550a7375.
So I'm confused as to why 2.6.29 would not work properly for you.
thanks,
greg k-h
^ permalink raw reply [flat|nested] 13+ messages in thread* Re: Best practice for loading platform modules
2009-04-29 18:05 Best practice for loading platform modules Chris Hallinan
` (10 preceding siblings ...)
2009-04-29 20:18 ` Greg KH
@ 2009-04-30 0:48 ` Chris Hallinan
11 siblings, 0 replies; 13+ messages in thread
From: Chris Hallinan @ 2009-04-30 0:48 UTC (permalink / raw)
To: linux-hotplug
On Wed, Apr 29, 2009 at 4:18 PM, Greg KH <greg@kroah.com> wrote:
> On Wed, Apr 29, 2009 at 03:53:53PM -0400, Chris Hallinan wrote:
>> On Wed, Apr 29, 2009 at 3:46 PM, Kay Sievers <kay.sievers@vrfy.org> wrote:
>> > On Wed, Apr 29, 2009 at 21:35, Chris Hallinan <challinan@gmail.com> wrote:
>> >
>> >> Erm, I am the distro maintainer!
>
> Heh, my condolences...
>
> You should possibly post from your company email address if you expect
> us to know this, gmail.com doesn't exactly specify much :)
Well, my inquiries are related to my research while preparing the
second edition of my book "Embedded Linux Primer", as opposed to my
duties as an FAE for MontaVista! Thus the posting from my personal
address.
>
>> >> I tried just today w/ 2.6.29. The
>> >> problem seems like a mismatch. Kernel passes "platform:musb_hdrc".
>> >> Udev receives and passes same to modprobe. The answer I'm seeking is
>> >> "what is the correct/proper approach?" Should I seek to modify the
>> >> kernel and remove the "platform:" prefix, or should I seek a
>> >> modification to modprobe to be able to understand and strip off the
>> >> "platform:" prefix? Or should udev have a construct/rules syntax to
>> >> strip the "platform:" prefix?
>> >
>> > The module itself, if that's still needed.
>> >
>>
>> OK, the light bulb just came on!
>>
>> Thanks, Kay, and Greg for hanging in there with me. I added
>> MODULE_ALIAS("platform:musb_hdrc) to musb_core.c, and all works as advertised.
>
> But that alias is already there, it was added in the 2.6.27-rc kernel,
> in commit 550a7375.
>
> So I'm confused as to why 2.6.29 would not work properly for you.
Erm, my own misunderstanding of the problem contributed to the
confusion. I booted 2.6.29, saw that the kernel was passing
"platform:<driver>", using my test script that dumps env, (instead of
passing it to modprobe) and assumed it was still broken. Yes, my
2.6.29 does indeed contain those changes, and I'm sure it will work
correctly. Learn something new every day!!!
Thanks again for the help. I think I know enough about udev for
Chapter 18: Udev! ;)
Best,
Chris
PS: I enjoy your own writing, Greg!
--
Life is like Linux - it never stands still.
^ permalink raw reply [flat|nested] 13+ messages in thread