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.
|
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) |
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?
|
True. You can then mail it to AOL here in the States. Maybe they'll get the hint....
|
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 :D Fogie |
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...) |
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... |
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? |
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. |
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. |
Cool, I hope it works :D.
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. |
Quote:
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. |
Mostly, because it's an interesting project. Better than sleeping....
|
Quote:
|
Quote:
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.) |
So far, I've made coasters....Dang cdrw drive...Well, it is 7 years old...lol
I will outline what I did when I successfully complete it.... |
I did done did it!
Give me a bit to write up how I did it. I'm getting old and creaky here, and the brain doesn't work as fast as it used to.
But It DOES install your custom kernel right off the bat. You do have to install sources, modules later, just like test26.s. But I'll have everything outlined in the article. |
Not For Newbies!!!!!!!!!
NOT FOR NEWBIES!!!!!
Here's how I did it: 1: Make sure your custom kernel has the cdrom filesystem and ext2 options COMPILED IN. (Or you'll get the dreaded VFS: Kernel Panic error). 2: Make a /saved directory: Code:
mkdir /saved Code:
cd /saved 3: Make sure you have 'checkinstall' installed on your system. If not, you can install it from the 'extras' directory that will be made later. 4: Get this file: http://www.slackware.com/~alien/tools/mirror-slackware-current.sh Edit it to your specs, and add in the 'forced' option so it always makes an iso, then save it. I put it in /sbin, then make it executable. 5: Run 'mirror.sh'. Burn a copy of the resultant iso's to make sure everything works. 6: Go to your kernel source directory, i.e. /usr/src/linux (I always symlink linux to my current kernel). Run 'makepkg' to make a 'source' package. Name it something with 'source' in the filename, and save it to /saved. 7: Stay in /usr/src/linux, and run 'checkinstall', saving the resultant file with 'kernel' in the name, and in /saved again 8: Copy your vmlinuz, config, and System.map to /saved/custom.i . Compress your System.map to a .gz file, and delete the System.map file. Rename the files so they are 'bzImage','config' and 'System.map.gz' 9: Go to /lib/modules/name-of-kernel and run 'makepkg' with 'module' in name, and save it to /saved 10: Go to your 'slackware-current' dir. 'cd' to 'isolinux', and open the 'isolinux.cfg' file. Add in the 'custom.i' kernel. Here's mine as an example: Code:
default /kernels/bare.i/bzImage initrd=initrd.img load_ramdisk=1 prompt_ramdisk=0 ramdisk_size=6464 rw root=/dev/ram SLACK_KERNEL=bare.i 11: Open edit the 'f3.txt' file, and add in your 'custom.i' kernel info, and save to /saved 12: Go to your 'mirror.sh', and edit that. Find the following lines: Code:
cd ${SLACKROOTDIR}/${SLACKCURRENT} Code:
mv /saved/isolinux.cfg /slackware-current/isolinux/isolinux.cfg Now, I haven't done a full install again yet, just the beginning part to see if the custom.i kernel loads, and it does. After install is over, and you rebooted, go to 'testing', and installpkg on all your new kernel packages. Hope this helps. I am now going to 'recompile' my bloody kernel again, and do the same process, including a fresh install.... My next post on this thread should be with the new custom.i kernel installed by the installer.... |
Whoa. Man, once you've started on something, you don't let go, do you? Nice work.
One trivial suggestion... and I hope this isn't annoying after all the heavy lifting you did to solve this. Since you built packages for the modules and source, you could move them to the appropriate disk sets and add the package name to the tagfiles. That way the install disk will do the work instead of installing them by hand afterwards. I appreciate your taking the time to write this up. I'm definitely doing this for 11.0. |
I was limted to the 'mirror.sh' and rsync. When mirror.sh runs, rsync erases everything that is not on the 'master' mirror....And for whatever reason, I couldn't write a script that would do what I wanted, so...
It works. A little kludgy, but it works. It's installing right now on my spare, so I'll let you know. |
Dang it. Forgot to have ext2 support compiled.
Once more into the breech (At least I'm using rw disks...Third time's the charm...) |
OK. It works. I need to work on the kernel-modules and source, but it DOES install the custom kernel.
Unfortunately it does not work correctly if you START with the custom kernel and try to install over the network (no module for the ethernet card.) Minor inconvenience, I just booted with the test26.s, at the end installed the custom.i, extracted the modules to the correct place, extracted the source also, and here I am. Anybody know how to get the packages (module,source) to auto-install/extract to the correct directories? I haven't looked into makepkg or checkinstall much. I could just be missing a switch or something. Plus, for whatever reason, 'testing' did not burn to my 2 cd's. Any help? |
All times are GMT -5. The time now is 05:44 AM. |