LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-31-2003, 11:13 AM   #1
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Rep: Reputation: 30
linus source


i am an trying to install some drivers

but it asks for my LINUX Source Directory

which is what?


thanks







mandrake 9.1
 
Old 12-31-2003, 11:14 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
You need the kernel source installed which is usually in /usr/src/linux
 
Old 12-31-2003, 11:18 AM   #3
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
the only thing in /usr/src/ is RPM
there is no linux dir
 
Old 12-31-2003, 11:25 AM   #4
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Help others help you. Tell us what Distro you are using. Tell us what drivers you are trying to install.
 
Old 12-31-2003, 11:27 AM   #5
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Rep: Reputation: 30
Greetings,
What you need to do is download the source and "install" it.

Go to http://www.linux.org and get the official kernel source.

Unzip and untar it in your /usr/src directory.

From /usr/src
--------------------
rm -f linux
ln -s linux-2.x.x linux //the "x" refer to your kernel version
cd /linux

And there you go
 
Old 12-31-2003, 11:40 AM   #6
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
i am using mandrake 9.1 and i am trying to install linksys w lan

thanks for point me to the source but i failed to see where in the site to download it from

can you point me a litte further?
 
Old 12-31-2003, 11:43 AM   #7
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Are you trying to install a Network card? What is "linksys w lan"? Please be specific with your questions.

You may already have support for this card, and if not there may be an rpm you could install.
 
Old 12-31-2003, 11:47 AM   #8
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Rep: Reputation: 30
Link on the main page leads to linuxhq, which leads to the source here: http://www.linuxhq.com/kernel/v2.6/index.html
Make sure you get the source, and not the patch.
 
Old 12-31-2003, 11:50 AM   #9
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
He is trying to build something from source. This package will want the source of his running kernel, which is a Mandrake-installed kernel.

uname -a

will tell you which kernel version you are currently running. You will want to install the rpm package for that particular kernel version, using the Mandrake rpm.

If you download the 2.6.0 source, or 2.4.x, you'll end up compiling a kernel also. Are you prepared for that yet?
 
Old 12-31-2003, 11:54 AM   #10
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally posted by duerra
Greetings,
What you need to do is download the source and "install" it.

Go to http://www.linux.org and get the official kernel source.

Unzip and untar it in your /usr/src directory.

From /usr/src
--------------------
rm -f linux
ln -s linux-2.x.x linux //the "x" refer to your kernel version
cd /linux

And there you go
Official kernels are located at www.kernel.org and not at www.linux.org, just for anyone else that tries to go there, etc.
 
Old 12-31-2003, 11:54 AM   #11
TheOneAndOnlySM
Member
 
Registered: Jul 2003
Location: Dallas, TX
Distribution: Ubuntu 10.04 LTS
Posts: 987

Rep: Reputation: 30
agreed with above user

mandrake uses its own special kernels so you will need to download the kernel source rpm from mandrake's site

uname -r will help to determine what you need

*note: kernel recompiling should not be required here
 
Old 12-31-2003, 11:58 AM   #12
duerra
Member
 
Registered: Oct 2003
Location: Where No One's Been... Spiral Out!
Distribution: FreeBSD
Posts: 201

Rep: Reputation: 30
Yeah. That, and I'll go curl up in a corner and die now O.O
 
Old 12-31-2003, 02:30 PM   #13
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
[admin@192 linux-wlan-ng-0.2.1-pre16]$ uname -r
2.4.21-0.13mdk


i am installing linksys wireless pci adapter v2.7 wmp11


is there an rpm for that or what should i do?
try and install the kernal source?
am i going to have to recompile?
should i just upgrade to 2.6?
 
Old 12-31-2003, 02:56 PM   #14
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Simply going to Google:

http://rpms.mandrakeclub.com/rpms/ma...1mdk.i586.html

Those are the cooker rpms though. Check your installation media and see if you have the prism2 package available.

Quote:
is there an rpm for that or what should i do?
try and install the kernal source?
am i going to have to recompile?
should i just upgrade to 2.6?
Yes, I posted a link to the cooker rpm. Don't use it. Use the one that your normal software routine would provide.

Don't install the kernel source unless you are going to compile a kernel. "Upgrading" to 2.6 won't solve anything.

You should look in the /lib/modules/kernel-version/kernel/drivers/ directory. I don't know how Mandrake handles inserting and removing kernel modules. The manual way to do this is:

modprobe nameofmodule

or

insmod nameofmodule

You can check currently installed modules with:

lsmod

Have you actually installed the hardware yet? Is it in the output of lspci -v?



Last edited by llamakc; 12-31-2003 at 03:03 PM.
 
Old 12-31-2003, 03:40 PM   #15
citrus
Member
 
Registered: Dec 2003
Location: California
Distribution: Kubuntu 6.1
Posts: 548

Original Poster
Rep: Reputation: 30
01:09.0 Network controller: Broadcom Corporation BCM4301 802.11b (rev 02)
Subsystem: Linksys: Unknown device 4301
Flags: bus master, fast devsel, latency 66, IRQ 5
Memory at 42000000 (32-bit, non-prefetchable) [size=8K]
Capabilities: <available only to root>

yes its installed in the computer
and it sees it

i am trying to install the driver
but it asks where my linux source is
and i still havn't gotten a clear answer in what to do about it

i am downloading the fullsorce for my ssytem from kernal.org
its in some weird format *.bz2

what do i do with this file once it is done?
 
  


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
DVD About Linus/RMS/Open Source/Linux jlangelier Linux - General 1 12-31-2004 06:41 PM
What does Linus use? John5788 Linux - General 8 06-19-2004 10:23 AM
Linus wins!! itsjustme General 16 04-23-2004 11:18 PM
what distro does Mr. Linus use ? arpi General 11 04-05-2004 05:43 PM
Which distro does Linus use?? vbp6us General 9 03-10-2003 11:54 PM


All times are GMT -5. The time now is 10:29 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