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

Notices

Reply
 
Search this Thread
Old 09-24-2012, 02:04 PM   #1
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Rep: Reputation: Disabled
Building a kernel from source.


hi all, is alienBoB's howto

http://alien.slackbook.org/dokuwiki/...kernelbuilding

work for a 3.* kernel?
 
Old 09-24-2012, 02:29 PM   #2
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,385

Rep: Reputation: 181Reputation: 181
Yes. But if you are building a x86_64 kernel, you won't have to enable 64GB of ram. That kernel will already see all your ram. Good luck! Building a kernel is a great exercise.
 
Old 09-24-2012, 02:36 PM   #3
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
Thanks mlangdn, I only have 32 bit systems.
 
Old 09-25-2012, 08:13 AM   #4
vvoody
Member
 
Registered: Apr 2007
Location: Shanghai,China || Sweden
Distribution: Slackware
Posts: 43

Rep: Reputation: 1
Works. Actually, I am running kernel 3.4.11 on Slackware64 current. I just picked up config file from testing/, two options changed(processor family & Preemptible kernel) and followed Alien's instructions.
 
Old 09-25-2012, 09:20 AM   #5
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
I've been using the smp kernel when using 13.37, should I be using the generic config for single core?
 
Old 09-25-2012, 11:34 AM   #6
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,644

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
No, unless you have a very old CPU. If you hit "F2" at time of choosing the installation kernel this will be reminded to you:
Quote:
The default kernel is hugesmp.s, which requires at least a
Pentium Pro
processor. If this kernel doesn't work for you, you may try
the regular "huge.s" kernel, which supports i486 and better single CPU
machines.
Other than that, as we say here Qui peut le plus, peut le moins .

But maybe your question was more "should I choose a generic kernel, versus a huge one".

If that is the case, and whatever you CPU be, though not mandatory switch to generic is generally recommended as in some cases having conflicting drivers buit-in *could* cause problems.

Last edited by Didier Spaier; 09-25-2012 at 12:31 PM.
 
Old 09-25-2012, 05:17 PM   #7
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 876

Rep: Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825Reputation: 1825
Quote:
Originally Posted by Didier Spaier View Post
No, unless you have a very old CPU. If you hit "F2" at time of choosing the installation kernel this will be reminded to you:
Actually, since the smp kernels began using PAE the requirements have increased, and the last installer update also corrected the output of F2. The oldest CPU supported by the 32-bit smp kernels is a Pentium III. There were also a few revisions of the Pentium M that don't support PAE.
 
1 members found this post helpful.
Old 09-25-2012, 05:34 PM   #8
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,644

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
It seems I've quoted /isolinux/f2.txt included in Slackware 13.37 instead of Slackware current. Oh, well...
 
Old 09-25-2012, 11:02 PM   #9
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
This is the ouput of proc/cpuinfo

http://pastebin.com/5w47iuQj
 
Old 09-26-2012, 03:26 AM   #10
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,644

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
Then you can safely use the smp kernel. As side note, the output of "uname -p" would have been sufficient.
 
Old 09-26-2012, 09:49 AM   #11
schultzter
Member
 
Registered: Sep 2009
Distribution: Arch Linux
Posts: 40

Rep: Reputation: 3
Has anyone tried starting with a config from http://kernel-seeds.org/? I was going to try this at some point to get the latest kernel running, our of curiousity not necessity, but haven't had the time yet.
 
Old 09-26-2012, 10:12 AM   #12
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,644

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
Quote:
Originally Posted by schultzter View Post
Has anyone tried starting with a config from http://kernel-seeds.org/? I was going to try this at some point to get the latest kernel running, our of curiosity not necessity, but haven't had the time yet.
I won't.

I just had a look there and would advise anybody wanting to tweak their kernel's configuration or install a newer kernel not included in Slackware to use one of the config files shipped with Slackware (either in /boot or in /testing) as a basis, copy it at the root of your (possibly new) kernel source tree then run "make oldconfig" followed by "make xconfig" instead.

As for taking in account your hardware configuration e.g. running "lspci -k" or "cat /proc/cpuinfo", of course you can do that yourself. Use the search feature (Ctrl+F) of "make xconfig" to help you finding you way in the kernel tree and don't forget to edit the LOCALVERSION string to avoid overwriting the stock kernel and modules.

Last edited by Didier Spaier; 09-26-2012 at 10:20 AM.
 
1 members found this post helpful.
Old 09-26-2012, 12:16 PM   #13
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
Ok, i'm using this new kernel. I want to create a kernel package, so when I reinstall I don't have to keep building the kernel. Would the script on a previous post on LinuxQuestions work?

http://www.linuxquestions.org/questi...ackage-369142/

Maybe modifying it to add my .config file for building.
 
Old 09-26-2012, 12:40 PM   #14
Didier Spaier
Senior Member
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware{,64}-{14.1,current} on a Lenovo Thinkpad T61 6457-4XG
Posts: 4,644

Rep: Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231Reputation: 1231
I would suggest you use the SlackBuilds provided in /source/k instead. You will have to replace the source tarball and its signature file, the config file and either edit the VERSION variable in the relevant SlackBuilds or execute them like this : "VERSION=<your kernel version> /path/to/the/SlackBuild"

Last edited by Didier Spaier; 09-26-2012 at 02:58 PM.
 
1 members found this post helpful.
Old 09-26-2012, 12:53 PM   #15
cod_liver_0il
Member
 
Registered: Apr 2012
Location: India
Distribution: Slackware, FreeBSD
Posts: 48

Original Poster
Rep: Reputation: Disabled
Thanks Didier Spaier, i'll give that ago.
 
  


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
[SOLVED] Building kernel from source at /usr/src as user Alkin Slackware 17 04-06-2012 09:48 AM
Building largesmp kernel from source maxy7710 Linux - Newbie 3 09-08-2009 06:17 AM
Building nvidia-kernel-source error log jonasan Linux - Software 1 05-28-2006 10:52 PM
Building kernel module from multiple source file in 2.6 kernel yogeshwar_s Programming 1 12-20-2004 10:31 AM
help for building a kernel from source sh4d0w331 Slackware 5 09-28-2004 02:27 PM


All times are GMT -5. The time now is 09:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration