LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Just finished up a kernel compile... (https://www.linuxquestions.org/questions/linux-general-1/just-finished-up-a-kernel-compile-112789/)

Kramer 11-05-2003 03:36 PM

Just finished up a kernel compile...
 
And its still doing the same thing! Lots of stuff doesnt work. Heres a brief list:

ACPI
Mouse
Soundcard
Touchpad
Windows Partition

I tried copying my old kernel config file onto the new one, so I would still have what I need, and obviously it didnt work. Heres what I did:

'make mrproper'
'make oldconfig'
gedit Makefile EXTRAVERSION=ACPI
'make dep'
'make clean'
'make bzImage'
'make modules'
'make modules_install'
'make install'

Can anyone tell me where Im going wrong? Im getting sick of having to reinstall Linux becuase I cant use anything. Ive tried this like 3 times, and it keeps screwing up. I get lots of modprobe errors, and it says my cd-rw/dvd drive has been removed, my mouse has been removed, it cant start alsa blah blah blah. Can someone help me?

Mara 11-05-2003 03:41 PM

Why do you think about a system reinstall? Reinstall only kernel (boot from the installation cd, mount Linux partition and copy kernel RPM, then boot the system from hd and install kernel RPM and run lilo).

You need to compile the kernel again. But, before anything else: don't run 'make install' to install kernel! It usually overwrites the old one, what can be really bad if you don't know if the new one works correctly.

Could you write more about modprobe errors? Maybe copy part of it?

Kramer 11-05-2003 03:50 PM

I dont know how to recover a kernel off of the disks, so I have to reinstall everytime. I cant get the modprobe errors. They are all at boot, and they go by so quickly. Alot of it is about not finding stuff (cd, mouse, sound etc). How do I know if the kernel is going to work or not, before I do 'make install'. If I dont do 'make install' how can I boot onto my new kernel. And why didnt my copy of the old config file from my old kernel work?

FirebirdV0273 11-05-2003 08:42 PM

instead of using 'make oldconfig' use 'make menuconfig', it's a much better interface. maybe your problem is that you're just not compiling this kernel correctly. if you're using the same config file as the onld kernel then you're just ocmpiling the same kernel again. also, if you're compiling these things as modules you need to insert them into the kernel before they'll work.

Kramer 11-05-2003 09:04 PM

I want to use the options in the old kernel, since the new one keeps taking out my drivers and other things I need. Else, I have to go through and enable everything, and I dont know what everything does.

Kramer 11-06-2003 10:18 AM

Bump for help

lyx0m 11-06-2003 11:16 AM

I just read your message, here is what I do when copiling a new kernel....

1.- make xconfig <-----------Graphical interface
2.- make dep
3.- make bzImage
4.- make mddules
5.- make modules_install

once the new kernel is ready do a:
cd /usr/src/linux/arch/i386/boot (depends on your machine architecture)
cp -p bzImage /boot/mynewkernel
cd /boot
mkinitrd initimg <library_kernel_version> (this can be found under /lib/modules)

The if you have lilo, edit the lilo.conf file under /etc
add the new kernel and the image files
do a lilo -v
and reboot, you should be all set.

lyx0m

:Pengy:

Kramer 11-06-2003 11:22 AM

Ok, I think I may have been somewhat ambiguous in my original post, so Ill clear some things up.
Im running the 2.4.21-0.13mdk stock kernel. I downloaded the 2.4.22 full source. I compiled and then installed the new kernel. I boot onto it, and it cant find/cant open the things listed above, which basically cripples my computer. What Im trying to do is figure out what I need to enable in the 2.4.22 kernel to make it work, since it all works on the 2.4.21-0.13mdk kernel. I need the ACPI support and I2C sensors in the 2.4.22 kernel, but I dont know what else needs to be enabled in order for my stuff to work. There are so many things there, that I dont even know where to begin.

FirebirdV0273 11-07-2003 08:43 AM

afer you compiled your new kernel, did you edit your /etc/lilo.conf file? you need to do this because (i'm assuming that lilo is your bootloader) you need to tell lilo where your new kernel is so it can be booted. there's a good walkthrough for a complete kernel compilation here. hope that helps.

Bebo 11-07-2003 08:56 AM

The Mandrake kernel is not the same as the stock kernel, maybe this is the cause of your troubles? See here; this is Mandrake's howto for compiling your own kernel, where they also say that "It is highly modified for more additional functionalities.", referring to their own kernel.

Kramer 11-07-2003 08:59 AM

I did all that. I had the new kernel working for a while, but it added a million different CD rom drives to my system, I dont know why, but at least my mouse still worked. I tried recompiling, and now it wont work again. The init.img file that I use for boot, instead of the stock initrd.img doesnt point to anything, and I cant figure out why. I think its just a matter of knowing what I need to enable in the kernel

FirebirdV0273 11-07-2003 09:03 AM

ok, stuff doesn't just "add" itself (well, i don't know about mandrake). did you look in the /dev directory and see these drives? because all those drives don't actaully exist, they're just empty device files. they don't even take up any space on your hard drive.

Kramer 11-07-2003 09:06 AM

Yeah, I looked in /dev. When it boots it gives me about 8 error messages saying "this drive was removed, these were added" and there are like 8 CD drives there, only I have one. Needless to say I cant mount or unmount the one I do have, which makes package installation from the CD somewhat difficult

Kramer 11-07-2003 09:09 AM

Should I try the Mandrake source from the cooker or something? It says experimental and not for daily use on the webpage

Kramer 11-07-2003 09:13 AM

Or better yet, since I can get the 2.4.22mdk kernel from the Mandrake FTP, should I give that one a try? Its the kernel that comes with the new 9.2


All times are GMT -5. The time now is 11:32 PM.