LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-12-2012, 03:00 AM   #16
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154

I do not run -current so your case does not apply here. However, look in /etc/slackpkg/blacklist for hints on how you may proceed.
 
Old 07-12-2012, 03:34 AM   #17
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
@NightSky: Do you have some hardware not well managed by the current kernel + drivers installed?

Slackware's kernel configuration is made in such a way to accommodate as many pieces of hardware as possible, be it old or new, so I would be surprised that you miss something.

But if that is the case just let us know what exactly is not managed or doesn't behave properly, so we can really help you.

Otherwise, I don't see why you would need to change your kernel's configuration, let alone upgrade it.

Upgrading would be useful only in the case you have some fairly recent hardware, not yet managed by 3.2.21.
 
Old 07-12-2012, 03:42 AM   #18
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
I think it sound like things are getting confused a little here.

With the kernel you have I've no reason to believe any hardware you have wont be supported - you just need to ensure the modules your hardware needs are added into your kernel config. Add anything that is required for initial boot (Filesystem for root device, hard disk controller driver) as compiled-in[*] - everything else as a module [M] and away you go.
 
Old 07-12-2012, 03:51 AM   #19
ChrisAbela
Member
 
Registered: Mar 2008
Location: Malta
Distribution: Slackware
Posts: 572

Rep: Reputation: 154Reputation: 154
Quote:
All i want to do is set the running kernel to the current hardware? Keeping kernel 3.2.21 is not a problem, then keep i can keep running current without running slackpkg install new. Chris have you done this?
Slackpkg tracks your packages. Some packages install the kernels, like /var/log/packages/kernel-*. Yet it is the bootloader (normally LILO via /etc/lilo.conf) that determines which kernel you really boot from. So slackpkg will not know that you have installed a new kernel.
 
Old 07-12-2012, 04:03 AM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
I would add to zordrak's last post that this would be useful in the case you want to use a generic kernel but not an initrd.
 
Old 07-12-2012, 04:06 AM   #21
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by Didier Spaier View Post
I would add to zordrak's last post that this would be useful in the case you want to use a generic kernel but not an initrd.
http://blog.tpa.me.uk/2009/08/30/the-evil-of-initrd/

 
Old 07-12-2012, 05:36 PM   #22
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
@zordrak: I did use to waste a lot of time tweaking my kernel's configuration and even am guilty of some posts on LQ about how to do that.

But now I am back to the initrd way, as it is a lot faster e.g. to install a "generic" Slackware kernel and I didn't notice any significant increase in performance with a customized kernel. Would I really want the best possible performance for my system anyhow, I would choose a source distribution instead of Slackware so that every application, not only the kernel, be optimized.

I can admit though that from an aesthetic point of view an initrd may not be the kind of thing you would dream of
 
Old 07-14-2012, 04:09 AM   #23
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Appreciate everyone's time and assistance

Thanks Chris. lol zordak.. I don't run intrid. Don't have unsupported hardware. Slackware is great this way. I want to remove modules I will never use. Customize kernel setting to the CPU I have installed, ie. High Memory, 1000hz+, Root FileSys, and whatever else will optimize the use of my hardware for multi -media use. I am running vmlinuz-huge-3.2.21 which is a pre-release so I can't recompile it.
zordrak, thank you for posted lin. Following is not a complete quote just what i thought relevant::
Quote:
All you need to do is use the config from the generic kernel you were going to boot.
Go into the kernel config, add them in[*],
make, make modules_install,
move and symlink the new kernel,
update lilo, reboot.
zordrak, No kernel src to download, no mrproper to clean source code? Just go into my huge.config, make changes, set the localversion, make modules_install, mv & dymlink, thats it, to change the kernel config of local version which is the same kernel with the same modules, minus what I strip out.
Code:
/boot$ ls -a
.                          config-huge-3.2.21
..                         inside.bmp
README.initrd              lost+found
System.map                 map
System.map-generic-3.2.21  onlyblue.bmp
System.map-huge-3.2.21     slack.bmp
boot.0800                  tuxlogo.bmp
boot_message.txt           vmlinuz
config                     vmlinuz-generic-3.2.21
config-generic-3.2.21      vmlinuz-huge-3.2.21
Didier, I would love to learn my way around the kernel. Why put regular gas in my engine if I can use hi-octane @ same cost
 
Old 07-14-2012, 07:04 AM   #24
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
localmodconfig

Quote:
Originally Posted by NightSky View Post
Thanks Chris. lol zordak.. I don't run intrid. Don't have unsupported hardware. Slackware is great this way. I want to remove modules I will never use. .....
You might consider make localmodconfig
to remove unused modules.
I have just helped test an upgrade to that configuration tool for the upcoming 3.6 kernel
It does work in 3.2 but gets even better in 3.6
john

Last edited by AlleyTrotter; 07-14-2012 at 07:04 AM. Reason: enter [/QUOTE]
 
Old 07-14-2012, 07:37 AM   #25
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by NightSky View Post
Why put regular gas in my engine if I can use hi-octane @ same cost
Because you won't notice any performance increase in using hi-octane.

Removing modules you will never use won't change anything on your system, but save some space on disk.

If you want to do that you shouldn't take a huge kernel as a basis but a generic one anyway.

FYI in Slackware kernels, High Memory is already set up at 4GB (do you have more?) and Timer Frequency at 1000 HZ.

Oh and vmlinuz-huge-3.2.21 is not a pre-release, it's a stable release.

I suggest you go step by step.

The first step would be to install a generic kernel with an initrd. For that, just follow instructions you will find in file /boot/README.initrd.

After that, come back and we will tell you how to go further, including how to use "make localmodconfig" properly if you want to try that.

Last edited by Didier Spaier; 07-14-2012 at 09:18 AM. Reason: s/localconfig/localmodconfig/.
 
1 members found this post helpful.
Old 07-14-2012, 07:53 AM   #26
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by Didier Spaier View Post
Because you won't notice any performance increase in using hi-octane.

Removing modules you will never use won't change anything on your system, but save some space on disk.

If you want to do that you shouldn't take a huge kernel as a basis but a generic one anyway.

FYI in Slackware kernels, High Memory is already set up at 4GB (do you have more?) and Timer Frequency at 1000 HZ.

Oh and vmlinuz-huge-3.2.21 is not a pre-release, it's a stable release.

I suggest you go step by step.

The first step would be to install a generic kernel with an initrd. For that, just follow instructions you will find in file /boot/README.initrd.

After that, come back and we will tell you how to go further, including how to use "make localconfig" properly if you want to try that.
Actually diddler.
make: *** No rule to make target `localconfig'. Stop.
its "make localmodconfig".
Anyone how examines the script can see its very simple to use it "properly"
thanks
john
 
Old 07-14-2012, 09:14 AM   #27
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
@AlleyTrotter: I corrected the typo, thanks.

As a reminder, the "localmodconfig" target is available since 2.6.32 kernel release, see this thread.

About "properly" let me tell you this though:
1) "Anyone how examines the script..." => my guess is that not all readers of this thread are fluent in sh or bash nor able to find by themselves the script you are speaking about.
2) It's very easy to end up with some not working removable device just because it was not plugged in or not in use before you typed "make localmodconfig".

Last edited by Didier Spaier; 07-14-2012 at 09:17 AM.
 
1 members found this post helpful.
Old 07-14-2012, 02:05 PM   #28
AlleyTrotter
Member
 
Registered: Jun 2002
Location: Coal Township PA
Distribution: Slackware64-15.0
Posts: 783

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Didier

Sorry for the name
I guess I am building kernels for too long.
It's just seems so easy for me.
(Thanks to kernel devs for making it so)
What was hard was downloading 16 or was it 15 floppies
over 1200baud connection
LOL
john

PS special thanks to Pat and the guys/gals? for the great .config to start from, otherwise it would probably be very difficult.

And yes D I know when it became available. The reason for the 3.2 is thats whats in current.

Last edited by AlleyTrotter; 07-14-2012 at 03:10 PM. Reason: and some comments
 
Old 07-14-2012, 10:41 PM   #29
NightSky
Member
 
Registered: Sep 2001
Location: Texas :(
Distribution: Slackware64- 5.15.2
Posts: 909

Rep: Reputation: 55
Didier, I'm familiar with that post & caveats, asked you about your post before. Dummy question how are pre-releases and stable kernels defined & differentiated? Googled the question to no avail that's why I posted /boot content again. Thank you and Alley too. Hopefully i will be able to proceed smoothly now. lol I will let you know.

Last edited by NightSky; 07-14-2012 at 10:46 PM.
 
Old 07-14-2012, 11:31 PM   #30
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Quote:
Originally Posted by NightSky View Post
Dummy question how are pre-releases and stable kernels defined & differentiated?
You can see that on http://kernel.org: kernels whose version end in a number are stables, those ending in -rc<number> are pre-releases (or "mainline" as shown on the website).
 
  


Reply

Tags
kernel rebuild, safe, slackare



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
recompiling a kernel module without rebuiling the kernel? MrUmunhum Linux - General 1 07-24-2011 04:43 PM
difference between kernel recompiling and kernel rebuilding vineet7kumar Linux - General 1 09-27-2007 01:35 AM
Increasing Kernel stack size to 8k without recompiling the Kernel deathman Linux - Software 2 04-08-2006 04:39 AM
Booting kernel defaults Barserk Fedora 3 10-04-2005 05:47 PM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

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

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