Skip to contentSkip to conversation

Suggestion for firmware load example script

DISCUSSION Ken Hahn 2 participants 2 messages Apr 2, 2002 – Apr 10, 2002

lore
Share & tools
lore

Ken Hahn

author
#0 lore raw

Howdy,

I'm getting our usb2 product working with Linux, and I ran across the example firmware loading script at:
http://linux-hotplug.sourceforge.net/perf

By mistake, in the process of upgrading to the latest hotplug stuff, I forgot to add the new fxload. This took me a few minutes to figure out. It would have gone alot faster if this following bit of code had been placed before the attempt to load in that example script. I'd recommend that it be added to the example.

Almost everything else is checked for, but we don't check to see if the fxload program is missing.

Sorry this isn't a patch, but it is small:

if [ ! -x /sbin/fxload ]; then
if [ -x /usr/bin/logger ]; then
/usr/bin/logger -t $0 "cannot load firmware, missing fxload"
fi
exit 1
fi

Thanks,

Ken Hahn
Engineer, MicroSolutions

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

#1 lore raw

I updated the example on the website to check for the loader.

- Dave

----- Original Message -----
From: "Ken Hahn" <[email protected]>
To: "Greg KH" <[email protected]>
Cc: <[email protected]>
Sent: Tuesday, April 02, 2002 9:31 AM
Subject: Suggestion for firmware load example script

Quoted 31 lines

Howdy,

I'm getting our usb2 product working with Linux, and I ran across the example firmware loading script at:
http://linux-hotplug.sourceforge.net/perf

By mistake, in the process of upgrading to the latest hotplug stuff, I forgot to add the new fxload. This took me a few minutes to figure out. It would have gone alot faster if this following bit of code had been placed before the attempt to load in that example script. I'd recommend that it be added to the example.

Almost everything else is checked for, but we don't check to see if the fxload program is missing.

Sorry this isn't a patch, but it is small:

if [ ! -x /sbin/fxload ]; then
if [ -x /usr/bin/logger ]; then
/usr/bin/logger -t $0 "cannot load firmware, missing fxload"
fi
exit 1
fi

Thanks,

Ken Hahn
Engineer, MicroSolutions

Quoted 4 lines

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel