LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   linux-wlan driver installation? (http://www.linuxquestions.org/questions/linux-newbie-8/linux-wlan-driver-installation-198069/)

QzarBaron 06-26-2004 04:41 PM

linux-wlan driver installation?
 
Ok I just got Linux today and had the installation working fine. Linux detected most of my hardware but I had a problem with my Wireless adapter. I have a Microsoft Broadband MN-510 USB Adapter. After doing some research I found out this was supported by the linux-wlan driver becacuse it used Prism 2.5 technology. I am able to go on the internet from Windows XP with it but not from Mandrake 10.

So I downloaded linux-wlan-ng-0.2.1pre21.tar.gz and the readme and placed them on a floppy loaded Linux inserted the floppy read the readme and this this:

I unzipped the file with gunzip command
Untared it with the tar zxvf command
did a cd to the right folder
ran make clean
ran make config
then it asked me some questions I answered them
ran make all
thats when I encountered some problems. I am running the 2.6.something kernel(The same kernel that came with the installation of Mandrake 10 without any changes) I recived a couple of errors about files not being found.

Can anyone help me I know I am being somewhat vague but I am a complete Linux n00b. I read somethings about having to configure the kernel before installation and that confused me. Is there any way I can download the binary RPM packages for the drivers that will work with Mandrake 10(I looked on the website with the RPMs but they only had the Red Hat 9 and Fedora Core drivers)

QzarBaron 06-27-2004 07:34 AM

anyone?

Hangdog42 06-27-2004 08:48 AM

You need to post the actual error message.

Quote:

I recived a couple of errors about files not being found.
That just isn't enough for anyone to figure out anything.

Komakino 06-27-2004 03:32 PM

I doubt the drivers you're using support the 2.6 kernel if they complain about files missing. Either that or you don't have the kernel sources on your system. If that's the case then they can be found on one of the Mandrake installation CD's. Sorry, I don't know which one and I don't use Mandrake but if it has some sort of installation/package tool you can use that to install the sources. Then try installing the drivers again.

I strongly recommend you read the files:
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/FAQ
ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README

specifically the FAQ has issues concerning prism 2.5 devices which you should read.

Setting up a wireless network in Linux is not the easiest thing - I've had numerous issues with mine, but once you get it all going make sure you make a note of how you did it, just in case you need to know in future!

gtzpower 06-27-2004 04:21 PM

probably missing kernel sources. Go into the k menu, and look for 'Install Software' under the configuration menu somewhere. Sort the list of installable packages by size, and the top 2 items will be kernel sources. Just pick the matching version for your source, and insert cd3 when it prompts you.

QzarBaron 06-27-2004 04:33 PM

Ok I am sure I have the kernel sources because I installed them when I installed Linux. Tomorrow I will try again and put the error messages here.

gtzpower 06-27-2004 04:59 PM

I thought i did too. I checked on 'source and documentation' during mdk10 installation, but kernel sources were not installed. might be worth a look.

QzarBaron 06-28-2004 11:16 AM

Ok I checked and I found out I do have the Linux Kernel source installed on my computer. Did everything again and I got this:

[root@localhost linux-wlan-ng-0.2.1pre21]# make all
set -e; for d in src doc man etc; do make -C $d ; done
make[1]: Entering directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src'
set -e; for d in mkmeta p80211 prism2 shared wlanctl wland nwepgen wlancfg; do m
ake -C $d ; done
make[2]: Entering directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src/mkmeta
'
gcc -E -M -I../include -I/usr/src/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ ../s
hared/p80211types.c ../shared/p80211metamsg.c ../shared/p80211metamib.c ../share
d/p80211meta.c mkmetadef.c ../shared/p80211types.c ../shared/p80211metamsg.c ..
/shared/p80211metamib.c ../shared/p80211meta.c mkmetastruct.c > .depend
mkdir -p obj
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ ../shared/p80211types.c -o obj/p8021
1types.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ ../shared/p80211metamsg.c -o obj/p80
211metamsg.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ ../shared/p80211metamib.c -o obj/p80
211metamib.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ ../shared/p80211meta.c -o obj/p80211
meta.o
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ mkmetadef.c -o obj/mkmetadef.o
gcc -o mkmetadef obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o obj/
p80211meta.o obj/mkmetadef.o
cat mkmetadefhead.txt > ../include/wlan/p80211metadef.h
./mkmetadef >> ../include/wlan/p80211metadef.h
echo "#endif" >> ../include/wlan/p80211metadef.h
gcc -c -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -I../include -I/usr/sr
c/linux-2.6.3-7mdk/include -D__LINUX_WLAN__ mkmetastruct.c -o obj/mkmetastruct.o
gcc -o mkmetastruct obj/p80211types.o obj/p80211metamsg.o obj/p80211metamib.o o
bj/p80211meta.o obj/mkmetastruct.o
cat mkmetastructhead.txt > ../include/wlan/p80211metastruct.h
./mkmetastruct >> ../include/wlan/p80211metastruct.h
echo "#endif" >> ../include/wlan/p80211metastruct.h
make[2]: Leaving directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src/mkmeta'
make[2]: Entering directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src/p80211
'
if test ! -d /home/sebastian/linux-wlan-ng-0.2.1pre21/src/p80211/../.tmp_version
s; then \
cp -rf /usr/src/linux-2.6.3-7mdk/.tmp_versions /home/sebastian/linux-wla
n-ng-0.2.1pre21/src/p80211/../ ; \
fi
cp: cannot stat `/usr/src/linux-2.6.3-7mdk/.tmp_versions': No such file or directory
make[2]: *** [default] Error 1
make[2]: Leaving directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src/p80211'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/sebastian/linux-wlan-ng-0.2.1pre21/src'
make: *** [all] Error 2
[root@localhost linux-wlan-ng-0.2.1pre21]#

Now while exploring my Kernel source folder in the 3rdparty folder I found something called Prism25 in it there was a file called Prism_usb.c. This is making me think that Mandrake 10 already has the module installed. Is there any way I can check this? If not can somebody tell me what is wrong with the linux-wlan-ng installation.

QzarBaron 06-29-2004 03:02 PM

Well any ideas?

Is it because I am using the 2.6 kernel because if so I will get the 2.4 kernel?

Komakino 06-29-2004 03:42 PM

have you tried simply:
insmod prism_usb

or modprobe prism_usb

to see if that will load the module you need?

QzarBaron 06-29-2004 04:15 PM

No its not there I tried

Hangdog42 06-29-2004 04:33 PM

Quote:

Is it because I am using the 2.6 kernel because if so I will get the 2.4 kernel?
I don't think that is the problem. Just as a check however, both your kernel and your source code are 2.6.3, right?

This is from the linux-wlan README file
Quote:

- Configured kernel source code for the kernel you are running.
Ideally, this will be the resulting tree after building your own
kernel. Configured means that you have at least run 'make config',
'make menuconfig', or 'make xconfig'. If you are trying to build
linux-wlan-ng for a previously existing kernel binary (one you did
not build yourself), look for help on the mailing lists because it
can be tricky. I always run against kernels I've built myself, so I'm
not much help in this area.
If you are using a stock mandrake kernel (and from your source code, I'm assuming you are) you might try to run make oldconfig in the kernel source directory and see if that helps the situation. You may also have to run make to get the kernel tree set up properly.

There is another opinion that this is the problem here

QzarBaron 06-29-2004 04:48 PM

Yeah that might be the problem. I am using the kernel that came with Mandrake. I will try to configure my kernel and see if it works then. Thanks for the help.

QzarBaron 06-29-2004 07:30 PM

Ok I ran Make oldconfig and then Make(damn that took a long time). Aftewards I tried the installed again and didn't get any errors(yay :D ) Lots of good things happened. When I rebooted my system it didn't crash :D (before if I had the adapter connected at boot the system would crash horribly). Another good thing is the little wireless light now is turned on(unlike before) .

Now the bad news. I still can't go on the internet :( . When I tried modprobe prism2_usb I got the following error:

[root@localhost sebastian]# modprobe prism2_usb
FATAL: Error inserting prism2_usb (/lib/modules/2.6.3-7mdk/linux-wlan-ng/prism2_usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

I have no clue what it means but I hope you guys can help me. Thanks again for telling me what I was doing wrong now I feel closer than ever at getting this to work. I hope the problem I have is not that bad.

QzarBaron 06-29-2004 07:40 PM

Ok I ran Make oldconfig and then Make(damn that took a long time). Aftewards I tried the installed again and didn't get any errors(yay :D ) Lots of good things happened. When I rebooted my system it didn't crash :D (before if I had the adapter connected at boot the system would crash horribly). Another good thing is the little wireless light now is turned on(unlike before) .

Now the bad news. I still can't go on the internet :( . When I tried modprobe prism2_usb I got the following error:

[root@localhost sebastian]# modprobe prism2_usb
FATAL: Error inserting prism2_usb (/lib/modules/2.6.3-7mdk/linux-wlan-ng/prism2_usb.ko): Unknown symbol in module, or unknown parameter (see dmesg)

I have no clue what it means but I hope you guys can help me. Thanks again for telling me what I was doing wrong now I feel closer than ever at getting this to work. I hope the problem I have is not that bad.

EDIT: Crap double posted :mad: how do I erase it?


All times are GMT -5. The time now is 11:26 PM.