Page 1 of 2

Raspberry Pi drivers

PostPosted: Fri Sep 13, 2013 5:06 am
by madasahatter
Hi all

I posted in another thread, but I am really interested in this as a solution to what I am trying to do that I thought I would post again.

The TBS 5280 box is great. I used it in a Proof of Concept with a Linux Ubuntu Laptop, it tunes well and changes well. I was really happy with what isn't the cheapest tuner on the market

However, like a lot of people I don't want a laptop to be running my backend recording machine. In fact given its h264 hardware decoding and encoding a Raspberry Pi seems ideal, and hence the big push to make them into media centres.

The problem here is that the compilation will fail for the modules because TBS ships some .o files for its drivers. Now, I know this is proprietary code, so if you don't want to release the source then fair enough (although what is the harm actually?). But please could you do a version for Raspberry Pi?(perhaps beta) I have a cross compiler ready to go, so I'll try it if you like.

Just think : a full hi-def, dual tuner system for $40 + the TBS5280. Perfect. And totally silent. Even my wife would have it in the living room...

Please consider this request. You know you want to.

Re: Raspberry Pi drivers

PostPosted: Fri Sep 13, 2013 7:28 am
by crazycat
You can replace proprietary binary driver for TBS5280 frontend with open-source TDA18212/CXD2820R drivers (included in official V4L tree).
See my mods:
Switchover to tda18212/cxd2820r tuner/demod drivers for TBS5280.
+ Experimental fix for TBS5280.

Need testing, maybe second tuner not work.

Re: Raspberry Pi drivers

PostPosted: Sat Sep 14, 2013 2:48 am
by madasahatter
Great. I will try this out and see how I get on.

Cheers

Re: Raspberry Pi drivers

PostPosted: Sat Sep 14, 2013 5:49 am
by madasahatter
Hi Crazycat

I had a bit of a go, but got these errors. I am bound to be doing something stupid :D

/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:209:9: error: unknown field 'if_dvbt2_6' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:210:9: error: unknown field 'if_dvbt2_7' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:210:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:210:9: warning: (near initialization for 'tda18212_config0') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:211:9: error: unknown field 'if_dvbt2_8' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:211:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:211:9: warning: (near initialization for 'tda18212_config0') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:213:9: error: unknown field 'loop_through' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:213:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:213:9: warning: (near initialization for 'tda18212_config0') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:214:9: error: unknown field 'xtout' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:215:1: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:215:1: warning: (near initialization for 'tda18212_config0') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:222:9: error: unknown field 'if_dvbt2_6' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:223:9: error: unknown field 'if_dvbt2_7' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:223:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:223:9: warning: (near initialization for 'tda18212_config1') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:224:9: error: unknown field 'if_dvbt2_8' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:224:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:224:9: warning: (near initialization for 'tda18212_config1') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:226:9: error: unknown field 'loop_through' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:226:9: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:226:9: warning: (near initialization for 'tda18212_config1') [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:227:9: error: unknown field 'xtout' specified in initializer
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:228:1: warning: excess elements in struct initializer [enabled by default]
/home/pi/linux-tbs-drivers/v4l/cx231xx-dvb.c:228:1: warning: (near initialization for 'tda18212_config1') [enabled by default]

Re: Raspberry Pi drivers

PostPosted: Sun Sep 15, 2013 11:29 am
by updatelee
Your compiling TBS drivers. crazy cat sgested v4l drivers

UDL

Re: Raspberry Pi drivers

PostPosted: Mon Sep 16, 2013 2:41 am
by madasahatter
My bad - will try again with reduced stupidity :)

Re: Raspberry Pi drivers

PostPosted: Wed Sep 18, 2013 4:36 am
by madasahatter
Well, I have tried a number of things.

With the tbs drivers as a starting point, but replaceing cx231xx-dvb.c with Crazycat's code, I have to comment out the dependancies to the binary driver files so it will compile. It then doesn't see the driver module for the tuner when plugged in.

When I start with the V4L code and substitute the same file it fails with more errors - some of the variables are't defined (if_dvbt2_7 for instance).

So I am stumped (which doesn't take much) I'm afraid. Would anyone else have any more pointers for me to try?

Steve

Re: Raspberry Pi drivers

PostPosted: Wed Sep 18, 2013 9:13 am
by crazycat
Need adapt code to modern V4L (integrated in kernels 3.x). Look-like tda18212/cxd2820r drivers improved and have simplified config structures.

Re: Raspberry Pi drivers

PostPosted: Wed Sep 18, 2013 7:29 pm
by madasahatter
Sounds like a lot of work :( I would offer to help out, but I am no coder.

If there IS anything I could do to help then shout up though?

Re: Raspberry Pi drivers

PostPosted: Thu Oct 31, 2013 7:59 pm
by madasahatter
Hi all

Not sure whether anyone is interested, but I have managed to get the TBS5280 to work with Raspberry Pi.

While it is early days, so the system hasn't been up for days and days yet, it has recorded two HD channels at the same time and written to an external drive which worked really well.

If anyone is interested, I can put the steps up. you have to recompile your RPi Kernel...

None of it would have worked without Crazycats hard work though, so a great deal of thanks are due to him. And for the record BOTH tuners work completely fine.

Steve