Unknown symbol video_device_alloc
I am working on a V4L2 USB camera driver and I am unable to install the driver due to unknown symbols.
I am building my driver piecmeal. I first created the driver skeleton and was able to install the driver. I then added the USB
probe() and disconnect() capability and I can detect when the camera is inserted and removed from a USB port. I then added my V4L2 calls and this is where I encountered a problem.
My kernel is :
$ uname -r
3.2.0-31-generic
The OS version is:
$ cat os-release
NAME="Ubuntu"
VERSION="12.04.1 LTS, Precise Pangolin"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu precise (12.04.1 LTS)"
VERSION_ID="12.04"
When I install my driver, here is the error:
$ sudo insmod mydriver.ko
insmod: error inserting 'mydriver.ko': -1 Unknown symbol in module
The kernel log provided more information:
$dmesg
[146129.548776] mydriver: Unknown symbol video_unregiste
[146129.548809] mydriver: Unknown symbol video_device_alloc (err 0)
[146129.548844] mydriver: Unknown symbol __video_
[146129.548866] mydriver: Unknown symbol video_device_
What I can not figure out is why the video functions are not resolved.
Shouldn't these functions be part of the pre-built kernel?
Is there a work around by manually installing a driver that contains these symbols?
Any suggestions would be greatly appreciated.
Joe
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu linux Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Joe Kreidler
- Solved:
- Last query:
- Last reply: