LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-07-2003, 11:31 AM   #1
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 46
compiling a kernel somewhere other than /usr/src


hi - i have a doubt.
most documents talk about compiling the kernel under /usr/src. then compiling the modules under /usr/src where the kernel is built.

if i build the kernel in some other place, for instance, /home, and have a sym link in /usr/src, to the /home dir where the kernel source is, where should i be compiling the modules? should i do it under /usr/src OR /home - where the source is?

thank you once again for the invaluable help.
 
Old 09-07-2003, 11:36 AM   #2
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Although I'm not kernel expert, I would think you would be doing all your compiling in the /home directory where you've actually got the source files. I think that the kernel or modules don't care where they are compiled, rather the /usr/src is a convention so that other things (like video drivers) that need the kernel configuration and source know where to look. In which case, you should have it covered with your link.
 
Old 09-07-2003, 11:40 AM   #3
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
umm, so you say that i should do it in the '/home' dir then?
i havent ever compiled the pcmcia modules yet, so i just wanted to be sure b4 i started.
ok, so apart from the "linux" symlink in '/usr/src' , are there any other links i should create if i have to install the pcmcia-source, and compile them?

thanks a million.
 
Old 09-07-2003, 06:18 PM   #4
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
I think compiling in the /home should work. The bit you'll have to pay attention to is installing the kernel and modules to the right places once the compiling is done.

And just to be safe, be sure you have a backup kernel. Before I started compiling kernels, I copied my existing kernel to vmlinuz.good and my System.map to System.good and made a new entry for them in in lilo. That way, no matter how badly I screw up a kernel compile, I've got a good kernel ready to roll.
 
Old 09-07-2003, 07:34 PM   #5
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 46
right.
 
  


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
Compiling in /usr/local/src yougene Linux - Newbie 10 11-27-2005 09:23 AM
Making /usr/src/kernel-2.6.5 RacerD Linux - Software 3 04-16-2004 10:41 AM
Kernel Compiling not possible, Directory /usr/src/linux-2.4 isn't there rover Linux - Software 4 09-24-2003 09:05 AM
Creating /usr/src/linux-<xx> from kernel.<xx>.src.rpm jmourik Linux - Newbie 2 02-19-2003 04:24 PM
no kernel in usr/src/Linux elite Linux - General 11 10-28-2002 06:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:53 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
Open Source Consulting | Domain Registration