Re: Can't get ndis0 working

2009-06-04 Thread Paul B. Mahol
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
>> no...@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 AddressSize Name
>>  1   19 0xc040 9fab28   kernel
>>  21 0xc0dfb000 6a45cacpi.ko
>>  31 0xc4767000 22000linux.ko
>>  41 0xc489c000 9000 i915.ko
>>  51 0xc48a5000 13000drm.ko
>

AW: Can't get ndis0 working

2009-05-14 Thread Walter, Richard
Hello,

thank you for the fast answer, it's good to hear that I wasn't
totally wrong with my efforts.
I will try some other drivers, but I won't spend too much time.
I think I will buy one of the supported USB sticks.

Best regards

Richard

-Ursprüngliche Nachricht-
Von: Neal Hogan [mailto:nealho...@gmail.com]
Gesendet: Donnerstag, 14. Mai 2009 13:57
An: Walter, Richard
Cc: freebsd-questions@freebsd.org
Betreff: Re: Can't get ndis0 working

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
> no...@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
>
> 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 

Re: Can't get ndis0 working

2009-05-14 Thread Neal Hogan
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
> no...@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
>
> 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 0xc040 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

Can't get ndis0 working

2009-05-14 Thread Walter, Richard
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
no...@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

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 AddressSize Name
 1   19 0xc040 9fab28   kernel
 21 0xc0dfb000 6a45cacpi.ko
 31 0xc4767000 22000linux.ko
 41 0xc489c000 9000 i915.ko
 51 0xc48a5000 13000drm.ko
 61 0xc532c000 c000 if_ndis.ko
 71 0xc5338000 16000ndis.ko

12) # ifconfig ndis0 up
ifconfig: interface ndis0 does not exist

I've no idea whats going wrong , perhaps anyone can help ?

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