LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 05-22-2004, 08:29 AM   #1
Corp186
LQ Newbie
 
Registered: Feb 2004
Distribution: Fedora Core
Posts: 13

Rep: Reputation: 0
wlan-ng and Fedora Core 2 (2.6.5-1.358)


I had been using fedora core 1 for a while and I had wlan-ng all set up. Now, I have upgraded to core 2 with the new 2.6.5 kernel. People using other distros aren't having problems compiling the driver I don't believe, but when I try to ./Configure, it says:

"The linux source tree is incomplete or missing. The kernel headers are present but not the full source code"

From one mailing list online, I think the problem is the kernel-source fedora package and how it installs the source. If anyone could help me, I would appreciate it very much.

Thank you
 
Old 05-30-2004, 07:39 AM   #2
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
Installing the linux wlan-ng driver with the 2.6 kernel in Fedora Core 2 is far from well documented, although not very hard.
The trick is that you have to get a fully configured kernel source tree to get it going, i.e. you've got to fully compile the kernel and be running it before you can compile the driver.
Here's a quick how-to :

1 - install the kernel-source from Fedora
2 - make sure you have a symbolic link form /usr/src/linux to /usr/src/linux<whatever the version number of the kernel>
3 - copy the config file corresponding to the kernel you're running from /usr/src/linux/configs/ to a file named .config in /usr/src/linux
4 - compile the kernel (make/make modules_install/make bzImage/make install) and take a break (make can last a couple hours, especially if you're using you computer while it's compiling)
5 - reboot and chose the new kernel in GRUB (should be linux<version>custom)
6 - and now you're ready for the install of the driver.

Note to the linux wlan ng driver developers : it might be a good idea to submit you code to the kernel source tree ;-)

I'm the happy owner of two MA-111 wireless USB keys, it works on Redhat 9/ FC1/ FC2.
 
Old 06-04-2004, 10:54 AM   #3
mtk
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
for a second i was excited. i've been trying to get the latest wlan-ng driver installed
on my ibm t23 with fedora core 2 for a while. your answer matched some of the
conjecture on the wlan-ng user list. but when i followed your recipe, it failed.
note that while i don't build kernels for a living, i do have 25 odd years
of experience (only about 20 with unix and only about ten as a linux user :-).
the bare "make" (the one that builds the kernel) failed. it can't find
/usr/src/linux-2.6.5-1.358/arch/i686/Makefile. (yes, the symbolic link
/usr/src/linux is there). i chose /usr/src/linux/configs/kernel-2.6.5-i686.config as the
file to copy into /usr/src/linux/.config. /usr/src/linux-2.6.5-1.358/arch doesn't
contain an i686 subdir (nor an i586) subdir, just i386. suggestions?
the wlan-ng crew say unfriendy things about the fedora kernel crew
on their mailing list.
 
Old 06-04-2004, 12:07 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 418Reputation: 418Reputation: 418Reputation: 418Reputation: 418
Quote:
The trick is that you have to get a fully configured kernel source tree to get it going, i.e. you've got to fully compile the kernel and be running it before you can compile the driver.
I don't get that. I understand why you need the source code and .config file that matches your kernel, but why in the world would you have to take the step of actually compiling the kernel from source? I'd appreciate any information you have on why compiling is needed.
 
Old 06-04-2004, 12:21 PM   #5
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
You've got to be in the /usr/src/linux directory to do the make, not in /usr/src/linux/arch/i686. By the way such a directory does'n exist, the kernel image is stored in /usr/src/linux/arch/i386/boot for all x86 flavours.
The Makefile is in /usr/src/linux directory and is provided by the kernel-source package.

Reguarding the fact that you have to compile the kernel, I'm not a specialist, but it seems that the 2.6 kernel has a very strict control of the modules configuration and that some files, generated at compilation time, need to be present in order to get a valid new module for linux-wlan-ng.
From my experience, if you don't get through the recompilation and use the newly compiled kernel, you get an 'invalid module format message' or something like that when you try to load it.
If anybody has some clear information about the internal of the 2.6 kernel, or wants to correct my explanations, please do.
 
Old 06-04-2004, 04:45 PM   #6
Corp186
LQ Newbie
 
Registered: Feb 2004
Distribution: Fedora Core
Posts: 13

Original Poster
Rep: Reputation: 0
My solution

I don't know how correct this is, but it worked perfectly. Just say the source directory is /lib/modules/2.6.5-1.358/build. It worked perfectly. I don't know where I got that idea from, but I think I remember some ./configure auto-finding that and asking if that was correct. I have tried it in everything sense then, and everything works!
 
Old 06-04-2004, 09:14 PM   #7
cassius42
LQ Newbie
 
Registered: Jun 2004
Posts: 1

Rep: Reputation: 0
ma111

I'm using the ma111 from netgear. FC1 didn't recognize the device until after I installed linux-wlan-ng. FC2 found the usb device, but named it eth1. I don't know where to take it from there, but I think I'm going to try to install linux-wlan-ng as in the post directly above. Does anyone know of an easier way? Is there a trick to turn the eth1 into a wlan0? I think that if it recognized as a wireless device instead of ethernet that it would work.
 
Old 06-05-2004, 12:36 AM   #8
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
Re: My solution

Quote:
Originally posted by Corp186
I don't know how correct this is, but it worked perfectly. Just say the source directory is /lib/modules/2.6.5-1.358/build. It worked perfectly. I don't know where I got that idea from, but I think I remember some ./configure auto-finding that and asking if that was correct. I have tried it in everything sense then, and everything works!
I tested your solution on my Fedora 2, it works with my custom compiled kernel but not with the one shipped with the Fedora (the make complains about a non-existing /lib/modules/2.6.5-1.358/build//.tmp_versions ).
Why is this so ? I don't have a clue, since you can find all the not-hidden files in /lib/modules/2.6.5-1.358-custom in the /lib/modules/2.6.5-1.358 directory also and many more. The only difference between the two is the presence of hidden files in the build subdirectory.
Code:
[root@master build]# ls -a /lib/modules/2.6.5-1.358-custom/build
.                drivers         README                 .tmp_versions
..               fs              REPORTING-BUGS         .tmp_vmlinux1
arch             include         scripts                ..tmp_vmlinux1.cmd
.config          init            security               .tmp_vmlinux2
.config.cmd      ipc             sound                  ..tmp_vmlinux2.cmd
.config.old      kernel          System.map             usr
configs          lib             .tmp_kallsyms1.o       .version
COPYING          MAINTAINERS     ..tmp_kallsyms1.o.cmd  vmlinux
COPYING.modules  Makefile        .tmp_kallsyms1.S       .vmlinux.cmd
CREDITS          mm              .tmp_kallsyms2.o
crypto           Module.symvers  ..tmp_kallsyms2.o.cmd
Documentation    net             .tmp_kallsyms2.S
Do you have them in your /lib/modules/2.6.5-1.358/build subdirectory ? I guess they're generated by the kernel compile.
 
Old 06-05-2004, 06:48 AM   #9
mtk
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
redbone, i was in /usr/src/linux. like i said, i don't build kernels for a living but
i have done it before. it still doesn't work.
 
Old 06-05-2004, 07:46 AM   #10
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
Quote:
Originally posted by mtk
redbone, i was in /usr/src/linux. like i said, i don't build kernels for a living but
i have done it before. it still doesn't work.
Might have a clue : do you, by any chance, have the ARCH variable set to i686 ? You can check with env|grep ARCH or look in your /usr/src/linux/.config file for something like ARCH=i686.

I think I've reproduce your error :

Code:
[root@master linux]# make ARCH=i686
Makefile:450: /usr/src/linux-2.6.5-1.358/arch/i686/Makefile: Aucun fichier ou répertoire de ce type
make: *** Pas de règle pour fabriquer la cible  /usr/src/linux-2.6.5-1.358/arch/i686/Makefile . Arrêt.
(sorry the messages are in french : "No such file" and "No rule to make the target")

Can you confirm that It's more or less what you get when you do the make ?
 
Old 06-05-2004, 10:02 AM   #11
mtk
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
you are indeed, clue-full :-). i am compiling as i type this. if it works, i'm going
to compose a song in your honor and sing it at dinner.
 
Old 06-05-2004, 11:41 AM   #12
redbone
LQ Newbie
 
Registered: May 2004
Location: Toulouse - France
Distribution: FC2
Posts: 19

Rep: Reputation: 0
For my information, do you know how the ARCH variable got set ?

As for the song, I bet you can match R.STALLMAN's ;-)
 
Old 06-05-2004, 12:05 PM   #13
mtk
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
i routinely set ARCH since i work in a mixed-unix environment
(solaris, linux) and have per-arch binaries and a shared
bash initialization. the kernel's dependence on ARCH
is a little shakey IMHO.

and i know the stallman song. it almost made me give up
listening to folk music (although he has a decent
singing voice).

/mark
 
Old 06-05-2004, 12:32 PM   #14
mtk
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
it works (wlan-ng, thinkpad t23, fedora core 2, built-in wi-fi). i followed your
recipe and modulo my own ARCH-related problem, it worked
exactly as you described. well done, mon ami!
 
Old 09-01-2004, 03:20 PM   #15
zerogood
LQ Newbie
 
Registered: Aug 2004
Posts: 9

Rep: Reputation: 0
i wanna make a folder in my /usr/src but i can't because its been restricted i know the password and i'm the admin but where do i put in the password to get access to file creation in that folder
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
wlan-ng on Fedora Core 4 rid00z Linux - Hardware 1 06-27-2005 05:09 PM
Freeze on splash with "Fedora Core-up (2.6.5-1.358)" Prouder Fedora 1 10-14-2004 09:52 AM
USB Problem with Kodak CX6230 digital camera at Fedora Core 2 with kernel 2.6.5-1.358 RedAhead Linux - Software 2 10-02-2004 05:17 AM
sftp and scp problems on kernel 2.6.5-1.358(fedora core 2) nikhil.hegde Linux - Software 0 09-21-2004 02:08 PM
Asus wlan for Fedora Core? shamgar03 Linux - Hardware 1 09-02-2004 03:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration