bnx2 firmware loading?

Mike Frysinger vapier at gentoo.org
Fri Dec 6 04:34:34 UTC 2013


On Tuesday 03 December 2013 09:58:09 Harald Becker wrote:
> >> #!/bin/sh
> >> if [ "$SUBSYSTEM" == "firmware" ];then
> >> 
> >>         logger "Firmware load for $FIRMWARE requested"
> >>         if [ "$ACTION" == "add" ];then
> >>         
> >>                 if [ -e "/lib/firmware/$FIRMWARE" ];then
> >>                 
> >>                         logger "Firmware loading ..."
> >>                         echo 1 > /sys$DEVPATH/loading
> >>                         cat "/lib/firmware/$FIRMWARE" >
> >> 
> >> /sys$DEVPATH/data
> >> 
> >>                         echo 0 > /sys$DEVPATH/loading
> >>                         logger "finished."
> >>                 
> >>                 else
> >>                 
> >>                         logger "Firmware file $FIRMWARE not
> >> 
> >> found" echo -1 > /sys$DEVPATH/loading
> >> 
> >>                 fi
> >>         
> >>         fi
> >> 
> >> fi
> >> 
> >> The loading of the firmware is not automatically done by mdev
> >
> >Looks like this fixed it.
> 
> IMO mdev does this, when configured to load firmware. So why is
> it required to add this to the scripting?

yes, there is a config option for mdev to do it natively.  you should not need 
a script.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20131205/280ae96c/attachment.asc>


More information about the busybox mailing list