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
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a
virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month.
Click here for more info.
12-06-2002, 01:17 AM
#1
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Rep:
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)????
12-06-2002, 01:20 AM
#2
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
check lilo.conf and see if the new image is in there and run lilo
12-06-2002, 01:58 AM
#3
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Original Poster
Rep:
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 .
12-06-2002, 02:00 AM
#4
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
look at lilo.conf again
the image must be in it with a label
12-06-2002, 02:05 AM
#5
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
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
12-06-2002, 02:19 AM
#6
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Original Poster
Rep:
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?
12-06-2002, 04:00 AM
#7
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
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 .
12-06-2002, 04:01 AM
#8
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
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
12-06-2002, 04:49 AM
#9
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Original Poster
Rep:
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 .
12-06-2002, 08:29 AM
#10
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Original Poster
Rep:
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
12-06-2002, 04:04 PM
#11
LQ Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163
Rep:
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?
12-11-2002, 01:03 AM
#12
LQ Newbie
Registered: Nov 2002
Distribution: suse7.1
Posts: 24
Original Poster
Rep:
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
All times are GMT -5. The time now is 10:07 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News