Re: New to kernel programming

2009-07-16 Thread Nikolay N. Ivanov
Hi Kousik. On Wed, Jul 15, 2009 at 11:13 PM, Kousik Maitimaiti.kou...@gmail.com wrote: Hi list, I am new to kernel programming. I want to create a module. For that I follow http://crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module . When I run make command I got this message.

Re: New to kernel programming

2009-07-16 Thread Robert P. J. Day
On Thu, 16 Jul 2009, Nikolay N. Ivanov wrote: Hi Kousik. On Wed, Jul 15, 2009 at 11:13 PM, Kousik Maitimaiti.kou...@gmail.com wrote: Hi list, I am new to kernel programming. I want to create a module. For that I follow http://crashcourse.ca/wiki/index.php/Writing_your_first_kernel_module

Re: New to kernel programming

2009-07-16 Thread Kousik Maiti
This is my makefile: ifeq($(KERNELRELAESE),) KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd) .PHONY: module clean module: $(MAKE) -C $(KERNELDIR) M=$(PWD) modules clean: rm -rf *.o *~ core .depend .*.cmd *.mod.c .tmp_versions

Re: New to kernel programming

2009-07-16 Thread Robert P. J. Day
On Thu, 16 Jul 2009, Kousik Maiti wrote: This is my makefile: ifeq    ($(KERNELRELAESE),) ^^^ wrong         KERNELDIR ?= /lib/modules/$(shell uname -r)/build         PWD := $(shell pwd) .PHONY: module clean module:         $(MAKE) -C $(KERNELDIR) M=$(PWD) modules

Re: New to kernel programming

2009-07-16 Thread Kousik Maiti
Thanks Robert. On Thu, Jul 16, 2009 at 8:15 AM, Robert P. J. Day rpj...@crashcourse.cawrote: On Thu, 16 Jul 2009, Kousik Maiti wrote: This is my makefile: ifeq($(KERNELRELAESE),) ^^^ wrong KERNELDIR ?= /lib/modules/$(shell uname -r)/build

what is the purpose of the include/config directory?

2009-07-16 Thread Robert P. J. Day
i can see that, after i run make modules_prepare, i have a new directory in the kernel source tree include/config full of empty header files. what is the function of this directory? is it just keeping track of which header files have been processed for exporting to userspace or what? i

Re: New to kernel programming

2009-07-16 Thread Vineet Agarwal
Hi Kousik, Please refer The Linux Kernel Module Programming Guide or http://tldp.org/LDP/lkmpg/2.6/html/ for clear understanding of the concept of Module Programming . On Thu, Jul 16, 2009 at 2:14 PM, Kousik Maitimaiti.kou...@gmail.com wrote: Thanks Robert. On Thu, Jul 16, 2009 at 8:15 AM,

Re: what is the purpose of the include/config directory?

2009-07-16 Thread Kristof Provost
On 2009-07-16 05:07:23 (-0400), Robert P. J. Day rpj...@crashcourse.ca wrote: i can see that, after i run make modules_prepare, i have a new directory in the kernel source tree include/config full of empty header files. what is the function of this directory? is it just keeping track of

thoughts on next kernel newbie column -- useful make targets

2009-07-16 Thread Robert P. J. Day
once again putting the collective brainpower of this list to work, i'm going to take a bit of a detour for my next linux.com kernel newbie column and talk about how to configure, build and reboot a new kernel since, without being able to do that, you're really pretty limited in terms of what

Re: thoughts on next kernel newbie column -- useful make targets

2009-07-16 Thread Andre Haupt
On Thu, Jul 16, 2009 at 08:52:58AM -0400, Robert P. J. Day wrote: what other targets have people found useful that aren't immediately obvious? make silentoldconfig ;-) regards, Andre -- To unsubscribe from this list: send an email with unsubscribe kernelnewbies to ecar...@nl.linux.org

TESTING ROUTING CODE !!

2009-07-16 Thread Leena M.
How can we test routing and other networking code given a single machine with plenty of ram and processing power ? Regards, Leena

Re: TESTING ROUTING CODE !!

2009-07-16 Thread Kent Tu
I'd recommend you to use virtual machines. On Jul 16, 2009, at 10:39 AM, Leena M. kernm...@gmail.com wrote: How can we test routing and other networking code given a single machine with plenty of ram and processing power ? Regards, Leena -- To unsubscribe from this list: send an email

Re: TESTING ROUTING CODE !!

2009-07-16 Thread Leena M.
Any specific VM do you recommend , How about Xen ? Regards, Leena On Thu, Jul 16, 2009 at 11:36 PM, Kent Tu kach...@gmail.com wrote: I'd recommend you to use virtual machines. On Jul 16, 2009, at 10:39 AM, Leena M. kernm...@gmail.com wrote: How can we test routing and other networking

Re: TESTING ROUTING CODE !!

2009-07-16 Thread Mulyadi Santosa
On Fri, Jul 17, 2009 at 1:13 AM, Leena M.kernm...@gmail.com wrote: Any specific VM do you recommend , How about Xen ? Regards, Leena Please don't top post... Since you talked about routing protocol, I think User Mode Linux would do just fine. It runs completely in user space and can be

Re: TESTING ROUTING CODE !!

2009-07-16 Thread Mulyadi Santosa
On Fri, Jul 17, 2009 at 12:39 AM, Leena M.kernm...@gmail.com wrote: How can we test routing and other networking code given a single machine with plenty of ram and processing power ? Uhm, use virtual machine such as User Mode Linux or Qemu/KVM? -- regards, Mulyadi Santosa Freelance Linux

Re: Checking Installed library

2009-07-16 Thread Rishi Agrawal
Is autoconfigure the only way to find this out.?? On Wed, Jul 15, 2009 at 6:52 AM, Pei Lin telent...@gmail.com wrote: i think u should refer to the autoconfigure and check how they do these things, all the open source package use configuration file to check the library dependence.