Re: USB Hotplug support and use

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


On Monday 02 October 2006 19:22, Robbie wrote:
> Hi All,
>
> I figure the arm list might give me a better understanding of the
>
> usb<->hotplug<->automatic update stuff than the hotplug list so here
> goes...
>
>
>
> I believe my problem lies in what's incorperated in the kernel and how
>
> it's used.
>
> I have a EB9315 and an LPD7A404 board. In the 9315 there is a config
>
> option for the USB hotplug, but in the 7A404 it does not.
>
> However, in either case, I do get a log message when the usb flash
>
> drive is connected and disconnected.
>
> My filesystem does not have udev and my intension is to write a script
>
> that will mount /dev/sda1 once a usb mem. stick is detected and update
>
> my local NOR flash after that.
>
> I've mounted /proc/bus/usb and /dev/sda1 suscessfully - and manually -
>
> but I'm not sure what signals to use to do it automatically. Therefore, my
> questions are:
>
> Are both of these boards configured to use /sbin/hotplug script to do
>
> automatic configuration?
>
> In both case, once a usb device (flash drive in this case) is detected
>
> is the /sbin/hotplug called automatically? (This applies mostly to the
>
> 7A404).
>
> What signals are available to the user to detect a usb device
>
> connected or how to use them.
>
> I get some of this from the kernel documentation usb/hotplug.txt and
>
> usb/proc_usb_info.txt but it's not clear to me how to go about using
>
> this info.
>
> Does anyone have an example script they don't mind sharing?
>
>
>
>
>
> Thanks a million.
>
> --Robbie
Well the answer is going to vary quite a lot depending on which kernel
you are using.  Hotplug has been replaced by udev in recent kernels.

David

-------------------------------------------------------------------
List admin: http://lists.arm.linux.org.uk/mailman/listinfo/linux-arm
FAQ:        http://www.arm.linux.org.uk/mailinglists/faq.php
Etiquette:  http://www.arm.linux.org.uk/mailinglists/etiquette.php

[Linux ARM]     [Linux ARM MSM]     [Linux ARM Kernel]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

Add to Google Follow linuxarm on Twitter