Page 5 of 6

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Feb 15, 2012 6:57 am
by tricky720101
When will the TBS 6981 work with ArchLinux 3.2.2-1-ARCH #1 SMP PREEMPT Thu Jan 26 08:40:20 CET 2012 x86_64 distribution.

Currently tried tbs drivers V111118 but they will not build, following are my steps...


[[email protected] media_build]# uname -a
Linux tv-server 3.2.2-1-ARCH #1 SMP PREEMPT Thu Jan 26 08:40:20 CET 2012 x86_64 Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz GenuineIntel GNU/Linux
[[email protected] media_build]# uname -r
3.2.2-1-ARCH
[[email protected] media_build]# ./v4l/tbs-x86_64.sh
TBS drivers configured for x86_64 platform.
[[email protected] media_build]# make

this is when it goes wrong on build...

/usr/src/media_build/v4l/cpia2_usb.c:70:1: warning: data definition has no type or storage class [enabled by default]
/usr/src/media_build/v4l/cpia2_usb.c:70:1: warning: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Wimplicit-int]
/usr/src/media_build/v4l/cpia2_usb.c:70:1: warning: parameter names (without types) in function declaration [enabled by default]
/usr/src/media_build/v4l/cpia2_usb.c: In function 'cpia2_usb_init':
/usr/src/media_build/v4l/cpia2_usb.c:902:9: error: 'THIS_MODULE' undeclared (first use in this function)
/usr/src/media_build/v4l/cpia2_usb.c:902:9: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/media_build/v4l/cpia2_usb.c:903:1: warning: control reaches end of non-void function [-Wreturn-type]
make[3]: *** [/usr/src/media_build/v4l/cpia2_usb.o] Error 1
make[2]: *** [_module_/usr/src/media_build/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-3.2.2-1-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/usr/src/media_build/v4l'
make: *** [all] Error 2

I have tried on ubuntu 10.04, 11.04 & 11.10 32-bit all OK just does not work on Archlinux???
cheers
Rick

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Feb 15, 2012 9:39 am
by SergioDanielG
I don't know exactly, but the problen is with kernel 3.2.x
TBS published a new version yesterday, download and try it: http://www.tbsdtv.com/download/document ... 120212.zip
I'm using this driver with kernel 3.2.0-1-amd64 in Debian.

Best regards

Re: Linux Driver for Kernel 3.x Released

PostPosted: Mon Jun 25, 2012 5:45 pm
by Niels
Tried to upgrade to the latest kernel 3.5, but latest driver won't compile. It can't find a function called 'err'.
I had to revert to the old kernel 3.2.

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Jul 25, 2012 12:12 pm
by updatelee
Im sure youve figured this out already but here goes

sudo make clean
sudo v4l/tbs-x86_64.sh
sudo make
sudo make install

compiles fine on 3.5 for me w/ubuntu 12.04

Re: Linux Driver for Kernel 3.x Released

PostPosted: Tue Oct 16, 2012 12:01 am
by hda
I'm having problems compiling the driver for kernel 3.6.2 x86_64 Arch Linux.

Everything is going fine until i get to this

Code: Select all
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-routing.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-cards.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-controls.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-driver.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-fileops.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-firmware.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-gpio.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-i2c.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-ioctl.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-irq.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-mailbox.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-queue.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-streams.o
  CC [M]  /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.o
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c: In function 'ivtv_udma_fill_sg_list':
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:60:44: error: 'KM_BOUNCE_READ' undeclared (first use in this function)
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:60:44: note: each undeclared identifier is reported only once for each function it appears in
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:60:4: error: too many arguments to function 'kmap_atomic'
In file included from include/linux/pagemap.h:10:0,
                 from /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-driver.h:51,
                 from /home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:23:
include/linux/highmem.h:66:21: note: declared here
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:62:37: error: macro "kunmap_atomic" passed 2 arguments, but takes just 1
/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.c:62:4: error: 'kunmap_atomic' undeclared (first use in this function)
make[3]: *** [/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l/ivtv-udma.o] Error 1
make[2]: *** [_module_/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-3.6.2-1-ARCH'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/hda/tmp/tbs-linux-drivers_v120827/linux-tbs-drivers/v4l'
make: *** [all] Error 2


Anyone have any ideas?

Re: Linux Driver for Kernel 3.x Released

PostPosted: Tue Oct 16, 2012 10:59 am
by SergioDanielG

Re: Linux Driver for Kernel 3.x Released

PostPosted: Tue Oct 16, 2012 9:39 pm
by updatelee
Kmap functions have changed in recent kernels, you can either patch it your self, Google it took find lots of threads, or just don't compile that module.

make menuconfig
Or
nano .config

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Oct 17, 2012 1:35 am
by hda
Thanks for the input but I have no idea which .config things to change.

I'll just have to wait for an updated package from tbs.

ARGH. I forgot how annoying these drivers can be as it's been a year since any problems.

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Oct 17, 2012 3:35 am
by updatelee
I'm not a huge fan of the fact is a separate tree either, if much rather a set of patches.

I've thought about supporting the tbs stuff and making my own patch set but they didn't make it easy with precompiled .o files that do trivial things, shame they couldn't just do the entire thing opensrc.

Re: Linux Driver for Kernel 3.x Released

PostPosted: Wed Oct 17, 2012 4:26 am
by hda
Yes it's a shame.

The hardware seems really good but this is the first and last time I will be buying any pc parts without a driver in mainline kernel.