I tried to generate a network driver for my TP-Link TL-WN727N USB WiFi adapter using ndisgen on my 9.2-STABLE amd64 system. I have the necessary rt2870.inf and rt2870.sys files from the Windows XP driver, but ndisgen says that the INF file format is not recognized. I looked at /usr/sbin/ndisgen and tried to replicate its INF file validation on the command line:
but...
As you see, the case-insensitive search (which is what ndisgen is doing) doesn't match, but a ase-sensitive search matches. I guess the fact that my rt2870.inf file is binary has something to do with this:
I haven't yet been able to find a driver for this card with ASCII format inf file. Is ndisgen supposed to support binary INF files?
Code:
$ egrep -i -c "S.i.g.n.a.t.u.r.e" rt2870.inf
0
but...
Code:
$ egrep -c "S.i.g.n.a.t.u.r.e" rt2870.inf
1
As you see, the case-insensitive search (which is what ndisgen is doing) doesn't match, but a ase-sensitive search matches. I guess the fact that my rt2870.inf file is binary has something to do with this:
Code:
$ file ./rt2870.inf
./rt2870.inf: Little-endian UTF-16 Unicode text, with CRLF, CR line terminators
I haven't yet been able to find a driver for this card with ASCII format inf file. Is ndisgen supposed to support binary INF files?