* on the Tue, Mar 14, 2006 at 04:19:59PM -0500, chriscureau at bellsouth.net 
was tippering:
> Hi, everyone.
> 
> I am trying to convert NDIS drivers for my D-Link DWL-G630 wireless card
> with ndis 0.1.  I successfully compiled ndiscnv, but when I run the program,
> this is returned:
> 
> # ./ndiscvt -i net5211.inf -s ar5211.sys -o ndis.h
> ndiscvt: line 459: "D:ARAI(A;;GA;;;BA)(A;;GA;;;SY)(A;CI;GA;;;IU)": syntax
> error.

The ndiscvt works on ASCII files, but many a crafty driver has been
distributing stuff in Unicode. If I look at bcmwl5.inf (a Broadcom
alternative):

# hd bcmwl5.inf | head -3
00000000  ff fe 3b 00 3b 00 0d 00  0a 00 3b 00 3b 00 20 00  |..;.;.....;.;. .|
00000010  62 00 63 00 6d 00 77 00  6c 00 35 00 2e 00 69 00  |b.c.m.w.l.5...i.|
00000020  6e 00 66 00 0d 00 0a 00  3b 00 3b 00 0d 00 0a 00  |n.f.....;.;....|

For your edification, if a file looks like null-padded ASCII characters, then
it is probably UTF-16.

To fix your problem:

# iconv -c -f utf-16 -t ascii bcmwl5.inf > bcmwl5.inf.ascii
# head -3 bcmwl5.inf.ascii
;;
;; bcmwl5.inf

Use this .ascii file to create the .h and it should work 

-- 
Bruno Delbono
Open-Systems Group Inc.
http://www.open-systems.org/users/bruno/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/laptop-discuss/attachments/20060318/9160380f/attachment.bin>

Reply via email to