LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-18-2006, 08:12 AM   #1
NeoMagic
LQ Newbie
 
Registered: Jun 2006
Posts: 16

Rep: Reputation: 0
Exclamation how to compile a 2.6 kernel module?


i have a ethernet card driver source code for 2.4.
while i compile the same in 2.6 (mandriva 2006), it still generates ".o" instead of ".ko" . so it reports as invalid module type while inserting.

what changes should i do for makefile to generate a .ko ?

By the way the card is Silan PCI Fast Ethernet Adapter with lscpci output -
01:02.0 Ethernet controller: Unknown device 1904:2031 (rev 01).
Anyone succesful in using it under 2.6 ?

Plz help..

Regards,
Neo
 
Old 07-18-2006, 10:07 AM   #2
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by NeoMagic
i have a ethernet card driver source code for 2.4.
while i compile the same in 2.6 (mandriva 2006), it still generates ".o" instead of ".ko" . so it reports as invalid module type while inserting.

what changes should i do for makefile to generate a .ko ?

By the way the card is Silan PCI Fast Ethernet Adapter with lscpci output -
01:02.0 Ethernet controller: Unknown device 1904:2031 (rev 01).
Anyone succesful in using it under 2.6 ?

Plz help..

Regards,
Neo
Well if it is the same make file as posted on this page I would try changing the TARGET = sc92031.o to TARGET = sc92031.ko to see if it will build with the .ko extentsion.
 
  


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
Compile a kernel module Ralc Linux - Newbie 5 03-11-2006 08:51 AM
can't compile kernel with agpgart as module rabalder321 Linux - Newbie 2 12-23-2005 09:22 PM
Compile in kernel or module? maginotjr Slackware 4 06-30-2005 11:54 AM
can't Compile a module under Kernel 2.4.20-8 srsairam Linux - Software 3 11-09-2004 12:45 AM
can i compile just one kernel module whithout recompiling the whole kernel? edman007 Linux - Software 3 02-17-2004 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:53 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