LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 12-04-2003, 11:19 AM   #1
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Rep: Reputation: 46
kernel build process on SuSE 9 questions.


I attempted to compile the 2.6.0-test11 kernel last night on my SuSE 9 laptop. Unsuccessfully I might add (I am patient). But I have a few questions who's answers might break some bad habits of mine.

First of all what changed in the standard kernel build process. I used to recompile on RedHat machines with a set of instructions looking something like

make mrproper
make xconfig
make dep
make clean
make bzimage
make modules
make modules_install

and then I would hand edit grub.conf to add the new kernel as an option, without borking my old one in case the first boot failed.

Now I am attempting a similar feat in SuSE and the instructions say that Grub will auto detect the new kernel. WTF? Is this true? And does that mean the generic "Linux" entry on the pretty SuSE grub screen is all I get? I really like having a test kernel and a stable kernel (to fall back on).

When I finished last night there was no initrd file for the new kernel and all I got on boot was a blank screen. Zoinkes!

Is an initrd file needed for each kernel on the system, or will 1 suffice?

As long as I patch the kernel sources for my hardware, is there any other stuff SuSE puts in their default kernel that I would lose by going with the kernel source from kernel.org?

Can someone enlighten me a bit on kernel compiling in SuSE 9 please?

Last edited by Pcghost; 12-04-2003 at 12:39 PM.
 
Old 12-04-2003, 03:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"Now I am attempting a similar feat in SuSE and the instructions say that Grub will auto detect the new kernel. WTF? Is this true? And does that mean the generic "Linux" entry on the pretty SuSE grub screen is all I get? I really like having a test kernel and a stable kernel (to fall back on)."

I don't think so. Keep doing it your old way until events prove your old way wrong.

"Is an initrd file needed for each kernel on the system, or will 1 suffice?"

Each kernel needs its own initrd. SuSE compiles a lot of modules as m. Then it puts the modules that have to be loaded with the kernel at boot in initrd. Which modules are in initrd vary with your kernel configuration.

I suggest that you dispense with initrd for kernels you compile yourself. Make all modules necessary for accessing your / partition y. Then you do not need an initrd.

"When I finished last night there was no initrd file for the new kernel and all I got on boot was a blank screen."

In addition to accessing the / partition also make sure that any framebuffer modules that you use are y.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 12-04-2003, 08:18 PM   #3
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
Thanks Jailbait, that makes sense. I am going to try the compile again tonight and will check those settings. Your explanation of initrd files is great. I wasn't aware that that was their purpose. Thanks again.. I learn at least one new thing about Linux every time I come here. LQ rules..
 
Old 12-05-2003, 06:31 AM   #4
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
For building the 2.6 kernel

Take and read the following:

http://ftp.kernel.org/pub/linux/ker...lloween-2.5.txt

You need to get the module-init-tools from the red hat repository.

Use lspci -v to help select you hardware. This will be helpful for configuring the 2.6 kernel.

make mrproper
make menuconfig
make
make modules_install
make install

Then modify you lilo.conf or grub.txt

make install installs vmlinuz into the boot directory along with System.map
It creates a symbolic link to you old vmlinuz -> vmlinuz.old and System.old

All you need to do is add entry for the old vmlinuz. I use lilo.conf

This is mine....

image=/boot/vmlinuz
initrd=/boot/initrd-2.6.0-test11
label=Linux2.6
read-only

** This would be you redhat config. **
image=/boot/vmlinuz.old
vga=791
append="hdc=scsi hdd=scsi apm=power-off nomce"
label=Linux2.4
initrd=/boot/initrd.gz
read-only

If you are using lilo, issue lilo -v or modify you menu.lst for grub.

Hope this helps. The more people use 2.6 the better.
 
Old 12-05-2003, 10:33 AM   #5
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
Thanks Ghostwalker. But the link appears to be dead. I get a 404 on it. I will try the instructions above and see what happens. I tried again last night and again got a blank screen right after selecting the new kernel on Grubs menu.

Just out of curiosity, did you forget "make modules" above or has that step been removed like make dep?

Last edited by Pcghost; 12-05-2003 at 12:42 PM.
 
Old 12-05-2003, 01:33 PM   #6
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
make modules and make dep are no longer needed make creates you modules for you.

Try this link.

http://ftp.kernel.org/pub/linux/kern...loween-2.5.txt

- Blank screen after decompressing kernel?
Make sure your .config has
CONFIG_INPUT=y, CONFIG_VT=y, CONFIG_VGA_CONSOLE=y and CONFIG_VT_CONSOLE=y
A lot of people have discovered that taking their .config from 2.4 and
running make oldconfig to pick up new options leads to problems, notably
with CONFIG_VT not being set.


Last edited by ghostwalker; 12-05-2003 at 01:34 PM.
 
Old 12-05-2003, 02:23 PM   #7
Pcghost
Senior Member
 
Registered: Feb 2003
Location: The Arctic
Distribution: Fedora, Debian, OpenSuSE and Android
Posts: 1,820

Original Poster
Rep: Reputation: 46
IT WORKED!!!!! Yay. You rule ghostwalker. Thanks alot. Now granted I forgot a few options I was supposed to include, but know that I am a little more familiar with the new build process that should be no big deal.

Question: During boot of the new kernel, I have no video display at all until the X server starts. No beautiful scrolling text that is the linux boot process. Is this something I forgot to compile in? Anyone know what that might be??
 
Old 12-05-2003, 02:55 PM   #8
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,336

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
"During boot of the new kernel, I have no video display at all until the X server starts. "

You might be missing framebuffer support. Set framebuffers to y

---------------
Steve Stites
 
Old 12-05-2003, 04:15 PM   #9
ghostwalker
Member
 
Registered: Jun 2003
Posts: 160

Rep: Reputation: 30
You are possibly including vga=791 just comment that out or include it with you 2.4 grub/lilo menu selection.
 
Old 12-05-2003, 04:49 PM   #10
cybrjackle
Member
 
Registered: Jul 2003
Distribution: Debian etch/lenny/sid, Fedora 7/Rawhide, CentOS 4/5, FreeBSD 6.2 and Solaris 10/Nevada
Posts: 110

Rep: Reputation: 16
Under "File Systems" -> "Pseudo File Systems", pay attention. Enable /proc and /dev/pts

ftp://ftp.suse.com/pub/people/kraxel/README

On 9.0, you only need to add lvm2 & device-mapper from SuSE if you are using "lvm"

When your done with your kernel, run "mk_initrd" That will create your initrd file for you.

Also check out:

http://portal.suse.com/sdb/en/2002/01/ftpkernel.html
 
  


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
problem with libstdc++-2.8.1 build process kotharavi Fedora 1 06-08-2005 02:48 AM
Boot process stops after custom kernel build FuzzyDuc Debian 3 11-28-2004 06:47 AM
Trying to build kernel 2.4.27 on Suse 9.1 installation rocketdude SUSE / openSUSE 2 11-03-2004 04:15 PM
SuSE kernel questions. Pcghost SUSE / openSUSE 4 10-28-2004 11:14 AM
Redhat distro kernel build questions droid Linux - Software 3 08-12-2003 09:13 PM

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

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