Howto build kernel module?
Grant Edwards
grante at visi.com
Thu Sep 15 21:31:28 UTC 2005
On 2005-09-15, Grant Edwards <grante at visi.com> wrote:
> # sudo apt-get install build-essential linux-headers-`uname -r`
>
> All of the packages needed are available on the Ubuntu CD.
>
> I did that, and the linux-headers are installed under /usr/src,
> but I still can't compile a kernel module:
>
> ***
> *** Host machine kernel version=2.6.12-8-386, Driver kernel version=2.6.12-8, Path to kernel sources=/usr/src/linux, use KBUILD=yes
> ***
> make -C /usr/src/linux M=/home/grante/peak-linux-driver-3.21/driver V=0 modules
> /bin/sh: /usr/src/linux-headers-2.6.12-8/scripts/gcc-version.sh: No such file or directory
> make[1]: Entering directory `/usr/src/linux-headers-2.6.12-8'
>
> WARNING: Symbol version dump /usr/src/linux-headers-2.6.12-8/Module.symvers
> is missing; modules will have no dependencies and modversions.
Ah. I had symlinked
/usr/src/linux -> /usr/src/linux-headers-2.6.12-8
when I should have done
/usr/src/linux -> /usr/src/linux-headers-2.6.12-8-386
--
Grant Edwards grante Yow! I'm sitting on my
at SPEED QUEEN... To me,
visi.com it's ENJOYABLE... I'm
WARM... I'm VIBRATORY...
More information about the ubuntu-users
mailing list