Geniatech DVB-T2 Stick T220 for Raspbian


12 posts
by chanchailim » Tue Jul 30, 2013 4:35 am
I try to find driver for Geniatech DVB-T2 Stick T220 on Raspbian.
http://www.geniatech.com/pa/t220.asp
On product website. It's not have driver for linux.

I found driver on this website.
Source Driver from CrazyCat https://bitbucket.org/CrazyCat/s2-liplianin-v39

I test compile and install modules.
Now It's work for me.

and I try change some code on file dw2102.c for raspberry pi kernel code for t220 driver.
Raspberry PI Kernel source https://github.com/raspberrypi/linux
and recompile for test it. Now It's work for me.

I upload source code and kernel module for this developer and product user.

T220 Driver Kernel Module (New) (Update 2013/11/08)
https://www.dropbox.com/s/yxpt1qs43nwnoeh/t220_new_modules.zip

How to install driver new module (I compile on kernel 3.6.11)
1. backup original driver (/lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko)
2. backup original driver (/lib/modules/3.6.11+/kernel/drivers/media/dvb/frontends/cxd2820r.ko)
3. backup original driver (/lib/modules/3.6.11+/kernel/drivers/media/common/tuners/tda18271.ko)
4. extract t220_new_modules.zip (I will found cxd2820r.ko, tda18271.ko and dvb-usb-dw2102.ko)
5. sudo rm -f /lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko
6. sudo rm -f /lib/modules/3.6.11+/kernel/drivers/media/dvb/frontends/cxd2820r.ko
7. sudo rm -f /lib/modules/3.6.11+/kernel/drivers/media/common/tuners/tda18271.ko
8. sudo install -c -D -m 644 -c dvb-usb-dw2102.ko /lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/
9. sudo install -c -D -m 644 -c cxd2820r.ko /lib/modules/3.6.11+/kernel/drivers/media/dvb/frontends/
10. sudo install -c -D -m 644 -c tda18271.ko /lib/modules/3.6.11+/kernel/drivers/media/common/tuners/
11. sudo /sbin/depmod -a

how to install driver module (I compile on kernel 3.6.11)
1. backup original driver (/lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko)
2. extract dw2102.zip (I will found dw2102.c and dvb-usb-dw2102.ko)
3. sudo rm -f /lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/dvb-usb-dw2102.ko
4. sudo install -c -D -m 644 -c dvb-usb-dw2102.ko /lib/modules/3.6.11+/kernel/drivers/media/dvb/dvb-usb/
5. sudo /sbin/depmod -a
now it's complete for install module.

For compile kernel module replace dw2102.c replace on <kernel path>/drivers/media/dvb/dvb-usb/dw2102.c

I want to share and hope some develop to support on raspberry pi.

Thank you. :)
Attachments
dw2102_data.zip
dw2102 sourecode and kernel module
(25.1 KiB) Downloaded 175 times
Last edited by chanchailim on Sun Nov 10, 2013 4:26 pm, edited 1 time in total.
Posts: 5
Joined: Tue Jul 30, 2013 4:07 am
by ElmarKnipp » Sun Nov 03, 2013 12:52 pm
Thanks for providing the driver!

I have on issue. The driver works perfect for DVB-T (terrestrial mode). See the output below:

Code: Select all
$ sudo w_scan
w_scan version 20111203 (compiled for DVB API 5.4)
guessing country 'DE', use -c <country> to override
using settings for GERMANY
DVB aerial
DVB-T Europe
frontend_type DVB-T, channellist 4
output format vdr-1.6
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
   /dev/dvb/adapter0/frontend0 -> DVB-T "Sony CXD2820R": very good :-))

Using DVB-T frontend (adapter /dev/dvb/adapter0/frontend0)
-_-_-_-_ Getting frontend capabilities-_-_-_-_
Using DVB API 5.a
frontend 'Sony CXD2820R' supports
INVERSION_AUTO
QAM_AUTO
TRANSMISSION_MODE_AUTO
GUARD_INTERVAL_AUTO
HIERARCHY_AUTO
FEC_AUTO
FREQ (45.00MHz ... 864.00MHz)
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Scanning 7MHz frequencies...
177500: (time: 00:00)
184500: (time: 00:07)
...


However, when I want to use it with DVB-C (cable), I only got the following error:

Code: Select all
sudo w_scan -fc
w_scan version 20111203 (compiled for DVB API 5.4)
guessing country 'DE', use -c <country> to override
using settings for GERMANY
DVB cable
DVB-C
frontend_type DVB-C, channellist 7
output format vdr-1.6
output charset 'UTF-8', use -C <charset> to override
Info: using DVB adapter auto detection.
   /dev/dvb/adapter0/frontend0 -> DVB-T "Sony CXD2820R": specified was DVB-C -> SEARCH NEXT ONE.
main:3079: FATAL: ***** NO USEABLE DVB-C CARD FOUND. *****
Please check wether dvb driver is loaded and
verify that no dvb application (i.e. vdr) is running.
Posts: 1
Joined: Sun Nov 03, 2013 12:22 pm
by chanchailim » Thu Nov 07, 2013 6:28 am
I don't know new code update, can solve about DVB-C on T220.
(Now. I use only DVB-T2)

Commit List of CrazyCat/s2-liplianin-v39
https://bitbucket.org/CrazyCat/s2-liplianin-v39/commits/all

If you use OpenELEC, I create new patch for build image of openelec with T220.
goto url: http://raspmer.blogspot.com/2013/11/geniatech-dvb-t2-stick-t220-for.html
Please test on OpenELEC with tvheadend about DVB-C.

On Raspbian. I will recompile module again, if I have free-time.
Posts: 5
Joined: Tue Jul 30, 2013 4:07 am
by Cleggmeister » Wed Mar 26, 2014 12:41 pm
This is very cool, congratulations and well done Chanchailim!

I bought the same tuner a few weeks ago but have failed to make it work with OpenElec/XBMC.

Please could you work some magic on the OpenElec platform also? Sincere thanks in advance!

Regrettably I do not have the skills to do this myself.

Cleggy.
Posts: 2
Joined: Wed Mar 26, 2014 12:38 pm
by Cleggmeister » Thu Mar 27, 2014 10:12 pm
Sir, you are a legend! I will test this over the weekend and let you know how things progress.

With thanks and regards.

Cleggy.
Posts: 2
Joined: Wed Mar 26, 2014 12:38 pm
by embeddedProjects » Sat Apr 26, 2014 9:35 pm
It works form me but, i've recompiled the whole kernel.

Anyway, the same chinese that sent me the DVB 220 before, some days ago he sent me a new model (apparently the same)with same controller, same demodulator and DIFFERENT tuner, a TDA18273.

The machine read the hardware like:
idVendor 0572
idProduct c686

Product USB Stick
Manufacturer MAX
SerialNumber 080116

Anyone know if someone is working on them? Any suggestion? I know how to write code in C/C++ but, never worked on kernel modules, thanks.

PS i bought 70 of this tuners and i feel a little upset...time to contribute??
Posts: 1
Joined: Tue Feb 25, 2014 5:18 pm
by chanchailim » Fri Jun 13, 2014 9:27 am
Now on Linux Kernel 3.14 has Geniatech DVB-T2 Stick T220 Driver

https://github.com/raspberrypi/linux/tree/rpi-3.14.y

See on file dw2102.c
https://github.com/raspberrypi/linux/blob/rpi-3.14.y/drivers/media/usb/dvb-usb/dw2102.c

/* DVB USB framework compliant Linux driver for the
* DVBWorld DVB-S 2101, 2102, DVB-S2 2104, DVB-C 3101,
* TeVii S600, S630, S650, S660, S480, S421, S632
* Prof 1100, 7500,
* Geniatech SU3000, T220 Cards
* Copyright (C) 2008-2012 Igor M. Liplianin (liplianin@me.by)
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation, version 2.
*
* see Documentation/dvb/README.dvb-usb for more information
*/



If you use OpenELEC, current firmware (version 4.0.x) is support Geniatech T220.
Because linux kernel is linux-3.14.x

See on http://openelec.tv/news/22-releases/129-openelec-4-0-4-released

I test on tvheadend. It work.
But I don't know. It work for DVB-C?

Good Luck :D
Posts: 5
Joined: Tue Jul 30, 2013 4:07 am
by billyvarse » Fri Jul 04, 2014 2:22 am
Hi

I've just joined here... And my Linux knowledge is not great! I'm interested in this topic because I've purchased a Tevii S662 and I'm fairly confident it will work with the Linux Kernal mentioned in the last post.

See on file dw2102.c

When I've tried building either the CrazyCat or the Tevii drivers I've come across a

"FILE NOT FOUND: ..."

Error in the make file. It was looking for a file in the build directory of the Kernal on my system, but that directory is empty.

This is the only thread I've found where I can see people trying to get the Crazy Cat drivers working.

Could someone explain (In extreme detail) how to get these drivers working on the Pi? I'm using Raspbian and I've updated using Raspi-Update. I don't have any dependancies missing.

Or alternatively how to install the Kernal image mentioned in the previous post? I wouldn't know where to start.

Currently Dmesg sees my Tevii box as a Jactek DVB, and doesn't attempt to loaf drivers.

Thanks in advance for any help! Please!
Posts: 1
Joined: Fri Jul 04, 2014 2:11 am
by chanchailim » Thu Jul 10, 2014 5:17 am
Please check current kernel version of raspbian on raspberry pi

command : uname -a

if kernel is not update, please update kernel to current version.

command : sudo rpi-update

after reboot and restart

and Download source code of linux kernal of Raspbian on this site.
https://github.com/raspberrypi/linux

download to kernel source path

edit Makefile
on line : EXTRAVERSION = +

and save it

try to compile kernel source and drivers modules
See on : http://elinux.org/RPi_Kernel_Compilation
or
http://sandsoftwaresound.net/raspberry- ... el-module/


billyvarse wrote:Hi

I've just joined here... And my Linux knowledge is not great! I'm interested in this topic because I've purchased a Tevii S662 and I'm fairly confident it will work with the Linux Kernal mentioned in the last post.

See on file dw2102.c

When I've tried building either the CrazyCat or the Tevii drivers I've come across a

"FILE NOT FOUND: ..."

Error in the make file. It was looking for a file in the build directory of the Kernal on my system, but that directory is empty.

This is the only thread I've found where I can see people trying to get the Crazy Cat drivers working.

Could someone explain (In extreme detail) how to get these drivers working on the Pi? I'm using Raspbian and I've updated using Raspi-Update. I don't have any dependancies missing.

Or alternatively how to install the Kernal image mentioned in the previous post? I wouldn't know where to start.

Currently Dmesg sees my Tevii box as a Jactek DVB, and doesn't attempt to loaf drivers.

Thanks in advance for any help! Please!
Posts: 5
Joined: Tue Jul 30, 2013 4:07 am
by nfgb » Tue Aug 05, 2014 8:24 am
Hi,

I am looking for a DVB-C stick for the rpi. Did anyone successfully tested this Geniatech T220 on the rpi for DVB-C?
Posts: 1
Joined: Tue Aug 05, 2014 8:19 am
by chanchailim » Tue Aug 05, 2014 2:49 pm
I don't know.
I have only DVB-T2 for test.

Find someone have it to test DVB-C with Kernel 3.14+ or new OpenELEC.
Last edited by chanchailim on Wed Aug 06, 2014 4:27 pm, edited 1 time in total.
Posts: 5
Joined: Tue Jul 30, 2013 4:07 am
by gregeric » Tue Aug 05, 2014 3:23 pm
I have PCTV Nanostick T2 (model 290e) working with DVB-C on raspbian.

With latest kernels, you have to switch the frontend from the default DVBT. This will apply to people wanting to test the T220 also. To do this:

sudo apt-get install dvb-tools

List what modes are supported with:

dvb-fe-tool

change to DVB-C frontend with something like

dvb-fe-tool -d DVBC/ANNEX_A

and back to terrestrial with:

dvb-fe-tool -d DVBT
Posts: 90
Joined: Mon Nov 28, 2011 10:08 am