Moderator Control Panel ]

Future of the Linux-Driver

Re: Future of the Linux-Driver

Postby krajok » Wed May 11, 2011 8:03 am

AndyBurns Wrote:Attached is a patch to be applied between untarring the source and building the driver

extract the source from linux-s2api-tbs6980_1.tar.bz2 as per normal instructions
cd /root/TBS6981/linux-s2api-tbs6980_1 (or whatever your build folder is)
patch -p0 <tbs6981-2.6.38.2-v1.patch
then run the v4l/tbs-x86_64.sh or v4l/tbs-x86.sh script depending if you're 64 or 32 bit
then make

It allows the V4L modules to compile and link, I've not even attempted installing or running the results, I haven't rebased the V4L sources to 2.6.38, simply fixed up the 2.6.35 versions to account for the mainline kernel changes that have caused the out-of-tree source to bitrot, it's a fairly mechanical job and I highly doubt this will work yet (fairly sure some of my removal of inode parameters and changing functions from returning int to long are wrong).

[Damn the phpBB seems configured not to allow .patch or .txt attachements, so contents are pasted below instead, hopefully no wrapping will occur, happy to email the file to anyone who requests it, patch v1 removed as v2 of the patch is now uploaded later in the thread]


Sorry, this is my first time in this forum. I know that you have a patch to use 6980/6981 driver in Ubuntu 11.04 but I don't know how to download your patch. Could you send me the link to download the patch or email your patch to me at krajok@hotmail.com

Thanks you.
krajok
 
Posts: 5
Joined: Wed May 11, 2011 7:43 am

Re: Future of the Linux-Driver

Postby smv1210 » Wed May 11, 2011 4:30 pm

http://adslpipe.co.uk/misc/tbs6981-2.6.38.2-v4.patch

However, I just wonder, why there is still no any; comments, clarifications and/or forecasts from the TBS linux support team??? :evil:
smv1210
 
Posts: 35
Joined: Wed May 19, 2010 4:13 pm

Re: Future of the Linux-Driver

Postby sami8519 » Wed May 11, 2011 4:40 pm

It is really getting bad from the TBS side. No replies, or communication whatsoever for a long time.
sami8519
 
Posts: 40
Joined: Fri Jun 18, 2010 2:08 pm

Re: Future of the Linux-Driver

Postby sami8519 » Wed May 11, 2011 6:06 pm

Unfortunately, I get this error during installing the patched firmware. Any help please?

Code: Select All Code
make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/home/sami/Downloads/linux-s2api-tbs6980_1/v4l  modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
  CC [M]  /home/sami/Downloads/linux-s2api-tbs6980_1/v4l/hdpvr-i2c.o
/home/sami/Downloads/linux-s2api-tbs6980_1/v4l/hdpvr-i2c.c: In function 'hdpvr_register_i2c_adapter':
/home/sami/Downloads/linux-s2api-tbs6980_1/v4l/hdpvr-i2c.c:130:20: error: 'I2C_CLASS_TV_ANALOG' undeclared (first use in this function)
/home/sami/Downloads/linux-s2api-tbs6980_1/v4l/hdpvr-i2c.c:130:20: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [/home/sami/Downloads/linux-s2api-tbs6980_1/v4l/hdpvr-i2c.o] Error 1
make[2]: *** [_module_/home/sami/Downloads/linux-s2api-tbs6980_1/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/sami/Downloads/linux-s2api-tbs6980_1/v4l'
make: *** [all] Error 2
root@natty-myth:~/Downloads/linux-s2api-tbs6980_1#
sami8519
 
Posts: 40
Joined: Fri Jun 18, 2010 2:08 pm

Re: Future of the Linux-Driver

Postby sami8519 » Wed May 11, 2011 7:07 pm

problem fixed. l have just to read the first 3 pages to get it solved. Thank you guys.

TBS, your products are going to be very unattractive dealing with us this way. :evil:
sami8519
 
Posts: 40
Joined: Fri Jun 18, 2010 2:08 pm

Re: Future of the Linux-Driver

Postby krajok » Wed May 11, 2011 10:07 pm

Thanks you, I'm compiling the driver of my tbs6980
krajok
 
Posts: 5
Joined: Wed May 11, 2011 7:43 am

Re: Future of the Linux-Driver

Postby krajok » Wed May 11, 2011 11:51 pm

After apply the patch. I got another errors.

root@pong-desktop:~/tbs/linux-s2api-tbs6980_1# make
make -C /root/tbs/linux-s2api-tbs6980_1/v4l
make[1]: Entering directory `/root/tbs/linux-s2api-tbs6980_1/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory `/root/tbs/linux-s2api-tbs6980_1/v4l/firmware'
make[2]: Leaving directory `/root/tbs/linux-s2api-tbs6980_1/v4l/firmware'
make -C firmware
make[2]: Entering directory `/root/tbs/linux-s2api-tbs6980_1/v4l/firmware'
make[2]: Nothing to be done for `default'.
make[2]: Leaving directory `/root/tbs/linux-s2api-tbs6980_1/v4l/firmware'
Kernel build directory is /lib/modules/2.6.38-8-generic/build
make -C /lib/modules/2.6.38-8-generic/build SUBDIRS=/root/tbs/linux-s2api-tbs6980_1/v4l modules
make[2]: Entering directory `/usr/src/linux-headers-2.6.38-8-generic'
CC [M] /root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.o
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c: In function 'native_ioctl':
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c:232:21: error: 'const struct file_operations' has no member named 'ioctl'
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c:237:19: error: 'const struct file_operations' has no member named 'ioctl'
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c: In function 'get_v4l2_format32':
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c:379:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c: In function 'put_v4l2_format32':
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c:410:2: warning: case value '0' not in enumerated type 'enum v4l2_buf_type'
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c: In function 'v4l2_compat_ioctl32':
/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.c:981:17: error: 'const struct file_operations' has no member named 'ioctl'
make[3]: *** [/root/tbs/linux-s2api-tbs6980_1/v4l/v4l2-compat-ioctl32.o] Error 1
make[2]: *** [_module_/root/tbs/linux-s2api-tbs6980_1/v4l] Error 2
make[2]: Leaving directory `/usr/src/linux-headers-2.6.38-8-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/root/tbs/linux-s2api-tbs6980_1/v4l'
make: *** [all] Error 2
krajok
 
Posts: 5
Joined: Wed May 11, 2011 7:43 am

Re: Future of the Linux-Driver

Postby sami8519 » Thu May 12, 2011 12:05 am

Anybody is using this patched driver with sasc-ng successfully?

Thanks.
sami8519
 
Posts: 40
Joined: Fri Jun 18, 2010 2:08 pm

Re: Future of the Linux-Driver

Postby krajok » Thu May 12, 2011 12:41 am

I think my problem should be my Ubuntu is amd64 because header of v4l2-compat-ioctl32.c is about 32bit and 64bit conversion.
Tomorrow I will reinstall my OS with Ubuntu x86 (32bit)

/*
* ioctl32.c: Conversion between 32bit and 64bit native ioctls.
* Separated from fs stuff by Arnd Bergmann <arnd@arndb.de>
*
* Copyright (C) 1997-2000 Jakub Jelinek (jakub@redhat.com)
* Copyright (C) 1998 Eddie C. Dost (ecd@skynet.be)
* Copyright (C) 2001,2002 Andi Kleen, SuSE Labs
* Copyright (C) 2003 Pavel Machek (pavel@suse.cz)
* Copyright (C) 2005 Philippe De Muyter (phdm@macqel.be)
* Copyright (C) 2008 Hans Verkuil <hverkuil@xs4all.nl>
*
* These routines maintain argument size conversion between 32bit and 64bit
* ioctls.
*/
krajok
 
Posts: 5
Joined: Wed May 11, 2011 7:43 am

Re: Future of the Linux-Driver

Postby smv1210 » Thu May 12, 2011 3:24 am

sami8519 Wrote:Anybody is using this patched driver with sasc-ng successfully?

Thanks.


Yes, I do use.

http://forum.ubuntu.ru/index.php?topic=79331.msg1096234#msg1096234

Step "3)" is about sasc-ng patching, needed for kernel 2.6.38 (press "Спойлер" button there, to see the patching code)
smv1210
 
Posts: 35
Joined: Wed May 19, 2010 4:13 pm

PreviousNext

Return to Linux

Who is online

Users browsing this forum: No registered users and 4 guests