Forum: Networking
Topic: Ndiswrapper
started by: gammelmarakuja

Posted by gammelmarakuja on Aug. 20 2008,14:32

I just wanted to check weather anyone experienced installing a newer version of ndiswrapper, as the old one doesn't support my wifi card?

Posted by Juanito on Aug. 20 2008,15:28
I seem to remember that newer versions either need a 2.6.x kernel or a more recent version of glibc - you could look in the ndiswrapper readme file to check...
Posted by gammelmarakuja on Aug. 22 2008,13:15
The readme file sais that kernel 2.4.26 or higher...i think it is 2.4.31 in 4.4.4 ...
And i have no clue about glibc =]

Posted by Juanito on Aug. 22 2008,13:26
you're right - 4.x has a 2.4.31 kernel, so it might work...
Posted by gammelmarakuja on Aug. 22 2008,15:54
You need a recent kernel, at least 2.6.18 or 2.4.26, with kernel headers, and gcc-3.4 or newer.

it was quite close thou ^^
i guess there is hardly any possibility of installing gcc-3.4 on dsl is it?

Posted by Juanito on Aug. 22 2008,16:42
Well - it's an issue of compiling gcc-3.4 in order to compile a newer version of ndiswrapper in turn. As its name suggests, compile-3.3.5 uses gcc-3.3.5.

You should be able to use compile-3.3.5 to compile gcc-3.4, but I think the law of diminishing returns will probably apply at some point...

Posted by gammelmarakuja on Aug. 22 2008,21:16
right...as far as i get this you reccomend yo download gcc3.4 and give compiling a go? Or do i need anything else first?
Posted by Juanito on Aug. 23 2008,06:34
Correct - you should be able to compile gcc-3.4 with compile-3.3.5
Posted by gammelmarakuja on Aug. 23 2008,10:04
And i have compile 3.3.5 on dsl 4.4.4?...i take it as yes ;)

Right problem is that i can't find the package with gcc3.4
Anyone got an idea where to get it? A download link or something would be great.
And also ndiswrapper sais that any older verions should be removed first. How do i do that? Is there a package manager where I can just click uninstall or do i have to do it manually? And if manually which files do i have to delete?

Posted by Juanito on Aug. 23 2008,10:36
compile-3.3.5.uci is a mydsl extension - you can find it in the testing section.

If you look in the info file for compile-3.3.5 in mydsl testing, you will find the url for gcc-3.3.5, you should be able to navigate from there to gcc-3.4

If you compile the new ndiswrapper to /usr you will not need to remove the existing ndiswrapper.

Posted by gammelmarakuja on Aug. 23 2008,11:27
does that mean i need to install compile-3.3.5.uci first or is it in DSL 4.4.4 already?
Posted by Juanito on Aug. 23 2008,11:44
You need to install compile-3.3.5.uci first - if it were in dsl-4.4.4 there would be no need for an extension :)
Posted by gammelmarakuja on Aug. 23 2008,11:48
ye..good point ^^
uuhhh -.- that will take quite a while again, because i will have to install all the needed packages first then compile 3.3.5 and then gcc-3.4 xD
I will give feed back when something happens ;)

Thank you

Oh and one more thing, i guess i will want to keep compile 3.3.5 ... but as it is a .uci it will always unmount when rebooting right...
so what do i have to do to keep it there where it was befor rebooting?
And is it a good idea to keep it on the system?

Posted by Juanito on Aug. 23 2008,11:55
er, no - you need to start by "mydsl-loading" compile-3.3.5.uci, then compiling and making an extension of gcc-3.4, then compiling the new version of ndiswrapper
Posted by gammelmarakuja on Aug. 23 2008,12:19
is that for frugal? because i have HD install [even though i don't think it has anything to do with that]but even if then gcc3.4 and ndiswrapper are compiled, then when i next time need to compile something i would need to load compile-3.3.5 again, because it will be gone as its an uci...and they always dissapear after rebbot
Posted by Juanito on Aug. 23 2008,12:26

Well, you could do something like this for a hd install (albeit I never used a hd install):
Code Sample
$ mydsl-load /path-to-file/compile-3.3.5.uci
$ sudo cp -r /opt/compile-3.3.5 /tmp
$ mydsl-load /path-to-file/compile-3.3.5.uci
$ sudo cp -r /tmp/compile-3.3.5 /opt
$ sudo rm -r /tmp/compile-3.3.5

Posted by gammelmarakuja on Aug. 24 2008,07:35
I installed compile 3.3.5 without problems, but when i started compiling make there was some strange errors...i will let my PC calm down for some hours now and try it again then :)
I will let you know ;)

Posted by Juanito on Aug. 24 2008,11:38
What were the errors? You might want to consult "linux from scratch" for some hints on compiling gcc
Posted by gammelmarakuja on Aug. 25 2008,12:46
Ye good point ^^ acctually i just relized that i might have compiled it completely wrong :S OOps
i did
make install
it takes aagggeeesss
what is the right way?
and because i am on HD-install does it mean i will have to uninstall/remove the original gcc.
and furthermore important, do i have to remove ndiswrapper (the old version) ?

Posted by Juanito on Aug. 25 2008,13:03
Did you use only "./configure" or did you pass some options like "./configure --prefix=/usr --enable-languages=c,c++" etc?

You don't neccessarily need to uninstall the other version of gcc, you can have, for example, one in /usr and one in /opt/gcc-3.4 and then oblige your machine to use one or the other by something like "CC="gcc -B/opt/gcc-3.4/bin/" ./configure ..."

As regards ndiswrapper, if you install the new version to the same location as the old version, it will get overwritten.

Posted by gammelmarakuja on Aug. 25 2008,13:21
Right...so i will only install...not uninstall...thats one task less :) yey...i only used ./configure
is there a readme or something which describes how to compile it correctly?

Posted by Juanito on Aug. 25 2008,13:32
There are the README and INSTALL files in the tarball and "./configure --help"
Posted by gammelmarakuja on Aug. 25 2008,13:33
Just reading through LFS, and relizing, that
1. I don't even get the basic linux stuff right xD
2. i can't even compile a gcc...
right...so gcc is crosscompiling, that means i need a seperae directionary(?)

and i don't get the rest at all...
also...how big is the size of gcc3.4 installed...it looks huge...could be about 500MB

Oh yer...and could you tell me how to compile gcc3.4  please, because i would get it wrong. ^^
just the commands i need to type in aterm =]
that would be great

Posted by gammelmarakuja on Aug. 25 2008,13:36
Oh okee, i will read them first
Posted by curaga on Aug. 25 2008,13:50
Compiling is very demanding, it's not comfortable on a Pentium 1, I have done that too :p

Also, compiling a monster like GCC on a Pentium.. Let's just say it will take near a week, be prepared!

Posted by gammelmarakuja on Aug. 26 2008,15:05
Right...so i used all this time, just to figure out that, it wasn't about the ndiswrapper version. The old one already was able to load fwlan.inf.
I did the following:

modprobe ndiswrapper
ndiswrapper -i fwlan.inf
ndiswrapper -m
ndiswrapper -a
ndiswrapper -l
     : fwlan.inf         installed, hardware avaliable
ndiswrapper xxxx:xxxx fwlan
     : fwlan used for xxxx:xxxx

means the hardware was there and the driver, but when i tryed to configurate anything it never worked. none of the programms on DSL workes.

When i tryed to reboot it just said:
Operation failed and the PC froze, even before it started X
what am I supposed to do?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.