Where to get the last station firmware?

Pavel Roskin proski
Mon Nov 11 16:38:59 PST 2002


Hello!

> You should now have several files.  You need PRISMNDS.sys.  Remove the
> binary parts at the beginning and the end of the file in an editor (we
> really should fix split_combined_hex to make it unnecessary).

This patch should do it.  Note that it kills the first S4 record that
doesn't begin after a control character, but it's ignored anyway.  I know
how to preserve it, but I don't think it's worth the trouble.

The check in grep is so strict to remove all random data from the binary.
A positive side effect of using `tr' is that the output has UNIX newlines
even in the input uses DOS newlines.

This patch, of course, interferes with extracting the binaries, but I
don't think that split_combined_hex was designed to extract them.  
Unrecognized parts still will be names image-*, but they will be just 
unrecognized s-records.

I believe this patch should be applied to CVS.

===============================
--- split_combined_hex
+++ split_combined_hex
@@ -14,7 +14,9 @@
 TMPDIR=`mktemp -d srec_temp.XXXXXX` || exit 1
 IN=$TMPDIR/data
 PART=$TMPDIR/part
-cat > $IN
+
+# Only leave S-Records, remove binary junk
+tr '[:cntrl:]' '\n' | grep -aE '^S[1-9][0-2][0-9A-F]+$' > $IN
 
 num=0
 while [ -s $IN ]; do
===============================

-- 
Regards,
Pavel Roskin





More information about the Hostap mailing list