The uname -r command gives the kernel version as 2.6.25.20-0.1-pae
but the contents of /usr/src does not contain such a folder.Here’s the output of **ls -l /usr/src **:
lrwxrwxrwx 1 root root 19 2009-02-14 11:26 linux -> linux-2.6.25.20-0.1
drwxr-xr-x 6 root root 4096 2009-02-14 11:27 linux-2.6.25.18-0.2
drwxr-xr-x 22 root root 4096 2009-02-14 11:25 linux-2.6.25.20-0.1
drwxr-xr-x 3 root root 4096 2009-02-14 11:32 linux-2.6.25.20-0.1-obj
drwxr-xr-x 4 root root 4096 2008-09-24 15:49 linux-2.6.25.5-1.1
lrwxrwxrwx 1 root root 23 2009-02-14 11:26 linux-obj -> linux-2.6.25.20-0.1-obj
drwxr-xr-x 7 root root 4096 2008-06-10 17:54 packages
My question is where is the correlation? I am basically trying out a simple kernel module but when i give the path of any of the folders in the makefile, it gives the following
make: Entering directory `/usr/src/linux-2.6.25.20-0.1'
WARNING: Symbol version dump /usr/src/linux-2.6.25.20-0.1/Module.symvers
is missing; modules will have no dependencies and modversions.
thisisravi:
The uname -r command gives the kernel version as 2.6.25.20-0.1-pae
but the contents of /usr/src does not contain such a folder.Here’s the
output of *ls -l /usr/src *:
Code:
lrwxrwxrwx 1 root root 19 2009-02-14 11:26 linux ->
linux-2.6.25.20-0.1 drwxr-xr-x 6 root root 4096 2009-02-14 11:27
linux-2.6.25.18-0.2 drwxr-xr-x 22 root root 4096 2009-02-14 11:25
linux-2.6.25.20-0.1 drwxr-xr-x 3 root root 4096 2009-02-14 11:32
linux-2.6.25.20-0.1-obj drwxr-xr-x 4 root root 4096 2008-09-24 15:49
linux-2.6.25.5-1.1 lrwxrwxrwx 1 root root 23 2009-02-14 11:26
linux-obj -> linux-2.6.25.20-0.1-obj drwxr-xr-x 7 root root 4096
2008-06-10 17:54 packages --------------------
My question is where is the correlation? I am basically trying out a
simple kernel module but when i give the path of any of the folders in
the makefile, it gives the following
Code:
make: Entering directory `/usr/src/linux-2.6.25.20-0.1’
WARNING: Symbol version
dump /usr/src/linux-2.6.25.20-0.1/Module.symvers is missing; modules
will have no dependencies and modversions. --------------------
Hi
When building modules aside from installing the kernel-source, you need
linux-kernel-headers, kernel-syms and module-init-tools installed.
–
Cheers Malcolm °¿° (Linux Counter #276890 )
openSUSE 11.1 x86 Kernel 2.6.27.7-9-default
up 1 day 0:11, 1 user, load average: 0.12, 0.19, 0.16
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.29
Thanks Malcom, but i have a doubt: is the pae kernel version(2.6.25.20-0.1-pae ) the same as the one pointed by the symlink /usr/src/linux(linux-2.6.25.18-0.2 ) ?
Hi
The links should point to the current running kernel, it’s
down in the /lib/modules where the kernel type is picked up.
In your case the links are correct from your first post both point to
2.6.25.20-0.1
–
Cheers Malcolm °¿° (Linux Counter #276890 )
openSUSE 11.1 x86 Kernel 2.6.27.7-9-default
up 1 day 13:03, 1 user, load average: 0.12, 0.65, 0.58
GPU GeForce 6600 TE/6200 TE - Driver Version: 180.29