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 05-13-2006, 04:04 AM   #1
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Rep: Reputation: 30
Installing Slackware on a custom kernel


I have a very lean kernel on my desktop slackware computer (yeah, I'm proud of it). I installed it all onto one partition, and I am going to reinstall it with a better partitioning system, and I was wondering if it is possible to install Slackware using my current kernel? I am guessing I could just keep my .config file and copy it into the source directory after installing and then recompile that, but I thought this way would be cooler, if it is possible.
 
Old 05-13-2006, 03:02 PM   #2
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
You SHOULD be able to add it to the /kernels folder on your slackware install , reimage the iso and burn again. Not sure if there is a list where you can add it in to the list of kernels tho....From what I can figure out, just mkdir /kernel/kernel.i or whatever you wanna name it, copy in the bzImage, config, and System.map, and it SHOULD show as a installable kernel.

Let us know if it works...If it does, you should be able to make the source as a package, and add that in too.

I'm VERY interested in this. If it works for you, I'll try it too. (Why I don't do it first: I only have three blank cd-r disks right now....lol)
 
Old 05-13-2006, 06:42 PM   #3
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
Right, well I am going to work for about 3 hours today (Sunday, bleh ) when I get home I will try it. I mean, whats the worst that can happen? Another coaster?
 
Old 05-13-2006, 06:45 PM   #4
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
True. You can then mail it to AOL here in the States. Maybe they'll get the hint....
 
Old 05-13-2006, 09:47 PM   #5
Old_Fogie
Senior Member
 
Registered: Mar 2006
Distribution: SLACKWARE 4TW! =D
Posts: 1,519

Rep: Reputation: 63
LOL AOL coaster, I have a ton of em' here too.

Hey if you get that working how to use a custom kernel at install can you post how you did it? I'd really be interested how that is done PLEASE pretty PLEASE

Fogie
 
Old 05-13-2006, 09:53 PM   #6
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Hey, If the OP does not, I'll track 'em down and bludgeon 'em across the torso with a bag of AOL disks.....

Actually, I'm working on doing that(making the custom install cd/kernel) right now...Got some more blanks. Now, if my cd drivr stays working (Been burning only half a disk lately, no matter what os I use...Might have to burn it on the wife's XP box ....shudder...)
 
Old 05-14-2006, 05:54 AM   #7
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I thought of a smallish issue....No modules for the custom kernel....
Might be able to copy them from /lib/kernel

Also, may need headers. From where, I do not know. I look more into this as it goes...
 
Old 05-14-2006, 08:32 AM   #8
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
Yeah I just dumped the files and burnt. Didnt work, coaster #1.

Reburn, this time with the whole current directory (I know I could do it over the network, but I am not sure how) that I use. ie no KDE or emacs etc. This didnt boot. I forgot to make it a bootable cd! Coaster #2... or is it? I booted from my slack cd and did a swap at the prompt. It worked! Everything ran and installed perfectly. So I rebooted. No text after lilo. I don't know what happened here to be honest. I did a blind log in and started XFCE, that brought my monitor to life, just no CLI at boot.

I fiddled with that for a while, even compiled the kernel again via SSH. Still nothing. This is the same kernel that worked before this reinstall, so who knows. So I just reinstalled with my normal slack cd and am compiling my custom kernel from my .config file. I happened to get my hands on an old P3 system which I'll pick up on Wednesday, and which will become my test system for getting this to work I think. It will be interesting

cwwilson, I just wanna be sure before I try again, how would I burn a bootable slack disk?
 
Old 05-14-2006, 09:02 AM   #9
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
This looks interesting. Just a couple thoughts, I've never actually done this...

I don't think you need to fuss with the kernel headers. I think you just need the kernel headers for the kernel version used to build glibc.

hsimah... to burn a bootable CD, there's a README on the first install disk at /isolinux/README.TXT.

Last edited by jimX86; 05-14-2006 at 04:32 PM.
 
Old 05-14-2006, 09:13 PM   #10
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
I used a mirror script to make the mirror and the ISO's for current. The only issue is that it would remove my "additions" before it would make the iso.

So I added a few lines in to add the files back before it made the iso....And it worked. Unfortunately, I have only one blank cd right now. I'll burn cd1 and see if it lets me start the process and install the custum kernel at the end of the install. (can do the rest later). At least it will let me kow if the kernel would work.

If it's successfull, I'll post a step by step here, maybe even a mini HOW-TO.
 
Old 05-14-2006, 11:02 PM   #11
hsimah
Member
 
Registered: Jan 2006
Location: Australia
Distribution: Slackware 12.1
Posts: 173

Original Poster
Rep: Reputation: 30
Cool, I hope it works .

I am having a weird problem with my install of slack on my desktop. I copied the .config file out of my /usr/src/linux directory (2.4.31 kernel) and reinstalled with the default options from my 10.2 CDs. My ethernet card decided it didnt want to work, but I eventually fixed that by using DHCP instead of static IP address (I do like my IP's static though). Then I did a make mrproper in the source directory and copied in my .config and did make menuconfig, it seemed to be the same (I'd assume it should be) as before my reinstall, so I compiled it (make dep, make clean, make bzImage, make, make install, make modules, make modules_install) and rebooted. Now I get an error at startup with regards to agpgart... I have no idea why it is not working this time! I think I'll jsut format and reinstall again, with the a new slack CD, mines several months old now and fairly scratched.
 
Old 05-15-2006, 12:15 AM   #12
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,711
Blog Entries: 7

Rep: Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820
Quote:
Originally Posted by hsimah
I was wondering if it is possible to install Slackware using my current kernel?
Why do you want to do this? I usually install Slackware using the stock kernel, then copy my custom kernel across.

Never had a problem doing things this way.

I've found it handy to make a CD containing my custom kernel (including System.map, config, modules and source tree) and complete copies of my /etc & /var directories.
 
Old 05-15-2006, 12:26 AM   #13
cwwilson721
Senior Member
 
Registered: Dec 2004
Location: In my house.
Distribution: Ubuntu 10.10 64bit, Slackware 13.1 64-bit
Posts: 2,649
Blog Entries: 1

Rep: Reputation: 67
Mostly, because it's an interesting project. Better than sleeping....
 
Old 05-15-2006, 12:44 AM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,711
Blog Entries: 7

Rep: Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820Reputation: 2820
Quote:
Originally Posted by cwwilson721
Mostly, because it's an interesting project. Better than sleeping....
Yes, but it would become redundant as soon as the installation is finished. Time better spent sleeping, IMO...
 
Old 05-15-2006, 07:49 PM   #15
jimX86
Member
 
Registered: Mar 2006
Distribution: Slackware64 -current
Posts: 268
Blog Entries: 1

Rep: Reputation: 79
Quote:
Originally Posted by rkelsen
Why do you want to do this?
Because it's there?

To become one with the system?

Seriously, I do a pretty lean install on my laptop, and I'm reckless with experimenting on it. I always burn an install disk with custom tagfiles anyway, so that I can easily reinstall. I might as well toss my own kernel on there too. I'll give it a try after the next release. (cwwilson... if you get there first, I would be interested in knowing what you did.)
 
  


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
LXer: Installing Xen 3.0 upon Debian Unstable, with a custom Kernel LXer Syndicated Linux News 0 01-03-2006 12:31 PM
Slackware 10.1 installation with custom build kernel zWaR Slackware 5 08-09-2005 03:29 AM
Slackware 10, custom 2.6.7 kernel, lilo, loads kernel very slowly entropyv Slackware 3 08-19-2004 07:06 PM
Installing Slackware CD 9.1 using custom kernel (sata) bonecrusher Slackware - Installation 7 04-07-2004 02:34 AM
Installing MDK 9.1 with custom BOOT kernel n03lm Mandriva 1 09-04-2003 10:07 PM

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

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