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


Reply
  Search this Thread
Old 08-20-2007, 07:53 PM   #556
perry
Member
 
Registered: Sep 2003
Location: USA & Canada
Distribution: Slackware 12.0
Posts: 978

Rep: Reputation: 30
Thumbs up Slackware 12 / 2.6.21.5 SMP Kernel Compiling!


Just so you know, I had a really good day to day, managed to find a really good thread on how to compile my kernel (finally), posted here and here's a link to it!

And right under that you'll find instructions for setting up CPU Frequency Scaling.

Have a nice day,

- Perry
 
Old 08-22-2007, 05:24 PM   #557
moob8
Member
 
Registered: Sep 2006
Distribution: slackware
Posts: 132

Rep: Reputation: 15
So I ran slack 11 for a year, using the precompiled 2.6 "huge" kernel that came with it. No problems. I like 2.6 and I like udev and I was used to it from a previous non-slack distro. I've now switched to slack 12 and I am using the prebuilt 2.6 "huge" kernel. Again, no problems.

I would like to compile the kernel, using all of the settings that Patrick used, as they are working well for me. From my pre-slack days, when I used to compile the kernel often: recall that I would do something like this:
Code:
cd /usr/src/linux
make menuconfig
make
Then I could copy the three files over to /boot/and make changes to the bootloader.
  • Will this method work nowadays in slack 12?
  • Do I need to install another package from the DVD prior to compiling?
Thank you.
 
Old 08-23-2007, 06:07 AM   #558
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
If you want to use Patrick's settings you should use one of his config files. I think you will find them in the boot directory.

There seems to me to be little point in simply recompiling the huge kernel. Perhaps you should be trying out the smaller pre-compiled kernels. If they do not work for you, you can look at their configuration and change whatever has to be changed. Of course you will have to create an initrd file if you do that.

I run a kernel that I have compiled based on Patrick's 2.6 smp config but optimised for an Athlon processor and with ext3 support built in to the kernel to spare the need for initrd.
 
Old 08-23-2007, 07:25 AM   #559
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
same as what i do - except i use ext2 (hey i like undelete ) but i norm just change cpu and filesystem
 
Old 08-24-2007, 07:41 AM   #560
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&14.1
Posts: 119

Rep: Reputation: 15
Hi,
While I have been using Slackware for some time I have always been happy with the kernels as provided.
However 12 has given me the encouragement to try to compile my own.

The first problem I encounter is at the make oldconfig stage when I get a lot of error messages all concerned with scripts/basic/fixdep.c. Typical but not limited to :-

PROT_READ undeclared
MAP_PRIVATE undeclared
stderr undeclared

Looking at copies of fixdep.c on websites I can not see anything wrong with my copy and there is no mention of header files not being found. The computer was wiped clean before installing 12 and 12 is the only operating system on the computer so whatever headers it finds come with 12.

Can any member explain what is going wrong ?

John
 
Old 08-26-2007, 01:16 PM   #561
yoron
Member
 
Registered: Nov 2005
Posts: 120

Rep: Reputation: 15
Is there a kernel for the new quadra core processors from Intel too?
 
Old 08-27-2007, 02:18 AM   #562
jowa45
Member
 
Registered: Apr 2007
Location: Stockholm, Sweden
Distribution: Slackware11&14.1
Posts: 119

Rep: Reputation: 15
Please do not answer my above post. I have now found the problem myself. There was something wrong with my glibc installation and reinstalling it has got me further along.

John
 
Old 12-12-2007, 01:05 AM   #563
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Rep: Reputation: 30
How to check new kernel is installed properly

hi guys i tried compiling new kernel 2.6.23 from kernel.org to upgrade my default huge-smp kernel in slackware 12. the compilation went succesfully and i copied bzImage from the /boot folder of new kernel to /boot/vmlinuz and System.map to /boot folder and run /sbin/lilo. lilo setup went smoothly and i re-started my system to test the new kernel. system booted smoothly and every thing works fine but when i run uname -r it shows kernel is 2.6.21.5-smp instead of new kernel 2.6.23. got bit confused wheather new kernel is installed or not.
 
Old 12-12-2007, 03:39 AM   #564
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Did you edit your '/etc/lilo.conf' to boot the new kernel ? Maybe you should, and then run 'lilo'. I would keep the old kernel there in case the new kernel was not compiled properly and panics on boot.
 
Old 12-12-2007, 04:41 AM   #565
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Rep: Reputation: 30
yes i edited lilo.conf to boot the new kernel. all works fine and the system starts up but shows it's booting kernel 2.6.21.5-smp. uname also shows kernel version is 2.6.21.5-smp. got confused where i had missed.
 
Old 12-12-2007, 07:35 AM   #566
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
Then post your 'lilo.conf' it must not be right. Also post the contents of your '/boot' directory. If you want, you can do this in the other post you made:
http://www.linuxquestions.org/questi...oblems-606237/
 
Old 12-13-2007, 11:33 PM   #567
gopi.d
Member
 
Registered: Feb 2006
Location: India
Distribution: Slackware 12, Fedora 7, Kubuntu-7.04
Posts: 172

Rep: Reputation: 30
again i ran into problem when i re-compiled the kernel for audio support. so i had re-installed adn tried to compile the kernel 2.6.23 from kernel.org. now this time make oldconfig prompts for lots of options and made make menuconfig and installed the kernel but the kernel hanged with kernel panic unable to mount root file system and system froze. i used rescue disk and changed lilo to old kernel and booted into slack 12 and tried to compile again but again it asks for the same options while making make oldconfig. it seems to me that there is problem in the old .config file so how to compile the kernel correctly. i tried with menuconfig and chose the options related to my hardware but no sucess again the kernel freezes with same error. tell me how to make config from the running kernel, or will it be right to re-compile the default huge-smp kernel and install it again and use the .config file to compile new kernel.
 
Old 12-14-2007, 12:16 AM   #568
Alien_Hominid
Senior Member
 
Registered: Oct 2005
Location: Lithuania
Distribution: Hybrid
Posts: 2,247

Rep: Reputation: 53
grab config file from huge or generic slackware kernels
 
Old 12-14-2007, 01:07 AM   #569
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
Hello

last night i was tinkering,just wasting time, compile kernel 2.6.23.9,following most of the config from stock 2.6.21.5.
1st question:
It seems booted ok,but when I want to shutdown, the system just halted and freeze instead of halted and shut down completely.
Do you know what went missed with my config?

2nd questions:
my step after the new kernel is built (beside editing lilo and copy files to /boot) is I
Code:
#cp ~/rc.modules-2.6.21.5 ~/rc.modules-2.6.23.9
and edit the rc.modules-2.6.23.9 if necessary.
And I never use depmod.Don't know how to use it.
Is this correct?
What is the correct way related to configuring new modules for the new kernel?

tnx.
 
Old 12-25-2007, 04:01 AM   #570
hottdogg
Member
 
Registered: Aug 2004
Distribution: opensuse ,debian/ubuntu
Posts: 222

Rep: Reputation: 30
Well, my 1st question has been solved.
I have to set:
CONFIG_ACPI_BLACKLIST_YEAR=0

-edit-
just fyi,my asus p3bf m/b is pre-2001 but it can run acpi.

Last edited by hottdogg; 12-25-2007 at 04:04 AM.
 
  


Reply



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
Help - Need guide on how to (re)compile kernel in 9.2 timko SUSE / openSUSE 1 02-17-2005 08:17 AM
re :kernel compile guide sh4d0w331 Slackware 1 10-02-2004 05:38 PM
Kernel re-compile guide marlor Slackware 6 08-08-2004 03:57 AM
What happened to the Newbie Compile Guide? boutrosboutros Slackware 6 07-14-2004 12:37 AM
mandrake specific kernel compile guide? e1000 Mandriva 4 01-09-2004 12:27 PM

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

All times are GMT -5. The time now is 07:09 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