2009/05/01

Compile kernel module in Ubuntu 9.04 - Preparation

The installed Ubuntu 9.04 here is a desktop version. Therefore I need to install the additional linux source before next step. apt-get install linux-source Then you will get a tarball linux-source-2.6.28.tar.bz2 in your /usr/src. Now change your directory to /usr/src and unpack the tarball. cd /usr/src tar xjf linux-source-2.6.28.tar.bz2 & (or you may unpack in this way bzip2 -d linux-source-2.6.28.tar.bz2 tar xvf linux-source-2.6.28.tar A 330MB tar file is generated from a 52MB(?) bz2 file. You can remove it after unpack completed.) Then you shall get a directory linux-source-2.6.28. The last step is to make a symbolic link as below, ln -s linux-source-2.6.28 linux Now we can start to compile our first kernel module hello :) ref: http://easylinuxcds.com/blog/?p=3244

沒有留言: