* hotplug problem
@ 2005-08-03 7:57 bgerard
2005-08-03 8:37 ` Clemens Koller
0 siblings, 1 reply; 3+ messages in thread
From: bgerard @ 2005-08-03 7:57 UTC (permalink / raw)
To: linux-kernel
Hi
I'm working on an embeded system with linux kernel 2.4.27 and busybox
1.00. Lately I've decided to add hotplug feature to my kernel in order
to automaticaly mount usb keys.
When I plug the usb key, I can see in the kernel debug that
"/sbin/hotplug" is called but my script is not executed. I've tried to
replace the hotplug script by a simple one but nothing appeared. Here is
my script :
#!/bin/sh
echo "usb key un/plugged"
The script is working when I run it myself (./sbin/hotplug )
I've also noticed that when kmod try to call modprobe, it's not executed
while the debug message says that everything went fine.
Can anyone help me ?
Thanks in advance.
Ben.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hotplug problem
2005-08-03 7:57 hotplug problem bgerard
@ 2005-08-03 8:37 ` Clemens Koller
2005-08-03 9:47 ` bgerard
0 siblings, 1 reply; 3+ messages in thread
From: Clemens Koller @ 2005-08-03 8:37 UTC (permalink / raw)
To: bgerard; +Cc: linux-kernel
Hi Ben!
bgerard wrote:
> I'm working on an embeded system with linux kernel 2.4.27 and busybox
> 1.00. Lately I've decided to add hotplug feature to my kernel in order
> to automaticaly mount usb keys.
>
> When I plug the usb key, I can see in the kernel debug that
> "/sbin/hotplug" is called but my script is not executed. I've tried to
> replace the hotplug script by a simple one but nothing appeared. Here is
> my script :
> #!/bin/sh
> echo "usb key un/plugged"
I don't know much about hotplugging on 2.4.x and how you might need
to enable it in /proc... it just works for me on 2.6. with
CONFIG_HOTPLUG enabled and the latest hotplug-scripts.
> The script is working when I run it myself (./sbin/hotplug )
>
> I've also noticed that when kmod try to call modprobe, it's not executed
> while the debug message says that everything went fine.
Try newer modutils?
And you might have more luck asking on:
linux-hotplug-devel@lists.sourceforge.net
Greets,
Clemens
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: hotplug problem
2005-08-03 8:37 ` Clemens Koller
@ 2005-08-03 9:47 ` bgerard
0 siblings, 0 replies; 3+ messages in thread
From: bgerard @ 2005-08-03 9:47 UTC (permalink / raw)
To: Clemens Koller; +Cc: linux-kernel
Clemens Koller wrote:
> Hi Ben!
>
> bgerard wrote:
>
>> I'm working on an embeded system with linux kernel 2.4.27 and busybox
>> 1.00. Lately I've decided to add hotplug feature to my kernel in
>> order to automaticaly mount usb keys.
>>
>> When I plug the usb key, I can see in the kernel debug that
>> "/sbin/hotplug" is called but my script is not executed. I've tried
>> to replace the hotplug script by a simple one but nothing appeared.
>> Here is my script :
>> #!/bin/sh
>> echo "usb key un/plugged"
>
>
> I don't know much about hotplugging on 2.4.x and how you might need
> to enable it in /proc... it just works for me on 2.6. with
> CONFIG_HOTPLUG enabled and the latest hotplug-scripts.
>
>> The script is working when I run it myself (./sbin/hotplug )
>>
>> I've also noticed that when kmod try to call modprobe, it's not
>> executed while the debug message says that everything went fine.
>
>
Hotplug is well enabled in /proc/sys/kernel/hotplug, I specified in it
the path of /sbin/hotplug and according to the documentation that's all
I need to do to configure hotplug.
> Try newer modutils?
>
I don't think modutils is responsible for that, I think the kernel can't
call program in the user space and I don't kwnow why
Thank you for your quick answer
Regards
Ben.
> And you might have more luck asking on:
> linux-hotplug-devel@lists.sourceforge.net
> Greets,
>
> Clemens
>
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-08-03 9:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-03 7:57 hotplug problem bgerard
2005-08-03 8:37 ` Clemens Koller
2005-08-03 9:47 ` bgerard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox