mdev usbdisk hot plugging issue

Sameer Naik sameer.subscriptions at damagehead.com
Wed Nov 11 08:09:11 UTC 2009


Any pointer here please. It would help a great deal.
Could this be a kernel related issue?

Regards
~Sameer

On Mon, Nov 9, 2009 at 10:14 PM, Sameer Naik
<sameer.subscriptions at damagehead.com> wrote:
> I forgot to mention that the usb-storage module is compiled as s
> tatic into the kernel. If i compile usb-storage as a dynamic module
> and load it at boot, then hot plugging works for usb disk.
>
> However, i have a similar _hotplug script to create symbolic links to
> event* devices in /dev/input/ .This does not work is the system is
> booted with the input device connected, whether or not evdev is compiled
> as a static or dynamically loadable module
>
> Regards
> ~Sameer
>
> On Mon, Nov 9, 2009 at 7:46 PM, Sameer Naik
> <sameer.subscriptions at damagehead.com> wrote:
>> Hi,
>> I am using busybox 1.11.2 with linux-2.6.23 on the davinci platform.
>> I have setup mdev to _hotplug usb disks.
>> if i connect a usb disk to the system after it has been booted, mdev
>> correctly picks up on the device and mounts it through my _hotplug script.
>> However, if i connect the usb disk before booting the system, then
>> mdev does not
>> call the _hotplug script. The device node exists in the /dev/ tree,
>> but it appears mdev
>> does not detect the usb disk and call the _hotplug script.
>>
>> Here is my init script for mdev (snippet)
>>
>> --- SNIPPET START ---
>> mount -t tmpfs mdev /dev
>> mkdir /dev/pts
>> mount /dev/pts
>> mount /sys
>> mount /proc
>> echo "/sbin/mdev" > /proc/sys/kernel/hotplug
>> mdev -s
>> --- END OD SNIPPET ---
>>
>> I was expecting that when `mdev -s` was called, the hot plugging of the
>> usb disk would occur. But right now this does not seem to be the case (for me).
>>
>> Please advice.
>>
>> Regards
>> ~Sameer
>>
>


More information about the busybox mailing list