Project

General

Profile

Xbox One DVB-T/T2/C tuner

Added by Stephen Neal about 10 years ago

Hi all

This looks like it could be very good value if Open Source drivers appear for it : http://www.xbox.com/en-GB/xbox-one/accessories/digital-tv-tuner#fbid=1ui_UaaGUzy GBP£25/EUR€30 for a DVB-T/T2/C USB tuner for use with the Microsoft Xbox One (but like the Sony Play TV presumably usable on any PC platform if Linux drivers appear)


Replies (420)

RE: Xbox One DVB-T/T2/C tuner - Added by C vH almost 6 years ago

isn't Linux Mint 18.3 also using Kernel 4.15 like normal Ubuntu ?
The Stick just works ootb with 4.16.

RE: Xbox One DVB-T/T2/C tuner - Added by X Yaz almost 6 years ago

Installed the ukuu kernel manager and i'm installing kernel 4.16.0 now

RE: Xbox One DVB-T/T2/C tuner - Added by Anonymous over 5 years ago

Hey there! Kernel rpi-4.19.23-v7 just got released.

Does the XBOX TV tuner work with it out of the box?

Thanks in advance

RE: Xbox One DVB-T/T2/C tuner - Added by Imola Dan over 5 years ago

Zadolux S. wrote:

Hey there! Kernel rpi-4.19.23-v7 just got released.

Does the XBOX TV tuner work with it out of the box?

Thanks in advance

I just checked and it appears to work with brief testing.
I updated with rpi-update, if I unhold raspberrypi-bootloader and raspberrypi-kernel then it's still 4.14.

RE: Xbox One DVB-T/T2/C tuner - Added by Tom Lewis over 5 years ago

Sorry for the noob bringing this thread to the top again.

I have an Rpi3 and and xbox tuner, I install and update the rpi and update it to the latest kernel.......... I install tvheadend and everything seems to work, it sees the tuner but It fails to find any channels, even when I manually add the muxes

Kind of at loss as I have tried 3 times over now.... am I missing the firmware maybe?

RE: Xbox One DVB-T/T2/C tuner - Added by Josu Lazkano over 5 years ago

Tom Lewis wrote:

Sorry for the noob bringing this thread to the top again.

I have an Rpi3 and and xbox tuner, I install and update the rpi and update it to the latest kernel.......... I install tvheadend and everything seems to work, it sees the tuner but It fails to find any channels, even when I manually add the muxes

Kind of at loss as I have tried 3 times over now.... am I missing the firmware maybe?

Hello,

Put here the output of "dmesg" command after you plug the USB.

Regards.

RE: Xbox One DVB-T/T2/C tuner - Added by Manuel García Gallego over 5 years ago

Tom Lewis wrote:

Sorry for the noob bringing this thread to the top again.

I have an Rpi3 and and xbox tuner, I install and update the rpi and update it to the latest kernel.......... I install tvheadend and everything seems to work, it sees the tuner but It fails to find any channels, even when I manually add the muxes

Kind of at loss as I have tried 3 times over now.... am I missing the firmware maybe?

I was stuck at the same point of you last weekend. I follow the steps you have indicated (in my case, I was obtaining muxes but no services) but I forgot to copy the specific firmware (http://palosaari.fi/linux/v4l-dvb/firmware/MN88472/02/latest/) to this path /lib/firmware. Once I did that, TVH started to recognize channels from muxes. I don't want to say this is the specific solution for your issue but hope this could help you.

Regards,

RE: Xbox One DVB-T/T2/C tuner - Added by Tom Lewis over 5 years ago

Thanks for the replies, All the tutorials I read none said anything about firmware. I figured it out about 1am last night and its all workings perfectly!

Thanks!!

RE: Xbox One DVB-T/T2/C tuner - Added by F K over 5 years ago

Hi,
I tried the following instructions on an Odroid XU4 (Ubuntu 19.04 minimal with 4.14.111-158 kernel):

git clone git://linuxtv.org/media_build.git
git clone --depth=1 https://github.com/trsqr/media_tree.git -b xboxone ./media
cd media_build
git reset --hard 9ccb87d
make dir DIR=../media
make distclean
make

sudo make install

But it failed during 'make' with the following error:
root@odroid:~/media_build# make
make -C /root/media_build/v4l
make[1]: Entering directory '/root/media_build/v4l'
No version yet, using 4.14.111-158
scripts/make_makefile.pl
Updating/Creating .config
make[2]: Entering directory '/root/media_build/linux'
Syncing with dir ../../media
Applying patches for kernel 4.14.111-158
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
Syncing with dir ../../media
make[2]: Leaving directory '/root/media_build/linux'
Preparing to compile for kernel version 4.14.111

***WARNING:*** You do not have the full kernel sources installed.
This does not prevent you from building the v4l-dvb tree if you have the
kernel headers, but the full kernel source may be required in order to use
make menuconfig / xconfig / qconfig.

If you are experiencing problems building the v4l-dvb tree, please try
building against a vanilla kernel before reporting a bug.

Vanilla kernels are available at http://kernel.org.
On most distros, this will compile a newly downloaded kernel:

cp /boot/config-`uname -r` <your kernel dir>/.config
cd <your kernel dir>
make all modules_install install

Please see your distro's web site for instructions to build a new kernel.

WARNING: This is the V4L/DVB backport tree, with experimental drivers
         backported to run on legacy kernels from the development tree at:
                http://git.linuxtv.org/media-tree.git.
         It is generally safe to use it for testing a new driver or
         feature, but its usage on production environments is risky.
         Don't use it in production. You've been warned.
VIDEO_DW9714: Requires at least kernel 9.255.255
INTEL_ATOMISP: Requires at least kernel 9.255.255
Created default (all yes) .config file
./scripts/make_myconfig.pl
perl scripts/make_config_compat.pl /lib/modules/4.14.111-158/build ./.myconfig ./config-compat.h
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/root/media_build/v4l/firmware'
make[2]: Leaving directory '/root/media_build/v4l/firmware'
make -C firmware
make[2]: Entering directory '/root/media_build/v4l/firmware'
  CC  ihex2fw
Generating vicam/firmware.fw
Generating ttusb-budget/dspbootcode.bin
Generating cpia2/stv0672_vp4.bin
Generating av7110/bootcode.bin
make[2]: Leaving directory '/root/media_build/v4l/firmware'
Kernel build directory is /lib/modules/4.14.111-158/build
make -C ../linux apply_patches
make[2]: Entering directory '/root/media_build/linux'
Syncing with dir ../../media
Patches for 4.14.111-158 already applied.
make[2]: Leaving directory '/root/media_build/linux'
make -C /lib/modules/4.14.111-158/build SUBDIRS=/root/media_build/v4l  modules
make[2]: Entering directory '/usr/src/linux-4.14.111-158'
  CC [M]  /root/media_build/v4l/msp3400-driver.o
In file included from ./include/linux/compiler_types.h:58,
                 from ././include/linux/kconfig.h:74,
                 from <command-line>:
/root/media_build/v4l/../linux/include/linux/compiler-gcc.h:2:2: error: #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." 
 #error "Please don't include <linux/compiler-gcc.h> directly, include <linux/compiler.h> instead." 
  ^~~~~
make[3]: *** [scripts/Makefile.build:327: /root/media_build/v4l/msp3400-driver.o] Error 1
make[2]: *** [Makefile:1535: _module_/root/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-4.14.111-158'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/root/media_build/v4l'
make: *** [Makefile:26: all] Error 2
root@odroid:~/media_build#

Do you have any idea to solve this problem?

RE: Xbox One DVB-T/T2/C tuner - Added by F K over 5 years ago

C vH wrote:

just use normal Media_Build
https://www.linuxtv.org/wiki/index.php/How_to_Obtain,_Build_and_Install_V4L-DVB_Device_Drivers#Retrieving_and_Building.2FCompiling_the_Latest_media_drivers_Source_Code

Thanks, but unfortunately I got another error message:

...
  LD [M]  /root/media_build/v4l/ti-csc.o
  CC [M]  /root/media_build/v4l/sh_veu.o
  CC [M]  /root/media_build/v4l/cec-gpio.o
/root/media_build/v4l/cec-gpio.c: In function 'cec_gpio_probe':
/root/media_build/v4l/cec-gpio.c:199:45: error: 'GPIOD_OUT_HIGH_OPEN_DRAIN' undeclared (first use in this function); did you mean 'GPIOD_OUT_HIGH'?
  cec->cec_gpio = devm_gpiod_get(dev, "cec", GPIOD_OUT_HIGH_OPEN_DRAIN);
                                             ^~~~~~~~~~~~~~~~~~~~~~~~~
                                             GPIOD_OUT_HIGH
/root/media_build/v4l/cec-gpio.c:199:45: note: each undeclared identifier is reported only once for each function it appears in
make[3]: *** [scripts/Makefile.build:333: /root/media_build/v4l/cec-gpio.o] Error 1
make[2]: *** [Makefile:1535: _module_/root/media_build/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-4.14.111-158'
make[1]: *** [Makefile:53: default] Error 2
make[1]: Leaving directory '/root/media_build/v4l'
make: *** [Makefile:26: all] Error 2
build failed at ./build line 526
root@odroid:~/media_build#

I tried these commands:

git clone git://linuxtv.org/media_build.git
cd media_build 
./build

RE: Xbox One DVB-T/T2/C tuner - Added by C vH over 5 years ago

try to apply this modifications
https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/linux-driver-addons/dvb/dvb-latest/patches/driver.dvb.dvb-latest-02-disable-modules.patch

that disables cec building etc and should make it work (just open that file and do it manually or apply patchfile)

RE: Xbox One DVB-T/T2/C tuner - Added by F K over 5 years ago

Thanks, the build and the make install were successful after I modified the /v4l/scripts/make_kconfig.pl file according to your suggestion!

But I cannot use it yet. Dmesg shows the followings:

[    2.606547] usb 1-1: new high-speed USB device number 2 using exynos-ehci
[    2.767632] usb 1-1: New USB device found, idVendor=045e, idProduct=02d5
[    2.772905] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.780008] usb 1-1: Product: Xbox USB Tuner
[    2.784261] usb 1-1: Manufacturer: Microsoft Corp.
[    2.789023] usb 1-1: SerialNumber: 000114280615
...
[    7.584476] videobuf2_common: loading out-of-tree module taints kernel.
[    7.584640] videobuf2_common: Unknown symbol media_request_object_init (err 0)
[    7.584660] videobuf2_common: Unknown symbol media_request_object_unbind (err 0)
[    7.584703] videobuf2_common: Unknown symbol media_request_object_put (err 0)
[    7.584725] videobuf2_common: Unknown symbol media_request_put (err 0)
[    7.584743] videobuf2_common: Unknown symbol media_request_object_bind (err 0)


If I unplug and replug the usb cable then:
[  224.177685] usb 1-1: USB disconnect, device number 2
[  241.820778] usb 1-1: new high-speed USB device number 3 using exynos-ehci
[  241.978780] usb 1-1: New USB device found, idVendor=045e, idProduct=02d5
[  241.978823] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  241.978854] usb 1-1: Product: Xbox USB Tuner
[  241.978884] usb 1-1: Manufacturer: Microsoft Corp.
[  241.978913] usb 1-1: SerialNumber: 000114280615
[  242.007018] videobuf2_common: Unknown symbol media_request_object_init (err 0)
[  242.007037] videobuf2_common: Unknown symbol media_request_object_unbind (err 0)
[  242.007070] videobuf2_common: Unknown symbol media_request_object_put (err 0)
[  242.007088] videobuf2_common: Unknown symbol media_request_put (err 0)
[  242.007103] videobuf2_common: Unknown symbol media_request_object_bind (err 0)

I would be happy if you had a solution also for this. :)

RE: Xbox One DVB-T/T2/C tuner - Added by C vH over 5 years ago

[ 242.007018] videobuf2_common: Unknown symbol media_request_object_init (err 0)
[ 242.007037] videobuf2_common: Unknown symbol media_request_object_unbind (err 0)
[ 242.007070] videobuf2_common: Unknown symbol media_request_object_put (err 0)
[ 242.007088] videobuf2_common: Unknown symbol media_request_put (err 0)
[ 242.007103] videobuf2_common: Unknown symbol media_request_object_bind (err 0)

is this also present without using media_build ?

RE: Xbox One DVB-T/T2/C tuner - Added by F K over 5 years ago

Do you mean if I unplug the usb cable (xbox tuner)?
If yes, then my answer is no. The above logs appear in dmesg only if the xbox tuner is connected.

I read the instructions at the end of the wiki page (what you linked), it recommends a reboot (I made it twice) and to check the *.ko.gz files, but there is no such file.

I tried also this command:

for file in `find /lib/modules -name "*.ko"`; do if [[ -e $file.gz ]]; then echo "$file.gz should be removed"; fi; done

It doesn't show anything.

RE: Xbox One DVB-T/T2/C tuner - Added by C vH over 5 years ago

did you tried an

sudo make install

at the end ?

RE: Xbox One DVB-T/T2/C tuner - Added by saen acro over 5 years ago

and do not forged

sudo depmod -a

and restart

RE: Xbox One DVB-T/T2/C tuner - Added by F K over 5 years ago

I tried 'make install' without sudo, but it looked fine. And there was

/sbin/depmod -a 4.14.111-158

at the end (last command in the make install).

Instead of further troubleshooting I compiled 5.0.3 kernel what supports this device by default. The detection went well, but I was problem with tvheadend at first time. After w_scan (I am not sure it was necessary) and pre-defined mux modification everything works fine. :)

Thanks for your help!

RE: Xbox One DVB-T/T2/C tuner - Added by C vH over 5 years ago

w_scan has nothing to do with Tvheadend :)

great that it works

RE: Xbox One DVB-T/T2/C tuner - Added by Paraic McDonagh over 5 years ago

Wow these are great and cheap tuners! It took just 2 mins to get them set up in Ubuntu 19.04
Just drop the firmware file into /lib/firmware (as root) from here : http://palosaari.fi/linux/v4l-dvb/firmware/MN88472/02/latest/
They show up as Panasonic tuners after rebooting. In TVH, make sure that they are enabled and that they are associated with the correct network.
That's all you need to do!
I got 2 of these for €12 each from ebay. They are MUCH better than the August T230s which they replaced on my setup. Tuning is fast and there are no conflicts with each other or with DVB-S2 tuners.
No need to compile Media Build or anything like that, which is great. They tune in to all the Saorview channels in Ireland perfectly, in case anyone needs that piece of information. I have both USB 2.0 and 3.0 sockets.
They work fine in USB 2.0 for HD programming. Also the built in usb flying leads are great to ensure that they don't suffer from mechanical strain and they are otherwise of excellent build quality.

RE: Xbox One DVB-T/T2/C tuner - Added by C vH over 5 years ago

sadly the stick has major problems at some stations, but that is not linux driver related because the same happens at the Xbox too :(

RE: Xbox One DVB-T/T2/C tuner - Added by Luka Karinja over 5 years ago

It works perfectly for DVB-T Slovenia and Italy muxes
Arch Linux with kernel 4.19.37

RE: Xbox One DVB-T/T2/C tuner - Added by Hilman Chung over 5 years ago

C vH wrote:

sadly the stick has major problems at some stations, but that is not linux driver related because the same happens at the Xbox too :(

Hi C vH, sorry to bother (can't register on Libreelec), but your repository for nightly TVH builds seem to be down...

(351-375/420)