Geniatech DVB-T2 Stick T220 for Raspbian


5 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 127 times
Last edited by chanchailim on Sun Nov 10, 2013 4:26 pm, edited 1 time in total.
Posts: 2
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: 2
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