ts-7000
[Top] [All Lists]

[ts-7000] mdev not firing on device plugin

To:
Subject: [ts-7000] mdev not firing on device plugin
From: "j.chitte" <>
Date: Sat, 29 May 2010 09:31:29 -0000
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

# cat /etc/mdev.conf
wlan.* 0:0 644 * /etc/mdev.actions


# cat /etc/mdev.actions
export MDEVON="called"

if  [$ACTION="add" ] then
export MDEVON="on"
ifconfig wlan0 192.168.1.54 netmask 255.255.255.0 up
route add default gw 192.168.1.1 wlan0
wpa_supplicant -c /etc/wpa_supplicant.conf -i$MDEV -Dwext 
fi

if  [$ACTION="remove"] then
export MDEVON="off"
killall wpa_supplicant
#ifconfig wlan0 down
fi


$MDEVON is never getting set. Even setting .* as the regex for the device does 
nothing. This suggests that mdev is not getting called by the kernel hotplug 
mechanism. 

.* 0:0 644 * /etc/mdev.actions


# grep -i hotplug .configCONFIG_HOTPLUG=y
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"


So just incase this was not getting reset by writing to /proc I symlinked as 
well.

# ln -s  /sbin/mdev /sbin/hotplug


All relevant busybox options are turned on:
# grep -i mdev .config
CONFIG_MDEV=y
CONFIG_FEATURE_MDEV_CONF=y
CONFIG_FEATURE_MDEV_RENAME=y
CONFIG_FEATURE_MDEV_RENAME_REGEXP=y
CONFIG_FEATURE_MDEV_EXEC=y
CONFIG_FEATURE_MDEV_LOAD_FIRMWARE=y


What have I missed ?!

TIA



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

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