Skip to content

Instantly share code, notes, and snippets.

@dev-as-nobody
Last active February 9, 2019 23:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dev-as-nobody/55e83fdb57601407a343de78685331be to your computer and use it in GitHub Desktop.
Save dev-as-nobody/55e83fdb57601407a343de78685331be to your computer and use it in GitHub Desktop.
Kernel support for Evolveo Sigma T2, DVB-T2 USB stick
1) Kernel version
=================
vanilla 4.15.12
2) Kernel source modification
=============================
a) drivers/media/dvb-core/dvb-usb-ids.h
@@ -385,6 +385,7 @@
#define USB_PID_SONY_PLAYTV 0x0003
#define USB_PID_MYGICA_D689 0xd811
#define USB_PID_MYGICA_T230 0xc688
+ #define USB_PID_MYGICA_T230C2 0xc68a
#define USB_PID_ELGATO_EYETV_DIVERSITY 0x0011
#define USB_PID_ELGATO_EYETV_DTT 0x0021
#define USB_PID_ELGATO_EYETV_DTT_2 0x003f
b) drivers/media/usb/dvb-usb/cxusb.c
@@ -1556,6 +1556,9 @@ static struct usb_device_id cxusb_table[NR__cxusb_table_index + 1] = {
[MYGICA_T230C] = {
USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230+1)
},
+ [MYGICA_T230C] = {
+ USB_DEVICE(USB_VID_CONEXANT, USB_PID_MYGICA_T230C2)
+ },
{} /* Terminating entry */
};
MODULE_DEVICE_TABLE (usb, cxusb_table);
c) drivers/media/dvb-frontends/si2168.c
@@ -343,6 +343,30 @@ static int si2168_set_frontend(struct dvb_frontend *fe)
if (ret)
goto err;
+ /* set ts mode to parallel,clock manual*/
+ memcpy(cmd.args, "\x14\x00\x01\x10\x26\x00", 6);
+ cmd.wlen = 6;
+ cmd.rlen = 4;
+ ret = si2168_cmd_execute(client, &cmd);
+ if (ret)
+ goto err;
+
+ /* set ts freq to 10Mhz*/
+ memcpy(cmd.args, "\x14\x00\x0d\x10\xe8\x03", 6);
+ cmd.wlen = 6;
+ cmd.rlen = 4;
+ ret = si2168_cmd_execute(client, &cmd);
+ if (ret)
+ goto err;
+
+ /* set ts parallel prop*/
+ memcpy(cmd.args, "\x14\x00\x09\x10\xe3\x08", 6);
+ cmd.wlen = 6;
+ cmd.rlen = 4;
+ ret = si2168_cmd_execute(client, &cmd);
+ if (ret)
+ goto err;
+
/* set DVB-C symbol rate */
if (c->delivery_system == SYS_DVBC_ANNEX_A) {
memcpy(cmd.args, "\x14\x00\x02\x11", 4);
3) Download firmware
====================
https://github.com/osmc/dvb-firmware-osmc
Download files dvb-demod-si2168-d60-01.fw and dvb-tuner-si2141-a10-01.fw, put them under /lib/firmware
4) Have fun with DVB-T2 stick
=============================
For scanning you can use w_scan.
@josef-schweik
Copy link

Sorry, may be I am lama. Can you give me some deep hint: I use debian buster, 4.19.0-2-amd64. I hope, I installed all necessary: sources linux-source-4.19.tar.xz, unziped, headers linux-headers-4.19.0-2-common, build esential ...
I would like to be able to recompile some modules to add in the support for Sigma T2, Tehuti TN40xx and similar. People talk about in fora but the hints are for more competent hackers. Can you give me a link where can I upgrade my knowledge.
A comment: what or who can include the support for various HW into the base kernel while it is so easy?
Díky za odpověď

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment