Moderator Control Panel ]

Raspberry Pi drivers

Raspberry Pi drivers

Postby madasahatter » Fri Sep 13, 2013 5:06 am

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.
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby crazycat » Fri Sep 13, 2013 7:28 am

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.
crazycat
 
Posts: 536
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: Raspberry Pi drivers

Postby madasahatter » Sat Sep 14, 2013 2:48 am

Great. I will try this out and see how I get on.

Cheers
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby madasahatter » Sat Sep 14, 2013 5:49 am

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]
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby updatelee » Sun Sep 15, 2013 11:29 am

Your compiling TBS drivers. crazy cat sgested v4l drivers

UDL
TBS6925/5980, Prof 7301/7500/8000, Genpix Skywalker-1, Skystar 2 Express HD
Hauppauge 950Q, Kworld 330U/435v3/445v3
Dreambox 800

I use Linux and support open source projects.
User avatar
updatelee
 
Posts: 374
Joined: Wed Jul 25, 2012 11:48 am
Location: CFB Edmonton

Re: Raspberry Pi drivers

Postby madasahatter » Mon Sep 16, 2013 2:41 am

My bad - will try again with reduced stupidity :)
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby madasahatter » Wed Sep 18, 2013 4:36 am

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
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby crazycat » Wed Sep 18, 2013 9:13 am

Need adapt code to modern V4L (integrated in kernels 3.x). Look-like tda18212/cxd2820r drivers improved and have simplified config structures.
crazycat
 
Posts: 536
Joined: Mon Jan 31, 2011 2:46 am
Location: Ukraine, Kharkov

Re: Raspberry Pi drivers

Postby madasahatter » Wed Sep 18, 2013 7:29 pm

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?
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Re: Raspberry Pi drivers

Postby madasahatter » Thu Oct 31, 2013 7:59 pm

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
madasahatter
 
Posts: 10
Joined: Sat Aug 31, 2013 4:21 am

Next

Return to Linux

Who is online

Users browsing this forum: No registered users and 1 guest