Hello Jim,
Thanks for looking into this. I think it's a busybox grep bug/feature and
I will search for a cleaner solution, but I need your help with this (I
don't have the hostap hardware ;)
Eric
> Looks like the trouble traces to grep(ing) past a certain byte offset in
> /proc/net/hostap/$1/debug. As a work around I created a directory wlan0
> in /etc/firmware/hostap and modified some lines in
> /etc/network/if-pre-up.d/hostap-utils.
> Also had to tweak grep line in load_secondary from pri_only=1 to
> pri_only=0
>
> Could the grep thing be a bug in the OS. Not a pretty solution but the
> NIC
> loads the firmware OK and radio passes data.
>
> Likely a better coding fix can be found.
>
>
> load_primary() {
> echo "load primary...." if [ ! -d /proc/net/hostap/$1 ]; then echo "Host AP
> driver data for device $1 not found in procfs." return 1 fi
>
> cp /proc/net/hostap/$1/debug /etc/firmware/hostap/$1/debug
>
> if grep -q no_pri=1 /etc/firmware/hostap/$1/debug; then echo "Downloading
> primary firmware $2 to interface $1" $PRISM2_SREC -gs $1 $2
> $PRISM2_SREC -gp $1 $2
> fi
>
> return 0 }
>
>
> load_secondary() {
> echo "load secondary ...." if grep -q pri_only=0
> /etc/firmware/hostap/$1/debug; then
> echo "Downloading secondary (station) firmware $2 to interface $
> $PRISM2_SREC -rp $1 $2
> fi
>
> return 0 }
>
>
>
>> From: "Jim Munro" <[EMAIL PROTECTED]>
>> To: [email protected]
>> CC: [EMAIL PROTECTED]
>> Subject: Re: [leaf-user] Re DWL 520 rev E some progress
>> Date: Mon, 01 May 2006 22:29:58 +0000
>>
>>
>>
>> Hi Eric,
>>
>>
>> Thanks for the help. I have been able to get the IF up manually with
>> prism2_srec using pm010102.hex and rf010800.hex and then doing an ifup
>> wlan0 (also passes data :). It appears that these lines of code in
>> /etc/network/if-pre-up.d/hostap-utils
>> may not be executing. I stuck some debug in the script and the download
>> primary and secondary procedures are being entered. wlan0 also appears
>> in /proc/net/hostap/
>>
>>
>> ------> if grep -q no_pri=1 /proc/net/hostap/$1/debug; then
>> echo "Downloading primary firmware $2 to interface $1" $PRISM2_SREC -gs
>> $1 $2
>> $PRISM2_SREC -gp $1 $2
>>
>>
>> ------> if grep -q pri_only=1 /proc/net/hostap/$1/debug; then
>> echo "Downloading secondary (station) firmware $2 to interface $
>> $PRISM2_SREC -rp $1 $2
>>
>>
>>
>>> From: "Eric Spakman" <[EMAIL PROTECTED]>
>>> To: "Jim Munro" <[EMAIL PROTECTED]>
>>> CC: [email protected]
>>> Subject: Re: [leaf-user] Re DWL 520 rev E (some debug)
>>> Date: Mon, 1 May 2006 09:16:13 +0200 (CEST)
>>>
>>>
>>> Hello Jim,
>>>
>>>
>>> It indeed looks like the primary firmware is loading fine but there
>>> is a problem with the station firmware. Are you sure the station
>>> firmware is not corrupted?
>>>
>
> _________________________________________________________________
> Take advantage of powerful junk e-mail filters built on patented
> Microsoft®
> SmartScreen Technology.
> http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=h
> ttp://hotmail.com/enca&HL=Market_MSNIS_Taglines
> Start enjoying all the benefits of MSN® Premium right now and get the
> first two months FREE*.
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> ------------------------------------------------------------------------
> leaf-user mailing list: [email protected]
> https://lists.sourceforge.net/lists/listinfo/leaf-user
> Support Request -- http://leaf-project.org/
>
>
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0709&bid&3057&dat1642
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/