Regardless to this article, I have finally succeed creating dkms for the uvcvideo module that can be installed into the generic kernel in case you have an upside down image from the webcam. The result video stream will turn upside down from any application such as kopete, wxcam, camorama, cheese and any other apps that get the stream video from uvcvideo.
Unfortunately since kernel 2.6.28, the uvcvideo module was included on kernel tree, thus the dkms cannot install properly since the location path were change from drivers/media/video to drivers/media/video/uvc for uvcvideo.ko.gz and also there are some slight updates from the uvcvideo developer that uvc_v4l2 has changed and cannot compile if you were using uvc_v4l2.c from svn trunk and not from the kernel source. The third problem was the patch I was created before was no longer work because the video function was changed to something else on the function module and give this error :
/home/jfdesign/src/rpm/SOURCES/uvcvideo/uvc_video.c:521: error: ‘video’ undeclared (first use in this function)
I dissected the uvcvideo from the main kernel source 2.6.33.4, grab the uvc_v4l2.c, create patch again, fix the spec file for uvcvideo.ko.gz new location path, and rebuild the rpm. Now I’ve got a working dkms-uvcvideo video flip rpm for my klixs-2010.1
Here is the patch, and here is the output message when installing the dkms :
{code type=CSS}
[root@jfklixs-domain noarch]# rpm -Uvh dkms-uvcvideo-0.1.0-7.svn263vflipklixs2010.noarch.rpm
Preparing… ########################################### [100%]
1:dkms-uvcvideo ########################################### [100%]
Creating symlink /var/lib/dkms/uvcvideo/0.1.0-7.svn263vflipklixs2010/source ->
/usr/src/uvcvideo-0.1.0-7.svn263vflipklixs2010
DKMS: add Completed.
Preparing kernel 2.6.33.4-jf3.bfs for module build:
(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routine
make mrproper….
Using /proc/config.gz
make oldconfig….
make prepare….
Building module:
cleaning build area….
make KERNELRELEASE=2.6.33.4-jf3.bfs -C /lib/modules/2.6.33.4-jf3.bfs/build SUBDIRS=/var/lib/dkms/uvcvideo/0.1.0-7.svn263vflipklixs2010/build modules…..
cleaning build area….
cleaning kernel tree (make mrproper)….
DKMS: build Completed.
uvcvideo.ko.gz:
– Installation
– Installing to /lib/modules/2.6.33.4-jf3.bfs/kernel/drivers/media/video/uvc/
depmod…….
DKMS: install Completed.
[root@jfklixs-domain noarch]#
[root@jfklixs-domain noarch]# rpm -Uvh dkms-uvcvideo-0.1.0-7.svn263vflipklixs2010.noarch.rpm
Preparing… ########################################### [100%]
1:dkms-uvcvideo ########################################### [100%]
Creating symlink /var/lib/dkms/uvcvideo/0.1.0-7.svn263vflipklixs2010/source -> /usr/src/uvcvideo-0.1.0-7.svn263vflipklixs2010
DKMS: add Completed.
Preparing kernel 2.6.33.4-jf3.bfs for module build:(This is not compiling a kernel, just preparing kernel symbols)
Storing current .config to be restored when complete
Running Generic preparation routinemake mrproper….
using /proc/config.gzmake oldconfig….
make prepare….
Building module:cleaning build area….make KERNELRELEASE=2.6.33.4-jf3.bfs -C /lib/modules/2.6.33.4-jf3.bfs/build SUBDIRS=/var/lib/dkms/uvcvideo/0.1.0-7.svn263vflipklixs2010/build modules…..cleaning build area….cleaning kernel tree (make mrproper)….
DKMS: build Completed.
uvcvideo.ko.gz: – Installation – Installing to /lib/modules/2.6.33.4-jf3.bfs/kernel/drivers/media/video/uvc/
depmod…….
DKMS: install Completed.
[root@jfklixs-domain noarch]#
{/code}
Hope it helps you if you dealt with same problem.