From owner-freebsd-questions@FreeBSD.ORG Thu Jun 4 17:53:07 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25417106566C for ; Thu, 4 Jun 2009 17:53:07 +0000 (UTC) (envelope-from onemda@gmail.com) Received: from mail-bw0-f226.google.com (mail-bw0-f226.google.com [209.85.218.226]) by mx1.freebsd.org (Postfix) with ESMTP id 796038FC2B for ; Thu, 4 Jun 2009 17:53:03 +0000 (UTC) (envelope-from onemda@gmail.com) Received: by bwz26 with SMTP id 26so280258bwz.43 for ; Thu, 04 Jun 2009 10:53:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=eQSULgLHNgdSigpn0sS0hdAFlOPTG7DuOp8C9R56840=; b=X06vzw2qxHaeRcWQYdFF9lxzvdCEPfrjpTWpBm+fIUZdXcJrN76eOM/MrlWk6q/jJx zWQ6dqGr+Labx/SnENB2iQ8tslDk/w8+4rOKcU6Ttk/JerDfSM4cqumj6RqXdXyGdp0Z qngaEVL6dmdIIMG/CKtwVZvTmZYPoK0j3MzLE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=vx4hm42ZK4hbYEN5VjsZUoRfVl+c8x9fjFyIpzkjLUzqbDWKJd+h0ojhOqjD+wCwi+ zWNUucZOPLp084mY+NiV3TB+10MIrofnqfcmJTj8zIjuO6JpmXC8ItJi1XzbhB9fFhbE 9onv286EVrNa8UQIwj0ZShoFdIteMp2dWshPg= MIME-Version: 1.0 Received: by 10.204.50.212 with SMTP id a20mr2290674bkg.35.1244137981348; Thu, 04 Jun 2009 10:53:01 -0700 (PDT) In-Reply-To: References: Date: Thu, 4 Jun 2009 17:53:01 +0000 Message-ID: <3a142e750906041053t11c5f676u99e969873275471a@mail.gmail.com> From: "Paul B. Mahol" To: Neal Hogan Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: "freebsd-questions@freebsd.org" , "Walter, Richard" Subject: Re: Can't get ndis0 working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 04 Jun 2009 17:53:07 -0000 On 5/14/09, Neal Hogan wrote: > On Thu, May 14, 2009 at 4:00 AM, Walter, Richard > wrote: >> Hello, >> >> I tried to activate my Acer's Aspire 5315 wireless card >> with FreeBSD 7.2 i386 and had no luck. >> >> What i did: >> 1) #prtconf -lv >> none2@pci0:6:0:0: class=0x028000 card=0x04221468 chip=0x431114e4 >> rev=0x01 hdr=0x00 >> vendor = 'Broadcom Corporation' >> device = 'Dell Wireless 1390 WLAN Mini-PCI Card' >> class = network >> >> 2) i Downloaded the R112196.EXE archive from the Dell ftp server and >> extracted bcmwl5.inf and bcmwl5.sys >> 3) i copied those files to /sys/modules/if_ndis >> 4) # iconv -c -f utf-16 -t ascii bcmwl5.inf > bcmwl5.inf.ascii >> 5) with ndisgen and bcmwl5.inf.ascii/bcmwl5.sys i created >> successful bcmwl5_sys.ko. >> The ndisgen wrote a message at sys file loading: >> "This .SYS file appears to be in Windows(r) PE format" >> 6) # cp bcmwl5_sys.ko /boot/kernel >> 7) # kldload bcmwl5_sys.ko >> kldload: cant't load bcmwl5_sys.ko >> >> # kldloat /boot/kernel/bcmwl5_sys.ko >> kldload: cant't load /boot/kernel/bcmwl5_sys.ko This is wrong, what is displayed on console? >> >> 8) Next try with help from >> http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-drivers >> >> # rm /boot/kernel/bcmwl5_sys.ko >> # rm /sys/modules/if_ndis/bcmwl5_sys.ko >> >> 9)cd /sys/modules/if_ndis >> # ndiscvt -i bcmwl5.inf.ascii -s bcmwl5.sys -o ndis_driver_data.h >> >> 10) # make && make install >> Warning: Object directory not changed from original >> /usr/src/sys/modules/if_ndis >> @ -> /usr/src/sys >> machine -> /usr/src/sys/i386/include >> awk -f @/tools/makeobjops.awk @/kern/device_if.m -h >> awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h >> awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h >> awk -f @/tools/makeobjops.awk @/dev/pccard/card_if.m -h >> awk -f @/tools/pccarddevs2h.awk @/dev/pccard/pccarddevs >> :> opt_usb.h >> awk -f @/tools/usbdevs2h.awk @/dev/usb/usbdevs -h >> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 >> -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param >> inline-unit-growth=100 --param large-function-growth=1000 -fno-common >> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c >> /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis.c >> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 >> -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param >> inline-unit-growth=100 --param large-function-growth=1000 -fno-common >> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c >> /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c >> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 >> -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param >> inline-unit-growth=100 --param large-function-growth=1000 -fno-common >> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c >> /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_pccard.c >> cc -O2 -fno-strict-aliasing -pipe -D_KERNEL -DKLD_MODULE -std=c99 >> -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param >> inline-unit-growth=100 --param large-function-growth=1000 -fno-common >> -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow >> -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls >> -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith >> -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c >> /usr/src/sys/modules/if_ndis/../../dev/if_ndis/if_ndis_usb.c >> ld -d -warn-common -r -d -o if_ndis.kld if_ndis.o if_ndis_pci.o >> if_ndis_pccard.o if_ndis_usb.o >> :> export_syms >> awk -f /usr/src/sys/modules/if_ndis/../../conf/kmod_syms.awk if_ndis.kld >> export_syms | xargs -J% objcopy % if_ndis.kld >> ld -Bshareable -d -warn-common -o if_ndis.ko if_ndis.kld >> objcopy --strip-debug if_ndis.ko >> install -o root -g wheel -m 555 if_ndis.ko /boot/kernel >> kldxref /boot/kernel >> >> 11) # kldload if_ndis >> # kldstat >> Id Refs Address Size Name >> 1 19 0xc0400000 9fab28 kernel >> 2 1 0xc0dfb000 6a45c acpi.ko >> 3 1 0xc4767000 22000 linux.ko >> 4 1 0xc489c000 9000 i915.ko >> 5 1 0xc48a5000 13000 drm.ko >> 6 1 0xc532c000 c000 if_ndis.ko >> 7 1 0xc5338000 16000 ndis.ko >> >> 12) # ifconfig ndis0 up >> ifconfig: interface ndis0 does not exist >> >> I've no idea whats going wrong , perhaps anyone can help ? > > Perhaps I can indirectly help . . . > > I had a discussion on this list a little while back about the ndis > wrapper. Perhaps some of the suggestions made to me by folks who have > had success with it will help you. It looks as though you did some (if > not all) of the things that I did, which were commented on in the > discussion. My patience wore too thin for me to fully work it out, but > perhaps you're a better man than I. > > http://freebsd.monkey.org/freebsd-questions/200901/msg00435.html > > One thing that may not be mentioned in the above the thread is that > you may have to try different .inf and .sys files until you get one > that works . . . that consumed most of the little patience that I had. > > Good luck! > > -Neal > > >> >> Best regards, >> >> Richard >> >> >> >> >> HOB RD VPN - einfach, sicher und flexibel auf alle >> Unternehmensanwendungen und -daten zugreifen >> >> Praesentation unter: http://www.hob.de/rdvpn2/ >> >> >> HOB GmbH & Co. KG >> Schwadermuehlstr. 3 >> D-90556 Cadolzburg >> >> Geschaeftsfuehrung: Klaus Brandstaetter, Franz Wiedenmann, Zoran Adamovic >> >> AG Fuerth, HRA 5180 >> Steuer-Nr. 218/163/00107 >> USt-ID-Nr. DE 132747002 >> >> Komplementaerin HOB electronic Beteiligungs GmbH >> AG Fuerth, HRB 3416 >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" >> > > > > -- > www.nealhogan.net www.lambdaserver.com > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > -- Paul