[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: bnx2 firmware loading?
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2013-12-06 4:34:34
Message-ID: 201312052334.35501.vapier () gentoo ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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

["signature.asc" (application/pgp-signature)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic