LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-06-2002, 01:17 AM   #1
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Rep: Reputation: 15
Question Howto startup with new kernel


Hello Human

I`ve a question about a kernel installation
I wan`t to install a new kernel for my network driver because it won`t work with the old version.

I copied the new kernel version from cd to a directory on my hd
and then i installed it whit rpm -Uvh

if y am right i have to compile the kernel with cgg but what do i have to compile the <kernelversion>.rpm ??

and how must i compile the kernel (witch commando can i use gcc -??? kernelversion.rpm)????
 
Old 12-06-2002, 01:20 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
check lilo.conf and see if the new image is in there and run lilo
 
Old 12-06-2002, 01:58 AM   #3
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Original Poster
Rep: Reputation: 15
Question

If i check lilo.conf

i see nothing special in the file

if y use the commando lilo I`ve get the next output:

added linux *
added failsafe
added memtest86

but nothing about the kernel and if i start up you can see the kernel version IT`s the old one who is loaded

musn`t i compile the kernel ???

Last edited by dansen; 12-06-2002 at 02:06 AM.
 
Old 12-06-2002, 02:00 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
look at lilo.conf again

the image must be in it with a label
 
Old 12-06-2002, 02:05 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
Code:
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
lba32
vga=786
append="hdc=ide-scsi"
other=/dev/hda1
        optional
        label=WinXP
image=/boot/vmlinuz-2.4.18-17.7.x
        label=linux.bak
        root=/dev/hda6
        read-only
        initrd=/boot/initrd-2.4.18-17.7.x.img
image=/boot/vmlinuz-2.4.18-18.7.x
        label=linux
        root=/dev/hda6
        read-only
        initrd=/boot/initrd-2.4.18-18.7.x.img
 
Old 12-06-2002, 02:19 AM   #6
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Original Poster
Rep: Reputation: 15
I will show you what`s in my lilo.conf

disk =/dev/hdb
bios =0x80
boot =/dev/hdb
vga =791
read-only
menu-scheme = Wg:kw:Wg:Wg
lba32
prompt
timeout = 80
message = /boot/message

image = /boot/vmlinuz
label = linux
root = /dev/hdb4
initrd = /boot/initrd
append = "enableapic vga = 0x0317

image = /boot/vmlinuz.suse
label = failsafe
root = /dev/hdb4
initrd = /boot/initrd.suse
append = "disableapic ide=nodma apm=off"
optional

image = /boot/memtest.bin
label = memtest86


maybe the new kernel source is copied to a wrong directory
i`ve cp it to the tmp and has installed it with rpm?
 
Old 12-06-2002, 04:00 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
first you need to know which image it is, look in /boot for it.


then you need to add it as an image like this
Code:
image=/boot/vmlinuz-2.4.18-18.7.x
        label=linux.new
        root=/dev/hdb4
        read-only
        initrd=/boot/initrd-2.4.18-18.7.x.img
then run lilo

you can select it from the boot menu by it label

Last edited by DavidPhillips; 12-06-2002 at 04:03 AM.
 
Old 12-06-2002, 04:01 AM   #8
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
maybe you installed the kernel source

if so it will be in /usr/src

and then you will need to build it

follow the kernel howto if that's the case
 
Old 12-06-2002, 04:49 AM   #9
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Original Poster
Rep: Reputation: 15
Yes i have installed the kernel source
and must compile it now i think

i use the commando`s
make dep
make clean

now i see a second kernel in the directory /lib/modules

but it doesn`t start with the new kernel


HELP

Last edited by dansen; 12-06-2002 at 05:12 AM.
 
Old 12-06-2002, 08:29 AM   #10
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Original Poster
Rep: Reputation: 15
Can onyone help me

I`am trying this for 3 weeks long but nothing doenst work

everything i tried it goes wrong

now my kernel is not installed correctly

and i had to install linux again for the 4th time



i`m in a deep depression
 
Old 12-06-2002, 04:04 PM   #11
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you must copy the new kernel to the boot folder, create the initrd.img with mkinitrd if your using one. then setup lilo

building a kernel is not really something that a person should do on their first encounter with linux

If you don't really need to do it then consider not building a kernel until you are more comfortable with following howtos

What network card do you have? have you tried modprobe for the driver?
 
Old 12-11-2002, 01:03 AM   #12
dansen
LQ Newbie
 
Registered: Nov 2002
Distribution: suse7.1
Posts: 24

Original Poster
Rep: Reputation: 15
Yes i tried modprobe but
when i enter that commando

i get the error that it needs a new kernel version kernel 2.4.XXX

so i had to install a newer version but it works what you said

and i am happy with it thanks a lot
 
  


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
OTRS--Prestablesh Database Connection during httpd process startup HOWTO?? kartheekpn Linux - Software 1 11-17-2005 12:10 AM
HowTo startup pppoe automatically before logging in? Mathsniper Debian 3 09-18-2005 12:58 AM
Howto launch script at startup sendas4 Linux - Newbie 2 03-10-2005 10:51 AM
howto run zvg at startup? device-driver Linux - Software 1 12-11-2004 06:27 AM
Startup screen resolution change | howto? the_gripmaster Red Hat 3 07-07-2004 07:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:07 AM.

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