Click to See Complete Forum and Search --> : How to compile and install 2.4 again?


Stormrider888
01-23-2001, 01:26 PM
Well, after a hour of configurating and installing all the stuff for kernel 2.4,
I tried to boot my new self-compiled kernel,during boot process I've encountered alot of error msgs like "module not found",
I think I did sth. wrong during configuration(make xconfig) and want to configure and ínstall the kernel again.
How can I do this without reinstalling mandrake 7.2 again?
How can I remove everything the kernel did and are the commands(make xconfig>make dep>make bzImage>make modules>make modules_install>make install the only commands needed to install it?
Is there a guide telling me what to do at all the configuration options for 2.4?
Thanks !

demian
01-23-2001, 01:38 PM
Did you upgrade your modutils?? That might cause the problems you encounter during boot.
As for getting back to where you were before you compiled: You did keep a backup copy of your old kernel, didn't you??? Just boot this a all will be fine. In case you didn't make a backup copy... well, you learned your lesson.

CMonster
01-23-2001, 01:49 PM
DrakConf - Tools for booting - Configure LILO/GRUB - use the dropdown box to select your old kernel, choose "add" you can also add the new kernel for expermental purposes.

demian is correct though - boot the old kernel and all will be well - except that you may have to reconfigure supermount in your /etc/fstab file or just right-click the desktop and choose "make new CDROM device" to create icons that will mount and unmount your CDROM, floppy, etc. I know that the old icons do not work as they did before - right? To unmount the CDROM using the new icons you are going to create (because you can't remember what went in /etc/fstab) simply right click and choose "unmount" from the options

------------------
CMonster says, "You can't choose the right OS if you don't have a choice."

Stormrider888
01-23-2001, 02:18 PM
Yes, I can boot from both the 2.2.17 kernel and 2.4 , but I want to get 2.4 runnin...
What is modutils? I did "make modules_install" , is that right?
How can I redo everything(the kernel configuration, installing...) without reinstalling the whole Linux?
Thnx again!

osnap
01-23-2001, 02:22 PM
What's happening is that you have a startup script somewhere that is trying to load modules that you don't have or need anymore. Find the script that is loading them and edit it to suit your needs. Otherwise live with the errors because they're probably harmless.

njcajun
01-23-2001, 03:59 PM
If you do 'make xconfig' there is a 'help' button next to every single option. Click it and it'll tell you pretty much exactly what's goin' on, so you'll know what to do for your system.

------------------
Build a system that even a fool can use, and only a fool will use it.

1pcWarren
01-24-2001, 05:14 AM
the 2.4.0 kernel needs modutils 2.4.0 - you can find the package in the cooker section of most Mandrake mirrors. you probably need a new /etc/modules.conf too (or conf.modules I forget http://www.linuxnewbie.org/ubb/smile.gif) back it up first! do a "modprobe -c" then remove the line at the top that says "generated by modprobe" from your new modules.conf then do a "depmod -a" then you can safely reboot & messages should dissappear. compare your old modules.conf with your new one, as some settings are made in this file which are not covered by the auto-generated "modprobe -c" - you may have to paste them in.

Mandrake now has 2.4.0 sorce in cooker, you might be better off using that, rather than the kernel.org one.

There is helpful information on compiling the kernel in the README file in the top dir of your kernel tarball (written by Linus!) & in the Mandrake reference manual @: http://63.209.80.231/en/doc/72/en/ref.html/compiling.html

------------------
Full plate and packing steel! - Minsk
http://www.linuxfreak.com/~wardonx
wardonx@linuxfreak.com

paully1
01-24-2001, 07:18 AM
ahh modutils, i didnt up upgrade that when i tried to install kernel 2.4.0-test11, dam hehe.

Stormrider888
01-24-2001, 08:06 AM
Hmm..where exactly is that cooker site from mandrake? I searxhed through the database , but could only find the old kernel and a hackkernel 2.4, also I only found modutils 2.3....
Thanx for the info , before I formatted my Linux once again!

Stormrider888
01-24-2001, 08:12 AM
I found the cooker ftp server, I'll gonna try it now, thx alot again!

Stormrider888
01-24-2001, 09:45 AM
Well, still got errors with my ISDN card(which I configured wrong during Kernel compiling) and with my sound card module("sth. with not found") I think I will recompile the 2.4 again...that isnt difficult or?I just do the steps again(make xconfig>make dep>make bzImage>make module>make module_install>make install
hope it works this time...