LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-24-2005, 10:36 AM   #1
Pingus
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SuSE 9.1 pro/Debian Sarge
Posts: 61

Rep: Reputation: 15
linux-source vs. linux-tree for 2.6.12 kernel


Hello,

I have installed the kernel image version 2.6.12-1-686 from unstable on my Debian laptop a few weeks ago. In order to compile the madwifi module, I need the kernel sources and am instructed to use the command

make-kpkg --append-to-version "-1-686" --revision 2.x.y-z --config old configure

from within /usr/src/linux-source-2.6.12

I have two questions:

1) Shouldn't the command say "--config oldconfig" instead of "--config old"?

2) The kernel source package is now version 2.6.12-5 and no longer 2.6.12-1. When running the above command, I obtain a number of warnings saying

"warning: pointer targets in passing argument 1 of 'strtol' differ in signedness"

(which occurs for a bunch of files and a bunch of different functions). Is this due to the differing kernel revision number? If so, is kernel-source-2.6.12-1 still available? I also see a package names linux-tree-2.6.12. Is that what I should be using instead?

I could, of course, install kernel-image-2.6.12-5, but recompiling and reinstalling the Nvidia drivers is a bit of a pain, so I was trying to avoid it.

Thanks in advance
 
Old 08-24-2005, 12:04 PM   #2
ssfrstlstnm
Member
 
Registered: Dec 2004
Location: IN, USA
Distribution: debian etch
Posts: 402

Rep: Reputation: 30
Did you add the madwifi module using make menuconfig (or xconfig or whatever)? You need to do that first if you want the module to be available after compiling your kernel (assuming that it is not already available). You can take a look here:

Guide to 2.6 kernel compile

If you already have the kernel-source and you don't care about having a deb logo on bootup, you can make things easy and skip to step 6. Just change 2.6.7 to 2.6.12 and ignore the steps about boot logo. Also skip all but the first part of step 9.

I got a lot of warning messages about signdedness the last couple times I recompiled also (2.6.11). But everything seems to be working fine. Not sure what the errors were about. Maybe someone here knows.

btw, step 9 takes care of your config issue.
 
Old 08-24-2005, 12:25 PM   #3
Pingus
Member
 
Registered: Nov 2004
Location: Canada
Distribution: SuSE 9.1 pro/Debian Sarge
Posts: 61

Original Poster
Rep: Reputation: 15
ssfrstlstnm,

Thanks much. I ignored the warnings, compiled madwifi, inserted the module and all works fantastically, out of the box.

If anyone here knows why we get those warnings and what the difference between the linux-source and linux-tree packages is, I'll be very pleased to know.
 
Old 08-24-2005, 04:33 PM   #4
Xian
Member
 
Registered: Feb 2004
Location: 33.31N -111.97W
Distribution: SuSE
Posts: 918

Rep: Reputation: 31
Quote:
Originally posted by Pingus
If anyone here knows why we get those warnings and what the difference between the linux-source and linux-tree packages is, I'll be very pleased to know.
The linux or kernel-tree package includes not only the kernel source, but also the applicable Debian kernel/linux-patches.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Linux Kernel Source Tree Not found pzearfoss Linux - General 6 12-28-2004 02:16 PM
Linux Source Tree on Mandrake Linux v10 Mobsterkid Linux - Wireless Networking 1 08-09-2004 05:43 PM
linux kernel source tree not found whats wrong? vavoem Linux - Hardware 6 08-02-2004 07:35 AM
where is linux source build directory/kernel source tree? webazoid Linux - Software 2 07-01-2004 08:37 PM
linux source tree??? PlatinumRik Linux - Networking 4 02-13-2003 08:11 AM


All times are GMT -5. The time now is 10:58 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration