Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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.
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.