AnsweredAssumed Answered

Linux Kernel Module

Question asked by JavierNS on Aug 2, 2016
Latest reply on Aug 22, 2016 by larsc

I am trying to compile a kernel module for the Analog´s Linux for the ad9467 converter. When I execute the make file I get the following error:

 

" make -C /lib/modules/3.19.0-ge739692/build M=/home/analog/driver modules

make: *** /lib/modules/3.19.0-ge739692/build: No such file or directory.  Stop.

make: *** [all] Error 2 "

 

The makefile that I have used it is the following:

"

obj-m += comp_axi_module.o

all:

  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:

  make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean    "

 

And these are the libraries that I am using in this module:

"

#include <linux/module.h>

#include <linux/kernel.h>

#include <linux/init.h>

#include <linux/interrupt.h>

#include <linux/irq.h>

#include <asm/io.h>

#include <linux/fs.h>

#include <linux/signal.h>

#include <asm/siginfo.h>

#include <linux/rcupdate.h>

#include <linux/sched.h>

#include <linux/debugfs.h>

#include <linux/uaccess.h>  "

 

Where can I find these libraries ?

I have used this module in other Linux distributions such as xillinux and I did not have any problem.

Outcomes