LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Knoppix Kernel recompile (https://www.linuxquestions.org/questions/debian-26/knoppix-kernel-recompile-287851/)

brianez21 02-08-2005 05:25 PM

Knoppix Kernel recompile
 
Hello all:
I am using Knoppix 3.4 (which is based on Debian) with kernel 2.6.6. I would like to upgrade to the 2.6.10 kernel except I can't get the sources to compile.

Code:

...
drivers/char/drm/drm_stub.h:216: warning: 'inter_module_unregister' is deprecated (declared at include/linux/module.h:578)
make[3]: *** [drivers/char/drm/gamma_drv.o] Error 1
make[2]: *** [drivers/char/drm] Error 2
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2
root@thinkpad:/usr/src/linux#

Please help me, I am a n00b to kernel recompiling!
Thanks.

--edit--
I have been using the howto at http://www.desktop-linux.net/debkernel.htm.
--edit--

harken 02-09-2005 02:45 AM

I had the same problem in Debian when I tried to compile in /usr/src. In another directory, created by me in /home it compiles fine. I don't know exactly why is this happening but you might want to give it a try.

brianez21 02-09-2005 03:16 PM

Thanks for your reply!
I'm going to try compiling in '/home/brian/linux-2.6.10' as root.
I'll get back to you as soon as possible.

--edit--
Also, I'm going to try this with the default configuration too.
--edit--

m_yates 02-09-2005 07:17 PM

I had the same error trying to compile kernel 2.6.9. The gamma_drv driver is broken and must be disabled. The bug page for it is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=282964

Change your kernel configuration with "make menuconfig" and de-select the driver. After that, "make-kpkg clean" and then "make-kpkg --initrd --append-to-version=-<NAME> kernel_image" It should work. Good luck!

HalfDiminished 02-10-2005 07:17 AM

I know its kind of old school, but I still prefer to compile from a symlink in /usr/src. Lets say you have the kernel source directory kernel-source-2.6.10 in /usr/src. Now do

ln -s kernel-source-2.6.10 linux

Then,

cd linux

Now, do the kernel configuration and build like m_yates said (though I prefer xconfig). I sometimes find that certain modules won't compile right and will kick out of make with error 2. So far, I have just de-selected each one and recompiled and I've never had a problem. Now, if a module that won't compile is actually necessary for system functionality, that is a major problem. Probably worthy of a bug report. It would be NICE if a non-critical module build failure would not prematurely terminate the compilation process, but I'm sure there's a reason for this. If anybody knows, please post.

brianez21 02-10-2005 03:30 PM

Compiling in another dir didn't work. (Same error... :()
I'm going to turn off the module and try again.
I'll tell you what happens

brianez21 02-11-2005 04:08 PM

Instead of turning off just that module, I said "Select only drivers expected to compile cleanly" (as suggested in the link a few posts up) and I was able to compile the kernel!

Thank you SOOO much for all your help, I really appreciate it.

AJones 02-11-2005 07:33 PM

Problem compiling Kernel 2.6.10 Mepis
 
Hi:

I am stuck with make-kpkg it is is exiting on result of not finding /usr/share/kernel-package/rules file. What are the rules files, where can I find them?

Thanks
AJ


All times are GMT -5. The time now is 06:24 PM.