Top Banner
Options For This Howto Free Support Paid Support Navigation Howtos Linux CentOS Debian Fedora Kernel Mandriva PCLinuxOS SuSE Ubuntu Apache Backup Control Panels DNS Desktop Email Anti-Spam/Virus Postfix Procmail Sendmail FTP High-Availability Lighttpd Monitoring MySQL Programming C/C++ PHP Samba Security Anti-Spam/Virus Virtualization Other FreeBSD Commercial Mini-Howtos Forums Contribute Subscription Login Site Map/RSS Feeds User login Username: Password: FAQForge Subscription Contribute Search News Forums Howtos How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3 1 de 12 02/12/2009 11:46
12
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: How to compile a kernel   suse 3

Options For This HowtoFree Support

Paid Support

Navigation

Howtos

Linux

CentOS

Debian

Fedora

Kernel

Mandriva

PCLinuxOS

SuSE

Ubuntu

Apache

Backup

Control Panels

DNS

Desktop

Email

Anti-Spam/Virus

Postfix

Procmail

Sendmail

FTP

High-Availability

Lighttpd

Monitoring

MySQL

Programming

C/C++

PHP

Samba

Security

Anti-Spam/Virus

Virtualization

Other

FreeBSD

Commercial

Mini-Howtos

Forums

Contribute

Subscription

Login

Site Map/RSS Feeds

User loginUsername:

Password:

FAQForgeSubscriptionContributeSearchNewsForumsHowtos

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

1 de 12 02/12/2009 11:46

Page 2: How to compile a kernel   suse 3

Remember Me?

Create a new account

Request new password

Ads by Google

Linux Setup

Linux Tutorial

Mosix Kernel

Openmosix 2.6

Who's onlineThere are currently 19 users and 2741 guests online.

HowtoForge ForumsHow to setup

getmail to

download just some

...

Troubleshoot

network problems

VLC player -For

all format media

file.

Cronjob problem

Downloadable

Vmware Images

ERROR: Connection

dropped by IMAP

server

Roundcube emails

In

Centos-installing

Courier-IMAP-Authl

ib,And ...

GlusterFS write

issue

Internet

acceleration and

cashing

NewsDE: Open source professorship at University of Erlangen-Nuremberg

Firefox most used browser in Germany

Don't need groupware? Organize your life with Osmo

SugarCRM Gets a True Open Source Visionary in Larry Augustin

What Kind Of Bird Are You Booting?

HD-ready smartphone supports Linux and Android

Nokia Releases Qt 4.6

Howto setup Wireless on Chrome OS

Security in Linux and how to optimise it

The Phoronix Kernel Test Farm Is Alive

more

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

2 de 12 02/12/2009 11:46

Page 3: How to compile a kernel   suse 3

Recent comments100% useful.

1 hour 8 min ago

you should also mention that

1 hour 31 min ago

Re: Re: Re: Re: Error moving the bind folders/files

3 hours 28 min ago

Trouble Intsalling the Kernel.

6 hours 12 min ago

Perfect Desktop that is?

9 hours 7 min ago

linux desktop

9 hours 8 min ago

Please, do not use the word

9 hours 33 min ago

I have followed the

12 hours 52 min ago

Thanks

14 hours 24 min ago

Re: How will I know if a virus is found? and ...

16 hours 32 min ago

NewsletterSubscribe to

HowtoForge

Newsletter

and stay informed

about our latest

HOWTOs and

projects.

(To unsubscribe from

our newsletter, visit

this link.)

Syndicate

HowtoForge Feed for Facebook®"Facebook" is a registered trademark of Facebook, Inc. All rights reserved.

English | Deutsch | Site Map/RSS Feeds | Advertise

You are here: Home » How To Compile A Kernel - The SuSE Way » How To Compile A Kernel - The SuSE Way - Page 3

How To Compile A Kernel - The SuSE Way - Page 3

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

3 de 12 02/12/2009 11:46

Page 4: How to compile a kernel   suse 3

tweet

0tweets

Do you like HowtoForge? Please consider supporting us by becoming a

subscriber.

Submitted by falko (Contact Author) (Forums) on Sun, 2006-11-19 18:26.

::

8 Configure The GRUB Boot Loader

Now we must configure our GRUB boot loader so

that our new kernels gets booted when we restart

the system. Instead of modifying /boot/grub/menu.lst

directly, we can run

yast

to do it.

Go to System -> Boot Loader:

On the next screen you will see your existing GRUB records. Go to Add to add a new one:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

4 de 12 02/12/2009 11:46

Page 5: How to compile a kernel   suse 3

Select Clone Selected Section to clone one of the working GRUB records:

Enter a name for the new kernel, e.g. SUSE Linux 10.1 - 2.6.18.2, and go to Kernel -> Browse:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

5 de 12 02/12/2009 11:46

Page 6: How to compile a kernel   suse 3

You will see the contents of the /boot directory where your new kernel is located. Select your new kernel which

typically begins with vmlinuz (e.g. vmlinuz-2.6.18.2-default):

Next go to Initial RAM Disk -> Browse:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

6 de 12 02/12/2009 11:46

Page 7: How to compile a kernel   suse 3

Again, you will see the contents of the /boot directory. Select the appropriate ramdisk for your new kernel

which typically begins with initrd (e.g. initrd-2.6.18.2-default):

Back on the main screen, select OK:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

7 de 12 02/12/2009 11:46

Page 8: How to compile a kernel   suse 3

You will see a new GRUB record for your new kernel. Mark it and hit Up until it is the first in the list:

Then hit Set as Default to make the new kernel the default one:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

8 de 12 02/12/2009 11:46

Page 9: How to compile a kernel   suse 3

Hit Finish:

Select Quit to leave YaST:

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

9 de 12 02/12/2009 11:46

Page 10: How to compile a kernel   suse 3

That's it. You can check /boot/grub/menu.lst now, you should find a new stanza for your new kernel there:

vi /boot/grub/menu.lst

# Modified by YaST2. Last modification on Wed Nov 15 14:37:56 CET 2006

color white/blue black/light-gray

default 0

timeout 8

title SUSE Linux 10.1 - 2.6.18.2

root (hd0,0)

kernel /vmlinuz-2.6.18.2-default root=/dev/sda3 vga=0x314 resume=

initrd /initrd-2.6.18.2-default

###Don't change this comment - YaST2 identifier: Original name: linux###

title SUSE Linux 10.1

root (hd0,0)

(Instead of using YaST to configure GRUB, you could as well have added

title SUSE Linux 10.1 - 2.6.18.2

root (hd0,0)

kernel /vmlinuz-2.6.18.2-default root=/dev/sda3 vga=0x314 resume=

initrd /initrd-2.6.18.2-default

as the first kernel stanza to /boot/grub/menu.lst using a command line editor like vi, joe, nano, etc. To find

out about the correct kernel and ramdisk, you could have run

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

10 de 12 02/12/2009 11:46

Page 11: How to compile a kernel   suse 3

previous

How To Compile A Kernel - The SuSE Way - Page

2

ls -l /boot

)

Now reboot the system:

shutdown -r now

If everything goes well, it should come up with the new kernel. You can check if it's really using your new

kernel by running

uname -r

This should display something like

2.6.18.2-default

If the system doesn't start, restart it, and when you come to the GRUB boot loader menu, select your old

kernel and start the system:

You can now try again to compile a working kernel. Don't forget to remove the stanza of the not-working kernel

from /boot/grub/menu.lst.

9 Links

OpenSuSE: http://www.opensuse.org

The Linux Kernel Archives: http://www.kernel.org

up

Copyright © 2006 Falko Timme

All Rights Reserved.

add comment | view as pdf | print: this | all page(s) |

Related Tutorials

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

11 de 12 02/12/2009 11:46

Page 12: How to compile a kernel   suse 3

How To Compile A Kernel - The Fedora Way

How To Compile A Kernel - The Ubuntu Way

Compile Kernel 2.6 under Debian Sarge

Debian-Kernel-Compile-Howto (Kernel 2.6)

Debian-Kernel-Compile-Howto (Kernel 2.4)

Please do not use the comment function to ask for help! If you need help, please use our forum.

Comments will be published after administrator approval.

Sponsored Links: Unified Communications: Thoughts, Strategies and Predictions

Join the discussion.

www.seamlessenterprise.com

IP Convergence

Integrate your wireless and wireline networks.

Learn how from the experts at Sprint.

www.seamlessenterprise.com

Wireless & Wireline Integration

Thoughts, strategies and solutions: join the discussion

www.seamlessenterprise.com

Unified Communications 2009

Join the Discussion. Now.

www.seamlessenterprise.com

Red Hat Virtual Experience - a free virtual event. Dec. 9th

Trial: IBM Cognos Express Reporting, Analysis & Planning

Free White Papers

The Agile Heartbeat

In this whitepaper I argue that the person most

affected by the introduction ...

Enterprise Authentication: Increasing Security

Without Breaking The Bank

Experts agree that username/password

authentication does not provide enough p...

State of the Data Integration Market

Data integration is a critical and fundamental

element in a variety of techno...

More White Papers

Howtos | Mini-Howtos | Forums | News | Search | Contribute | SubscriptionSite Map/RSS Feeds | Advertise | Contact | Disclaimer | Imprint

Copyright © 2009 HowtoForge - Linux Howtos and TutorialsAll Rights Reserved.

How To Compile A Kernel - The SuSE Way - Page 3 | HowtoForge - L... http://www.howtoforge.com/kernel_compilation_suse_p3

12 de 12 02/12/2009 11:46