The package mirror archive you are using (in.archive.ubuntu.com) is not reachable. Try using a different mirror. In GNOME, just use System => Administration => Software Sources and select a different mirror in the field "Download from".
The package mirror archive you are using (in.archive.ubuntu.com) is not reachable. Try using a different mirror. In GNOME, just use System => Administration => Software Sources and select a different mirror in the field "Download from".
Thanks. It works.
I m able to compile my hello world module.
You're welcome
Hey buddy,
I had the same problem and just found the solution:
you're trying to compile the linux header directory.
if it looks something like
/usr/src/linux-headers-YOUR-KERNEL-VERSION - eg. mine is linux-headers-2.6.32-21
you're trying to compile the wrong folder.
Just go to www.kernel.org and download the kernel of your choice.
To uncompress the compressed source archive, be sure use the command they specify in the readme file and not the uncrompress command that comes up in the contextual menu when you right click on the archive in your file manager (eg. if you use Dolphin, don't right click on the file and select an option from the contextual menu like "Extract Archive Here" as that will give you errors when trying to compile).
Open a command prompt window. To extract the source code from the archive, go to the directory that has your compressed archive and use:
gzip -cd linux-2.6.XX.tar.gz | tar xvf -
or
bzip2 -dc linux-2.6.XX.tar.bz2 | tar xvf -
(where XX is your version of linux, include the minus sign in the command)
After that:
make menuconfig
(if you want to turn on certain modules in the kernel, I used this menu to turn on support for HFS+ and mac partitions as well as Virtualization so that my Virtualbox application can run faster).
make
(go have a coffee, it takes a while)
for anything else, check the readme file, it's very complete.
I had to doto get it to install the drivers. I'm rebooting nowCode:apt-get removebuild-essential linux-headers-$(uname -r)
seems to have worked
Hi all,
Here is the simplest solution.
use "make -C $(KDIR) M=$(PWD) modules" instead of "make -C $(KDIR) SUBDIR=$(PWD) modules"
and it works ...!!!
Closed, please don't bump old threads.
Bookmarks