[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling ndiswrapper module (Realtek rtl8192se wireless)



On Tue, Nov 30, 2010 at 10:26:12AM -1000, Joel Roth wrote:
> Hi all,
> 
> I've got a new Thinkpad T410 i5 to replace my Toshiba L305D
> series with Turion x64. (The latter was promising, but
> tended to overheat, even when I fixed the CPU speed at
> 1GHz.) 
> 
> The T410 come with a Realtek rtl8192se mini PCI express
> wireless card.
> 
> I've done my best with the native drivers, compiling them
> for a 2.6.36-amd64 kernel.  The module load and the wireless
> device appears in ifconfig output, but 'iw wlan0 scan' fails
> with 'Operation not permitted'.  :-(
> 
> So now I'm going back to try ndiswrapper. Thing is, it
> doesn't compile for 2.6.36 kernel.
> 
> 	 driver make[1]: Entering directory
> 	`/home/jroth/Downloads/ndiswrapper-1.56/driver' make -C
> 	/usr/src/linux-source-2.6.36
> 	M=/home/jroth/Downloads/ndiswrapper-1.56/driver make[2]:
> 	Entering directory `/usr/src/linux-source-2.6.36' CC [M]
> 	/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.o
> 	/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.c:834:
> 	error: unknown field 'ioctl' specified in initializer
> 	/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.c:834:
> 	warning: initialization from incompatible pointer type
> 	make[3]: ***
> 	[/home/jroth/Downloads/ndiswrapper-1.56/driver/loader.o]
> 	Error 1
> 
> Does anyone have experience with this? Or alternatively,
> Can someone suggest which recent kernel version *will* 
> compile this properly?

I've received private mail with a solution. 

from: ch0d4 at free . fr

> [...] here is what you need to successfully compile
> ndiswrapper on a 2.6.36 kernel.
 
> First, the patch that fixes the "ioctl bug" :
> http://launchpadlibrarian.net/58046844/ndiswrapper-suse.patch
 
> Then, the patch to compile ndiswrapper 1.56 successfully
> for kernel 2.6.35 and above :
> http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-wireless/ndiswrapper/files/ndiswrapper-1.56-2.6.35.patch?revision=1.1
 
> Download those two files to the directory when you
> ndiswrapper sources are (not in the directory itself), and
> then patch the sources : 
 
>    $ cd ndiswrapper-1.56
>    $ patch -Np0 < ../ndiswrapper-suse.patch
>    $ patch -Np0 < ../ndiswrapper-1.56-2.6.35.patch?revision=1.1
 
> If the patching works (and it should), you just need to
> run 'make' and 'make install' and that's it for
> ndiswrapper.
 
> As for the realtek driver, what worked for me was to use
> the 32bits windows driver (of if you can't find them XP
> drivers should also work) : 

> - uncompress the archive containing the drivers (you just need the net8192se.inf and rtl8192se.sys files)
> - run
>    $ ndiswrapper -i net8192se.inf
>    $ ndiswrapper -l # (it should list the module and the device)
>    $ ndiswrapper -m # (which creates the correct alias for your module)
>    $ modprobe ndiswrapper # (loads the module)
> 
 
> After this, depending on your  distribution (I was playing
> with this on a LFS), you might need to use wpa_supplicant
> and a dhcp client to end up your wireless configuration.


> I hope this will help you, and don't hesitate if you have
> any trouble or questions.
 
> Regards.
> 
> Marc


-- 
Joel Roth


Reply to: