sswami
February 17th, 2013, 03:35 PM
Hello,
Can anyone please help me in this? I am having this problem with $`uname -r`
$3.5.0-23-generic.
1) I have downloaded the code for ivshmem from git://gitorious.org/nahanni/guest-code.git and am trying to build the uio_ivshmem kernel module
2) From nahanni/kernel_module/uio dir, I do a
- "sudo make" which builds the uio_ivshmem.ko file and then a
- "sudo make install" which copies the file to:
cp uio_ivshmem.ko /lib/modules/3.5.0-23-generic/kernel/drivers/uio/
3) I do a "sudo insmod uio_ivshmem.ko" and get the following error:
insmod: error inserting 'uio_ivshmem.ko': -1 Unknown symbol in module
4) I do a "dmesg | tail" and see the following:
[ 183.675921] uio_ivshmem: Unknown symbol __uio_register_device (err 0)
[ 183.675942] uio_ivshmem: Unknown symbol uio_event_notify (err 0)
[ 183.675955] uio_ivshmem: Unknown symbol uio_unregister_device (err 0)
5) I do 'cat /lib/modules/3.5.0-23-generic/build/Module.symvers | grep "uio" ' and get the following:
0x49988737 uio_event_notify drivers/uio/uio EXPORT_SYMBOL_GPL
0x493c2f92 uio_unregister_device drivers/uio/uio EXPORT_SYMBOL_GPL
0xb6583632 __uio_register_device drivers/uio/uio EXPORT_SYMBOL_GPL
6) I do "cat /usr/src/linux-headers-3.5.0-23-generic/Module.symvers | grep uio" and get the same output as in 5) above
7) I found in this link
http://www.linuxchix.org/content/courses/kernel_hacking/lesson2
http://www.linuxchix.org/content/courses/kernel_hacking/lesson8
that module versioning should always be turned off
8) I do a "sudo make menuconfig" and it shows me that module versioning is turned ON
My question is "Will turning OFF module versioning help?" And if so, how do I do it? If not, what should I do?
I tried both 12.10 and 12.04 and have the same issues in both.
And if this helps "ls -l /usr/src" outputs the following:
linux-headers-3.5.0-17
linux-headers-3.5.0-17-generic
linux-headers-3.5.0-23
linux-headers-3.5.0-23-generic
thanks in advance
-saswati
Can anyone please help me in this? I am having this problem with $`uname -r`
$3.5.0-23-generic.
1) I have downloaded the code for ivshmem from git://gitorious.org/nahanni/guest-code.git and am trying to build the uio_ivshmem kernel module
2) From nahanni/kernel_module/uio dir, I do a
- "sudo make" which builds the uio_ivshmem.ko file and then a
- "sudo make install" which copies the file to:
cp uio_ivshmem.ko /lib/modules/3.5.0-23-generic/kernel/drivers/uio/
3) I do a "sudo insmod uio_ivshmem.ko" and get the following error:
insmod: error inserting 'uio_ivshmem.ko': -1 Unknown symbol in module
4) I do a "dmesg | tail" and see the following:
[ 183.675921] uio_ivshmem: Unknown symbol __uio_register_device (err 0)
[ 183.675942] uio_ivshmem: Unknown symbol uio_event_notify (err 0)
[ 183.675955] uio_ivshmem: Unknown symbol uio_unregister_device (err 0)
5) I do 'cat /lib/modules/3.5.0-23-generic/build/Module.symvers | grep "uio" ' and get the following:
0x49988737 uio_event_notify drivers/uio/uio EXPORT_SYMBOL_GPL
0x493c2f92 uio_unregister_device drivers/uio/uio EXPORT_SYMBOL_GPL
0xb6583632 __uio_register_device drivers/uio/uio EXPORT_SYMBOL_GPL
6) I do "cat /usr/src/linux-headers-3.5.0-23-generic/Module.symvers | grep uio" and get the same output as in 5) above
7) I found in this link
http://www.linuxchix.org/content/courses/kernel_hacking/lesson2
http://www.linuxchix.org/content/courses/kernel_hacking/lesson8
that module versioning should always be turned off
8) I do a "sudo make menuconfig" and it shows me that module versioning is turned ON
My question is "Will turning OFF module versioning help?" And if so, how do I do it? If not, what should I do?
I tried both 12.10 and 12.04 and have the same issues in both.
And if this helps "ls -l /usr/src" outputs the following:
linux-headers-3.5.0-17
linux-headers-3.5.0-17-generic
linux-headers-3.5.0-23
linux-headers-3.5.0-23-generic
thanks in advance
-saswati