LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 03-04-2004, 01:54 PM   #1
Mr.Kex
Member
 
Registered: Jan 2004
Location: Belguim
Distribution: Slackware 9.1
Posts: 63

Rep: Reputation: 15
Kernel 2.6 on MDK 9.2


I've unpacked and installed the kernel 2.6, but after restarting the computer, my SYSTEM would NOT START..
Does somebody knows the problem?
 
Old 03-04-2004, 03:01 PM   #2
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
Maybe we do.
But we can't help until we see the error messages!
 
Old 03-04-2004, 03:35 PM   #3
Mr.Kex
Member
 
Registered: Jan 2004
Location: Belguim
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by Rounan
Maybe we do.
But we can't help until we see the error messages!
It doesn't give any errors, it's the comp is off=)
 
Old 03-04-2004, 06:39 PM   #4
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
do you at leat get to lilo's boot menu?
 
Old 03-05-2004, 12:53 AM   #5
Mr.Kex
Member
 
Registered: Jan 2004
Location: Belguim
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
Yes, but when I choose Linux or something else, it's like that my monitor would not work, i think that I need to install sqome more tools..
 
Old 03-05-2004, 09:42 AM   #6
jrhessey
LQ Newbie
 
Registered: Feb 2004
Location: NW Ohio
Distribution: Red Hat 9.0 Mankdrake 9.2
Posts: 13

Rep: Reputation: 0
If I'm reading into his problems... I'm having the same thing happen to me... If I choose either Linux or the upgraded kernel Linux-2.6.3 in the lilo, the screens goes blank... I would assume I did something wrong in the install phase or the lilo.conf commands... the kernel version I have now is 2.4.22-10(mdk). I don't know if I need to include the mdk or not. Here is what I took those steps as...

Quote:
Now Its Time To Install Your New Kernel~!

Remove the following links: rm -rf /boot/System.map rm -rf /boot/vmlinuz

Then copy the newly created kernel and system.map to /boot cp /usr/src/linux/arch/i386/boot/bzImage /boot/vmlinuz-x.x.x cp /usr/src/linux/System.map /boot/System.map-x.x.x


I would assume the x.x.x here refers to the new kernel, 2.6.3, correct



Make the new links: ln -s /boot/vmlinuz-x.x.x /boot/vmlinuz ln -s /boot/System.map-x.x.x /boot/System.map

Next, if present, remove existing initrd.img file: rm -rf /boot/initrd.x.x.x.img


I would assume the x.x.x here refers to 2.4.22-10mdk , correct


And create the new one: /sbin/mkinitrd /boot/initrd-x.x.x.img x.x.x (Note: ) The last set of x.x.x is the eqivalent to your new kernel version and it looks to /lib/modules for that version.


I would assume this command is written like this, /sbin/mkinitrd /boot/initrd-2.4.22-10mdk.img 2.6.3 correct


--------------------------------------------------------------------------------
Use The Steps That Pertain To You
If You Use Grub Then Edit grub.conf
If You Use Lilo Then Edit lilo.conf

--------------------------------------------------------------------------------
remember to leave the entry to your old kernel image just in case, so modify what is in the config originally to point to the old image and make a new entry for you new image you just made ....
--------------------------------------------------------------------------------

<-> And Finally Edit Your /etc/grub.conf file <-> <-> Note some distros now use menu.lst, so if you can't find grub or lilo, then you know what to look for <->

title New Kernel kernel /vmlinuz-x.x.x ro root=LABEL=/

initrd /initrd-x.x.x.img
(Note: ) Look at the previous parameters in the grub.conf file and note what "root=" and use what is existing.
Exit and Save grub.conf type "/sbin/grub-install"

AND REBOOT!!!

<-> And Finally Edit Your /etc/lilo.conf file <-> image = /boot/vmlinuz-x.x.x

label = New Kernel
root = /dev/hdx
read-only
(Note: ) look at the previous parameters in the lilo.conf file and note what "root =" and use what exists.

Exit and Save lilo.conf type "/sbin/lilo"

AND REBOOT!!!
for the Lilo, is that all I need or do I need to copy everything from the old kernel? Thanks!
 
Old 03-05-2004, 09:53 AM   #7
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
the instructions look all right except that there's no need t get rid of the old initrd-*.img file. In fact, you shyouldn't remove it since you'll probably lose the ability to boot the old kernel unless you change the lilo.conf enry to not use initrd.
Also, after compiling, you can do
make install
which will take care of things. It even edits lilo.conf and installs lilo - though you should look at lilo.conf and make sure it has the right entries so you can boot to the old kernel.
 
Old 03-05-2004, 09:57 AM   #8
Mr.Kex
Member
 
Registered: Jan 2004
Location: Belguim
Distribution: Slackware 9.1
Posts: 63

Original Poster
Rep: Reputation: 15
It gives the same black screen, no difference if you choose 2.4 or 2.6...
 
Old 03-05-2004, 04:02 PM   #9
jrhessey
LQ Newbie
 
Registered: Feb 2004
Location: NW Ohio
Distribution: Red Hat 9.0 Mankdrake 9.2
Posts: 13

Rep: Reputation: 0
quatsch...

I got the howto from this site... Is there anyway you can give us a dummied version of the howto, or knonw where one is?
 
Old 03-05-2004, 04:21 PM   #10
quatsch
LQ Addict
 
Registered: Aug 2003
Location: New York, NY
Distribution: gentoo, gentooPPC
Posts: 1,661

Rep: Reputation: 48
you mean a howto for kernel compile?

I would begin with the README file in the kernel source tree. It's always a good idea to take a look at readme and install files. It's actually pretty straight forward. They are slightly unclear about what to do after you do make xconfig (or menuconfig or however you want to configure the kernel). Do

make bzImage
make modules
make moudles_install
make install

(in this order). the make install will take care of copying things into the right places and edits lilo.conf and even runs lilo.

As for the particular problem with the screen going blank, compare the append= lines in the entries in lilo.conf and also entries vga=. Adjust the entries of the 2.6. entry so they look the same as for 2.4 kernel. And then run lilo again.
 
Old 03-08-2004, 12:07 AM   #11
Thulemanden
Member
 
Registered: Sep 2003
Location: Copenhagen, Denmark
Distribution: PC-BSD, PCLOS, MeeGo, Win 7
Posts: 189

Rep: Reputation: 30
New kernel two-step

Quote:
Originally posted by jrhessey
quatsch...

I got the howto from this site... Is there anyway you can give us a dummied version of the howto, or knonw where one is?
http://www.mandrakesecure.net/en/kernelupdate.php

Quote from the link:
There are a few steps to installing a new kernel that is released by MandrakeSoft for the Mandrake Linux distribution. While it is certainly easier to install kernels now than it used to be, a few precautions will ensure that if you do have any difficulties with the new kernel, you can boot into the previous one.

x86 Kernel Updates:

Open a terminal as root and update your urpmi sources:

# urpmi.update -a


Read the advisory so you know what kernel version to install; for instance if the filename is kernel-2.4.19.24mdk-1-1mdk.i586.rpm you will want to execute:

# urpmi kernel-2.4.19.24mdk

[replace this kernel name with the actual current kernel you are looking for]

This will install the new kernel alongside any old kernels that are currently on your system. Next, edit* the /etc/lilo.conf or /boot/grub/menu.list file (depending upon your bootloader). Ensure that you will be able to boot your old kernel by making sure a stanza exists for it specifically. If this is your first kernel update on the system, you likely will have two stanzas that point to symlinks; the kernel installer always updates these to point to the latest vmlinuz and initrd.img files. Usually a copy and paste of the new kernel stanza and modifying the kernel number is all you will need. For instance, if the new kernel is 2.4.19-24mdk and the release kernel is 2.4.19-16mdk, copy the -24mdk stanza and replace -24mdk with -16mdk.

If you use lilo, once you have modified your /etc/lilo.conf file, you must execute "lilo -v". Grub users do not have to do anything extra. Now you can reboot into the new kernel.

*Edit LILO means replacing the name in the 'default' line to the name in the label line for your new kernet.

Don't forget to run /sbin/lilo once; then reboot.
 
Old 03-09-2004, 12:22 PM   #12
Dave LaFond
LQ Newbie
 
Registered: Feb 2004
Distribution: Mandrake 9.2
Posts: 2

Rep: Reputation: 0
On my system I get to lilo and select "Linux" and then have to type "nolapic" in order for my system to load. If I don't, my monitor clicks blank and stops booting into linux. Not sure why this works and not sure how to make this addition permanent... but I still love linux!
 
Old 03-09-2004, 01:07 PM   #13
Rounan
Member
 
Registered: Jun 2003
Location: Ontario
Distribution: Ubuntu, Gentoo, Debian
Posts: 416

Rep: Reputation: 30
To make it permanent, edit lilo.conf to include the line:
append "noapic"
or add "noapic" to the list of appends already there

Make sure this is in the right kernel block - it should be in the boot section that corresponds to the "Linux" kernel you need to type that for.

Don't forget to run lilo after makingt he changes.

--Rounan
 
  


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
Freeze booting kernel - mdk 9.2, kernel 2.4.22-10mdk, Acer TM252LC thekro Linux - Laptop and Netbook 19 03-25-2006 04:56 AM
MDK 10.1 kernel from MDK 10.2 devel wasabi82 Mandriva 1 03-27-2005 05:15 PM
Using kernel 2.4 instead of 2.6 in Mdk 10 folavo Mandriva 3 04-18-2004 06:40 AM
Kernel 2.6.x and mdk 10 wichmann_uwe Mandriva 3 03-29-2004 05:00 AM
Does Mdk 9.2 come with 2.4.x or 2.6.x kernel? Kramer Mandriva 6 01-12-2004 07:01 PM

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

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