LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


View Poll Results: Where is your kernel source?
/usr/src/linux-<version> 89 84.76%
/home/<username>/linux-version 9 8.57%
Other (please state in thread) 7 6.67%
Voters: 105. You may not vote on this poll

Reply
  Search this Thread
Old 09-14-2006, 09:47 AM   #46
raska
Member
 
Registered: Aug 2004
Location: Aguascalientes, AGS. Mexico.
Distribution: Slackware 13.0 kernel 2.6.29.6
Posts: 816

Rep: Reputation: 31

Actually it seems more like Zero Wing now that you notice... LOL my mistake
 
Old 09-14-2006, 12:15 PM   #47
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Quote:
Originally Posted by Bruce Hill
Just a minor aside to the above ... when a person first starts configuring a kernel, he's going to have that "make xconfig" (where x is a variable) open a long time. This doesn't have to be run as root, which would be better for guys new to configuring a kernel. The configuration process is the most strenuous portion of the kernel rebuild process. In this step you are deciding which features will be included in the final kernel and it can require lots of hardware knowledge. These decisions are important to getting a good kernel build, and will therefore require much time.
When xconfig first came out, I didn't have a lot of success with it. I had some kernel builds that didn't go quite right, and the only thing I was able to track it back to was xconfig. I was also working on a much slower processor than I am now, and having X running during the compile measurably lengthened my compile times. So I got used to using menuconfig. Now when I configure and compile a kernel, I will open an xterm, su to root, cd to /usr/src/linux, configure with menuconfig, compile and do all the other stuff up to the reboot, and then when I exit root, I am back in my home directory again safe and sound.
 
Old 09-14-2006, 02:36 PM   #48
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,274

Rep: Reputation: 63
Just like when I first installed Slack. I actually did change it to a subdir in /usr/local/src because my /usr/local/src is a seperate hard disk with all space devoted to that dir. And my /usr/src is a symlink to /usr/local/src/kernel.

But on my laptop it's just /usr/src/linux-<version>.
 
Old 09-14-2006, 06:33 PM   #49
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Originally posted by tuxdev
Quote:
Where do you decompress your kernels to?
So this is the show and tell answer to the question you asked:
Code:
mingdao@silas:~/kernel$ pwd
/home/mingdao/kernel
mingdao@silas:~/kernel$ tar xvjf linux-2.6.17.13.tar.bz2
which created /home/mingdao/kernel/linux-2.6.17.13/
from whence I do not move the source.
 
Old 09-14-2006, 06:39 PM   #50
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
Originally posted by hussar
Quote:
When xconfig first came out, I didn't have a lot of success with it. I had some kernel builds that didn't go quite right, and the only thing I was able to track it back to was xconfig. I was also working on a much slower processor than I am now, and having X running during the compile measurably lengthened my compile times. So I got used to using menuconfig. Now when I configure and compile a kernel, I will open an xterm, su to root, cd to /usr/src/linux, configure with menuconfig, compile and do all the other stuff up to the reboot, and then when I exit root, I am back in my home directory again safe and sound.
The only difference in "menuconfig" and using "xconfig" is the menu
from which you configure the options. Once you save and exit from
"make <x>config" it's all the same. You are saving those options to a
file, and after than you're not using "xconfig" so compiling times are
in no way effected.

NB: Where <x> is a variable, meaning any of the options.

Last edited by Bruce Hill; 09-14-2006 at 06:46 PM.
 
Old 09-14-2006, 09:44 PM   #51
DJNolz83
Member
 
Registered: Aug 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
This thread is a god-send!

Reading through most of the posts here has given me some idea about where to place my kernel sources and do the builds etc etc.
At my previous attempt to compile a kernel (my first time!!) I have been able to get it down pat, and boot to it, but two of my REQUIRED modules(madwifi and nvidia) wont load. Someone mentioned to me that its not able to find the sources in the standard folder. This has something to do with the fact that I was unpacking and placing my source(s) into /usr/local/src.

So I guess it is almost agreed on that the best place to unpack/put the sources is /usr/src/linux* (where * represents version number)

By the way, are symlinks permanent, or are they temporary?
 
Old 09-14-2006, 09:48 PM   #52
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Quote:
Originally Posted by DJNolz83
So I guess it is almost agreed on that the best place to unpack/put the sources is /usr/src/linux*
Right is Might, not the other way around

Last edited by dive; 09-14-2006 at 11:41 PM.
 
Old 09-14-2006, 11:37 PM   #53
hussar
Member
 
Registered: Oct 2003
Location: Heidelberg, Germany
Distribution: Slackware 11.0; Kubuntu 6.06; OpenBSD 4.0; OS X 10.4.10
Posts: 345

Rep: Reputation: 30
Quote:
Originally Posted by Bruce Hill

The only difference in "menuconfig" and using "xconfig" is the menu
from which you configure the options. Once you save and exit from
"make <x>config" it's all the same. You are saving those options to a
file, and after than you're not using "xconfig" so compiling times are
in no way effected.

NB: Where <x> is a variable, meaning any of the options.
Yep, you are absolutely right. But, I have to run X to run xconfig (where x is one of the configs that requires X to be running), and X's resource requirements were slowing my compiles. To get a faster compile, I had to exit X. If I had to exit X anyway, it made more sense to me not to start it at all. I can run menuconfig from the console without X running and without using all those resources. Now it doesn't really matter because of the current processor speeds but back then it did.
 
  


Reply

Tags
kernel source, slackware



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
LXer: Canadian Feds put open source into active service LXer Syndicated Linux News 0 09-06-2006 03:54 AM
apt-get kernel-source is installing the wrong kernel source. JordanH Ubuntu 10 07-08-2005 05:42 PM
I just cant get it right: If I download the kernel source, where do I put the files? Shagrath239 Slackware 6 02-14-2005 09:13 PM
how to put and manage source rpms in cvs abhis_mail2002 Linux - Networking 4 12-23-2004 05:46 AM
what is the best source to put on apt-get source list j.vilon Debian 3 09-28-2004 08:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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