Click to See Complete Forum and Search --> : Kernel compiling questions
Infected
07-07-2001, 05:51 PM
I'm trying to update my kernel to 2.4.6, but whenever I try to use my old config, I get errors on "make modules". Ok, this is what I did:
Downloaded the tar.gz from kernel.org. Extracted it into /usr/src. Ran "make mrproper". Copied my config file from /boot and renamed it to ".config". Did a "make oldconfig" and answered some questions. Did a "make bzImage", then a "make modules", but it failes to finish that process.
I tried doing a "make xconfig" with success, but it wouldn't boot correctly. Does anyone know how to keep my old config without getting errors in the compile?
Thanks
slapNUT
07-07-2001, 07:36 PM
Did a "make bzImage", then a "make modules", but it failes to finish that process.
What is the error?
I tried doing a "make xconfig" with success, but it wouldn't boot correctly.
Well since make oldconfig fails and make xconfig works I would think that there is something worng with that old config file.
Go with the make xconfig and see if you can figure out the boot problem. Where does it fail in the boot process?
icedfusion
07-07-2001, 09:23 PM
before doing make dep
try doing 'make mrproper' first.
ice.
ronmon
07-07-2001, 10:12 PM
Your old config file probably won't work because there are new features in the kernel and they don't match up with what the config is asking it to make. Do make mrproper first (sets config file to defaults), then do make xconfig from scratch.
Infected
07-08-2001, 12:43 AM
I think it's maybe because I don't understand the make xconfig options. Obvously I'm not turning on the correct options. I guess I'll go with an RPM when it comes out.
Infected
07-08-2001, 01:53 AM
Here's the errors when I do make modules using my old config:
buz.c: In function `v4l_fbuffer_alloc':
buz.c:188: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:188: (Each undeclared identifier is reported only once
buz.c:188: for each function it appears in.)
buz.c: In function `jpg_fbuffer_alloc':
buz.c:262: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:256: warning: `alloc_contig' might be used uninitialized in this function
buz.c: In function `jpg_fbuffer_free':
buz.c:322: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c:316: warning: `alloc_contig' might be used uninitialized in this function
buz.c: In function `zoran_ioctl':
buz.c:2837: `KMALLOC_MAXSIZE' undeclared (first use in this function)
buz.c: In function `zr36057_init':
buz.c:3215: too few arguments to function `video_register_device_R32dcfedb'
make[3]: *** [buz.o] Error 1
make[3]: Leaving directory `/usr/src/linux/drivers/media/video'
make[2]: *** [_modsubdir_video] Error 2
make[2]: Leaving directory `/usr/src/linux/drivers/media'
make[1]: *** [_modsubdir_media] Error 2
make[1]: Leaving directory `/usr/src/linux/drivers'
make: *** [_mod_drivers] Error 2
bdg1983
07-08-2001, 05:58 AM
I would suggest you print out a hardcopy of your oldconfig and then use make xconfig using the oldconfig as reference. Use common sense with the newer options (select the defaults) and also refer to the hardcopy.