ljalves / linux_media

TBS linux open source drivers
https://github.com/ljalves/linux_media/wiki
Other
88 stars 151 forks source link

TBS6285 V12M no signal #84

Closed ghost closed 8 years ago

ghost commented 9 years ago

I've re-opened this and removed posts from other issues to prevent them being brought off-topic.

However I have the following:

V12M TBS 6285 which I can't get any signal with.

My motherboard block diagram is like this:

Notice that the card is connected on PCIE4 through a PCI-E siwtch (PLX PEX 8747).

I've tried the card in PCIE3 and PCI7 i.e. not though a switch in case it was that that was causing the problems but the card isn't even recognized by the BIOS on those sockets!

I just tried with the latest repos, using firmware from both bas-t and OE repo with int_type=1 and int_type=0:

int_type=0: I can scan but get only some channel information but can't play and of the channels. TVHeadend reports a transport error:

tvheadend[4335]: TS: Silicon Labs Si2168/522,000 kHz/BBC TWO: Transport error indicator
tvheadend[4335]: TS: Silicon Labs Si2168/522,000 kHz/BBC TWO: MPEG2VIDEO @ #201: Continuity counter error

int_type=1: I can scan but get no channel information at all and can't play any channels.

I'm not using IOMMU and I'm also doing a "full initialization" of the card to DVBT2 using dvb-fe-tool.

I've also tested just using w_scan and it finds things but never gets any channel information.

The official drivers work, however they're unstable (whole system tends to freeze after a few days of uptime).

Nothing appears to be working :(

Dmesg:

[  535.825804] si2168 2-0064: found a 'Silicon Labs Si2168' in cold state
[  535.825824] si2168 2-0064: downloading firmware from file 'dvb-demod-si2168-a20-01.fw'
[  537.254066] si2168 2-0064: found a 'Silicon Labs Si2168' in warm state
[  537.256039] si2157 3-0062: found a 'Silicon Labs Si2146/2147/2148/2157/2158' in cold state
[  537.256050] si2157 3-0062: downloading firmware from file 'dvb-tuner-si2158-a20-01.fw'
bas-t commented 9 years ago

Silicon Labs Si2168 should be loading dvb-demod-si2168-b40-01.fw afaik.

ghost commented 9 years ago

Is that an issue on my end or the driver end? It seems like the driver is specifically looking for that version of the firmware...

Looking at my board, the chip label says "SI2168 20" on it. Are you sure about needing B40 firmware?

bas-t commented 9 years ago

Can't tell, Luis did not merge latest patch series for Si2168 and SI2157 yet. Are you running Debian Jessie?

ghost commented 9 years ago

I'm running Gentoo (gentoo-sources-3.17.7)

bas-t commented 9 years ago

Well, you can try compiling from my repos, works for me. Do:

git clone git://github.com/bas-t/media_build.git -b arch git clone --depth=1 git://github.com/bas-t/media_tree.git -b arch && cd media_build make dir DIR=../media_tree make distclean make allyesconfig sed -i 's/SYS_DVBT, SYS_DVBT2, SYS_DVBC_ANNEX_A/SYS_DVBT/' drivers/media/dvb-frontends/si2168.c make -j3 && make install cp -f /data/v4l/media_tree/firmware_extra/* /lib/firmware/ echo "options saa716x_budget int_type=1" > /etc/modprobe.d/tbs_opensource.conf

And now, poweroff your system completely for a minute or so. After boot, it should work. You don't need the dvb-fe-tool anymore, as your adapter is set to DVB-T permanently. Best of luck!

bas-t commented 9 years ago

Ok, the sed line is in two lines, should be on one line

ghost commented 9 years ago

Thanks bas-t. But how does your repo differ from Luis' ?

bas-t commented 9 years ago

It is updated with the patch series that Luis does not have, also I synced 2157 with upstream, so it differs from Luis' branch. (I've sent Luis a PR for that, but he did not merge it yet) and last but not least, it installs the drivers in the 'update'dir of your kernel. So it is easy to remove when you are not satisfied.

ghost commented 9 years ago

Ok thanks. I've currently got my own Gentoo ebuild which installs into a folder I've named "dvb-os" which gives the same result.

@ljalves Is it possible to merge the above patches?

ghost commented 9 years ago

FYI the output of w_scan with FE set to DVBT2 using dvb-fe-tool: (there should ~140 services)

....
....
Info: no data from SDT(actual)
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from PMT
Info: no data from NIT(actual)
dumping lists (12 services)
service_id 8258;(null):498000:B8:T:27500:1701=2:1702=eng@4,1703=eng:0;1731:0:8258:0:0:0
service_id 8325;(null):498000:B8:T:27500:1801=2:1802=eng@4,1803=eng:0;1831:0:8325:0:0:0
service_id 8357;(null):498000:B8:T:27500:1901=2:1902=eng@4,1903=eng:0;1931:0:8357:0:0:0
service_id 8448;(null):498000:B8:T:27500:1301=2:1302=eng@4,1303=eng:0;1331:0:8448:0:0:0
service_id 8452;(null):498000:B8:T:27500:1201=2:1202=eng@4,1203=eng:0;1231:0:8452:0:0:0
service_id 8500;(null):498000:B8:T:27500:1601=2:1602=eng@4,1603=eng:0;1631:0:8500:0:0:0
service_id 4287;(null):522000:B8:T:27500:201=2:202=eng@3,206=eng:0;205:0:4287:0:0:0
service_id 5632;(null):522000:B8:T:27500:0:1402=eng@3:0:0:5632:0:0:0
service_id 5760;(null):522000:B8:T:27500:0:1602=eng@3:0:0:5760:0:0:0
service_id 5888;(null):522000:B8:T:27500:0:1802=eng@3:0:0:5888:0:0:0
service_id 6848;(null):522000:B8:T:27500:0:1202=eng@3:0:0:6848:0:0:0
service_id 6912;(null):522000:B8:T:27500:0:1302=eng@3:0:0:6912:0:0:0
Compulsion commented 9 years ago

Looks like you're in the UK epon. I've got a 6281. TBS drivers work mostly okay for me with int_type=1, only issue I have is occasional pixelation when both tuners are in use. Did you have the same issue bas-t? (I vaguely remember you mentioning it somewhere)

With ljalves drivers, DVBT seems to work okay, but not DVBT2. First dvbv5-zap failed to lock, second worked, but all subsequent attempts fail (but DVBT continues to work). I posted in another issue: https://github.com/ljalves/linux_media/issues/78

I tried your arch branch today bas-t. Much the same result, only difference was that it was the first T2 zap attempt that locked.

The T2 steams I did manage to capture suffer constant pixelation (you'll have to open the full size version to see!): vlcsnap-2015-02-15-18h19m52s232

bas-t commented 9 years ago

@Compulsion @epon You both seem to suffer from DVB-T/T2 issues, I can't reproduce this. I'm using DVB-C No issues whatsoever over here (afaik)

bas-t commented 9 years ago

@epon : try the sed method in favour of the dvb-fe-thingy. You just might get lucky!

ghost commented 9 years ago

@bas-t Hmm, should I set it to DVB-T or DVB-T2?

bas-t commented 9 years ago

Dunno, try one. Educated guess: DVB-T

ghost commented 9 years ago

@bas-t It's a tricky one because here in the UK we use both DVB-T and DVB-T2. The latter are HD muxes only.

bas-t commented 9 years ago

@epon However, you still have to load the right firmware. You may or may not remember: I've got a V12M too. In fact, that was the board Luis used to get this 6285 thing going. And I must say: thanks to Luis, I'm still going strong!

I don't know for sure, but you can try (in one line) :

sed -i 's/SYS_DVBT, SYS_DVBT2, SYS_DVBC_ANNEX_A/SYS_DVBT, SYS_DVBT2/' drivers/media/dvb-frontends/si2168.c

This should support both DVB-T and DVB-T2

bas-t commented 9 years ago

I realy don't know if the driver supports both DVB-T and DVB-T2 at the same time. I'm guessing it doesn't. So, if you need both systems, you best set one or two of the si2168 chips to DVB-T and the others to DVB-T2. Of course, that brings you back to the dvb-fe-thingy. Well, happy experimenting!

ghost commented 9 years ago

However, you still have to load the right firmware

@bas-t Looking at the image in my first post I'm thinking the firmware is correct.

I realy don't know if the driver supports both DVB-T and DVB-T2 at the same time. I'm guessing it doesn't.

@bas-t If this is true then it's a real shame and this driver won't be any good for me. It's simply too inefficient to have tuners restricted to either DVB-T or DVB-T2... :(

ant-thomas commented 9 years ago

I don't really know much (or anything) about these things but should it be much different to how all the DVB-S2 cards can handle both S and S2 broadcasts with the @ljalves drivers?

CkNoSFeRaTU commented 9 years ago

I'm also have V12M 6285 board with Si2168-20 chip and tried today using DVB-T2 without any success. Tried both this tree latest branch and bas-t arch branch with gentoo 3.19.1 kernel. Tried both tuner firmwares 2.1.6 and 2.1.9. Modules and firmwares looks like loading fine, except there are some warnings about sysfs which cannot create symlinks and duplicate filenames. Tuning also seems work fine, but there are no usable data. I have two frequencies in town:

TBS proprietary drivers work fine(I'm using CrazyCat's tree https://bitbucket.org/CrazyCat/linux-tbs-drivers). If I load proprietary drivers after opensource ones there are some warnings about demod command is not responding during load, but card starts working fine.

I'm also have 6985 V11 board on the same machine, not tested it much but looks like working fine with this tree.

ljalves commented 9 years ago

I don't have access to a DVB-T2 mux so I can't help much... But If I were one of you guys having issues with dvb-t2 I would first ask for help in the official linux media mailing list. The si2168/si2158 drivers are comming from there.

I would first ask if anyone using a card with those chips works ok with dvb-t2.

CkNoSFeRaTU commented 9 years ago

I'll give it a try with mailing list. Meanwhile if you are interested I can setup test machine and provide remote access to it if that helps.

CkNoSFeRaTU commented 9 years ago

Just for FIY. Yesterday with latest branch I successfully tunned 6285 V12M board to our DVB-T2 muxes. No issues since then. Dunno whats changed in codebase from May.

Interesting if it'll be more stable than proprietary driver with which I had "no data" stucks after 1-2 weeks of uptime. According to beholders forum silabs made new demod firmware patch specifically for Russian DVB-T2 muxes. But it is not clear if it even exist for si2168-a20, they are not using those chips and provide fix only for A30/B40.

ljalves commented 8 years ago

Closing - reopen if needed.