Date: Fri, 1 Oct 2004 21:54:41 -0500 From: Eric Schuele <E.Schuele@Comcast.Net> To: freebsd-questions@freebsd.org Subject: Re: NDISulator (aka. Project Evil) wmp54gs w. bcm4306 Message-ID: <200410012154.41725.E.Schuele@Comcast.Net> In-Reply-To: <20041001204624.18145.qmail@web14122.mail.yahoo.com> References: <20041001204624.18145.qmail@web14122.mail.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 01 October 2004 03:46 pm, K. Greenwood wrote: > Quick question. Where do queries regarding Bill > Paul's NDISulator go? I have seen some to current, > hardware, mobile. > > Or even better, a howto (the best I have seen thus far > is:) > http://lists.freebsd.org/pipermail/freebsd-current/2004-January/01948 >6.html Google: FreeBSD NDIS You'll get some good returns. Here are the two best 'HowTo's' I've found: http://tweakbsd.homeunix.org/guides/windoof-ndis-drivers.php http://www.xl0.org/FreeBSD/ndis.txt Here is my HowTo: (i.e. that which worked for me, constructed from the sites referenced above) =========================================================== wLAN (TrueMobile 1300) =========================================================== Download and build NDIS wrapper for Windows wLAN drivers # cd /usr # cvs -d anoncvs@anoncvs.fr.FreeBSD.org:/home/ncvs co src/sys/ modules/ndis src/sys/modules/if_ndis src/usr.sbin/ndiscvt src/sys/ compat/ndis src/sys/dev/if_ndis # cd /usr/src/usr.sbin/ndiscvt/ && make && make install # cd /usr/src/sys/modules/ndis && make && make install # make load # cd /usr/src/sys/modules/if_ndis # cp /path/to/windows_driver.sys # cp /path/to/windows_driver.inf # rename old /usr/src/sys/dev/pccard/pccarddevs.h # ndiscvt -i windows_driver.inf -s windows_driver.sys -o pccarddevs.h # ndiscvt -i windows_driver.inf -s windows_driver.sys -o ndis_driver_data.h # make install # re-rename old /usr/src/sys/dev/pccard/pccarddevs.h (needed for future kernel builds) NOTE: It appears that if you later rebuild your kernel... you must _rebuild_ the above as well. Maybe just re-install? Add to /etc/rc.conf ifconfig_ndis0="DHCP" hostname="yourhostname" Add to /boot/loader.conf ndis_load="YES" if_ndis_load="YES" Edit /etc/dhclient.conf timeout 10; retry 10; reboot 10; select-timeout 5; initial-interval 2; interface "ndis0" { send dhcp-client-identifier "unx.unxlaptop.org"; media "ssid Your_SSID channel 1 wepmode on wepkey 0x57065YourWepKey753B5; request subnet-mask, broadcast-address, routers, domain-name-servers, domain-n; } HTH > > > > > > The following is extraneous info, if someone here can > clue me in. > > I have a PCI Linksys WMP54GS (pciconf -vl as follows): > > ndis00@pci0:8:0 class=0x028000 card=0x00151737 > chip=0x432014e4 rev=0x03 hdr=0x00 > > vendor = 'Broadcom Corporation' > device = 'BCM4306 802.11b/g Wireless LAN Controller' > class = network > > > FreeBSD type (uname -a) as follows: > > FreeBSD workstation.domain.org 5.3-BETA6 FreeBSD > 5.3BETA6 #0: Sat Sep 25 19:41:14 UTC 2004 > root@wv1u.samsco.home:/usr/obj/usr/src/sys/GENERIC > i386 > > > The only device that I can find that looks like it is > listed as > > pci0: <network> at device 8.0 (no driver attached) > > > I copied over the win32exe from the linksys site, used > a windows system and got the required files > (BCMWL5.inf & bcmwl5.sys). Address follows. > > http://www.linksys.com/download/driver.asp?dlid=132&osid=6 > > And attempted the following, as per Mr. Paul's > message. > > # cp foo.sys foo.inf /sys/modules/if_ndis > # cd /sys/modules/ndis > # make; make load > # cd /sys/modules/if_ndis > # ndiscvt -i foo.inf -s foo.sys -o ndis_driver_data.h > # make; make load > > When I attempt to 'make load' the following message is > displayed. > > ndis0: <Linksys Wireless-G PCI Adapter with > SpeedBooster> mem 0xffef6000-0xffef7fff irq 11 at > device 8.0 on pci 0 > ndis0: NDIS API version: 5.0 > ndis0: NDIS ERROR: c0001389 (unknown error) > ndis0: NDIS NUMERRORS: 1 > ndis0: argptr: 0xc > ndis0: init handler failed > device_attach: ndis0 attach returned 6 > > And kldstat lists the following: > > Id Refs Address Size Name > 1 6 0xc0400000 5b6c5c kernel > 2 1 0xc14f1000 53000 if_ndis.ko > 3 1 0xc1544000 d000 ndis.ko > > > I have even attempted to enter ndis_load="YES" in the > loader.conf, but to no avail. Also, I have hand typed > these in, so any mistakes are likely due to me typing > in this message. > > If you have gotten to this point, thanks for your > patience. If you have a suggestion, even better! But > please, type slowly and use small words. I have the > capacity of an ill trained carp. > > > > _______________________________ > Do you Yahoo!? > Declare Yourself - Register online to vote today! > http://vote.yahoo.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"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200410012154.41725.E.Schuele>