Hello,
New member here:)
I need to make a System Call like this article here which I followed
https://arvindsraj.wordpress.com/2012/10/05/adding-hello-world-system-call-to-linux/
I downloaded Linux Kernel 3.2.0 and I have done the modifications are being said in the above article
According to this I am trying to install the Kernel with : sudo make modules_install
http://www.howopensource.com/2011/08/how-to-compile-and-install-linux-kernel-3-0-in-ubuntu-11-04-10-10-and-10-04/
I have this error:cp: cannot stat ' /usr/src/linux-3.2.0/modules.builtin': NO such file directory
make: ***[_modinst_] Error 1
I installed module but again this error
Something more:
In the 1st article
Now, in the root directory of the kernel sources, create a directory named hello and in it, a file hello.c with the following content:
#include <linux/kernel.h> asmlinkage long sys_hello(void) { printk("Hello world\n"); return 0; }
printk is similar to printf function of C but writes to the kernel log instead of the screen. asmlinkage is a key word used to indicate that all parameters of the function(here none of course :) ) would be available on the stack.
The root directory of the kernel sources is the linux-3.2.0 Folder??
I had never any experience with kernel if you know any book to get some more explanation please write
Thanks in advance