This forum is in archive mode. You will not be able to post new content.

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - resid3nt

Pages: [1]
1
I did all the process from the begining

I donwloaded the kernel 3.2.0
 *linux_3.2.0-83.120.diff.gz
 *linux_3.2.0.orig.tar.gz
 *linux_3.2.0-83.12.0.dsc
 
 I had combined all these in linux-3.2 Folder

 
 I had inserted my System Call
Code: [Select]
https://arvindsraj.wordpress.com/2012/10/05/adding-hello-world-system-call-to-linux/
 According to this guide I try to Build the kernel and then Install it
Code: [Select]
https://wiki.ubuntu.com/Kernel/BuildYourOwnKernel
 When i write fakeroot debian/rules clean an erro appears :
 
 /usr/bin/fakeroot: line 178: debian/rules: no such a file or directory
 
 Thanks
 
 Using Ubuntu 12.04 64bit kernel 3.10

2
They finished

output error:

ld: cannot find bloc/helloworld: No such file or directory
make: ***[vmlinux.o] Error 1

---
My system call is helloworld

3
You need to compile the kernel and modules first.
Code: [Select]
$ make # Compile the kernel
$ make modules # Compile the modules
$ make install # Install the kernel (just moves it to /boot and stuff)
$ make modules_install # Install the modules

Thanks a lot

The root directory of the kernel sources is the linux-3.2.0 Folder??

4
ok thanks a lot

I did make and make modules

I will try all of them again

5
Operating System / [Question]-Make a System Call Linux Kernel 3
« on: May 02, 2015, 02:21:21 PM »
Hello,
New member here:)

I need to make a System Call like this article here which I followed
Code: [Select]
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
Code: [Select]
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
Quote
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

Pages: [1]


Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.