title: Compilation error for Linux kernel module programming
body: <p>I am learning Linux kernel module programming. I am using Beaglebone black for that. I have made simple 'Hello World' application and makefile. I have checked my makefile it's proper. But when I command 'make', it gives me following error:</p>
  
  <pre><code>root@beaglebone:/home/sonu# make
  make: Warning: File `Makefile' has modification time 2.2e+02 s in the future
  make -C /lib/modules/3.8.13-bone70/build M=/home/sonu modules
  make: *** /lib/modules/3.8.13-bone70/build: No such file or directory.  Stop.
  make: *** [all] Error 2
  </code></pre>
  
  <p>Though I referred some websites. But, all they are asking me to install packages. As I am a newbie. I don't even know how to configure and start internet connection on Beaglebone using ethernet. Please help me I am stuck. Thanks in advance.</p>
  
  <p><strong>Code is:</strong></p>
  
  <pre><code>#include&lt;linux/module.h&gt;
  #include&lt;linux/kernel.h&gt;
  #include&lt;linux/init.h&gt;
  
  static int __init hello(void)
  {
     printk(KERN_INFO "Hello World!");
     return 0;
  }
  
  static void __exit hello_cleanup(void)
  {
     printk(KERN_INFO "Bye");
  }
  
  module_init(hello);
  module_exit(hello_cleanup);
  </code></pre>
  
  <p><strong>Makefile is:</strong></p>
  
  <pre><code>obj-m+=Hello.o
  
  all:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules
          $(CC) Hello.c -o test
  clean:
          make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean
          rm test
  </code></pre>