From owner-freebsd-wireless@FreeBSD.ORG Wed Dec 11 01:27:34 2013 Return-Path: Delivered-To: freebsd-wireless@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 29001F6F for ; Wed, 11 Dec 2013 01:27:34 +0000 (UTC) Received: from nm15-vm7.access.bullet.mail.bf1.yahoo.com (nm15-vm7.access.bullet.mail.bf1.yahoo.com [216.109.115.38]) by mx1.freebsd.org (Postfix) with SMTP id BB4FB12D3 for ; Wed, 11 Dec 2013 01:27:33 +0000 (UTC) Received: from [66.196.81.155] by nm15.access.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2013 01:21:56 -0000 Received: from [98.138.226.240] by tm1.access.bullet.mail.bf1.yahoo.com with NNFMP; 11 Dec 2013 01:21:56 -0000 Received: from [127.0.0.1] by smtp111.sbc.mail.ne1.yahoo.com with NNFMP; 11 Dec 2013 01:21:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bellsouth.net; s=s1024; t=1386724916; bh=EyGSylUwdWsM2iIaIc7Ua26l7bGBtOQ5gToG4v9xLwQ=; h=X-Yahoo-Newman-Id:Message-ID:Date:X-Yahoo-Newman-Property:X-YMail-OSG:X-Yahoo-SMTP:X-Rocket-Received:From:To:CC:References:Subject; b=d0z/iDJ0VPV88sIFtXHssVaExsD61Bpjf5+r4xB2G//eH0bOIXT50tQAaukoMKJTGnSeQGjNb+lpJLFwJ5LIWIpgjusksQ5wJoW7ByPlcvlA6wCPT/dg2CYsCf2MLmubxdPnaHKGnMLXi+4p3NxHVKVlgsAi96WSDwbb8/XzUcI= X-Yahoo-Newman-Id: 689187.36744.bm@smtp111.sbc.mail.ne1.yahoo.com Message-ID: <689187.36744.bm@smtp111.sbc.mail.ne1.yahoo.com> Date: Tue, 10 Dec 2013 17:21:56 -0800 (PST) X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: yJP_shkVM1lHT9reTHp2TPgyafcFfFzZ.ivEpz3QVvKajqG _mzy8cnaNKMvq1XcxQOZNBPiNlZV3xImOOwqZ2V.o.Hi50DtakeoU_pWCmBR t_uBK7gEotOh.uUnQc5CN6A5nEL7pi8tP9UUqp_cDBh2BW5_snkoXpuE.GHz pDV10qk4Qa994qZ8Y.OaHDNCLs8YypmjVsjQriKbuTGjCsPnkjFmu8C7Bv6A b_CKv26dMuptRJHrqO134UxUCxENyV57TYW2I9QBaYKMhQ7ah6BN1n4BeS78 eBKbZIGU.ONDEuVLWQFILFiBA9s30IT5Mch0Z_TKLQ4_sAN5qq9UP.fF6.1Y ZzR4kwdgUsKTJ4w4_Jy35SkCZ5GoAOCvH7jC0rNLBtaBfHMQXNOAn1kBnV6m mHtkf_3JIUuWQFt.BXm4oPJ_CpndAal.yKTAAQD2u6UiKZDHHUQNLzbyH1U6 igrLAwDLj8WwEyhSeZlW.jXXCxmajkXBSZX7m4dNV2JXXk4KmlVx3qlyb1Iq TyW8m.YGGjJCIKYqryFOvgybNsgdAQNP2fGBJMieZHFBA0euZzV.EXjuEmph YenWxzegwCmaqQeZDOFk- X-Yahoo-SMTP: Kz_aW1.swBBYof3zAD7.RWzXz9ZAQVDMml1VADsbgPT4Kq79LC0- X-Rocket-Received: from localhost (mueller6724@96.28.178.143 with ) by smtp111.sbc.mail.ne1.yahoo.com with SMTP; 10 Dec 2013 17:21:56 -0800 PST From: "Thomas Mueller" To: freebsd-wireless@freebsd.org References: <20131210224212.11531v3ymtj51n7o@webmail.raad.tartu.ee> Subject: Re: egrep in /usr/sbin/ndisgen Cc: Toomas Aas , freebsd-questions@freebsd.org X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Dec 2013 01:27:34 -0000 from Toomas AAS: > I'm trying to generate a NDIS-wrapped driver for my USB WiFi adapter > that is not directly supported by FreeBSD. I've tried various versions > of Windows driver, but ndisgen doesn't like any of the INF files: "I > don't recognize this file format. It may not be a valid .INF file." > The INF file validation that is performed by /usr/sbin/ndisgen is: > ${EGREP} -i -c "Signature|.S.i.g.n.a.t.u.r.e" ${INFPATH} > I tried this on the latest INF file at hand, and indeed it returns zero: > $ egrep -i -c "Signature|.S.i.g.n.a.t.u.r.e" netr28ux.inf > However: > $ egrep -i -c ".S.i.g.n.a.t.u.r.e" netr28ux.inf 1 > So, why does the first egrep not match if the second one matches? > My OS version is 9.2-STABLE amd64 -- > Toomas I had a problem of ndisgen not recognizing the .INF file simply because of the lack of a carriage return (ASCII 13) at the end. So I opened vi, added a carriage return at the end. Or was it the other way around? Then I was able to generate the NDIS-wrapped kernel module for 9.2_STABLE amd64 and also 9.1_STABLE i386. But this failed to connect to network. This was enough to make me remove NDIS support from my config for 10-STABLE and 11-HEAD. Good part is that I finally managed to make the wireless connection with Hiro H50191 USB adapter, chipset RSU8191SU, device rsu in FreeBSD 10-STABLE and 11-HEAD. dhclient succeeded but slower than with a working Ethernet/wired connection. Perhaps what went wrong previously, why I was unable to connect, was wrong software commands or failing Netgear router. Now I use TP-Link TL-WR841N router, which I bought on my own. Tom