LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-08-2005, 05:25 PM   #1
brianez21
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Rep: Reputation: 0
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--

Last edited by brianez21; 02-08-2005 at 05:28 PM.
 
Old 02-09-2005, 02:45 AM   #2
harken
Member
 
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
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.
 
Old 02-09-2005, 03:16 PM   #3
brianez21
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
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--

Last edited by brianez21; 02-09-2005 at 05:29 PM.
 
Old 02-09-2005, 07:17 PM   #4
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,249

Rep: Reputation: 101Reputation: 101
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!
 
Old 02-10-2005, 07:17 AM   #5
HalfDiminished
Member
 
Registered: Jan 2005
Location: Santa Barbara, CA
Distribution: Ubuntu Hoary/Debian 3.1/RHEL-WS3/DSL 1.1
Posts: 66

Rep: Reputation: 15
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.
 
Old 02-10-2005, 03:30 PM   #6
brianez21
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
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
 
Old 02-11-2005, 04:08 PM   #7
brianez21
LQ Newbie
 
Registered: Feb 2005
Posts: 14

Original Poster
Rep: Reputation: 0
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.
 
Old 02-11-2005, 07:33 PM   #8
AJones
Member
 
Registered: Feb 2005
Posts: 95

Rep: Reputation: 16
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
recompile kernel niteshg Linux - General 9 01-02-2005 12:25 AM
how to recompile kernel 2.4.21-15.EL zameer_india Linux - Newbie 2 12-24-2004 01:02 AM
kernel recompile Prism Slackware 8 08-30-2004 12:53 PM
kernel recompile error (kernel panic) tombaaaaa Linux - Newbie 4 08-04-2004 04:32 PM
recompile the kernel!!! :O HELP! gangster_god Mandriva 3 04-06-2004 03:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration