LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2003, 11:21 AM   #1
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Rep: Reputation: 32
Installing the Mandrake 9.2 kernel source?


hello, i need to install the kernel source for mandrake, i dont want a new kernel, i just need the kernel source for a driver im trying to install for my ma101 wireless usb adapter.

Aparantly, the source is supposed to be in
/usr/src/linux, but that doesnt exist, why?

im confused, please give me detailed instructions, thanks!
 
Old 12-23-2003, 11:45 AM   #2
bigjohn
Senior Member
 
Registered: Jun 2002
Location: UK .
Distribution: *buntu (usually Kubuntu)
Posts: 2,682
Blog Entries: 9

Rep: Reputation: 45
ha,

this is one of the reasons that I usually use a powerpack dvd of mandrake, it has everything on one disc (which includes the various proprietary app's that I could get and mess around with to install, but I'm too lazy ).

Anyhow, If you open the mandrake control centre, and then use the software manager and click on "rpmdrake+" let it load up the info for "all packages" then just run down the list and find the kernel sources to match the kernel that you have installed.

From memory, the mandrake distro is usually spread across 3 cd's (well the download version anyway), and If I recall correctly, the kernel sources stuff is usually on disc 3.

If you follow the above, when you hit install, it SHOULD tell you to insert disc no whatever to be able to install them.

regards

John
 
Old 12-23-2003, 12:32 PM   #3
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Original Poster
Rep: Reputation: 32
for some reason, john, i installed the kernel, and my mixer stopped working, i have a new entry in LILO, and /usr/src/linux still doesnt exist, but i installed all the right packages, im wondering.

I read on this forums HCL that its basically plug and play, mandrake has support for it, im gonna post somethin there
 
Old 12-23-2003, 02:53 PM   #4
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
Installing the kernel and installing kernel-sources is two different things. The reason why you mixer (assuming alsa) stopped working when you installed/re-installed the kernel is because you have to install alsa-mixer again (funny little quirk about alsa).

You could also look on mandrake's website or kernel.org for the kernel sources for your kernel.

rberry88
 
Old 12-23-2003, 03:10 PM   #5
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Original Poster
Rep: Reputation: 32
is there anything i have to know before i install this kernel source, like instructions, or...

, oh, and since my mixer doesnt work, am i just better off reinstalling mandrake?
 
Old 12-23-2003, 03:24 PM   #6
rberry88
Member
 
Registered: Aug 2003
Location: Arlington Heights, IL USA
Distribution: Fedora Core 1 & WinXP Pro & Gentoo 1.4 & Arch Linux
Posts: 558

Rep: Reputation: 30
The fine folks at www.alsa-project.org have a nice walkthrough to get your alsa-mixer back up and running.

Installing the kernel-sources isn't nearly as involved as the actual kernel. especially in mandrake which should basically install it for you.

rberry88
 
Old 12-23-2003, 04:00 PM   #7
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Original Poster
Rep: Reputation: 32
how exactly do i install the kernel sources, i extracted the .tar.gz file, then what

sorry, im a real newb, plus, i just want this to work, if not, im thinking of buying a wireless bridge so that it will run os independent, but...
 
Old 12-23-2003, 06:44 PM   #8
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670Reputation: 670
/usr/src/linux is actually a link to your current/default linux source. It points to the source directory which has the same full name as the kernel. IE linux-2.4.22ent. After you expand the tarbar, you can copy or move the entire directory to /usr/src/ and then make a symbolic link from /usr/src/linux to this new directory.
 
Old 12-23-2003, 09:20 PM   #9
sn00ps
LQ Newbie
 
Registered: Dec 2003
Location: Adelaide, Australia
Posts: 1

Rep: Reputation: 0
Hey

i was searching through here yesterday and rberry88 referred to this link


ftp://mirrors.secsup.org/pub/linux/mandrake/Mandrake/9.2/i586/Mandrake/RPMS/kernel-source-2.3.22-10mdk.i586.rpm

down the linux kernel file as the rpm file
double click on the rpm. it will ask you for your root password and will install

after i did this the vmware installation found the required files in /usr/src/linux

sorry if this doesnt make sense but i am a real newbie to linux and thanks
rberry88 for that post
 
Old 12-23-2003, 11:48 PM   #10
adamwenner
Member
 
Registered: Aug 2003
Distribution: windows xp home, windows 98, red hat 9, fedora core 3, redhat enterprise linux, win2000 pro/server
Posts: 217

Original Poster
Rep: Reputation: 32
allright, this is really not helping, there is sstill nothing in /usr/src/linux.

i installed your package, sn00ps (wow, that sounds wrong) anyway, and it said "everything already installed" because i installed that rpm earlier in this thread, still nothing.

first of all, im gonna reinstall mandrake, get a fresh install before i attempt anything else, let me know what other ideas you have!
 
Old 12-24-2003, 09:27 PM   #11
pb&j
LQ Newbie
 
Registered: Dec 2003
Posts: 2

Rep: Reputation: 0
hey dude this looks kinda the same if you got the trouble still after redoing
http://www.linuxquestions.org/questi...eady+installed
 
  


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
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 06:42 PM
Mandrake 10.1, & 10.2 kernel and kernel-source match up. raxxal Mandriva 1 03-30-2005 11:57 PM
Installing from Source in Mandrake subzero0 Mandriva 4 09-10-2004 02:28 PM
Problem installing Mandrake kernel source rpm Gibson Linux - Newbie 4 07-30-2004 02:42 PM
Installing kernel-source (Mandrake) MentatMM Linux - Newbie 5 12-05-2003 12:34 AM


All times are GMT -5. The time now is 04:52 AM.

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