Problem in compiling a kernel module

Ponkumaran Annadurai aspkumaran at gmail.com
Sun Jul 10 12:59:38 EDT 2011


On Sun, Jul 10, 2011 at 10:09 PM, Niamathullah sharief
<newbiesha at gmail.com>wrote:

> Dear Kumaran,
>
> Try to compile with the below makefile
>
> *"
>
> obj-m += hello-1.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"
>
> *This was the one I tried first, but it didn't work. The code suggested by
> Prashant worked. I just want to know why the above code doesn't work.
>
> Regards
> Sharief
>
> Thanks sir, It worked. But still I couldn't understand what is the wrong in
> the makefile given in TLDP.org, also the if statements as said in the
> previous mail.
> One more thing can I install the new kernel in a virtual machine like
> virtual box? if so how can I do it? coz I can't access Internet from that
> kernel. Suggesting some measures will be helpful.
>
> --
> thanks,
> kumaran
>
> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies at kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>>
>


-- 
thanks,
kumaran
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20110710/75292b3b/attachment.html 


More information about the Kernelnewbies mailing list