LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-24-2006, 03:13 PM   #1
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Rep: Reputation: 15
New kernel


I was going through the steps to create a new kernel, given here, and get halfway through and realized that I really didn't know enough to continue. I have just run
Code:
make bzImage
and was wondering is it too late to back out. I made sure and copied my .config file over so that I wouldn't lose a copy of it. If I restore this, will anything change?? Thanks.
 
Old 01-24-2006, 03:43 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
That will create the kernel binary, but will not install it or do anything with it.
 
Old 01-24-2006, 03:48 PM   #3
JSLayton
Member
 
Registered: Apr 2005
Location: Warrior, AL
Distribution: Slackware 10.1, Fedora Core 4
Posts: 128

Original Poster
Rep: Reputation: 15
So if I just don't continue from this point, nothing about my currently installed kernel will change?
 
Old 01-24-2006, 03:55 PM   #4
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
That's correct
 
Old 01-25-2006, 08:08 AM   #5
folkenfanel
Member
 
Registered: Sep 2004
Location: formerly Fanelia and Zaibach
Distribution: Slackware-current !
Posts: 344

Rep: Reputation: 59
Wink kernel

Hi people

Normally, this is the sequence I follow to compile/install a new kernel

0) make a backup of my current vmlinuz and all my /lib/modules/Žuname -rŽ folder

1) cd /usr/src/linux
2) make menuconfig
3) make

... those 3 steps build the kernel (in kernel 2.6 you don't need to do "make bzImage", in kernel 2.4 you need). Make sure to compile your root filesystem (e.g. ext2, reiserfs, xfs) in the kernel and not as a module.

4) make modules_install
5) manually copy the following files to a safe location:

/usr/src/linux/.config
/usr/src/linux/System.map
/usr/src/linux/arch/i386/boot/bzImage

...If you are compiling for a x86_64, for example, (with for example $make menuconfig ARCH=x86_64) just change the i386 with x86_64.

6) rename bzImage to vmlinuz and copy it to /boot

(I am a bit lazy. If you want you can rename it to something like vmlinuz-test; but you have to specify an entry for that kernel image in /etc/lilo.conf)

7) run lilo

8) cross your fingers and pray May the Force be with you!

9) If something goes wrong, you can boot with the Slackware CD #1 and reinstall your kernel and modules (or reinstall a stock kernel and the stock modules).
 
  


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
Kernel 2.4 in Zipslack (Waring: unable to open an initial console | Kernel Panic...) kurtamos Linux - General 2 05-10-2006 12:58 PM
Configure kernel source for standard debian kernel (module install) twinkers Debian 2 12-22-2005 11:19 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
kernel panic: try passing init= option to kernel...installation with Red Hat 9 kergen Linux - Hardware 1 09-30-2004 03:28 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM

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

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