Have you tried running udevmonitor while plugging/unplugging, to see which events udev is seeing?

C

On Oct 5, 2006, at 6:38 PM, rockwell618@gmail.com wrote:

Craig,

Thanks for the suggestion. I did update to 2.6.18gum but the situation remains the same wrt to hotplug events.   Evidently the kernel is still not calling /sbin/hotplug in response to usb add and remove actions.

Is it working for anyone else?

Thanks,
Todd


On 10/4/06, Craig Hughes <craig@gumstix.com> wrote:
Todd,

I'd recommend first trying to update to the latest HEAD from
buildroot, or at least to the latest binary rootfs release from
http://sf.net/projects/gumstix; sometime around when I went to I
think 2.6.17, I added considerable fixups to the hotplug/udev system,
so it should work much better now than with 2.6.11

C

On Oct 4, 2006, at 3:19 AM, rockwell618@gmail.com wrote:

> I have written a simple hotplug script that is intended to mount a
> DOS file system for viewing/editing from an XP desktop whenever a
> usb connection is established with GS.
>
> I placed it in /sbin/hotplug and it looks something like:
>
> if [ "$1" = "usb" ]
> then
>         if [ "$ACTION" = "add" ]
>         then
>                 # Mount DOS file system, write files onto it for XP
> viewing, etc ....
>         fi
> fi
> ...
>
> Trouble is that the kernel never calls the script when the USB
> connection is established.   Everything works fine on the XP and GS
> sides when I set things up _manually_, but I cannot automate the
> setup (and takedown) properly without receiving the "add" and
> "remove" action notifications. My 2.6.11gum is configured with
> hotplug (well, diethotplug actually) and it has the /proc/sys/
> kernel/hotplug file that points to /sbin/hotplug.
>
> Do I need to explicitly register for certain types of
> notifications?  Or is there some other administrative step that is
> required in order to receive the hotplug notifications?
>
> Would greatly appreciate a couple of pointers here.
>
> Thanks,
> Todd
>
>
> ----------------------------------------------------------------------
> ---
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to
> share your
> opinions on IT & business topics through brief surveys -- and earn
> cash
> http://www.techsay.com/default.php?
> page=join.php&p=sourceforge&CID=DEVDEV________________________________
> _______________
> gumstix-users mailing list
> gumstix-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users