OpenSolaris

Discussions Communities Projects Download Source Browser

Home » OpenSolaris Forums » laptop » discuss

Thread: NDIS Wrapper Toolkit is now available

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 46 - Last Post: May 3, 2009 6:07 PM by: mikore Threads: [ Previous | Next ]
Andrei Dorofeev
dorofeev@gmail.com
NDIS Wrapper Toolkit is now available
Posted: Jan 13, 2006 11:53 AM

  Click to reply to this thread Reply

NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
by Windows network drivers (NDIS) and translates them internally to
the Solaris network driver model.
With this toolkit, custom Solaris network drivers can be built from
binary Windows NDIS drivers for network cards that do not have native
Solaris drivers. Both 32-bit and 64-bit drivers can be created.

For more information, visit this web page:
http://www.opensolaris.org/os/community/laptop/wireless/ndis/

Happy Wrapping! :-)

- Andrei
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 13, 2006 2:23 PM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

Wow! Thanks.

Did anyone try this on an Acer Ferrari 4005? It is not listed on the
site. Also the Broadcom drivers seems to be different since the .sys and
.inf files have different names.

Best regards,

Geert

Andrei Dorofeev wrote:
> NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
> by Windows network drivers (NDIS) and translates them internally to
> the Solaris network driver model.
> With this toolkit, custom Solaris network drivers can be built from
> binary Windows NDIS drivers for network cards that do not have native
> Solaris drivers. Both 32-bit and 64-bit drivers can be created.
>
> For more information, visit this web page:
> http://www.opensolaris.org/os/community/laptop/wireless/ndis/
>
> Happy Wrapping! :-)
>
> - Andrei
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris dot org
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:04 AM   in response to: gbevin

  Click to reply to this thread Reply


>Did anyone try this on an Acer Ferrari 4005? It is not listed on the
>site. Also the Broadcom drivers seems to be different since the .sys and
>.inf files have different names.


Yes, we did. Unfortunately, the 64-bit drivers available from broadcom
use SSE instructions which makes it impossible to use them in the
kernel. But the 32 bit driver works fine (but in the end I punted
and replaced it with an Atheros for EUR35.

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:08 AM   in response to: casper

  Click to reply to this thread Reply

Can the 32 bit driver be used on 64 bit solaris?

You mean that you replaced the wireless card with something else?

Casper.***@Sun.COM wrote:
>> Did anyone try this on an Acer Ferrari 4005? It is not listed on the
>> site. Also the Broadcom drivers seems to be different since the .sys and
>> .inf files have different names.
>
>
> Yes, we did. Unfortunately, the 64-bit drivers available from broadcom
> use SSE instructions which makes it impossible to use them in the
> kernel. But the 32 bit driver works fine (but in the end I punted
> and replaced it with an Atheros for EUR35.
>
> Casper
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:30 AM   in response to: gbevin

  Click to reply to this thread Reply


>Can the 32 bit driver be used on 64 bit solaris?

No. So for a while I ran the 32 bit OS.

>You mean that you replaced the wireless card with something else?

Yes.

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:31 AM   in response to: casper

  Click to reply to this thread Reply

> Yes, we did. Unfortunately, the 64-bit drivers available from broadcom
> use SSE instructions which makes it impossible to use them in the

Is this expected to ever work? It does on linux.

> kernel. But the 32 bit driver works fine (but in the end I punted
> and replaced it with an Atheros for EUR35.
>
> Casper
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:36 AM   in response to: gbevin

  Click to reply to this thread Reply


>> Yes, we did. Unfortunately, the 64-bit drivers available from broadcom
>> use SSE instructions which makes it impossible to use them in the
>
>Is this expected to ever work? It does on linux.

Really? For all drivers? I didn't know Linux saved SSE registers
on all context switches, interrupts, etc.

(The majority of 64 bit drivers we found does not use SSE
instructions and so has no issues in 64 bit mode)

It is possible to fix it but it is not an easy thing to fix.

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:47 AM   in response to: casper

  Click to reply to this thread Reply

> Really? For all drivers? I didn't know Linux saved SSE registers
> on all context switches, interrupts, etc.

I don't know for all drivers, but the 64 bit driver from Broadcom for
the Acer Ferrari 4005 works under 64 bit Ubuntu with ndiswrapper. Didn't
have to do anything out of the ordinary, worked like a dream.

> (The majority of 64 bit drivers we found does not use SSE
> instructions and so has no issues in 64 bit mode)
>
> It is possible to fix it but it is not an easy thing to fix.

Ok, so I suppose that wireless access for Acer Ferrari 4005 users is
still a while off for OpenSolaris :-/

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:54 AM   in response to: gbevin

  Click to reply to this thread Reply


>Ok, so I suppose that wireless access for Acer Ferrari 4005 users is
>still a while off for OpenSolaris :-/

If you insist on running a 64 bit kernel, then yes.

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 3:56 AM   in response to: casper

  Click to reply to this thread Reply

I've been told that the 32 bit kernel runs quite a bit slower on the
Acer Ferrari 4005. Is that not true then? Can I easily boot with a 32
bit kernel and keep the rest of my Solaris installation?

Casper.***@Sun.COM wrote:
>> Ok, so I suppose that wireless access for Acer Ferrari 4005 users is
>> still a while off for OpenSolaris :-/
>
> If you insist on running a 64 bit kernel, then yes.
>
> Casper
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 4:56 AM   in response to: gbevin

  Click to reply to this thread Reply


>I've been told that the 32 bit kernel runs quite a bit slower on the
>Acer Ferrari 4005. Is that not true then? Can I easily boot with a 32
>bit kernel and keep the rest of my Solaris installation?

It was not my experience and I would not know why (at least not
"quite a bit")

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 5:02 AM   in response to: casper

  Click to reply to this thread Reply

So, what do I have to do to switch to a 32 bit kernel in my existing
default solaris installation (which boots in 64 bit afaik).

Casper.***@Sun.COM wrote:
>> I've been told that the 32 bit kernel runs quite a bit slower on the
>> Acer Ferrari 4005. Is that not true then? Can I easily boot with a 32
>> bit kernel and keep the rest of my Solaris installation?
>
> It was not my experience and I would not know why (at least not
> "quite a bit")
>
> Casper
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 5:18 AM   in response to: gbevin

  Click to reply to this thread Reply


>So, what do I have to do to switch to a 32 bit kernel in my existing
>default solaris installation (which boots in 64 bit afaik).


Edit /boot/grub/menu.lst and add "kernel/unix" as first argument on
the multiboot line.

(You can also clone the default entry and mkae a "Solaris Nevada (32-bit)"
entry instead)


#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris Nevada snv_31 X86
kernel /platform/i86pc/multiboot
module /platform/i86pc/boot_archive
#---------------------END BOOTADM--------------------
#
# Clone of the above w/ kernel/unix added for 32 bit booting
#
title Solaris Nevada (32bit)
kernel /platform/i86pc/multiboot kernel/unix
module /platform/i86pc/boot_archive
#---------- ADDED BY BOOTADM - DO NOT EDIT ----------
title Solaris failsafe
kernel /boot/multiboot kernel/unix -s
module /boot/x86.miniroot-safe
#---------------------END BOOTADM--------------------


Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 9:22 AM   in response to: casper

  Click to reply to this thread Reply

Ok, so I booted with a 32 bit kernel and downloaded the 32 bit Broadcom
windows drivers for the Acer Ferrari 4005. I took bcmwl5.sys and
bcmwl5.inf from there, renamed them to bcm32.inf and bcm32.sys and put
them into ndis-0.1/i386 (there's a typo on the site, there's additional
ndis directory). When I type 'make ndiscvt' the compilation complains
about missing headers, so I manually added -I../include to all $(CC)
calls. It seems that there's something wrong with the Makefile, but
after so many years of Java development I kinda forgot how everything
works together in there.

However, when I execute "./ndiscvt -i bcm32.inf -s bcm32.sys -o ndis.h"
as the next step, I get the following error message:
ndiscvt: line 13: e: syntax error.

What did I do wrong?

Casper.***@Sun.COM wrote:
>> So, what do I have to do to switch to a 32 bit kernel in my existing
>> default solaris installation (which boots in 64 bit afaik).
>
>
> Edit /boot/grub/menu.lst and add "kernel/unix" as first argument on
> the multiboot line.
>
> (You can also clone the default entry and mkae a "Solaris Nevada (32-bit)"
> entry instead)
>
>
> #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
> title Solaris Nevada snv_31 X86
> kernel /platform/i86pc/multiboot
> module /platform/i86pc/boot_archive
> #---------------------END BOOTADM--------------------
> #
> # Clone of the above w/ kernel/unix added for 32 bit booting
> #
> title Solaris Nevada (32bit)
> kernel /platform/i86pc/multiboot kernel/unix
> module /platform/i86pc/boot_archive
> #---------- ADDED BY BOOTADM - DO NOT EDIT ----------
> title Solaris failsafe
> kernel /boot/multiboot kernel/unix -s
> module /boot/x86.miniroot-safe
> #---------------------END BOOTADM--------------------
>
>
> Casper
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



Andrei Dorofeev
dorofeev@gmail.com
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 9:32 AM   in response to: gbevin

  Click to reply to this thread Reply

On 1/14/06, Geert Bevin <gbevin at uwyn dot com> wrote:
> Ok, so I booted with a 32 bit kernel and downloaded the 32 bit Broadcom
> windows drivers for the Acer Ferrari 4005. I took bcmwl5.sys and
> bcmwl5.inf from there, renamed them to bcm32.inf and bcm32.sys and put
> them into ndis-0.1/i386 (there's a typo on the site, there's additional
> ndis directory). When I type 'make ndiscvt' the compilation complains
> about missing headers, so I manually added -I../include to all $(CC)
> calls. It seems that there's something wrong with the Makefile, but
> after so many years of Java development I kinda forgot how everything
> works together in there.

That's not what I get. I just untar'ed the archive in a new directory and
tried to the same thing:

$ make ndiscvt
/usr/sfw/bin/gcc -I../include -O -c ../err.c -o err.o
/usr/sfw/bin/gcc -I../include -O -c ../inf.c -o inf.o
/usr/sfw/bin/gcc -I../include -O -c ../ndiscvt.c -o ndiscvt.o
/usr/sfw/bin/gcc -I../include -O -c ../subr_pe.c -o subr_pe.o
yacc -d -v ../inf-parse.y
conflicts: 1 reduce/reduce
mv y.tab.c inf-parse.c
/usr/sfw/bin/gcc -I../include -O -c inf-parse.c -o inf-parse.o
rm -f inf-token.c
flex -t ../inf-token.l > inf-token.c
/usr/sfw/bin/gcc -I../include -O -c inf-token.c -o inf-token.o
/usr/sfw/bin/gcc -I../include -O -o ndiscvt err.o inf.o ndiscvt.o
subr_pe.o inf-token.o inf-parse.o

Are you using gmake? Try /usr/ccs/bin/make instead.

> However, when I execute "./ndiscvt -i bcm32.inf -s bcm32.sys -o ndis.h"
> as the next step, I get the following error message:
> ndiscvt: line 13: e: syntax error.
>
> What did I do wrong?

Did you convert the .inf file to ASCII?

- Andrei
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 10:22 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

Very weird, I started over again and it doesn't work for me:
gbevin@ferrari ~ $ wget
http://www.opensolaris.org/os/community/laptop/downloads/ndis-0.1.tar.gz
--19:20:45--
http://www.opensolaris.org/os/community/laptop/downloads/ndis-0.1.tar.gz
=> `ndis-0.1.tar.gz'
Resolving www.opensolaris.org... 72.5.124.63
Connecting to www.opensolaris.org|72.5.124.63|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 134,703 (132K) [application/x-gzip]

100%[====================================>] 134,703 130.59K/s

19:20:47 (130.38 KB/s) - `ndis-0.1.tar.gz' saved [134703/134703]

gbevin@ferrari ~ $ gzip -dc ndis-0.1.tar.gz | tar xvf -
x ndis-0.1, 0 bytes, 0 tape blocks
x ndis-0.1/Makefile, 1795 bytes, 4 tape blocks
x ndis-0.1/Makefile.com, 1841 bytes, 4 tape blocks
x ndis-0.1/amd64, 0 bytes, 0 tape blocks
x ndis-0.1/amd64/Makefile, 3244 bytes, 7 tape blocks
x ndis-0.1/err.c, 4727 bytes, 10 tape blocks
x ndis-0.1/i386, 0 bytes, 0 tape blocks
x ndis-0.1/i386/Makefile, 2480 bytes, 5 tape blocks
x ndis-0.1/if_ndis.c, 89047 bytes, 174 tape blocks
x ndis-0.1/include, 0 bytes, 0 tape blocks
x ndis-0.1/include/bsd2solaris.h, 2357 bytes, 5 tape blocks
x ndis-0.1/include/cdefs.h, 16438 bytes, 33 tape blocks
x ndis-0.1/include/cfg_var.h, 2172 bytes, 5 tape blocks
x ndis-0.1/include/hal_var.h, 2470 bytes, 5 tape blocks
x ndis-0.1/include/if_ndisvar.h, 4769 bytes, 10 tape blocks
x ndis-0.1/include/if_ieee80211.h, 20117 bytes, 40 tape blocks
x ndis-0.1/include/ndis_var.h, 48430 bytes, 95 tape blocks
x ndis-0.1/include/pe_var.h, 18832 bytes, 37 tape blocks
x ndis-0.1/include/ntoskrnl_var.h, 37956 bytes, 75 tape blocks
x ndis-0.1/include/queue.h, 17682 bytes, 35 tape blocks
x ndis-0.1/include/wifi_ioctl.h, 10588 bytes, 21 tape blocks
x ndis-0.1/include/resource_var.h, 6987 bytes, 14 tape blocks
x ndis-0.1/include/inf.h, 3202 bytes, 7 tape blocks
x ndis-0.1/include/err.h, 3246 bytes, 7 tape blocks
x ndis-0.1/inf-parse.y, 2886 bytes, 6 tape blocks
x ndis-0.1/inf-token.l, 3430 bytes, 7 tape blocks
x ndis-0.1/inf.c, 17350 bytes, 34 tape blocks
x ndis-0.1/kern_ndis.c, 37809 bytes, 74 tape blocks
x ndis-0.1/kern_windrv.c, 12142 bytes, 24 tape blocks
x ndis-0.1/ndiscvt.c, 11087 bytes, 22 tape blocks
x ndis-0.1/subr_hal.c, 8566 bytes, 17 tape blocks
x ndis-0.1/subr_ndis.c, 83334 bytes, 163 tape blocks
x ndis-0.1/subr_ntoskrnl.c, 63272 bytes, 124 tape blocks
x ndis-0.1/subr_pe.c, 16251 bytes, 32 tape blocks
x ndis-0.1/winx64_wrap.S, 6644 bytes, 13 tape blocks
gbevin@ferrari ~ $ cd ndis-0.1/i386
gbevin@ferrari ~/ndis-0.1/i386 $ make ndiscvt
/usr/sfw/bin/gcc -c ../err.c -o err.o
../err.c:42:19: cdefs.h: No such file or directory
../err.c:44:17: err.h: No such file or directory
../err.c:107: error: conflicting types for 'verrc'
../err.c:83: error: previous implicit declaration of 'verrc' was here
../err.c:132: error: conflicting types for 'verrx'
../err.c:126: error: previous implicit declaration of 'verrx' was here
../err.c:177: error: conflicting types for 'vwarnc'
../err.c:154: error: previous implicit declaration of 'vwarnc' was here
../err.c:202: error: conflicting types for 'vwarnx'
../err.c:196: error: previous implicit declaration of 'vwarnx' was here
make: *** [err.o] Error 1
gbevin@ferrari ~/ndis-0.1/i386 $

I didn't do anything to the .inf file.

Andrei Dorofeev wrote:
> On 1/14/06, Geert Bevin <gbevin at uwyn dot com> wrote:
>> Ok, so I booted with a 32 bit kernel and downloaded the 32 bit Broadcom
>> windows drivers for the Acer Ferrari 4005. I took bcmwl5.sys and
>> bcmwl5.inf from there, renamed them to bcm32.inf and bcm32.sys and put
>> them into ndis-0.1/i386 (there's a typo on the site, there's additional
>> ndis directory). When I type 'make ndiscvt' the compilation complains
>> about missing headers, so I manually added -I../include to all $(CC)
>> calls. It seems that there's something wrong with the Makefile, but
>> after so many years of Java development I kinda forgot how everything
>> works together in there.
>
> That's not what I get. I just untar'ed the archive in a new directory and
> tried to the same thing:
>
> $ make ndiscvt
> /usr/sfw/bin/gcc -I../include -O -c ../err.c -o err.o
> /usr/sfw/bin/gcc -I../include -O -c ../inf.c -o inf.o
> /usr/sfw/bin/gcc -I../include -O -c ../ndiscvt.c -o ndiscvt.o
> /usr/sfw/bin/gcc -I../include -O -c ../subr_pe.c -o subr_pe.o
> yacc -d -v ../inf-parse.y
> conflicts: 1 reduce/reduce
> mv y.tab.c inf-parse.c
> /usr/sfw/bin/gcc -I../include -O -c inf-parse.c -o inf-parse.o
> rm -f inf-token.c
> flex -t ../inf-token.l > inf-token.c
> /usr/sfw/bin/gcc -I../include -O -c inf-token.c -o inf-token.o
> /usr/sfw/bin/gcc -I../include -O -o ndiscvt err.o inf.o ndiscvt.o
> subr_pe.o inf-token.o inf-parse.o
>
> Are you using gmake? Try /usr/ccs/bin/make instead.
>
>> However, when I execute "./ndiscvt -i bcm32.inf -s bcm32.sys -o ndis.h"
>> as the next step, I get the following error message:
>> ndiscvt: line 13: e: syntax error.
>>
>> What did I do wrong?
>
> Did you convert the .inf file to ASCII?
>
> - Andrei
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



Andrei Dorofeev
dorofeev@gmail.com
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:01 AM   in response to: gbevin

  Click to reply to this thread Reply

On 1/14/06, Geert Bevin <gbevin at uwyn dot com> wrote:

> gbevin@ferrari ~ $ cd ndis-0.1/i386
> gbevin@ferrari ~/ndis-0.1/i386 $ make ndiscvt

What does "which make" say? I'm wondering if you
have "make" as an alias for "gmake". The reason
I think it could be related to gmake in your case is because I
get the same error when I try to use gmake
instead of make.

> I didn't do anything to the .inf file.

Then the file could be UTF-16 encoded, and you'll need
to convert it to ASCII first with iconv:

$ iconv -f utf-16 -t ascii driver.inf

Hope this helps,

- Andrei
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:33 AM   in response to: gbevin

  Click to reply to this thread Reply


>I didn't do anything to the .inf file.

If you edit it in vi, does it lool like ascii?

If not, then you'll need to convert it

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:51 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply


> Are you using gmake? Try /usr/ccs/bin/make instead.

Sorry I didn't see this line. It was gmake indeed, with this make the
compilation succeed. Thanks.

>> However, when I execute "./ndiscvt -i bcm32.inf -s bcm32.sys -o ndis.h"
>> as the next step, I get the following error message:
>> ndiscvt: line 13: e: syntax error.
>>
>> What did I do wrong?
>
> Did you convert the .inf file to ASCII?
>
> - Andrei
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:54 AM   in response to: gbevin

  Click to reply to this thread Reply

>> Are you using gmake? Try /usr/ccs/bin/make instead.
>
> Sorry I didn't see this line. It was gmake indeed, with this make the
> compilation succeed. Thanks.

I still get the same error when trying to generate ndis.h though.

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



mdoore

Posts: 6
From: Colorado

Registered: 1/3/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 17, 2006 10:47 PM   in response to: gbevin

  Click to reply to this thread Reply

I encountered the line 13 error as well; the conversion utility was ran on the file; however, it generated an enormous amount of control characters(and that caused a lot of issues). I backed out and rebooted into windows, and copy/paste the file into notepad and saved it as ANSI. This did the trick and I got past the 13 error. Have to go in and setup the rest of the interface but I completed the compile. One caution, if you have more than one .inf and .sys file...do not keep them in the same directory...have only one set in at a time (my next task is to try a set of linksys drivers for my son's machine)

imp

Posts: 1,206
From: IL

Registered: 4/27/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 10:36 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

Anyone get it to work witj Linksys WPC54G ?
I have no luck meanwhile. Everything is fine,
but card picks up no signal. I am running
it on Solaris 10 01/06 with cardbus 0.2 and
wificonfig 0.1

Regards,
Cyril


On 1/13/06, Andrei Dorofeev <dorofeev at gmail dot com> wrote:
> NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
> by Windows network drivers (NDIS) and translates them internally to
> the Solaris network driver model.
> With this toolkit, custom Solaris network drivers can be built from
> binary Windows NDIS drivers for network cards that do not have native
> Solaris drivers. Both 32-bit and 64-bit drivers can be created.
>
> For more information, visit this web page:
> http://www.opensolaris.org/os/community/laptop/wireless/ndis/
>
> Happy Wrapping! :-)
>
> - Andrei
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris dot org
>
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



Andrei Dorofeev
dorofeev@gmail.com
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:11 AM   in response to: imp

  Click to reply to this thread Reply

The radio could be disabled for some reason.
What NDIS driver were you using to build?
Is there anything in the .inf file that came with it
to change radio settings?
- Andrei

On 1/14/06, Cyril Plisko <cyril dot plisko at gmail dot com> wrote:
> Anyone get it to work witj Linksys WPC54G ?
> I have no luck meanwhile. Everything is fine,
> but card picks up no signal. I am running
> it on Solaris 10 01/06 with cardbus 0.2 and
> wificonfig 0.1
>
> Regards,
> Cyril
>
>
> On 1/13/06, Andrei Dorofeev <dorofeev at gmail dot com> wrote:
> > NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
> > by Windows network drivers (NDIS) and translates them internally to
> > the Solaris network driver model.
> > With this toolkit, custom Solaris network drivers can be built from
> > binary Windows NDIS drivers for network cards that do not have native
> > Solaris drivers. Both 32-bit and 64-bit drivers can be created.
> >
> > For more information, visit this web page:
> > http://www.opensolaris.org/os/community/laptop/wireless/ndis/
> >
> > Happy Wrapping! :-)
> >
> > - Andrei
> > _______________________________________________
> > laptop-discuss mailing list
> > laptop-discuss at opensolaris dot org
> >
>
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



imp

Posts: 1,206
From: IL

Registered: 4/27/05
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:47 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

On 1/14/06, Andrei Dorofeev <dorofeev at gmail dot com> wrote:
> The radio could be disabled for some reason.
> What NDIS driver were you using to build?

The one downloaded from Linksys site.

> Is there anything in the .inf file that came with it
> to change radio settings?

HKR, Ndi\params\RadioState, ParamDesc, 0,
%RadioEnableDisable%
HKR, Ndi\params\RadioState, type, 0, "enum"
HKR, Ndi\params\RadioState\enum, "1", 0,
%Disabled%
HKR, Ndi\params\RadioState\enum, "0", 0,
%Enabled%
HKR, Ndi\params\RadioState,default,,"0"


Seems it is enabled by default.

> - Andrei
>
> On 1/14/06, Cyril Plisko <cyril dot plisko at gmail dot com> wrote:
> > Anyone get it to work witj Linksys WPC54G ?
> > I have no luck meanwhile. Everything is fine,
> > but card picks up no signal. I am running
> > it on Solaris 10 01/06 with cardbus 0.2 and
> > wificonfig 0.1
> >
> > Regards,
> > Cyril
> >
> >
> > On 1/13/06, Andrei Dorofeev <dorofeev at gmail dot com> wrote:
> > > NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
> > > by Windows network drivers (NDIS) and translates them internally to
> > > the Solaris network driver model.
> > > With this toolkit, custom Solaris network drivers can be built from
> > > binary Windows NDIS drivers for network cards that do not have native
> > > Solaris drivers. Both 32-bit and 64-bit drivers can be created.
> > >
> > > For more information, visit this web page:
> > > http://www.opensolaris.org/os/community/laptop/wireless/ndis/
> > >
> > > Happy Wrapping! :-)
> > >
> > > - Andrei
> > > _______________________________________________
> > > laptop-discuss mailing list
> > > laptop-discuss at opensolaris dot org
> > >
> >
>


--
Regards,
Cyril
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



gbevin

Posts: 28
From:

Registered: 1/4/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 14, 2006 11:49 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

Hi Andrei,

I downloaded the driver from here:
ftp://ftp.support.acer-euro.com/notebook/ferrari_4000/driver/80211.zip

Best regards,

Geert

Andrei Dorofeev wrote:
> The radio could be disabled for some reason.
> What NDIS driver were you using to build?
> Is there anything in the .inf file that came with it
> to change radio settings?
> - Andrei
>
> On 1/14/06, Cyril Plisko <cyril dot plisko at gmail dot com> wrote:
>> Anyone get it to work witj Linksys WPC54G ?
>> I have no luck meanwhile. Everything is fine,
>> but card picks up no signal. I am running
>> it on Solaris 10 01/06 with cardbus 0.2 and
>> wificonfig 0.1
>>
>> Regards,
>> Cyril
>>
>>
>> On 1/13/06, Andrei Dorofeev <dorofeev at gmail dot com> wrote:
>>> NDIS Wrapper Toolkit provides a set of basic interfaces commonly used
>>> by Windows network drivers (NDIS) and translates them internally to
>>> the Solaris network driver model.
>>> With this toolkit, custom Solaris network drivers can be built from
>>> binary Windows NDIS drivers for network cards that do not have native
>>> Solaris drivers. Both 32-bit and 64-bit drivers can be created.
>>>
>>> For more information, visit this web page:
>>> http://www.opensolaris.org/os/community/laptop/wireless/ndis/
>>>
>>> Happy Wrapping! :-)
>>>
>>> - Andrei
>>> _______________________________________________
>>> laptop-discuss mailing list
>>> laptop-discuss at opensolaris dot org
>>>
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris dot org
>

--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03

PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



mdoore

Posts: 6
From: Colorado

Registered: 1/3/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jan 20, 2006 7:28 PM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

I will get to the Linksys wireless card in the next few days/weeks; however, the "big news" is that the Broadcom 1450 Controller in the Dell 9100 Laptop (aka Broadcom 4309 a/b/g) does work with the NDIS wrapper! I will add it to the list of "completed" actions for my posted configuration on the Sun hardware compatability list. I even have the WEP 128bit encryption enabled. I wish to thank the community for working the development of this effort....it is the begining of a new day...and look forward to future mods...like WPA support.

pjbell

Posts: 1
From: NYC

Registered: 2/9/06
Re: NDIS Wrapper Toolkit is now available
Posted: Feb 27, 2006 12:10 PM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

has anyone benn successful in getting the ndis wrapper to work on the Ferreri 3400?
specifically, i'm interested in the wifi interface.

Andrei Dorofeev
dorofeev@gmail.com
Re: Re: NDIS Wrapper Toolkit is now available
Posted: Feb 28, 2006 11:49 AM   in response to: pjbell

  Click to reply to this thread Reply

Hi Paul,

I've built the bcmndis driver using this wrapper before.
It only works with 32-bit kernels, but this issue
was discussed multimple times on this alias. Are you
having problems with building it yourself?

- Andrei

On 2/27/06, Paul J. Bell <pjb at 23kgroup dot com> wrote:
> has anyone benn successful in getting the ndis wrapper to work on the Ferreri 3400?
> specifically, i'm interested in the wifi interface.
> This message posted from opensolaris.org
> _______________________________________________
> laptop-discuss mailing list
> laptop-discuss at opensolaris dot org
>
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



casper

Posts: 3,458
From: NL

Registered: 3/9/05
Re: Re: NDIS Wrapper Toolkit is now available
Posted: Feb 28, 2006 12:25 PM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply


>I've built the bcmndis driver using this wrapper before.
>It only works with 32-bit kernels, but this issue
>was discussed multimple times on this alias. Are you
>having problems with building it yourself?

THe bcmndis driver for the 3400 works for both.

(You just need two compiles: a 32 bit compile of tools and
drivers used on the 32 bit Windows driver and a 64 bit compile
of tools and drivers used with the 64 bit windows drivers)

Casper
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org



tunla

Posts: 717
From: SE

Registered: 6/14/05
Re: Re: NDIS Wrapper Toolkit is now available
Posted: Mar 5, 2006 7:35 AM   in response to: casper

  Click to reply to this thread Reply

I Can compile the 32 bit bcmwl5.sys ( bcmwl5.inf ) and 64 bit bcmwl564.sys ( netbc564.inf)
files on the Ferrarri 3400 , and produce the 32 bit bcmndis and ndisapi and 64 bit bcmndis
and ndisapi files.

However the SNV31 system does not want to load the ndisapi module.
I have produced a 64 bit module

# pwd
/kernel/misc/amd64
# file ndisapi
ndisapi: ELF 64-bit LSB relocatable AMD64 Version 1


"modload ndisapi" gives the following ( fraction ) of truss(1) output
while trying to load the 64 bit ndisapi module.

2235: getcwd("/kernel/misc/amd64", 1016) = 0
2235: modctl(MODLOAD, 0x00000000, 0xFFFFFD7FFFDFEF40, 0xFFFFFD7FFFDFF34C, 0x7F7F7F7F7F7F7F7F) Err#22 EINVAL
2235: fstat(2, 0xFFFFFD7FFFDFDBB0) = 0
2235: d=0x0000010E00000000 i=12582922 m=0020620 l=1 u=0 g=7 rdev=0x0000001800000003
2235: at = Mar 5 16:10:22 CET 2006 [ 1141571422 ]
2235: mt = Mar 5 16:10:22 CET 2006 [ 1141571422 ]
2235: ct = Mar 5 15:54:00 CET 2006 [ 1141570440 ]
2235: bsz=8192 blks=0 fs=devfs
2235: write(2, 0x004122E0, 17) = 17
2235: c a n ' t l o a d m o d u l e
2235: write(2, " : ", 2) = 2
2235: brk(0x00412D60) = 0
2235: brk(0x00416D60) = 0
2235: write(2, 0xFFFFFD7FFF354435, 16) = 16
2235: I n v a l i d a r g u m e n t
2235: write(2, "\n", 1) = 1
2235: _exit(22)


I assume the "modctl" subroutine validates the module and finds that it
is somehow not appropriate . but the Error mesages gives no clues.

What does " EINVAL Err22 " mean in this context ?


Regards Lars

aows

Posts: 53
From:

Registered: 6/14/05
Re: NDIS Wrapper Toolkit is now available
Posted: May 23, 2006 7:00 PM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

I'm trying to build the wrapper for a RALINK RT2500. I've got 32 and 64 bit drivers for it from Ralink's site:

http://www.ralinktech.com/drivers/Windows/IS_AP_STA_6x_D-1.1.1.0_2500_D-3.1.0.0_RU-1.2.0.0_AU_1.0.8.0_051606_0.0.2.0.exe

Executed the thing on someone's win box and found the files i wanted, both 32 and 64 bit (winxp and winx64)....

I built the ndiscvt fine on both 32 and 64 bit designated folders succesfully, and in both cases, when i do

./ndiscvt -i Rt2500.INF -s RT2500.SYS -o ndis.h

I get:

$Chicago$
Segmentation Fault (core dumped)

I followed the instructions, tried with the utf 2 ascii and without it... In both cases, got the same error.

Is this a hopless case?

Thanks!

rsol

Posts: 4
From:

Registered: 5/26/07
Re: NDIS Wrapper Toolkit is now available
Posted: May 26, 2007 2:51 PM   in response to: aows
To: Communities » laptop » discuss
  Click to reply to this thread Reply

I have a Belkin F5D7010 wireless card with RT2500 chipset .I have been trying to set up this wireless card on Solaris10 (IBM thinkpad R40 box) for the past week, without success. If i use ndis wrapper I am getting $chicago$ Segementation Fault core dumped error while running ./ndiscvt -i ndis.inf - s ndis.sys -o ndis.h command. I tried with Ral driver too, I was able to plumb and the ifconfig-a shows ral0 interface up, but no connection. Is there no light at the end of the tunnel? Any help is appreciated . I am a novice in solaris.

Thanks.

honda_la

Posts: 1
From: Shah Alam, Selangor, Malaysia

Registered: 7/29/06
Re: NDIS Wrapper Toolkit is now available
Posted: Jul 30, 2006 8:24 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

we managed to compile and just stuck at the following error :

/usr/local/bin/gcc -O -D_KERNEL -Di386 -c ../subr_hal.c
Assembler: subr_hal.c
"/var/tmp/cc7uJaAD.s", line 82 : Syntax error
"/var/tmp/cc7uJaAD.s", line 99 : Syntax error
"/var/tmp/cc7uJaAD.s", line 117 : Syntax error
"/var/tmp/cc7uJaAD.s", line 239 : Syntax error
"/var/tmp/cc7uJaAD.s", line 254 : Syntax error
"/var/tmp/cc7uJaAD.s", line 268 : Syntax error
make: *** [test] Error 1

can anybody help us ?

-thank you-

warp_kez

Posts: 1
From:

Registered: 8/13/06
Re: NDIS Wrapper Toolkit is now available
Posted: Aug 13, 2006 5:38 AM   in response to: Andrei Dorofeev

  Click to reply to this thread Reply

Long time reader, first time poster.

I have followed the instructions for the 64bit driver, however the below is all that results, I hope it is comprehensive enough. Is there a newer version of the code?

execve("/usr/sbin/modload", 0x080473E0, 0x080473EC) argc = 2
resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
resolvepath("/usr/sbin/modload", "/usr/sbin/modload", 1023) = 17
xstat(2, "/usr/sbin/modload", 0x08047198) = 0
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
sysconfig(_CONFIG_PAGESIZE) = 4096
xstat(2, "/lib/libc.so.1", 0x08046998) = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEFC0000
mmap(0x00010000, 880640, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEEE0000
mmap(0xFEEE0000, 780401, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEEE0000
mmap(0xFEFAF000, 23778, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 782336) = 0xFEFAF000
mmap(0xFEFB5000, 5152, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEFB5000
munmap(0xFEF9F000, 65536) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEED0000
memcntl(0xFEEE0000, 120816, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
munmap(0xFEFC0000, 4096) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEEC0000
getcontext(0x08046F50)
getrlimit(RLIMIT_STACK, 0x08046F48) = 0
getpid() = 10304 [10303]
lwp_private(0, 1, 0xFEEC2000) = 0x000001C3
setustack(0xFEEC2060)
sysi86(SI86FPSTART, 0xFEFB5AEC, 0x0000133F, 0x00001F80) = 0x00000001
issetugid() = 0
brk(0x08061518) = 0
brk(0x08063518) = 0
sysinfo(SI_ISALIST, "", 1) = 68
sysinfo(SI_ISALIST, "amd64 pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86", 68) = 68
open("/proc/self/auxv", O_RDONLY) = 3
fxstat(2, 3, 0x080472C8) = 0
read(3, "D807\0\0E27F04\bDE07\0\0".., 168) = 168
close(3) = 0
access("/usr/sbin/amd64/modload", X_OK) = 0
execve("/usr/sbin/amd64/modload", 0x080473E0, 0x080473EC) argc = 2
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF3B0000
resolvepath("/usr/lib/amd64/ld.so.1", "/lib/amd64/ld.so.1", 1023) = 18
resolvepath("/usr/sbin/amd64/modload", "/usr/sbin/amd64/modload", 1023) = 23
stat("/usr/sbin/amd64/modload", 0xFFFFFD7FFFDFEF80) = 0
open("/var/ld/64/ld.config", O_RDONLY) Err#2 ENOENT
stat("/lib/64/libc.so.1", 0xFFFFFD7FFFDFE5D0) = 0
resolvepath("/lib/64/libc.so.1", "/lib/amd64/libc.so.1", 1023) = 20
open("/lib/64/libc.so.1", O_RDONLY) = 3
mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFFFFFD7FFF3A0000
mmap(0x00010000, 1134592, PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, 4294967295, 0) = 0xFFFFFD7FFF280000
mmap(0xFFFFFD7FFF280000, 1018161, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFFFFFD7FFF280000
mmap(0xFFFFFD7FFF389000, 38194, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1019904) = 0xFFFFFD7FFF389000
mmap(0xFFFFFD7FFF393000, 4680, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF393000
munmap(0xFFFFFD7FFF379000, 65536) = 0
memcntl(0xFFFFFD7FFF280000, 277752, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, 4294967295, 0) = 0xFFFFFD7FFF270000
munmap(0xFFFFFD7FFF3A0000, 4096) = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFFFFFD7FFF3A0000
getcontext(0xFFFFFD7FFFDFEB90)
getrlimit(RLIMIT_STACK, 0xFFFFFD7FFFDFEEF0) = 0
getpid() = 10304 [10303]
lwp_private(0, 0, 0xFFFFFD7FFF3A2000) = 0x000001BB
setustack(0xFFFFFD7FFF3A20A8)
getcwd("/kernel/misc/amd64", 1016) = 0
modctl(MODLOAD, 0x00000000, 0xFFFFFD7FFFDFEE50, 0xFFFFFD7FFFDFF25C, 0x7F7F7F7F7F7F7F7F) Err#22 EINVAL
fstat(2, 0xFFFFFD7FFFDFDAC0) = 0
write(2, " c a n ' t l o a d m".., 17) = 17
write(2, " : ", 2) = 2
brk(0x00412D60) = 0
brk(0x00416D60) = 0
issetugid() = 0
brk(0x00416D60) = 0
brk(0x0041AD60) = 0
open("/usr/dt/lib/nls/msg/C/SUNW_OST_OSLIB.cat", O_RDONLY) Err#2 ENOENT
open("/usr/lib/locale/C/LC_MESSAGES/SUNW_OST_OSLIB.mo", O_RDONLY) Err#2 ENOENT
write(2, " I n v a l i d a r g u".., 16) = 16
write(2, "\n", 1) = 1
_exit(22)

rsol

Posts: 4
From:

Registered: 5/26/07
Re: NDIS Wrapper Toolkit is now available
Posted: May 26, 2007 2:52 PM   in response to: Andrei Dorofeev
To: Communities » laptop » discuss
  Click to reply to this thread Reply

I have a Belkin F5D7010 wireless card with RT2500 chipset .I have been trying to set up this wireless card on Solaris10 (IBM thinkpad R40 box) for the past week, without success. If i use ndis wrapper I am getting $chicago$ Segementation Fault core dumped error while running ./ndiscvt -i ndis.inf - s ndis.sys -o ndis.h command. I tried with Ral driver too, I was able to plumb and the ifconfig-a shows ral0 interface up, but no connection. Is there no light at the end of the tunnel? Any help is appreciated . I am a novice in solaris.

Thanks.

ggendel

Posts: 454
From: US

Registered: 6/17/05
Re: NDIS Wrapper Toolkit is now available
Posted: May 28, 2007 6:57 AM   in response to: rsol
To: Communities » laptop » discuss
  Click to reply to this thread Reply

I've been told that there is an updated ndiswrapper being tested somewhere internal to Sun. Maybe quaker can shed some light on this for you.

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: NDIS Wrapper Toolkit is now available
Posted: May 28, 2007 8:32 AM   in response to: ggendel
To: Communities » laptop » discuss
  Click to reply to this thread Reply

When there is a native Solaris driver for one chipset, we advice users try out the native driver first. Yes, higher version ndiswrapper is in test, but it is for more Broadcom chipsets support, and ensure high quality experience to bcmwl users first.(Since no native driver to broadcom wifi).

To the segment fault of ndiscvt in ndis-0.1, I need to look into the inf/sys file pair to find root cause, and fix it in 0.1 and latest ndiscvt.

-
Michael

cgetech

Posts: 6
From:

Registered: 4/26/09
NDIS Wrapper Toolkit is now available
Posted: Apr 26, 2009 8:59 PM   in response to: mikore
To: Communities » laptop » discuss
  Click to reply to this thread Reply

HI, I got one issue, have tried this but got struck..

root@opensolaris:~/Download/ndis-1.2.1/i386# iconv -f utf-16 -t ascii BCMWL5.INF > ndis.inf

iconv: BCMWL5.INF:1680:20: cannot convert

root@opensolaris:~/Download/ndis-1.2.1/i386# make ndiscvt
/usr/sfw/bin/gcc -c ../err.c -o err.o
../err.c:42:19: cdefs.h: No such file or directory
../err.c:105: error: conflicting types for 'verrc'
../err.c:81: error: previous implicit declaration of 'verrc' was here
../err.c:175: error: conflicting types for 'vwarnc'
../err.c:152: error: previous implicit declaration of 'vwarnc' was here
make: *** [err.o] Error 1

Please help

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 26, 2009 9:21 PM   in response to: cgetech

  Click to reply to this thread Reply

amit ??:
> HI, I got one issue, have tried this but got struck..
>
> root@opensolaris:~/Download/ndis-1.2.1/i386# iconv -f utf-16 -t ascii BCMWL5.INF > ndis.inf
>
> iconv: BCMWL5.INF:1680:20: cannot convert
>
> root@opensolaris:~/Download/ndis-1.2.1/i386# make ndiscvt
> /usr/sfw/bin/gcc -c ../err.c -o err.o
> ../err.c:42:19: cdefs.h: No such file or directory
> ../err.c:105: error: conflicting types for 'verrc'
> ../err.c:81: error: previous implicit declaration of 'verrc' was here
> ../err.c:175: error: conflicting types for 'vwarnc'
> ../err.c:152: error: previous implicit declaration of 'vwarnc' was here
> make: *** [err.o] Error 1
>
> Please help
>
Please post /etc/release. Is that a fresh opensolaris installation or
upgrade?

- Michael
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org


cgetech

Posts: 6
From:

Registered: 4/26/09
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 27, 2009 9:11 PM   in response to: mikore
To: Communities » laptop » discuss
  Click to reply to this thread Reply

HI Michael,

Its a fresh installation

OpenSolaris 2008.11 snv_101b_rc2 X86

I got this issue when configuring through ndis wrapper for lenovo wlan drivers.

I had tried all the possible combinations but these errors persist.

Please suggest.

//Amit

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 28, 2009 12:52 AM   in response to: cgetech

  Click to reply to this thread Reply

amit ??:
> HI Michael,
>
> Its a fresh installation
>
> OpenSolaris 2008.11 snv_101b_rc2 X86
>
> I got this issue when configuring through ndis wrapper for lenovo wlan drivers.
>
> I had tried all the possible combinations but these errors persist.
>
> Please suggest.
>
> //Amit
>
under Indiana, there are some extra packages need to be installed before
ndiswrapper work. here is a reference blog for os.0805:
http://ptribble.blogspot.com/2008/04/ndis-wrapper-on-indiana.html
And, you'd better to download Windows driver linking in ndis project page.
(the appropriate Windows driver would be determined by the output of
"/usr/X11/bin/scanpci -v“, please post it as well)

Thanks,
Michael

_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org


cgetech

Posts: 6
From:

Registered: 4/26/09
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 28, 2009 6:32 AM   in response to: mikore
To: Communities » laptop » discuss
  Click to reply to this thread Reply

Hi Michael,

I have already installed these requistes before, but to confirm again i am showing it.

root@opensolaris:~# pfexec pkg install SUNWgcc
No updates available for this image.
root@opensolaris:~# pfexec pkg install SUNWhea
No updates available for this image.
root@opensolaris:~# pfexec pkg install SUNWflexlex
No updates available for this image.
root@opensolaris:~# pfexec pkg install SUNWgm4
No updates available for this image.

Further i had installed xp too on it and these drivers working perfectly.

//Amit

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 28, 2009 8:51 AM   in response to: cgetech

  Click to reply to this thread Reply

amit wrote:
> HI, I got one issue, have tried this but got struck..
>
> root@opensolaris:~/Download/ndis-1.2.1/i386# iconv -f utf-16 -t ascii BCMWL5.INF > ndis.inf
>
> iconv: BCMWL5.INF:1680:20: cannot convert
>
This should be an iconv(1) issue, please send your inf file to me for my
future investigate.

btw,

1. Another blog to share with you:
http://learningsolaris.com/archives/2009/03/10/opensolaris-wifi-broadcom-bcm4312-on-dell-vostro-1710
2. you'd better to try Windows drivers mentioned in ndis project page at
first.

> root@opensolaris:~/Download/ndis-1.2.1/i386# make ndiscvt
> /usr/sfw/bin/gcc -c ../err.c -o err.o
> ../err.c:42:19: cdefs.h: No such file or directory
The compile options is incorrect. The "-I../include -O" was lost.
how about:
#/usr/bin/make ndiscvt

- Michael
> ../err.c:105: error: conflicting types for 'verrc'
> ../err.c:81: error: previous implicit declaration of 'verrc' was here
> ../err.c:175: error: conflicting types for 'vwarnc'
> ../err.c:152: error: previous implicit declaration of 'vwarnc' was here
> make: *** [err.o] Error 1
>
> Please help
>
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org


cgetech

Posts: 6
From:

Registered: 4/26/09
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 28, 2009 12:33 PM   in response to: mikore
To: Communities » laptop » discuss
  Click to reply to this thread Reply

Hi Michael,

I had tried make in /usr/bin and this is the output.

root@opensolaris:~/Download/ndis-1.2.1/i386# iconv -f utf-16 -t ascii bcmwl5.inf > ndis.inf

iconv: bcmwl5.inf:1680:20: cannot convert
root@opensolaris:~/Download/ndis-1.2.1/i386# /usr/bin/make ndiscvt
/usr/sfw/bin/gcc -I../include -O -c ../err.c -o err.o
/usr/sfw/bin/gcc -I../include -O -c ../inf.c -o inf.o
/usr/sfw/bin/gcc -I../include -O -c ../ndiscvt.c -o ndiscvt.o
/usr/sfw/bin/gcc -I../include -O -c ../subr_pe.c -o subr_pe.o
/usr/ccs/bin/yacc -d -v ../inf-parse.y

conflicts: 1 reduce/reduce
mv y.tab.c inf-parse.c
/usr/sfw/bin/gcc -I../include -O -c inf-parse.c -o inf-parse.o
rm -f inf-token.c
/usr/sfw/bin/flex -t ../inf-token.l > inf-token.c
/usr/sfw/bin/gcc -I../include -O -c inf-token.c -o inf-token.o
/usr/sfw/bin/gcc -I../include -O -o ndiscvt err.o inf.o ndiscvt.o subr_pe.o inf-token.o inf-parse.o.


Please find the attached file.. I am using Lenovo 3000 G510 Laptop.

//Amit

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: Apr 29, 2009 9:14 PM   in response to: cgetech

  Click to reply to this thread Reply

amit 写道:
<pre wrap="">Hi Michael, I had tried make in /usr/bin and this is the output. root@opensolaris:~/Download/ndis-1.2.1/i386# iconv -f utf-16 -t ascii bcmwl5.inf > ndis.inf iconv: bcmwl5.inf:1680:20: cannot convert </pre>
opened the inf file under Windows platform, it appears the inf file uses another kind of lanugage other than English since line 1680,
under my box running the same build with you, above iconv command works well even when I converting your inf file.
I have below env setting:
#echo $LANG
es_EC.UTF-8
How about yours?
<pre wrap="">root@opensolaris:~/Download/ndis-1.2.1/i386# /usr/bin/make ndiscvt /usr/sfw/bin/gcc -I../include -O -c ../err.c -o err.o /usr/sfw/bin/gcc -I../include -O -c ../inf.c -o inf.o /usr/sfw/bin/gcc -I../include -O -c ../ndiscvt.c -o ndiscvt.o /usr/sfw/bin/gcc -I../include -O -c ../subr_pe.c -o subr_pe.o /usr/ccs/bin/yacc -d -v ../inf-parse.y conflicts: 1 reduce/reduce mv y.tab.c inf-parse.c /usr/sfw/bin/gcc -I../include -O -c inf-parse.c -o inf-parse.o rm -f inf-token.c /usr/sfw/bin/flex -t ../inf-token.l > inf-token.c /usr/sfw/bin/gcc -I../include -O -c inf-token.c -o inf-token.o /usr/sfw/bin/gcc -I../include -O -o ndiscvt err.o inf.o ndiscvt.o subr_pe.o inf-token.o inf-parse.o. </pre>
This was successful compiling log.
ndiswrapper depends on Sun make(/usr/bin/make), not GNU make. You can do a local "fix" as below:
<pre wrap="">#export PATH=/usr/bin:$PATH</pre> - Michael
<pre wrap=""> Please find the attached file.. I am using Lenovo 3000 G510 Laptop. //Amit </pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ laptop-discuss mailing list laptop-discuss at opensolaris dot org </pre>

_______________________________________________ laptop-discuss mailing list laptop-discuss at opensolaris dot org

cgetech

Posts: 6
From:

Registered: 4/26/09
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: May 1, 2009 12:19 PM   in response to: mikore
To: Communities » laptop » discuss
  Click to reply to this thread Reply

Hi Michael,

The error are removed now.. But whenever i am trying to add driver it is showing sth as below.
root@opensolaris:~/Download/ndis-1.2.1/i386# add_drv -i ‘”pci14e4,4311″‘ bcmndis
("‘”pci14e4,4311″‘") already in use as a driver or alias.

pci bus 0x0004 cardnum 0x00 function 0x00: vendor 0x14e4 device 0x4311
Broadcom Corporation BCM4311 802.11b/g WLAN
CardVendor 0x14e4 card 0x0465 (Broadcom Corporation, Card unknown)
STATUS 0x0010 COMMAND 0x0107
CLASS 0x02 0x80 0x00 REVISION 0x01
BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10
BASE0 0xf0000000 addr 0xf0000000 MEM
MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0a
BYTE_0 0x01 BYTE_1 0x58 BYTE_2 0xc2 BYTE_3 0x07

//Amit

mikore

Posts: 397
From: CN

Registered: 4/16/07
Re: [laptop-discuss] NDIS Wrapper Toolkit is now available
Posted: May 3, 2009 6:07 PM   in response to: cgetech

  Click to reply to this thread Reply

amit 写道:
> Hi Michael,
>
> The error are removed now.. But whenever i am trying to add driver it is showing sth as below.
> root@opensolaris:~/Download/ndis-1.2.1/i386# add_drv -i ‘”pci14e4,4311″‘ bcmndis
> ("‘”pci14e4,4311″‘") already in use as a driver or alias.
>
> pci bus 0x0004 cardnum 0x00 function 0x00: vendor 0x14e4 device 0x4311
> Broadcom Corporation BCM4311 802.11b/g WLAN
> CardVendor 0x14e4 card 0x0465 (Broadcom Corporation, Card unknown)
> STATUS 0x0010 COMMAND 0x0107
> CLASS 0x02 0x80 0x00 REVISION 0x01
> BIST 0x00 HEADER 0x00 LATENCY 0x00 CACHE 0x10
> BASE0 0xf0000000 addr 0xf0000000 MEM
> MAX_LAT 0x00 MIN_GNT 0x00 INT_PIN 0x01 INT_LINE 0x0a
> BYTE_0 0x01 BYTE_1 0x58 BYTE_2 0xc2 BYTE_3 0x07
>
> //Amit
>
Please try below steps to diagnose it:
1. put bcmndis to /kernel/drv, put ndisapi to /kernel/misc
2. #echo "debug-level = 0xf;" > /kernel/drv/bcmndis.conf
3. #rem_drv bcmndis
4. #reboot
(after bootup)
5. #add_drv -i '"pci14e4,4311"' bcmndis

if step(5) returns with error, please send 3 log files to me:
a. /var/adm/messages file.
b. output of "#prtconf -pv"
c. output of "#/usr/X11/bin/scanpci -v"

- Michael
_______________________________________________
laptop-discuss mailing list
laptop-discuss at opensolaris dot org





Terms of Use | Privacy | Trademarks | Copyright Policy | Site Guidelines
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2010, Oracle Corporation and/or its affiliates

Oracle