ts-7000
[Top] [All Lists]

[ts-7000] Re: mdev not firing on device plugin

To:
Subject: [ts-7000] Re: mdev not firing on device plugin
From: "Blair" <>
Date: Tue, 01 Jun 2010 12:39:58 -0000
I set this up in a startup script on a 7350 that is based on the original TS 
script.  The original script has a line mdev -s. I think a simple mdev 
invocation just runs the population once so unless your device is always 
plugged in when you power up, it won't be seen later.  The busybox docs say to 
do the echo line to "connect" mdev to the hotplug system.

This is working fine for me to hotplug a USB LCD display device.  The one 
caveat I see is that mdev/hotplug/usb takes 4-6 seconds to fully populate /dev 
on startup once you reach the shell prompt.  That kinda sucks but that's a 
linux thing not a TS thing.  My app needs to talk to a USB device when it 
starts so I need to sleep my startup script before I launch my app.

I also went through the hassle of getting inotify working so that my app will 
get an event when I plug in my USB LCD display but even that takes a couple of 
seconds to register so whether or not using inotify is better than polling for 
the device is debatable.



--- In  "j.chitte" <> wrote:
>
> 
> 
> --- In  "Blair" <bburtan65@> wrote:
> >
> > Try: echo /bin/mdev >/proc/sys/kernel/hotplug
> > 
> > 
> 
> In what way would that be better than putting the correct location of mdev 
> into hotplug , as I already indicated I have done ?
> 
> 
> > 
> > --- In  "j.chitte" <j.chitte@> wrote:
> > >
> > > Hi,
> > > 
> > > I have got the wifi connection working on TS7250 but cannot get mdev to 
> > > do it all automatically.
> > > 
> > > # cat /proc/sys/kernel/hotplug  
> > > /sbin/mdev
> > > 
> > > # ls -ail /sbin/mdev
> > >  228308 lrwxrwxrwx    1 root     root            14 May 27 18:38 
> > > /sbin/mdev -> ../bin/busybox
>




------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU