LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 08-10-2005, 09:53 AM   #1
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Rep: Reputation: 30
compiling default kernel suse 9.3


hi...
I have a big problem when I have done compiling default kernel on suse 9.3.... I cant boot into my suse and my windowsXP.........

this how I compile my kernel :

% su -
Password:
# cd /usr/src/linux

# make mrproper

# make xconfig
then here I config something that I dont need ( asuming I know what I'm doing here)
then I press "save"
then "quit"

# make bzImage V=1

# make modules

# mv /boot/vmlinuz /boot/vmlinuz.old
# cat arch/i386/boot/bzImage > /vmlinuz
# mv /boot/System.map /boot/System.map.old...... (at this step I found a warning....but I forgot )
# cp System.map /boot/System.map
# make modules_install


then I restart and......walaaa.....I cant go to my suse and my windowsXP too.....
if I'm not wrong .....there is a error message say that.... "file......=15"..............press any key to continued.............

but there is nothing I can do.....



so what is wrong with my step for compiling my kernel?

please....I want to study about compiling kernel......but now I have to reimstall my suse
 
Old 08-10-2005, 10:36 AM   #2
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Quote:
# cat arch/i386/boot/bzImage > /vmlinuz
Wouldnt this place your kernel in /vmlinuz instead of /boot/vmlinuz? Peerhaps just a typo on your account of things, but still a thing worth checking..

You dont have to reinstall. Just use either a suse boot floppy, Knoppix (or similar) or the Suse install disk rescue mode to grt access to your installation and then fix the problem by hand. There are surely instructions here at LQ for that, just use the search (:
 
Old 08-10-2005, 11:06 AM   #3
fireedo
Member
 
Registered: Feb 2005
Location: Indonesia,Sidoarjo
Posts: 342

Original Poster
Rep: Reputation: 30
I think I need a step by step instruction to follow....because I am a newbie on this thing (kernel compiling)......
so can someone teach me how to compile kernel step by step?
also with grub editing after compiling.... (I think this important)

thanx a lot....
 
Old 08-10-2005, 11:10 PM   #4
mac57
Member
 
Registered: Nov 2004
Location: Texas
Distribution: openSUSE 10.3, Yoper Linux 3.0 , Arch Linux 2007.08
Posts: 253

Rep: Reputation: 30
I can't help, but I would like to generalize the question. Building kernels is enough to reduce the average Linux user to a blubbering mess. I have tried it a few times, on a few different distros, always with catastrophic results. I have read enough to know that the procedure can be quite different, distro to distro. At this point, I am beginning to think that kernel building is closely akin to black magic.

So, the generalized question: is there a SuSE specific HOWTO somewhere for building kernels that would apply to SuSE 9.3?

Thanks.
 
Old 08-11-2005, 04:32 AM   #5
Artanicus
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Ubuntu, Debian, Gentoo, Slackware
Posts: 827

Rep: Reputation: 31
Building a kernel is absolutely the same process with every distro, not that the distro makers want you to belive that, they want you to do it their way.. (;

In short:
Code:
1. download source, move as /usr/src/linux-version
2. cd in and do:
2.0 make menuconfig|xconfig|whatever is your perversion here
2.1 make dep (only needed for 2.4.x kernels)
2.2 make bzImage
2.3 make modules
2.4 make modules_install
2.5 mv /boot/vmlinuz /boot/vmlinuz.old && cp arch/i386/boot/bzImage /boot/vmlinuz
2.6 mv /boot/System.map /boot/System.map.old && cp System.map /boot/
(ind bothb 2.5 and 2.6 you might get an error about overwriting the file. This is normal if youve upgraded your kernel before, so you should overwrite.)
2.7 make sure you did everything right, and make sure grub / lilo knows which kernel it is booting and how
2.8 reboot (:
 
Old 08-11-2005, 04:49 AM   #6
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
I have made a small page for SuSE kernel compiling:
http://www.geocities.com/lucy_koeln/kernel.html
 
Old 08-11-2005, 07:12 AM   #7
broch
Member
 
Registered: Feb 2005
Distribution: Slackware-current 64bit
Posts: 465

Rep: Reputation: 32
Assuming that this is your first kernel skip first command:
# make clean && make mrproper
#make xconfig
save
#vi .config
change kernel name. This way your new kernel based on SuSE sources will not overwrite, the ond one that works)
#make bzImage && make modules && make modules_install
#make install

That is all. The last commad "make install" will:
1) copy necessary files to /boot
2) create initrd
3) modify GRUB menu and add entries for your new kernel
4) create new symlinks to initrd and vmlinuz (consequences are obvious)

Basically "make install" will do all what's needed to instal compiled kernel.

If you are using SuSE sources, then bootsplash is not necessary.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change default Kernel in Suse 9.2? j_savoy SUSE / openSUSE 4 04-20-2005 10:40 AM
8k stacks into the suse 9.1 default kernel d3viant Linux - Software 1 12-08-2004 10:45 AM
can I change the default penguin logo, while compiling a new kernel? dyte100 Arch 3 10-29-2004 04:24 AM
SUSE 9.1 Personal Default Kernel PhuckFonix Linux - Distributions 4 08-29-2004 04:10 PM
Kernel compiling on SUSE 9 undershepherd Linux - Software 2 12-06-2003 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

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