why kernel not call /sbin/hotplug ?

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

 



Hello everybody

I have embedded system based on sh4-cpu with kernel 2.6.17.14.  I have
build latest rt73.ko module which is usb-wifi driver. This driver also
need firmware to be loaded into device during initialization.

Basing on information that I found, i put following script in /sbin/hotplug:

#cat /sbin/hotplug
#!/bin/sh
echo hotplug script is runned !

HOTPLUG_FW_DIR=/lib/firmware/

                echo 1 > /sys/$DEVPATH/loading
                cat $HOTPLUG_FW_DIR/$FIRMWARE > /sysfs/$DEVPATH/data
                echo 0 > /sys/$DEVPATH/loading

this file has following flags;

# ls -l /sbin/hotplug
-rwxrwxrwx    1 502      502          1006 Oct  8  2008 /sbin/hotplug

sysfs looks to be correctly configured for this script:

# cat /sys/kernel/uevent_helper
/sbin/hotplug
#

As I supposed when i'm inserting any usb device, I should see "hotplug
script is runned !" message, but there is no message.
After inserting usb-wifi module i see only this:


# rt73: Failed to request_firmware. Check your firmware file location
rt73: Failed to load Firmware.

Firmware is located in:
# ls -l /lib/firmware/
-rwxr--r--    1 501      501          2048 Oct  6  2008 rt73.bin

as expected in my /sbin/hotplug script.

after inserting regular usb-flash-disk device i see only this:

# sdb: assuming drive cache: write through
sdb: assuming drive cache: write through

I suppose that if /sys/kernel/uevent_helper exists then kernel is
correctly configured for supporting hotplug.

Why my /sbin/hotplug is not running ?

Where I may make mistake ?

Thanks for any help !

-- 
Please consider the environment before printing this email.
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux