LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
LinkBack Search this Thread
Old 05-09-2006, 05:36 AM   #1
Juergen Flosbach
LQ Newbie
 
Registered: Apr 2006
Location: Germany
Distribution: SUSE 9.3
Posts: 2

Rep: Reputation: 0
Want alternative kernel to boot


Hi guys

for me this is the second time that I try to compile the linux kernel. The reason is that I have to change a IDE class driver so that my 3 SATA2 HDD will run with DMA support. Currently they don't do.
I got the description from nVidias nForce problem web site what to change.
The first time I followed their description but :

I overwrote my original kernel
-- but I want it to be offered as an alternative in the GRUB boot menu

The newly build kernel told me that there are no matching modules

The X-Server didn't start. Before I had successfully installed the original nVidia driver for my Model: "ASUSTeK GeForce 6600". But now after compiling X doesn't start.

Here is what HW I have and what I did to get a new kernel. I hope someone can guide me to a better new kernel ;-)

CPU : Arch: X86-64
Vendor: "AuthenticAMD"
Model: 15.47.2 "AMD Athlon(tm) 64 Processor 3200+"

Motherboard : ASUS A8N-E

3xSATA2 Model: "WDC WD1600JS-00M"

Memory : 1GB

Grafikkard : Model: "ASUSTeK GeForce 6600"

SuSE 10.0

linux 2.6.13-15.8-default #1 Tue Feb 7 11:07:24 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

1. kopie original kernel to now directory
2. Change amd74xx.c according to nVidias notes.
3. get original configuration
----zcat /proc/config.gz > .config
----make oldconfig
4. compile
----make bzImage
----make modules
5. install new kernel
----INSTALL_PATH=/boot make install
6. install new compiled modules
----make modules_install

REBOOT.

So, if someone can tell me what it needs to get an additional kernel BESIDE the original one ?

Thanks
Juergen
 
Old 05-09-2006, 05:05 PM   #2
leosgb
Member
 
Registered: Nov 2004
Location: Brazil
Distribution: Gentoo
Posts: 363

Rep: Reputation: 31
that is a standard feature of grub. And the reason why you should use it.

First of all you have to configure and then compile the new kernel:
make menuconfig
make && make modules_install

Then you copy the bzImage file to your /boot (usually from /usr/src/linux/arch/x86_64/bzImage):
cp /full_path_to_file/bzImage /boot

Then you have to edit the menu.lst file in /boot/grub/menu.lst so it looks like mine:
timeout 3
default 0
fallback 1

#For booting GNU/Gentoo Linux current
title Gentoo 2.6.15-current
root (hd0,0)
kernel /boot/2.6.15-gentoo-r5-current root=/dev/hda3

#For booting GNU/Gentoo Linux test kernel
title Gentoo 2.6.15- new test kernel
root (hd0,0)
kernel /boot/2.6.15-gentoo-r5-test root=/dev/hda3

Dont forget to set the correct parameters for your root partition (it means you will probably have to change the root=/dev/hda3 to your partition location!)

Good luck.
 
Old 05-11-2006, 11:42 AM   #3
Juergen Flosbach
LQ Newbie
 
Registered: Apr 2006
Location: Germany
Distribution: SUSE 9.3
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks to all your help.

I found out myself that I have to change the version number in the Makefile. It just wasn't enough to copy the original sources into a new directory.
I don't need to do the make menuconfig thing. The first thing I whanted to do was to use the current configuration. And to get this configuratin I followed the steps in my SuSE 9.3 book.

> zcat /proc/config.gz > .config
> make oldconfig

I didn't start compiling my kernel again. But I found a very nice document in that I found everything I need to know about compiling kernels from scratch, from PRM, for SUSE , with explanation of possible pitfalls and many interesting things.

I'm not allowet to post URLS since I have to post at least 3 times in this forum. So I will replace the / -> _ and the . -> : and hope you find this document as informative as I do.

www:thomashertweck:de_kernel26:html

Juergen
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel alternative for vsprintf bhuvanmital Linux - Software 3 02-26-2006 10:23 PM
An Alternative boot loader for dual boot systems. randrake Linux - General 3 09-06-2005 08:31 PM
Would this be an Alternative To CD Boot? Dj Brimstone Linux - Newbie 1 03-28-2005 10:47 PM
Alternative kernel source trees semicolon Linux - General 1 12-22-2003 10:00 PM
Alternative kernel on mdk8.2 bootdisk? rooman Linux - Distributions 3 11-08-2002 06:15 AM


All times are GMT -5. The time now is 12:33 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration