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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-18-2003, 11:08 PM   #1
FearPasion710
Member
 
Registered: Jul 2003
Distribution: Gaytoo...
Posts: 96

Rep: Reputation: 15
Talking My First Kernel compile


hi im using slack 9.0 and im going to recompile my kernel..... but the question is what kind of architecture should i choose...

the default one is 386..

but im running on a AMD AthlonXP1800+ so what architecture should i choose for compilation.......

i386, i586, P4, Athlon/K7/Thunderbird


witch one should i pic.... last time i picked i586 the comp got stuck at compile time....?

edit: how can i save this kernel the one tha i compiled so that i can use it latter on for this machine... ex.. say i installed slackware again and i want to use the kernel i compiled!! how can i save it?

Last edited by FearPasion710; 09-19-2003 at 09:03 PM.
 
Old 09-19-2003, 12:12 AM   #2
FearPasion710
Member
 
Registered: Jul 2003
Distribution: Gaytoo...
Posts: 96

Original Poster
Rep: Reputation: 15
Talking Never Mind

I compiled using Althon and it worked lol.. YAY YAY YAY I COMPILED MY FIRST KERNEL..........BUT HOW DO I CHECK TO SEE IF ITS THE KNEW ONE AND NOT THE OLD ONE!!!
 
Old 09-19-2003, 12:25 AM   #3
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
Check out www.slackware.org, go to the Book (link on the upper left), and go to section III, Configuration, Selecting a Kernel. It gives instructions on how to backup your old kernel, build one, and set the new one to boot.

Note that where you have to send the new kernel images might be <slightly> different than the instructions, depending on where you boot from. In the instructions it says to copy the bzImage to the / directory. On my machine it's in the /boot directory. Just do an ls in each directory to see where it is.

Damien
 
Old 09-19-2003, 02:30 AM   #4
FearPasion710
Member
 
Registered: Jul 2003
Distribution: Gaytoo...
Posts: 96

Original Poster
Rep: Reputation: 15
Question But how can you check.............

If the kernel im using is the one i compiled???

and how big it is!!
 
Old 09-19-2003, 04:39 AM   #5
JamesM
Member
 
Registered: Jul 2003
Location: london (UK)
Distribution: slackware 9.0
Posts: 36

Rep: Reputation: 15
You have to explicitly tell the system to use the new kernel. Otherwise how can it know about it (let alone boot it)? - like the previous post said, read the slackware book section on kernel compiling.

to check the size you can do an [ls -al] command on the directory containing your new kernel image.

james.
 
Old 09-19-2003, 04:40 AM   #6
yapp
Member
 
Registered: Apr 2003
Location: Netherlands
Distribution: SuSE (before: Gentoo, Slackware)
Posts: 613

Rep: Reputation: 30
congratulations and you've figured out a lot yourself (yes, for an ADM Athlon, you should pick the Athlon option )


To check the kernel version, try:

cat /proc/version
uname -a
uname -r
 
Old 09-19-2003, 12:22 PM   #7
damien
Member
 
Registered: Sep 2003
Location: Calgary, Canada
Distribution: Slackware 10.0
Posts: 90

Rep: Reputation: 15
kernel size and which one

In relation to this question:

But how can you check............. ( post #4)

If the kernel im using is the one i compiled???

and how big it is!!


The kernel you built will be in the /usr/src/linux/arch/i386/boot directory, as an image file that you copy to wherever vmlinuz is (vmlinuz being your current kernel image). The associated map file is in the /usr/src/linux directory. You can easily check the file sizes that way.

As far as checking if you really are booting from the new one, if you follow the instructions in the Slackware book, and the machine boots OK, you've done everything right. If the machine fails somewhere in the boot or startup script, then you're definitely using your new kernel and you did something wrong, which is usually what happens to me (like right now, where my SCSI card isn't being probed and so it can't find a root partition). :-) At this point, it helps if you have a boot floppy available to bring the machine up or have lilo (or grub) set up to boot your old image as an option.
 
Old 09-19-2003, 08:31 PM   #8
FearPasion710
Member
 
Registered: Jul 2003
Distribution: Gaytoo...
Posts: 96

Original Poster
Rep: Reputation: 15
Talking Thankss

Thanks that helped alot... Thank you all for your time!!

but how can i save my newly compiled kernel for next time i install slackware. ie it ask's me if i wanna use i precompiled kernel of my own so how can i save it?

Last edited by FearPasion710; 09-19-2003 at 09:56 PM.
 
Old 09-20-2003, 12:12 AM   #9
Baldorg
Member
 
Registered: Sep 2003
Location: GMT (-5)
Distribution: Mandrake 9.1
Posts: 288

Rep: Reputation: 31
Quote:
BUT HOW DO I CHECK TO SEE IF ITS THE KNEW ONE AND NOT THE OLD ONE!!!
uname -a ?
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
upgraded kernel, won't let me compile kernel once Suspend2 patches are applied microsoft/linux Linux - Laptop and Netbook 3 10-02-2005 02:37 PM
I want to compile 2.6 kernel and keep everything from 2.4 intact (dual kernel system) sina_kish Linux - Software 7 02-02-2005 09:01 AM
Kernel Problems. Howto Compile a new kernel from 4.2 with backwards compatibility ? ShoCkwave Linux - General 2 06-19-2004 06:02 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM
Kernel 2.4.23 compile causes kernel panics on ATA RAID-1 (mirror) array Raptor Ramjet Slackware 3 12-18-2003 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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