Welcome! Log In Create A New Profile

Advanced

DVB support?

Posted by chessplayer 
DVB support?
May 29, 2019 02:35PM
Hi everyone (and bodhi in particular),

after a few years I am currently trying to see what my old Kirkwood machines can still do and first of all I would like to say thank you very much to bodhi for keeping this alive.

Anyway, way back when I used the boxes as a headless VDR, which worked quite well. The problem was that I needed USB receivers which were installed in user space and cost a lot more than the boxes themselves. Meanwhile, however, there is the XBOX One Digital TV Tuner which is a really cheap option for DVB-C (and also DVB-T(2)). Apparently, this is supported in mainlne from kernel 4.16-rc1 according to LinuxTv.org.

Sure enough, when I plug the tuner in on my Ubuntu Laptop running kernel 4.18.0-20, it not only recognizes the tuner but generates a DVB-device in /dev/dvb/adapterX (usually X=0, if no other DVB-devices are present). Using the latest rootfs with kernel 5.1.0 on a Kirkwood box, the tuner is recognized:
lsusb
Bus 001 Device 003: ID 05dc:a205 Lexar Media, Inc. 
Bus 001 Device 004: ID 045e:02d5 Microsoft Corp. Xbox One Digital TV Tuner
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
but the DVB device is not generated, so the tuner cannot be used.

What would I need to do to add DVB support for the boxes?

Help greatly appreciated, as always!

Cheers,

chessplayer

---
Standart ist der Standardfehler
Re: DVB support?
May 29, 2019 05:31PM
Welcome back chessplayer :)

I recall I built the DVB drivers as loadable modules. So you probably need to add to /etc/initramfs-tools/modules to make them loaded automatically.

Or modprobe them now to check.

I will take a look and verify this.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: DVB support?
May 30, 2019 02:06PM
Hi bodhi,

thanks for the info. So, after plugging in the tuner, on my laptop I get:

lsmod | grep dvb
dvb_usb_dib0700       159744  0
dib7000m               24576  1 dvb_usb_dib0700
dib0090                36864  1 dvb_usb_dib0700
dib0070                20480  1 dvb_usb_dib0700
dib3000mc              20480  1 dvb_usb_dib0700
dibx000_common         16384  3 dib7000m,dib3000mc,dvb_usb_dib0700
dvb_usb                24576  1 dvb_usb_dib0700
dvb_core              126976  2 dvb_usb,mn88472
rc_core                45056  2 dvb_usb,dvb_usb_dib0700

On the pogoplug, this is essentailly the same:
lsmod | grep dvb
dvb_usb_dib0700       110592  0
dib7000m               24576  1 dvb_usb_dib0700
dib0090                36864  1 dvb_usb_dib0700
dib0070                20480  1 dvb_usb_dib0700
dib3000mc              20480  1 dvb_usb_dib0700
dibx000_common         16384  3 dvb_usb_dib0700,dib7000m,dib3000mc
dvb_usb                32768  1 dvb_usb_dib0700
dvb_core              110592  1 dvb_usb
rc_core                45056  2 dvb_usb_dib0700,dvb_usb
media                  45056  2 dvb_core,dvb_usb

So, it looks like the modules are being loaded, but sitll, the node /dev/dvb is not being created. Thus, something seems to be going wrong.

Any ideas? Something about udev, maybe?

Cheers,

chessplayer

---
Standart ist der Standardfehler



Edited 2 time(s). Last edit at 05/30/2019 02:08PM by chessplayer.
Re: DVB support?
May 30, 2019 04:43PM
chessplayer,

I don't have a DVB device on hand, and not sure I can remember the behavior.

What is in dmesg for the laptop vs on your Kirkwood box?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: DVB support?
May 31, 2019 03:57AM
Hi bodhi,

this explains it, I guess:

Laptop:

dmesg | tail
[14529.873599] dvb-usb: found a 'Microsoft Xbox One Digital TV Tuner' in cold state, will try to load a firmware
[14529.873723] dvb-usb: downloading firmware from file 'dvb-usb-dib0700-1.20.fw'
[14529.942585] dib0700: firmware started successfully.
[14530.450769] dvb-usb: found a 'Microsoft Xbox One Digital TV Tuner' in warm state.
[14530.451025] dvb-usb: will pass the complete MPEG2 transport stream to the software demuxer.
[14530.451715] dvbdev: DVB: registering new adapter (Microsoft Xbox One Digital TV Tuner)
[14530.654772] mn88472 11-0018: Panasonic MN88472 successfully identified
[14530.658228] tda18250 11-0060: NXP TDA18250BHN/M successfully identified
[14530.661683] usb 1-1: DVB: registering adapter 0 frontend 0 (Panasonic MN88472)...
[14530.661813] dvb-usb: Microsoft Xbox One Digital TV Tuner successfully initialized and connected.

Pogo:

dmesg | tail
[   81.618827] usb 1-1.1: New USB device found, idVendor=045e, idProduct=02d5, bcdDevice= 1.10
[   81.627950] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   81.636012] usb 1-1.1: Product: Xbox USB Tuner
[   81.641584] usb 1-1.1: Manufacturer: Microsoft Corp.
[   81.647293] usb 1-1.1: SerialNumber: 001860090615
[   81.708168] media: Linux media interface: v0.10
[   81.779862] dvb-usb: found a 'Microsoft Xbox One Digital TV Tuner' in cold state, will try to load a firmware
[   81.792134] usb 1-1.1: Direct firmware load for dvb-usb-dib0700-1.20.fw failed with error -2
[   81.801750] dvb-usb: did not find the firmware file 'dvb-usb-dib0700-1.20.fw' (status -2). You can use <kernel_dir>/scripts/get_dvb_firmware to get the firmware
[   81.818866] usbcore: registered new interface driver dvb_usb_dib0700

So, obviously, the firmware file is missing. Also, I need one more and my firmware folder now looks like this:
┌─[root@debian-bodhi-basic]─[/lib/firmware]
└──> ls
.  ..  4.12.1-kirkwood-tld-1  dvb-demod-mn88472-02.fw  dvb-usb-dib0700-1.20.fw

After that:
dmesg | tail
[ 2264.577827] usb 1-1.1: media controller created
[ 2264.584862] dvbdev: dvb_create_media_entity: media entity 'dvb-demux' registered.
[ 2264.846829] mn88472 1-0018: Panasonic MN88472 successfully identified
[ 2264.860967] tda18250 1-0060: NXP TDA18250BHN/M successfully identified
[ 2264.871166] usb 1-1.1: DVB: registering adapter 0 frontend 0 (Panasonic MN88472)...
[ 2264.879663] dvbdev: dvb_create_media_entity: media entity 'Panasonic MN88472' registered.
[ 2264.892091] dvb-usb: Microsoft Xbox One Digital TV Tuner successfully initialized and connected.
[ 2265.003827] mn88472 1-0018: downloading firmware from file 'dvb-demod-mn88472-02.fw'
[ 2265.191489] dvb_frontend: dvb_frontend_get_frequency_limits: frequency interval: tuner: 42000000...870000000, frontend: 0...0
[ 2265.191506] usb 1-1.1: DVB: adapter 0 frontend 0 frequency 0 out of range (42000000..870000000)

and the node /dev/devb/adapter0 is being created (although I am not very confident about it being usable due to the "frequency out of range" message above ...)


In that context: How is any firmware found? In /lib/firmware, as you can see above, there is a subfolder 4.12.1-kirkwood-tld-1 which seems to contain some firmware files, but placing the dvb-firmware files there results in them not being found. When I place the firmware files directly into /lib/firmware as above, things seem to work. So: ???

Anyway, now I can try to make this all work.

[EDIT]: It does work! :-)

---
Standart ist der Standardfehler



Edited 1 time(s). Last edit at 05/31/2019 05:14AM by chessplayer.
Re: DVB support?
May 31, 2019 05:40AM
Where did you obtain the dvb-usb-dib0700-1.20.fw firmware file, i.e. from your windows os?
Re: DVB support?
May 31, 2019 06:04AM
chessplayer,

> [EDIT]: It does work! :-)


Cool :)

I remember now. In the previous kernels, firmware files are in the /lib/firmware after you install the kernel. But in a few later kernel major versions, you do need to explicitly install it from Debian.

Install packages such as firmware-linux, or specific ones like bluez-firmware, libertas-firmware, firmware-ralink ... so on.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 05/31/2019 06:06AM by bodhi.
Re: DVB support?
May 31, 2019 06:09AM
firmware-misc-nonfree in this case
Re: DVB support?
May 31, 2019 06:11AM
To answer habibie question.

To find a firmware package for your device, you'd do a package search at Debian site.

https://www.debian.org/distrib/packages#search_packages

Enter something specific such as DVB, realtek, .... in the search box, you will find the right package to install.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: DVB support?
May 31, 2019 12:30PM
habibie Wrote:
-------------------------------------------------------
> Where did you obtain the
> dvb-usb-dib0700-1.20.fw firmware file, i.e.
> from your windows os?

I copied it over from my laptop, which, of course, runs linux (not the other stuff ...).

[EDIT]: and the demod-firmware I obtained from Armbian Firmware in GutHub

But I will go through the process once more trying out the installation of linux-firmware, I guess.

Cheers,

chessplayer

---
Standart ist der Standardfehler



Edited 1 time(s). Last edit at 05/31/2019 01:14PM by chessplayer.
Re: DVB support?
May 31, 2019 12:34PM
bodhi Wrote:
-------------------------------------------------------
> To answer habibie question.
>
> To find a firmware package for your device, you'd
> do a package search at Debian site.
>
> https://www.debian.org/distrib/packages#search_packages
>
> Enter something specific such as DVB, realtek,
> .... in the search box, you will find the right
> package to install.

I don't think this really helps, since this does not go looking for firmware ... If you specify "firmware" as the search term, you will get all packages with firmware in the name, also "dvb" correspondingly and the two combined will turn up nothing, sadly.

---
Standart ist der Standardfehler
Re: DVB support?
May 31, 2019 03:09PM
Re: DVB support?
June 01, 2019 05:53AM
bodhi Wrote:
-------------------------------------------------------
> Chessplayer,
>
> https://packages.debian.org/search?keywords=Dvb&searchon=names&suite=stable&section=all
>
> https://packages.debian.org/search?keywords=Firmware&searchon=names&suite=stable&section=all
>
> And then you can look at the files in the
> packages.

bodhi,

I understand that. My point was that you would have to have a pretty good idea about where to look, since those searches turn up quite a few hits (even when you restrict the architecture to armel, which does not really make much of a difference, luckily).

Also, there are usually links to firmware sources on LinuxTV.org and a large collection of firmware is also available on GitHub. The latter seems to be kept up to date by one of the active people at LibreELEC / CoreELEC (in fact, the CoreELEC fork even seems to be slightly more recent ...)

Anyway, as always, I very much appreciate the instant help here in this forum.

Cheers,

chessplayer

---
Standart ist der Standardfehler
Re: DVB support?
June 02, 2019 06:58AM
bodhi Wrote:
-------------------------------------------------------
> To answer habibie question.
>
> To find a firmware package for your device, you'd do a package search at Debian site.
>
> https://www.debian.org/distrib/packages#search_packages
>
> Enter something specific such as DVB, realtek, .... in the search box, you will find the right package to install.
>
Bodhi, thank you.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: