LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices

Reply
 
LinkBack Search this Thread
Old 12-17-2004, 04:59 PM   #31
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45

not sure about the omiting of the equals sign, I think though that since it is a .conf file it is another program handling the aliasing, as in it is a config param, not a bash command.

I am not sure how to turn off the verbosity, I generally keep it going.

the modules should be in /lib/modules/[kernel version here]/kernel/drivers/[somewhere in here]
 
Old 12-17-2004, 05:45 PM   #32
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
In a moment of amazing genius (for a newbie), I tried `ls -R . | grep prism` in /lib/modules/2.6.5-1.358/kernel/drivers, which lead me to /lib/modules/2.6.5-1.358/kernel/drivers/net/wireless/prism54/prism54.ko, but I don't think this is the one. I suspect it's not generating the proper output file.

this excerpt from make was dismaying:

make[4]: Entering directory `/lib/modules/2.6.5-1.358/build'
/bin/sh: line 1: /home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/../.tmp_versions/prism2_usb.mod: Permission denied
Building modules, stage 2.
MODPOST
*** Warning: "wlan_unsetup" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "p80211netdev_hwremoved" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "unregister_wlandev" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "register_wlandev" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "wlan_setup" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "p80211netdev_rx" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "p80211skb_rxmeta_attach" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!
*** Warning: "usb_kill_urb" [/home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.ko] undefined!

I can get rid of the permission denied message using su, but the 'undefined' warnings persist. Can you make any sense of them?
 
Old 12-17-2004, 05:54 PM   #33
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
Speaking of newbie cleverness, I can't think of a way to search for a file and also find out what directory it's in, because ls -R | grep gives only the filename. What's the trick for this?
 
Old 12-17-2004, 05:56 PM   #34
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
there is a config script you nee dto run it will ask you if you want usb device drivers, the script is most likely called configure or configure.sh and should be int eh directory of the driver source.
 
Old 12-17-2004, 06:08 PM   #35
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
(oh, and I know about locate, but I know it doesn't necessarily find everything...)

One line of make's output was
CC [M] /home/dpiepgrass/Download/linux-wlan-ng-0.2.1pre23/src/prism2/driver/prism2_usb.o

This led me to discover a .ko file by the same name in that directory. ko is the binary for a kernel library, yes? Why did the locate command find the .c file but not the ko? And is it just me, or is it strange to compile the binaries into the same folder as the sources?

So I guess this means it compiled but failed to put the output file in the right place.

Anyway, do you think I should try copying that file to one of the subfolders of /lib/modules/2.6.5-1.358/kernel/drivers/? Also, there is a p80211.ko, maybe I should do something with that too?

Last edited by Qwertie; 12-17-2004 at 06:13 PM.
 
Old 12-17-2004, 06:13 PM   #36
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
do not copy it, it is most likely incomplete, and when a binary file is compiled it is compiled into the source directory then moved where it needs to go. also .ko is specifically a kernel module. you need to run the configure and compile again so it will build the usb version and install it properly. do nto try to copy it yourself, ti will likely not work (there is a slight chance it will however)
 
Old 12-17-2004, 06:15 PM   #37
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
I ran ./Configure, but it seems to do exactly the same thing as make config.

(and yes I did ask it for USB support. I've also tried make clean and repeating make config just to be sure...)

Last edited by Qwertie; 12-17-2004 at 06:16 PM.
 
Old 12-17-2004, 06:18 PM   #38
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
ok, well instead of going with default options try out alternate options, somewhere inside if you give it the right info it should ask you if you want to make the usb version, read the README or other notes int he directory.

on a side note locate works with a database, so files created after the database ar enot found, you can rebuild the database with updatedb, but ti takes a LONG time. I recommend using find instead of locate, here is an example: find / -name "prism*" syntax is find followed by directories to look in, then use -name to specify find by name and then give it a name, sometimes it requires quotes (short searches I think) so I just always put them in there.
 
Old 12-17-2004, 06:18 PM   #39
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
oh hmm, missed the second half of your last message, sorry.
 
Old 12-17-2004, 06:37 PM   #40
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
In the spirit of trying non-defaults, I tried the kernel sources installed by yum in /usr/src/linux-2.6.5-1.358 by supplying that folder name to `make config`. It gave this error:

Linux source tree /usr/src/linux-2.6.5-1.358 is incomplete or missing!
The kernel header files are present, but not the full source code.

Which suprised me. Would you happen to know a command to find out the size of an entire folder? The package was 43 MB so I wonder whether it unpacked all of that to /usr/src/linux-2.6.5-1.358. Certainly I would expect so. I used that find command to find the rpm file, then I opened it with 'FileRoller'. Everything listed in the RPM is unpacked to /./usr/src/linux-2.6.5-1.358/... so certainly I expect all 43+ MB of source code is there...
 
Old 12-17-2004, 06:51 PM   #41
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
du -sch /path/to/dir

-s = single (will not show you the size of every single subdirectory and file within the file/directory you give it)
-c = give you a final total of all the specified files/folders
-h human readable i.e. megabytes instead of bytes.
 
Old 12-17-2004, 07:08 PM   #42
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
It's 219M in size. So... do you have any more ideas I could try?
 
Old 12-17-2004, 07:17 PM   #43
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
I recomend trusting the ditribution and letting it use the kernel sources it is happy with, no matter where it finds them.. at this point you might go ahead and try moving the usb_prism.ko to the modules directory. you might also start a new thread int he hardware section summerising all of this, chances are you till get more responces from people other than me. honestly I stopped using that card months ago simply cause I didn't need it anymore, it was for my laptop to use wireless at my school, I get there and wham, wireless at the school (CC) is $50 a month so it fell out of use.
 
Old 12-17-2004, 07:38 PM   #44
Qwertie
LQ Newbie
 
Registered: Dec 2004
Distribution: Fedora Core 2
Posts: 23

Rep: Reputation: 15
The school charges $50 a month? Insanity, I tell you!

I find wireless is really convenient at home on a laptop BTW.

Hmm, after my most recent make install as root, I used that find command and found the two ko's in /lib/modules/2.6..../linux_wlan_ng. Do you suppose that's the right place? all the other drivers .ko's are in kernel/....

Anyway, I think I'll go through all the other instructions again at this point, in case my compile worked this time...
 
Old 12-17-2004, 07:59 PM   #45
exodist
Senior Member
 
Registered: Aug 2003
Location: Portland, Oregon
Distribution: Gentoo
Posts: 1,365

Rep: Reputation: 45
yes that is where they should be.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Netgear MA111 USB wireless adapter TWF MEPIS 1 10-18-2005 05:50 AM
Netgear MA111 USB Wireless Adapter subaruwrx Linux - Wireless Networking 2 01-21-2005 12:20 AM
Netgear MA111 USB wireless adapter!HELP ME! jarrywhu Linux - Wireless Networking 13 09-28-2004 01:55 AM
Wireless netgear MA111 USB on Mandrak10.0 Sumedha Linux - Wireless Networking 2 08-14-2004 09:54 AM
Netgear MA111 USB Wireless NIC Help DrAxeman Linux - Wireless Networking 0 06-25-2004 03:09 PM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration