LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2003, 07:11 PM   #1
hunteragp
LQ Newbie
 
Registered: Oct 2003
Posts: 4

Rep: Reputation: 0
Can't install new Kernel


Maybe its easy but Im a newbie on this... I compiled and installed a 2.4.23 kernel on Mandrake 9.2, using a manual... I tried every method that I could but I still can't boot from it... When I try to boot my new Kernel the screen goes black and the keyboard lights begin to flash. I just gave up because I tried everything that the manual said but nothing happened... Then I downloaded a 2.4.22-10-mdk Rpm and tried to install it but nothing happened, my computer still boots from the old kernel. Do I have to do something else or am I doing something wrong? I will apreciate any help.
 
Old 12-09-2003, 07:27 PM   #2
Phorem
Member
 
Registered: Nov 2003
Location: Toronto, Canada
Distribution: Gentoo AMD64
Posts: 374

Rep: Reputation: 30
Umm, even if you compiled the kernel properly, you should add the kernel to the "lilo.conf" file.

image = /boot/vmlinuz-2.4.23
root = /dev/hda1
label = 2.4.23
read-only

That's what it is for mine. Depending on how you build and install your kernel (i.e. rpm or make menuconfig) the lilo.config file might be configured for you. If you install it manually or with "make install" you will still have to run the actual "lilo" command. Lilo is located in /sbin/. After you run lilo, you should be able to reboot and see the additional kernel in your Lilo menu.
 
Old 12-09-2003, 08:22 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
the screen goes black and the keyboard lights begin to flash
That suggests that you compiled your kernel for
something that your machine doesn't have/support.

Look at your configuration again, and make sure
you only set stuff you're certain you have/need.


Cheers,
Tink
 
Old 12-09-2003, 09:25 PM   #4
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
cd /usr/src/linux-2.4.23
make mrproper
make clean
cp /boot/config .config
make oldconfig
make dep
make bzImage
make modules
make modules_install
cat arch/i386/boot/bzImage >/boot/vmlinuz-2.4.23
cp .config /boot/config-2.4.23
cp System.map /boot/System.map-2.4.23
cd /boot
mkinitrd initrd-2.4.23.img 2.4.23 #May not be necessary

Edit /etc/lilo.conf and add this:

image=/boot/vmlinuz-2.4.23
label="2.4.23"
initrd=/boot/initrd-2.4.23.img #May not be necessary
append=" your standard append"
root="your root partition"
read-only

Save lilo.conf
lilo
reboot
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
trying to find/install kernel-source or kernel-headers timsch75 Slackware 3 10-22-2005 10:17 AM
10.1 install kernel and kernel-source different - build fails Feebles Mandriva 2 06-10-2005 07:58 PM
Kernel Panic - Root Disks - install.1 install.2 bonecrusher Slackware - Installation 17 05-30-2004 11:59 AM
Ok, dumb question. If I install a Mandrake kernel RPM, where does it install to? Kramer Linux - General 6 01-13-2004 10:39 PM
How to install linux on a no-default-install-kernel-compatible controller ? DukeMC Linux - Hardware 2 11-20-2003 04:37 AM


All times are GMT -5. The time now is 10:54 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration