Post by Pavel RoskinHello!
Post by Dylan Cristianito be honest i've no real need to have hotplug because the card is
always
present or always absent, but i've searched through a lot of
documentation
on pcmcia and wireless tools but i didn't get the point: my problem is
simple
(not so simple to me): wi-fi card over compact flash interface: the
pccard
interface is compiled into kernel while wireless modules are loaded
manually
after booting; i dont' need hotplug but the way to make the wi-fi card
I'll appreciate if you write this in plain text without HTML, in
separate sentences and with proper capitalization. It's very hard to
read as it's written, and my mail client cannot quote HTML properly.
I'm really sorry but i've lotus notes that is very silly mail client
so i can't do quite anything, but formatting the strings manually
Post by Pavel RoskinPost by Dylan Cristianicurrently it fails downloading the firmware (it seems to me that the
driver
instead of performing $ACTION 'add' try to perform $ACTION 'remove' as
i can
read in the debug file hotplug_debug);
You are describing your interpretation without giving others the facts
you base your interpretation on. You posted the script with debug
commands, but not the results of those commands. And since you used the
same file for all actions, you may be looking at the last action, which
may be "remove".
You are right here my current file hotplug:
#!bin/sh
HOTPLUG_FW_DIR=/lib/firmware
echo \'$HOTPLUG_FW_DIR/$FIRMWARE\'>/tmp/hotplug_debug
echo \'$DEVPATH\'>>/tmp/hotplug_debug
echo \'$FIRMWARE\'>>/tmp/hotplug_debug
echo \'$1\'>>/tmp/hotplug_debug
echo \'$ACTION\'>>/tmp/hotplug_debug
if test "$1" = "firmware" -a "$ACTION" = "add";then
ls -l $HOTPLUG_FW_DIR/$FIRMWARE>>/tmp/hotplug_debug
ls -l /sys/$DEVPATH>>/tmp/hotplug_debug
if test -f $HOTPLUG_FW_DIR/$FIRMWARE; then
sleep 1
cat value-1>/sys/$DEVPATH/loading
sleep 1
cat $HOTPLUG_FW_DIR/$FIRMWARE>/sys/$DEVPATH/data
cat value-0>/sys/$DEVPATH/loading
else
cat value--1>/sys/$DEVPATH/loading
fi
fi
here the console output when i modprobe spectrum_cs:
spectrum_cs: Cannot find firmware: symbol_sp24t_prim_fw
spectrum_cs: Firmware download failed
hermes @ c4800000: Timeout waiting for card to reset (reg=0x0000)!
eth0: failed to initialize firmware (err = -110)
spectrum_cs: register_netdev() failed
and finally here the debug file /tmp/hotplug_debug:
'/lib/firmware/symbol_sp24t_prim_fw'
'/class/firmware/0.0'
'symbol_sp24t_prim_fw'
'firmware'
'remove'
Post by Pavel RoskinPost by Dylan Cristianii didnt' find out how to make the wi-fi
system running also without hotplug; can you help me suggesting some
documentation (maybe i can specify the firmware directory directly
into spectrum_cs.c
source file?).
The firmware directory cannot be hardcoded into the driver. I have no
evidence that it would help, because that path is already hardcoded into
your hotplug script.
It was just a (stupid) question fearing that the firmware directory
declared in my hotplug script wasn't processed the right way for some
reason
Post by Pavel RoskinI actually tried your script, and it's working for me (Fedora Core 6
with Linux 2.6.18), except that "ll" had to be replaced with "ls -al".
If you are not too constrained by the space requirements, you may want
to use current version of udev instead of hotplug. Hotplug is no longer
maintained.
I'm using a dev. platform similar to mainstone II with pxa270 to buid
an embedded device so i think that i've some space saving requirements
(i've about 13MB of flash memory for the whole filesystem)
Post by Pavel Roskin--
Regards,
Pavel Roskin
thanks
dylan