LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compiled drivers and *.ko files (https://www.linuxquestions.org/questions/linux-software-2/compiled-drivers-and-%2A-ko-files-927210/)

orcaja 02-02-2012 12:23 PM

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

H_TeXMeX_H 02-02-2012 12:59 PM

.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.

orcaja 02-03-2012 08:53 AM

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.

sundialsvcs 02-03-2012 09:00 AM

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.

orcaja 02-03-2012 03:06 PM

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!

orcaja 02-08-2012 01:39 PM

Passing argument discards qualifiers from pointer target type
 
1 Attachment(s)
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

H_TeXMeX_H 02-09-2012 02:39 AM

It's just a warning, if it compiles in the end just ignore the warning.

orcaja 02-09-2012 06:14 AM

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?....

orcaja 02-09-2012 07:16 AM

I found it!

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

Thank you so much to everyone!!! :)


All times are GMT -5. The time now is 08:35 PM.