LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Closed Thread
  Search this Thread
Old 05-17-2003, 08:45 PM   #106
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
Question To teacup:


Haven't heard from you in a while, was just wondering how things went. Let me know
 
Old 05-17-2003, 08:51 PM   #107
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
Quote:
That's for if you're doing a patch or step upgrade, like going (as for example only: ) from 2.4.20 to 2.4.20.95

The 95 is what you would put if you were doing that.

Like:
VERSION = 2
PATCHLEVEL = 4
SUBLEVEL = 20
EXTRAVERSION = 95

If you're just recompiling the same kernel, don't put anything there.

Hope that helps.
Thanks, all help is definately appreciated.
 
Old 05-17-2003, 08:55 PM   #108
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
One more question. How would I set it up so that I can have 2.4.18 and 2.4.20 kernels?
 
Old 05-17-2003, 09:03 PM   #109
Aussie
Senior Member
 
Registered: Sep 2001
Location: Brisvegas, Antipodes
Distribution: Slackware
Posts: 4,590

Rep: Reputation: 58
Rename the 2.4.18 kernel image from vmlinuz to vmlinuz-2.4.18, don't forget to update your lilo.conf and run lilo after.
 
Old 05-17-2003, 09:12 PM   #110
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
An even easier question with a longer answer, lol. And be warned, I've never actually tried this, and don't understand why you'd want to do this, but it should work.

First off, keep both source directory trees seperate

/usr/src/linux-2.4.18
/usr/src/linux-2.4.20

Go into each directory and compile each, and under each one, after compiling, copy arch/i386/boot/bzImage to /boot/vmlinuz-ide-2.4.18 and /boot/vmlinuz-ide.2.4.20 respectively. Don't forget to copy System.map and .config to /boot/ appropriately as well.

Finally, just edit /etc/lilo.conf to reflect each one, for example (and this is just the section of it that matters [and assuming your root partition is /dev/hda1]):
# Linux bootable partition config begins
image = /boot/vmlinuz-ide-2.4.18
root = /dev/hda1
label = LinuX_2_4_18
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
image = /boot/vmlinuz
root = /dev/hda1
label = LinuX_2_4_20
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends

Finally, just run lilo (maybe with the -v option to make sure it came out ok).
That should do it.

Good luck! (And I mean that, because this is theoretical based on helping teacup with his/her problem, as, like I said, I've never actually tried it myself.)

Last edited by TheDot; 05-17-2003 at 09:14 PM.
 
Old 05-17-2003, 09:32 PM   #111
teacup
Member
 
Registered: Mar 2003
Location: Rockford, Illinois
Distribution: Slackware Debian
Posts: 86

Rep: Reputation: 15
Heh... I had to fix the lawn mower and mow the lawn today.

OK. I made the changes to lilo using chroot and I got both kernels to display on the lilo boot menu. When I chose the new kernel (mykernel) I got a black screen with active hard drive lights. When I chose the old one (slack_old) it booted up just like it always did (no keyboard). I know that slack_old is my original working kernel because of the creation date. How would compiling a new kernel affect my old kernel's operational status? Grr...

So then, I tried recompiling the kernel again after changing some options and I get another blank screen. I have used shift + ? to check out every the information about every feature both times. I don't have a clue what I'm missing.

I deleted the older new kernel and replaced it with my original kernel.

At least I've learned about the chroot command now. Never used that before.
 
Old 05-17-2003, 10:01 PM   #112
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
Yeah, it comes in pretty handy sometimes

I'd recomend reinstalling /slackware/a/kernel-ide-2.4.20-(??).tgz (I forget the rest, but it's [supposed to be, even though it has minor differences] the same kernel as bare.i under kernels/ on the CD), slackware/k/kernel-source-2.4.20-(??).tgz (again, forgetting), /slackware/d/kernel-modules-2.4.20(??).tgz, and /slackware/d/kernel-headers-2.4.20(??).tgz to make sure everything's nice and clean, then recompiling, and see if you get the same problems. If you do, and it's not a big deal for the stuff you're trying to change, I wouldn't worry too much about it.

Take care

Last edited by TheDot; 05-18-2003 at 02:53 PM.
 
Old 05-18-2003, 08:36 PM   #113
teacup
Member
 
Registered: Mar 2003
Location: Rockford, Illinois
Distribution: Slackware Debian
Posts: 86

Rep: Reputation: 15
Ok reloading those packages and recompliling gives me a working kernel. Yea!

My old kernel that used to work still will not work, but whatever...

I'll have to play around with some stuff to make sure everything is working properly, but I feel relief now.

Thanks.
 
Old 05-18-2003, 10:01 PM   #114
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
Thumbs up Awesome!!

Glad to hear stuff is working better for you.

Have fun, and good luck!
 
Old 05-21-2003, 12:33 AM   #115
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Rep: Reputation: 30
okay i am a newb.. and i read the first post on how to create a kernel for a newbie... and i got to this point

If you are using 8.1 or later, open /usr/src/linux/Makefile in a text editor, scroll to line 74 and
uncomment the the line #export INSTALL_PATH=/boot.
For 8.0 you must leave this line commented.

So...cd /usr/src/linux

pico Makefile

scroll to line 74 and
uncomment the the line #export INSTALL_PATH=/boot.
For 8.0 you must leave this line commented.

but i dont have a linux directory in my /usr/src... where is the Makefile?
 
Old 05-21-2003, 01:53 AM   #116
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
So I take it you downloaded the source from somewhere rather than installing from the CD, which would have created the /usr/src/linux directory.

However, it's easily fixable:
cd /usr/src
ln -s linux-(hit tab to autocomplete for kernel version) linux

wallah!

Last edited by TheDot; 05-21-2003 at 02:18 AM.
 
Old 05-21-2003, 05:38 AM   #117
quietguy47
Member
 
Registered: Mar 2003
Location: Everett
Distribution: Slackware
Posts: 805

Rep: Reputation: 35
Instead of this:
Quote:
So...cd /usr/src/linux

pico Makefile
try this:
pico /usr/src/linux/Makefile

 
Old 05-21-2003, 07:09 AM   #118
DaOne
Member
 
Registered: Jan 2003
Location: USA
Distribution: Slackware
Posts: 498

Original Poster
Rep: Reputation: 30
Quote:
but i dont have a linux directory in my /usr/src... where is the Makefile?
Do you have any directories in /usr/src at all? If not, or if you only have an RPM dirctory, then you'll need to install the kernel source first...
Download it HERE

Then cd to the directory you saved it in, and do installpkg kernel-source-2.4.20-noarch-5.tgz

Then you will have the directory and can edit the Makefile.

You may want to save your existing config (should be in /boot, and can be copied to /usr/src/linux before make menuconfig) so you can use it as a starting point for configuring your kernel if you are going to compile.
 
Old 05-21-2003, 10:39 PM   #119
saiz66
Member
 
Registered: Apr 2003
Posts: 225

Rep: Reputation: 30
no i dont have a linux directory in my /usr/src.. i dont understand y i wouldnt have it.. i installed all the components i think from the slackware 9 cd... and everything went good... is there anything wrong with my linux if i dont have the linux directory? should it have come automatically when i installed slackware 9?
 
Old 05-21-2003, 11:02 PM   #120
TheDot
Member
 
Registered: May 2003
Location: Bored-in-ME, US
Distribution: Slackware 3-10, EOF
Posts: 59

Rep: Reputation: 15
If you did the newbie install type (and I know for a fact the same holds true with the full install type, since it actually does NOT install everything) with Slack9, I don't think it installs the source by default for safety reasons. It's not that hard to do so right from the cd, however, rather than downloading....

Just throw the disc in AFTER you've booted (there's a lot more to it if you put it in before you boot ).

Then do this:

(this has to be done as root)

mkdir /cdrom
mount -vt iso9660 /dev/cdrom /cdrom
cd /cdrom/slackware/k
installpkg kernel-source-2.4.20-noarch-5.tgz

Doing so will create the directory you're looking for (/usr/src/linux [not to mention the kernel version-speficic one, /usr/src/linux-2.4.20]).

There you go! Good luck!

Last edited by TheDot; 05-21-2003 at 11:08 PM.
 
  


Closed Thread



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
Newbie Guide To Compiling A Kernel! DrOzz Linux - General 318 08-20-2008 05:21 AM
I'm interested in compiling a 2.6.x kernel, is this is a decent guide? Erik_the_Red Linux - Newbie 7 08-14-2005 06:03 AM
Acid Guide to compiling Kernel 2.6.10 on Slack 10.1 acidjuice Slackware 54 03-11-2005 05:16 PM
Hardware identification guide for newbies ?? massai Linux - Hardware 5 02-03-2004 08:15 AM
: Kernel compiling guide for newbies Question Anibal Slackware 6 08-01-2003 07:06 AM

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

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