LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-02-2012, 01:23 PM   #1
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Rep: Reputation: 1
Red face compiled drivers and *.ko files


Hi there!

Maybe it sounds like a silly question, but here it is:
I need a driver for a card, there are no debian packages for debian 6, only for debian 4. I downloaded the sources, and tried to compile them. So far, I have done make config and make succesfully. But when I try make install, it is trying to copy two files with the extension .ko. I wonder if those files should be created during the make step or if those files were supposed to be in the sources that I downloaded.

any comment or help is really appreciated.
Thanks

Last edited by orcaja; 02-02-2012 at 01:39 PM. Reason: I
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-02-2012, 01:59 PM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
.ko files are kernel modules. They were compiled when you ran make, and should be installed if you run 'make install' as root. They usually go in /lib/modules/$(uname -r)/somewhere.
 
3 members found this post helpful.
Old 02-03-2012, 09:53 AM   #3
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Original Poster
Rep: Reputation: 1
Modpost 0 modules

Does the Modpost indicates the number of built modules?, I'm trying to figure out why make doesn't generate the modules I need.
 
Old 02-03-2012, 10:00 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
It sounds like you are building the module successfully. There are three vital concerns to be carefully aware of when dealing with these modules:
  1. You must make sure that it is being compiled against the source-code of the kernel that is actually in-service.
  2. You must make sure that no other copies of the same or a similar module are anywhere in the source tree.
  3. You must make sure that the kernel correctly knows about the module and where it is located, and that it will load exactly the right one.
A kernel module, once loaded, is fully part-and-parcel of "the kernel" and, if it is incorrect, your system will surely and completely die.
 
Old 02-03-2012, 04:06 PM   #5
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Original Poster
Rep: Reputation: 1
warning: passing argument 1 of '__memcpy'

I'm having this warning:

warning: passing argument 1 of '__memcpy' discards qualifiers from pointer target type

Does anybody know what that means?
I'm running debian 6 with kernel 2.6.32
Any advice is very welcome!

Last edited by orcaja; 02-08-2012 at 01:30 PM. Reason: keep it simple
 
Old 02-08-2012, 02:39 PM   #6
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Original Poster
Rep: Reputation: 1
Passing argument discards qualifiers from pointer target type

As I said before, when I type make, I get this:

advk_core.c:1593: warning: passing argument 1 of ‘__constant_memcpy’ discards qualifiers from pointer target type

I attached the advk_core.c file, just in case somebody would like to see it.

thanks in advance.
Joc
Attached Files
File Type: txt advk_core.txt (46.4 KB, 30 views)
 
Old 02-09-2012, 03:39 AM   #7
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292Reputation: 1292
It's just a warning, if it compiles in the end just ignore the warning.
 
Old 02-09-2012, 07:14 AM   #8
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Original Poster
Rep: Reputation: 1
ok!, thanks
insdmod doesn't have more messages.

My next question is: how to compile a second module which uses some functions from the first module, that I already compile?....

Last edited by orcaja; 02-09-2012 at 07:20 AM.
 
Old 02-09-2012, 08:16 AM   #9
orcaja
Member
 
Registered: Aug 2008
Posts: 92

Original Poster
Rep: Reputation: 1
I found it!

http://www.linuxquestions.org/questi...e-tree-706737/

Thank you so much to everyone!!!
 
  


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
How could you use request_firmware for drivers compiled in to the kernel? AustinMarton Linux - Kernel 2 03-15-2011 08:43 PM
Is there a distribution that has qla2xxx fc drivers already compiled? sdad Linux - Newbie 4 09-09-2010 03:05 PM
Problem running .o files after they are compiled from .c files in fedora core 1 Starrie Linux - Newbie 1 03-05-2009 09:24 PM
How to list drivers compiled into the kernel? Tischbein Linux - Hardware 2 10-15-2006 12:23 PM
Installed vs. Compiled Drivers, Which To Use? Brain2000 Linux - Newbie 1 06-14-2004 10:41 PM

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

All times are GMT -5. The time now is 04:17 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration