MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
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.
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!
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.
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.
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.
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!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.