Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 May 2009 06:56:50 -0500
From:      Neal Hogan <nealhogan@gmail.com>
To:        "Walter, Richard" <richard.walter@hob.de>
Cc:        "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org>
Subject:   Re: Can't get ndis0 working
Message-ID:  <ab7b49bc0905140456j75d7c2c2of39b2c8b515dcb5c@mail.gmail.com>
In-Reply-To: <E7C0F5A9B0C2494F96D3F4355711090374C50DEA62@HOBEX2007.hob.de>
References:  <E7C0F5A9B0C2494F96D3F4355711090374C50DEA62@HOBEX2007.hob.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 14, 2009 at 4:00 AM, Walter, Richard <richard.walter@hob.de> wr=
ote:
> 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: =A0 =A0 =A0 class=3D0x028000 card=3D0x04221468 chip=3D0=
x431114e4 rev=3D0x01 hdr=3D0x00
> =A0 =A0vendor =A0 =A0 =3D 'Broadcom Corporation'
> =A0 =A0device =A0 =A0 =3D 'Dell Wireless 1390 WLAN Mini-PCI Card'
> =A0 =A0class =A0 =A0 =A0=3D network
>
> 2) i Downloaded the R112196.EXE archive from the Dell ftp server and
> =A0 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
> =A0 successful bcmwl5_sys.ko.
> =A0 The ndisgen wrote a message at sys file loading:
> =A0 "This .SYS file appears to be in Windows(r) PE format"
> 6) # cp bcmwl5_sys.ko /boot/kernel
> 7) # kldload bcmwl5_sys.ko
> =A0 =A0kldload: cant't load bcmwl5_sys.ko
>
> =A0 # kldloat /boot/kernel/bcmwl5_sys.ko
> =A0 =A0kldload: cant't load /boot/kernel/bcmwl5_sys.ko
>
> 8) Next try with help from
> http://dannyman.toldme.com/2005/01/05/freebsd-howto-ndisulate-windows-dri=
vers
>
> # 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 =A0-D_KERNEL -DKLD_MODULE -std=3Dc99 -n=
ostdinc =A0 -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-u=
nit-growth=3D100 --param large-function-growth=3D1000 -fno-common =A0-mno-a=
lign-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow -mn=
o-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-e=
xterns -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline=
 -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/s=
ys/modules/if_ndis/../../dev/if_ndis/if_ndis.c
> cc -O2 -fno-strict-aliasing -pipe =A0-D_KERNEL -DKLD_MODULE -std=3Dc99 -n=
ostdinc =A0 -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-u=
nit-growth=3D100 --param large-function-growth=3D1000 -fno-common =A0-mno-a=
lign-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow -mn=
o-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-e=
xterns -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline=
 -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/s=
ys/modules/if_ndis/../../dev/if_ndis/if_ndis_pci.c
> cc -O2 -fno-strict-aliasing -pipe =A0-D_KERNEL -DKLD_MODULE -std=3Dc99 -n=
ostdinc =A0 -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-u=
nit-growth=3D100 --param large-function-growth=3D1000 -fno-common =A0-mno-a=
lign-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow -mn=
o-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-e=
xterns -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline=
 -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/s=
ys/modules/if_ndis/../../dev/if_ndis/if_ndis_pccard.c
> cc -O2 -fno-strict-aliasing -pipe =A0-D_KERNEL -DKLD_MODULE -std=3Dc99 -n=
ostdinc =A0 -I. -I@ -I@/contrib/altq -finline-limit=3D8000 --param inline-u=
nit-growth=3D100 --param large-function-growth=3D1000 -fno-common =A0-mno-a=
lign-long-strings -mpreferred-stack-boundary=3D2 =A0-mno-mmx -mno-3dnow -mn=
o-sse -mno-sse2 -mno-sse3 -ffreestanding -Wall -Wredundant-decls -Wnested-e=
xterns -Wstrict-prototypes =A0-Wmissing-prototypes -Wpointer-arith -Winline=
 -Wcast-qual =A0-Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/s=
ys/modules/if_ndis/../../dev/if_ndis/if_ndis_usb.c
> ld =A0-d -warn-common -r -d -o if_ndis.kld if_ndis.o if_ndis_pci.o if_ndi=
s_pccard.o if_ndis_usb.o
> :> export_syms
> awk -f /usr/src/sys/modules/if_ndis/../../conf/kmod_syms.awk if_ndis.kld =
=A0export_syms | xargs -J% objcopy % if_ndis.kld
> ld -Bshareable =A0-d -warn-common -o if_ndis.ko if_ndis.kld
> objcopy --strip-debug if_ndis.ko
> install -o root -g wheel -m 555 =A0 if_ndis.ko /boot/kernel
> kldxref /boot/kernel
>
> 11) # kldload if_ndis
> =A0 =A0# kldstat
> =A0 =A0 =A0 =A0Id Refs Address =A0 =A0Size =A0 =A0 Name
> =A01 =A0 19 0xc0400000 9fab28 =A0 kernel
> =A02 =A0 =A01 0xc0dfb000 6a45c =A0 =A0acpi.ko
> =A03 =A0 =A01 0xc4767000 22000 =A0 =A0linux.ko
> =A04 =A0 =A01 0xc489c000 9000 =A0 =A0 i915.ko
> =A05 =A0 =A01 0xc48a5000 13000 =A0 =A0drm.ko
> =A06 =A0 =A01 0xc532c000 c000 =A0 =A0 if_ndis.ko
> =A07 =A0 =A01 0xc5338000 16000 =A0 =A0ndis.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 =A0auf alle Unternehmensanwendu=
ngen 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.o=
rg"
>



--=20
www.nealhogan.net          www.lambdaserver.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ab7b49bc0905140456j75d7c2c2of39b2c8b515dcb5c>