Re: Announce: ndiswrapper

From: Pavel Machek
Date: Tue Nov 18 2003 - 17:24:21 EST


Hi!

> Since some vendors refuses to release specs or even a binary
> Linux-driver for their WLAN cards I desided to try to solve it myself by
> making a kernel module that can load Ndis (windows network driver API)
> drivers. I'm not trying to implement all of the Ndis API but rather
> implement the functions needed to get these unsupported cards working.
>
> Currently it works fine with my Broadcom 4301 but I would like to get in
> touch with people that have similar cards that are willing to do some
> testing/hacking.

Wow, works for me, Broadcom 94306. [Well, I do not have second wifi to
test right now, but module loads, I can iwconfig it etc.] I'd add this
to the docs:


Index: README
===================================================================
RCS file: /cvsroot/ndiswrapper/ndiswrapper/README,v
retrieving revision 1.1
diff -u -u -r1.1 README
--- README 17 Nov 2003 13:23:36 -0000 1.1
+++ README 18 Nov 2003 22:19:22 -0000
@@ -4,8 +4,11 @@
1. Compile the driver
---------------------
* You need kernel 2.6.0-test8 or higher!
-* Make sure your kernel complied without framepointer and Sleep-inside-spinlock debugging
- See the kernel hacking menu
+* Make sure your kernel complied without framepointer
+ (CONFIG_FRAME_POINTER unset) and Sleep-inside-spinlock
+ debugging (CONFIG_DEBUG_SPINLOCK unset). (See the kernel hacking menu)
+* do make modules_install
+* make sure you are not cross-compiling
> cd driver
> make


And perhaps this script gets usefull? [Fancy version might download
that package using wget then unzip it ;-).]

Pavel

#!/bin/bash
if zcat /proc/config.gz | grep CONFIG_FRAME_POINTER=y; then
echo Turn off CONFIG_FRAME_POINTER
fi
if zcat /proc/config.gz | grep CONFIG_DEBUG_SPINLOCK=y; then
echo Turn off CONFIG_DEBUG_SPINLOCK
fi
(
cd driver
make
)
(
cd utils
make
)
if lspci | grep "Broadcom Corporation BCM94306"; then
echo "This one should work, good."
insmod driver/ndiswrapper.ko
echo "Get R65194.EXE and unpack it here."
utils/loaddriver 14e4 4320 R65194/TMSetup/bcmwl5.sys R65194/TMSetup/bcmwl5.inf
fi


--
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/