Welcome to GOFASTMOTORSPORTS.com ... ... ... Green Flag - Green Flag - Go Go Go ... ... Brought to you by Ricks Satellite - Where the Big Dish Rules!

Ricks Satellite Wildfeed and Backhaul Forum
Register Latest Topics
 
 
 


Reply
  Author   Comment   Page 2 of 2      Prev   1   2
TheSwede86

Registered:
Posts: 9
Reply with quote  #16 

Quote:
Originally Posted by majortom
It's not in there, but a different file name ds3103.fw file is.
I am 99.9% certain you could rename it..
When I was first playing with these devices, I could swap the firmware from numerous original sources,
and none of them made any difference in performance or operationally. I even made my own from the windows
driver at one point, and that worked fine too.
This should be the right file...
https://bitbucket.org/updatelee/v4l-updatelee/raw/107f042ef76d31f9e110ecf0b115509caa8b5e3d/firmware/dvb-demod-m88ds3103.fw


Hi again,

Thanks so much for your help.

I copied the file (dvb-demod-m88ds3103.fw) to my /lib/firmware/ folder and tried reconnecting the USB-receiver but still get "Driver=(none)", am I missing something? It is still called "dvb-demod-m88ds3103.fw" in /lib/firmware.

Quote:
Originally Posted by majortom
I wonder if he can just substitute his USB_PID for the one I posted as being for
terratec_cinergy_s2_R4 in drivers/media/dvb-core/dvb-usb-ids.h ???

Of course would still require copying the firmware to /lib/firmware in order to even test it.

sudo lsusb -v -d 0ccd:10a6 > info.txt gives among other info:

Code:

  idVendor           0x0ccd TerraTec Electronic GmbH
  idProduct          0x10a6

If I open "dvb-usb-ids.h" I find:

Code:

#define USB_PID_TERRATEC_CINERGY_S2_R4      0x0105

which I replaced with:
Code:

#define USB_PID_TERRATEC_CINERGY_S2_R4      0x10a6

and then go into: /linux-media/drivers/media where there is a "Makefile" and try to run "make" but I get:

"make: *** No targets.  Stop." Never had much experience with "make" but the file should be named correctly with capital M and no fileextension. Any ideas why it fails?

majortom

Avatar / Picture

Registered:
Posts: 4,856
Reply with quote  #17 
I don't know what you are trying to compile but...
I suggest the 'media_build' environment because it's the quickest way to test something like this.
much easier than compiling the entire kernel...

I am assuming you are working in the 'media_build' environment since you mentioned it earlier,
and have already compiled/installed it once. If so then navigate to
~/src/media_build/linux/drivers/media/dvb-core
make the change to 'dvb-usb-ids.h' there and then navigate to ~/src/media_build/v4l and type
'make'  from there.
In theory, it should only recompile modules that have changed since the last time it was compiled.
(assuming you haven't cleaned it yet).

When it's finished compiling, assuming there were no issues / errors...
'sudo make install'

reboot and see what happens.

Note: replace ~/src with where ever you have the media_build environment
I am just showing it as on my system where it sits in my home directory, in a directory named src


__________________
Perfect 10 7.5' mesh Chapparal C/Ku Co-Rotor feed, Norsat 8115 CBAND, Norsat 4106A Ku Thomson Saginaw Actuator, Vbox positioner,
Home Brew Polarotor683 Servo circuit. Openbox S9, Prof7500, v4l-updatelee linux drivers installed.
TheSwede86

Registered:
Posts: 9
Reply with quote  #18 

Quote:
Originally Posted by majortom
I don't know what you are trying to compile but...
I suggest the 'media_build' environment because it's the quickest way to test something like this.
much easier than compiling the entire kernel...

I am assuming you are working in the 'media_build' environment since you mentioned it earlier,
and have already compiled/installed it once. If so then navigate to
~/src/media_build/linux/drivers/media/dvb-core
make the change to 'dvb-usb-ids.h' there and then navigate to ~/src/media_build/v4l and type
'make'  from there.
In theory, it should only recompile modules that have changed since the last time it was compiled.
(assuming you haven't cleaned it yet).

When it's finished compiling, assuming there were no issues / errors...
'sudo make install'

reboot and see what happens.

Note: replace ~/src with where ever you have the media_build environment
I am just showing it as on my system where it sits in my home directory, in a directory named src



Hi!

Did the following:

Code:

git clone --depth=1 git://linuxtv.org/media_build.git
cd media_build
./build
cd ~/Downloads/media_build/linux/drivers/media/dvb-core
nano dvb-usb-ids.h
modified the value to:
#define USB_PID_TERRATEC_CINERGY_S2_R4 0x10a6
cd ~/Downloads/media_build/v4l
make
sudo make install
reboot


It still reports "Driver=(none)" after reboot [frown]

I did however find the link to the patch for the Terratec S7 Rev. 3:

https://patchwork.linuxtv.org/patch/10294/

which has both a "patch" and "mbox" download-link, "patch" contains:

Code:

From 650ff9ccd82ef11a4b87feaff9c619e562ab898a Mon Sep 17 00:00:00 2001
From: Eduard Bloch <blade@debian.org>
Date: Sat, 10 Mar 2012 16:13:51 +0100
Subject: [PATCH] Squashed commit of the following:
az6027.c: Use C99 style array initialization with position identifiers
az6027.c: Added USB ID of latest TERRATEC S7 revision
dw2102.c: Added USB ID of latest TERRATEC Cinergy S2 USB HD
dvb_frontend.c: From LKML, Signed-off-by: Simon Arlott <simon@fire.lp0.eu>,
  fixes regression from 7e0722215a510921cbb73ab4c37477d4dcb91bf8
Signed-off-by: Eduard Bloch <blade@debian.org>
---
 drivers/media/dvb/dvb-core/dvb_frontend.c |    2 +
 drivers/media/dvb/dvb-usb/az6027.c        |   45 ++++++++++++++++++++---------
 drivers/media/dvb/dvb-usb/dvb-usb-ids.h   |    1 +
 drivers/media/dvb/dvb-usb/dw2102.c        |   16 +++++++++-
 4 files changed, 49 insertions(+), 15 deletions(-)
diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c
index fbbe545..4555baa 100644
--- a/drivers/media/dvb/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb/dvb-core/dvb_frontend.c
@@ -655,6 +655,8 @@ restart:
           dprintk("%s: Retune requested, FESTATE_RETUNE\n", __func__);
           re_tune = true;
           fepriv->state = FESTATE_TUNED;
+        } else {
+          re_tune = false;
         }
 
         if (fe->ops.tune)
diff --git a/drivers/media/dvb/dvb-usb/az6027.c b/drivers/media/dvb/dvb-usb/az6027.c
index 5e45ae6..eee669c 100644
--- a/drivers/media/dvb/dvb-usb/az6027.c
+++ b/drivers/media/dvb/dvb-usb/az6027.c
@@ -1079,15 +1079,28 @@ int az6027_identify_state(struct usb_device *udev,
   return 0;
 }
 
+enum az6027_table_entry {
+  AZUREWAVE_AZ6027,
+  ELGATO_EYETV_SAT,
+  TECHNISAT_USB2_HDCI_V1,
+  TECHNISAT_USB2_HDCI_V2,
+  TERRATEC_DVBS2CI_V1,
+  TERRATEC_DVBS2CI_V2,
+  TERRATEC_DVBS2CI_V3,
+
+  az6027_table_entry_enum_max
+};
 
 static struct usb_device_id az6027_usb_table[] = {
-  { USB_DEVICE(USB_VID_AZUREWAVE, USB_PID_AZUREWAVE_AZ6027) },
-  { USB_DEVICE(USB_VID_TERRATEC,  USB_PID_TERRATEC_DVBS2CI_V1) },
-  { USB_DEVICE(USB_VID_TERRATEC,  USB_PID_TERRATEC_DVBS2CI_V2) },
-  { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V1) },
-  { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V2) },
-  { USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_SAT) },
-  { },
+  [AZUREWAVE_AZ6027] = { USB_DEVICE(USB_VID_AZUREWAVE, USB_PID_AZUREWAVE_AZ6027) },
+  [ELGATO_EYETV_SAT] = { USB_DEVICE(USB_VID_ELGATO, USB_PID_ELGATO_EYETV_SAT) },
+  [TECHNISAT_USB2_HDCI_V1] = { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V1) },
+  [TECHNISAT_USB2_HDCI_V2] = { USB_DEVICE(USB_VID_TECHNISAT, USB_PID_TECHNISAT_USB2_HDCI_V2) },
+  [TERRATEC_DVBS2CI_V1] = { USB_DEVICE(USB_VID_TERRATEC,  USB_PID_TERRATEC_DVBS2CI_V1) },
+  [TERRATEC_DVBS2CI_V2] = { USB_DEVICE(USB_VID_TERRATEC,  USB_PID_TERRATEC_DVBS2CI_V2) },
+  [TERRATEC_DVBS2CI_V3] = { USB_DEVICE(USB_VID_TERRATEC,  USB_PID_TERRATEC_DVBS2CI_V3) },
+
+  [az6027_table_entry_enum_max] = { 0 }
 };
 
 MODULE_DEVICE_TABLE(usb, az6027_usb_table);
@@ -1135,31 +1148,35 @@ static struct dvb_usb_device_properties az6027_properties = {
 
   .i2c_algo         = &az6027_i2c_algo,
 
-  .num_device_descs = 6,
+  .num_device_descs = 7,
   .devices = {
     {
       .name = "AZUREWAVE DVB-S/S2 USB2.0 (AZ6027)",
-      .cold_ids = { &az6027_usb_table[0], NULL },
+      .cold_ids = { &az6027_usb_table[AZUREWAVE_AZ6027], NULL },
       .warm_ids = { NULL },
     }, {
       .name = "TERRATEC S7",
-      .cold_ids = { &az6027_usb_table[1], NULL },
+      .cold_ids = { &az6027_usb_table[TERRATEC_DVBS2CI_V1], NULL },
       .warm_ids = { NULL },
     }, {
       .name = "TERRATEC S7 MKII",
-      .cold_ids = { &az6027_usb_table[2], NULL },
+      .cold_ids = { &az6027_usb_table[TERRATEC_DVBS2CI_V2], NULL },
       .warm_ids = { NULL },
     }, {
       .name = "Technisat SkyStar USB 2 HD CI",
-      .cold_ids = { &az6027_usb_table[3], NULL },
+      .cold_ids = { &az6027_usb_table[TECHNISAT_USB2_HDCI_V1], NULL },
       .warm_ids = { NULL },
     }, {
       .name = "Technisat SkyStar USB 2 HD CI",
-      .cold_ids = { &az6027_usb_table[4], NULL },
+      .cold_ids = { &az6027_usb_table[TECHNISAT_USB2_HDCI_V2], NULL },
       .warm_ids = { NULL },
     }, {
       .name = "Elgato EyeTV Sat",
-      .cold_ids = { &az6027_usb_table[5], NULL },
+      .cold_ids = { &az6027_usb_table[ELGATO_EYETV_SAT], NULL },
+      .warm_ids = { NULL },
+    }, {
+      .name = "TERRATEC S7 Rev.3",
+      .cold_ids = { &az6027_usb_table[TERRATEC_DVBS2CI_V3], NULL },
       .warm_ids = { NULL },
     },
     { NULL },
diff --git a/drivers/media/dvb/dvb-usb/dvb-usb-ids.h b/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
index d390dda..55cac30 100644
--- a/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
+++ b/drivers/media/dvb/dvb-usb/dvb-usb-ids.h
@@ -331,6 +331,7 @@
 #define USB_PID_AZUREWAVE_AZ6027      0x3275
 #define USB_PID_TERRATEC_DVBS2CI_V1      0x10a4
 #define USB_PID_TERRATEC_DVBS2CI_V2      0x10ac
+#define USB_PID_TERRATEC_DVBS2CI_V3      0x10b0
 #define USB_PID_TECHNISAT_USB2_HDCI_V1      0x0001
 #define USB_PID_TECHNISAT_USB2_HDCI_V2      0x0002
 #define USB_PID_TECHNISAT_AIRSTAR_TELESTICK_2    0x0004
diff --git a/drivers/media/dvb/dvb-usb/dw2102.c b/drivers/media/dvb/dvb-usb/dw2102.c
index 451c5a7..87fcb7b 100644
--- a/drivers/media/dvb/dvb-usb/dw2102.c
+++ b/drivers/media/dvb/dvb-usb/dw2102.c
@@ -1181,6 +1181,14 @@ static int su3000_frontend_attach(struct dvb_usb_adapter *d)
 {
   u8 obuf[3] = { 0xe, 0x80, 0 };
   u8 ibuf[] = { 0 };
+  
+  if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0)
+    err("command 0x0e transfer failed.");
+
+  //power on su3000
+  obuf[0] = 0xe;
+  obuf[1] = 0x02;
+  obuf[2] = 1;
 
   if (dvb_usb_generic_rw(d->dev, obuf, 3, ibuf, 1, 0) < 0)
     err("command 0x0e transfer failed.");
@@ -1448,6 +1456,7 @@ enum dw2102_table_entry {
   PROF_7500,
   GENIATECH_SU3000,
   TERRATEC_CINERGY_S2,
+  TERRATEC_CINERGY_S2rev2,
   TEVII_S480_1,
   TEVII_S480_2,
   X3M_SPC1400HD,
@@ -1466,6 +1475,7 @@ static struct usb_device_id dw2102_table[] = {
   [PROF_7500] = {USB_DEVICE(0x3034, 0x7500)},
   [GENIATECH_SU3000] = {USB_DEVICE(0x1f4d, 0x3000)},
   [TERRATEC_CINERGY_S2] = {USB_DEVICE(USB_VID_TERRATEC, 0x00a8)},
+  [TERRATEC_CINERGY_S2rev2] = {USB_DEVICE(USB_VID_TERRATEC, 0x00b0)},
   [TEVII_S480_1] = {USB_DEVICE(0x9022, USB_PID_TEVII_S480_1)},
   [TEVII_S480_2] = {USB_DEVICE(0x9022, USB_PID_TEVII_S480_2)},
   [X3M_SPC1400HD] = {USB_DEVICE(0x1f4d, 0x3100)},
@@ -1857,7 +1867,7 @@ static struct dvb_usb_device_properties su3000_properties = {
     }},
     }
   },
-  .num_device_descs = 3,
+  .num_device_descs = 4,
   .devices = {
     { "SU3000HD DVB-S USB2.0",
       { &dw2102_table[GENIATECH_SU3000], NULL },
@@ -1871,6 +1881,10 @@ static struct dvb_usb_device_properties su3000_properties = {
       { &dw2102_table[X3M_SPC1400HD], NULL },
       { NULL },
     },
+    { "Terratec Cinergy S2 USB HD Rev.2",
+      { &dw2102_table[TERRATEC_CINERGY_S2rev2], NULL },
+      { NULL },
+    },
   }
 };
 
-- 
1.7.9.1



This might be modified?

majortom

Avatar / Picture

Registered:
Posts: 4,856
Reply with quote  #19 
No, that patch is from 2012 and for a different, even older device.

What did you see in the kernel logs is it trying to load a driver or what?
Post the kernel log as ya plug the device in. I would continue to troubleshoot what ya have now.
Where did you get this device from?

__________________
Perfect 10 7.5' mesh Chapparal C/Ku Co-Rotor feed, Norsat 8115 CBAND, Norsat 4106A Ku Thomson Saginaw Actuator, Vbox positioner,
Home Brew Polarotor683 Servo circuit. Openbox S9, Prof7500, v4l-updatelee linux drivers installed.
TheSwede86

Registered:
Posts: 9
Reply with quote  #20 

Quote:
Originally Posted by majortom
No, that patch is from 2012 and for a different, even older device.

What did you see in the kernel logs is it trying to load a driver or what?
Post the kernel log as ya plug the device in. I would continue to troubleshoot what ya have now.
Where did you get this device from?


Thank you very much for helping me, really appreciated.

I got it from here:

https://www.conrad.se/?websale8=conrad-swe.01-aa&pi=942240&refKey=ZuJ8ZuDKa

tail -f /var/log/kern.log:

Code:

May 22 23:58:09 xxx-desktop kernel: [116514.814901] usb 1-3: USB disconnect, device number 4
May 22 23:59:46 xxx-desktop kernel: [116611.864375] usb 1-1: new high-speed USB device number 26 using xhci_hcd
May 22 23:59:46 xxx-desktop kernel: [116612.012935] usb 1-1: New USB device found, idVendor=0ccd, idProduct=10a6
May 22 23:59:46 xxx-desktop kernel: [116612.012937] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
May 22 23:59:46 xxx-desktop kernel: [116612.012938] usb 1-1: Product: TERRATEC S2 CI USB
May 22 23:59:46 xxx-desktop kernel: [116612.012939] usb 1-1: Manufacturer: TERRATEC
May 22 23:59:46 xxx-desktop kernel: [116612.012940] usb 1-1: SerialNumber: <omitted>


find "dvb-demod-m88ds3103.fw" in /lib/firmware:
Code:

xxx@xxx-desktop:/lib/firmware$ find "dvb-demod-m88ds3103.fw"
dvb-demod-m88ds3103.fw


Am I missing something? Might I have overlooked anything basic?
It should automatically try and load "dvb-demod-m88ds3103.fw" in /lib/firmware after I modified "dvb-usb-ids.h" and did a "make" (and a reboot / re-attached the device) right?

majortom

Avatar / Picture

Registered:
Posts: 4,856
Reply with quote  #21 
kernel log from a similar OEM device, based on m88ts2022/m88ds3103, using the same USB driver as your
terratec device (dw2102)

https://pastebin.com/c7nRkEDC
As noted in my log, you won't see the firmware downloading, until ya actually try to use the device in an application.

Upon a successful driver load / attach, you should see something like that...
In addition, once ya plug it in, try ls /dev/dvb

In my case, I have 3 devices attached to my computer, the one shown attaching in the kernel
log is adapter1.

Code:
mrf@perseus:~/src2/updatedvb > ls /dev/dvb
adapter0  adapter1  adapter2



__________________
Perfect 10 7.5' mesh Chapparal C/Ku Co-Rotor feed, Norsat 8115 CBAND, Norsat 4106A Ku Thomson Saginaw Actuator, Vbox positioner,
Home Brew Polarotor683 Servo circuit. Openbox S9, Prof7500, v4l-updatelee linux drivers installed.
TheSwede86

Registered:
Posts: 9
Reply with quote  #22 

Quote:
Originally Posted by majortom
kernel log from a similar OEM device, based on m88ts2022/m88ds3103, using the same USB driver as your
terratec device (dw2102)

https://pastebin.com/c7nRkEDC
As noted in my log, you won't see the firmware downloading, until ya actually try to use the device in an application.

Upon a successful driver load / attach, you should see something like that...
In addition, once ya plug it in, try ls /dev/dvb

In my case, I have 3 devices attached to my computer, the one shown attaching in the kernel
log is adapter1.

Code:
mrf@perseus:~/src2/updatedvb > ls /dev/dvb adapter0 adapter1 adapter2




Sorry for answering so slowly, we have an extended holiday coming up here starting tomorrow in Sweden and I am really excited to try and solve this, I will be available later in the evening and be able to post more replies per day and try more things each day.

The thing is I don't have a "dvb" folder in my "/dev" folder.
Also I don't see it in TVheadend and in the "TV adapters" folder shown in TVheadend, probably because Linux / Ubuntu does not recognize the device. According to LinuxTV:

"Provided that the drivers were loaded, you should now have a non-empty /dev/dvb directory. (Note: this directory is created automatically by udev, so you do not need to create it yourself)."

Src: https://www.linuxtv.org/wiki/index.php/Archived:How_to_install_DVB_device_drivers

I followed the guide here:

and downloaded "v4l-dvb" but when I try building it I get this:

Code:

xxx@xxx-desktop:~/v4l-dvb$ sudo make
make -C /home/xxx/v4l-dvb/v4l
make[1]: Entering directory '/home/xxx/v4l-dvb/v4l'
creating symbolic links...
make -C firmware prep
make[2]: Entering directory '/home/xxx/v4l-dvb/v4l/firmware'
make[2]: Leaving directory '/home/xxx/v4l-dvb/v4l/firmware'
make -C firmware
make[2]: Entering directory '/home/xxx/v4l-dvb/v4l/firmware'
make[2]: Nothing to be done for 'default'.
make[2]: Leaving directory '/home/xxx/v4l-dvb/v4l/firmware'
Kernel build directory is /lib/modules/4.8.0-52-generic/build
make -C /lib/modules/4.8.0-52-generic/build SUBDIRS=/home/xxx/v4l-dvb/v4l CFLAGS="-I../linux/include -D__KERNEL__ -I/include -DEXPORT_SYMTAB" modules
make[2]: Entering directory '/usr/src/linux-headers-4.8.0-52-generic'
  CC [M]  /home/xxx/v4l-dvb/v4l/tuner-xc2028.o
cc1: fatal error: include/linux/version.h: No such file or directory
compilation terminated.
scripts/Makefile.build:295: recipe for target '/home/xxx/v4l-dvb/v4l/tuner-xc2028.o' failed
make[3]: *** [/home/xxx/v4l-dvb/v4l/tuner-xc2028.o] Error 1
Makefile:1491: recipe for target '_module_/home/xxx/v4l-dvb/v4l' failed
make[2]: *** [_module_/home/xxx/v4l-dvb/v4l] Error 2
make[2]: Leaving directory '/usr/src/linux-headers-4.8.0-52-generic'
Makefile:43: recipe for target 'default' failed
make[1]: *** [default] Error 2
make[1]: Leaving directory '/home/xxx/v4l-dvb/v4l'
Makefile:27: recipe for target 'all' failed
make: *** [all] Error 2


Then I tried to go into "/lib/modules/4.8.0-52-generic/build" and run:

Code:

sudo make headers_check
sudo make headers_install
sudo make scripts


make headers_check:

Code:

xxx@xxx-desktop:/usr/src/linux-headers-4.8.0-52-generic$ sudo make headers_check
  CHK     include/generated/uapi/linux/version.h
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'.  Stop.
arch/x86/Makefile:191: recipe for target 'archheaders' failed
make: *** [archheaders] Error 2


Upon googling "No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h"I found this link:

https://stackoverflow.com/a/42803214

but I couldn't find anything in the "Makefile" in "/usr/src/linux-headers-4.8.0-52-generic" which I could alter as per the post.

make headers_install:

Code:

xxx@xxx-desktop:/usr/ssudo make scriptsrc/linux-headers-4.8.0-52-generic$ sudo make headers_install
  CHK     include/generated/uapi/linux/version.h
make[1]: *** No rule to make target 'arch/x86/entry/syscalls/syscall_32.tbl', needed by 'arch/x86/entry/syscalls/../../include/generated/asm/syscalls_32.h'.  Stop.
arch/x86/Makefile:191: recipe for target 'archheaders' failed
make: *** [archheaders] Error 2


I ran "sudo apt-get install linux-source" and it seemed to download "linux-source-4.4.0" which I as a newbie but with common sense guesses is older then the kernel I am trying to build?

sudo make scripts:

Code:

xxx@xxx-desktop:/usr/src/linux-headers-4.8.0-52-generic$ sudo make scripts  HOSTCC  scripts/selinux/genheaders/genheaders
scripts/selinux/genheaders/genheaders.c:13:22: fatal error: classmap.h: No such file or directory
compilation terminated.
scripts/Makefile.host:107: recipe for target 'scripts/selinux/genheaders/genheaders' failed
make[3]: *** [scripts/selinux/genheaders/genheaders] Error 1
scripts/Makefile.build:440: recipe for target 'scripts/selinux/genheaders' failed
make[2]: *** [scripts/selinux/genheaders] Error 2
scripts/Makefile.build:440: recipe for target 'scripts/selinux' failed
make[1]: *** [scripts/selinux] Error 2
Makefile:570: recipe for target 'scripts' failed
make: *** [scripts] Error 2

TheSwede86

Registered:
Posts: 9
Reply with quote  #23 

Quote:
Originally Posted by majortom
kernel log from a similar OEM device, based on m88ts2022/m88ds3103, using the same USB driver as your
terratec device (dw2102)

https://pastebin.com/c7nRkEDC
As noted in my log, you won't see the firmware downloading, until ya actually try to use the device in an application.

Upon a successful driver load / attach, you should see something like that...
In addition, once ya plug it in, try ls /dev/dvb

In my case, I have 3 devices attached to my computer, the one shown attaching in the kernel
log is adapter1.

Code:
mrf@perseus:~/src2/updatedvb > ls /dev/dvb adapter0 adapter1 adapter2




Hi again!

Successfully compiled and installed v4l-dvb [biggrin]

I modified the "dvb-usb-ids.h" and it read:

Code:

#define USB_PID_TERRATEC_CINERGY_S2_R4      0x10a6


before "make" and "make install" but after a reboot I see this:

Code:

T:  Bus=01 Lev=01 Prnt=01 Port=02 Cnt=02 Dev#=  3 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=0ccd ProdID=10a6 Rev=00.00
S:  Manufacturer=TERRATEC
S:  Product=TERRATEC S2 CI USB
S:  SerialNumber=<omitted>10a6
C:  #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=500mA
I:  If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=01 Prot=01 Driver=dvb_usb_dvbsky


If I do "modinfo dvb_usb_dvbsky" I get this:

Code:

ubuntu@NUC-D54250WYK:~$ modinfo dvb_usb_dvbsky
filename:       /lib/modules/4.8.0-56-generic/kernel/drivers/media/usb/dvb-usb-v2/dvb-usb-dvbsky.ko
license:        GPL
description:    Driver for DVBSky USB
author:         Max nibble <nibble.max@gmail.com>
srcversion:     533BB7E5866E52F63B9ACCB
alias:          usb:v0CCDp10A6d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0CCDp10A5d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B48p3017d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B48p3015d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B48p3012d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0B48p3014d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0572p0320d*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0572p680Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0572p960Cd*dc*dsc*dp*ic*isc*ip*in*
alias:          usb:v0572p6831d*dc*dsc*dp*ic*isc*ip*in*
depends:        dvb_usb_v2,dvb-core,rc-core,m88ds3103
vermagic:       4.8.0-56-generic SMP mod_unload modversions 
parm:           disable_rc:Disable inbuilt IR receiver. (int)
parm:           adapter_nr:DVB adapter numbers (array of short)


and going into "/lib/modules/4.8.0-56-generic/kernel/drivers/media/usb/dvb-usb-v2/dvb-usb-dvbsky.ko" I see this:

Code:

rc code: %x
ci control failed=%d
&state->stream_mutexm88ds3103_attachsymbol:m88ds3103_attachdvbsky_s960_attach fail.
ts2020si2168si2157sp2dvbsky_s960ci_attach fail.
dvb_usb_dvbskyTerratec Cinergy S2 Rev.4rc-dvbskyTerratec H7 Rev.4rc-tt-1500TechnoTrend TVStick CT2-4400DVBSky T330DVBSky T680CIDVBSky S960CIDVBSky S960/S8603DVB: Unable to find symbol m88ds3103_attach()
too many i2c messages[%d], max 2.too many i2c bytes[%d], max 60.too many i2c bytes[w-%d][r-%d], max 60.TechnoTrend TT-connect S2-4650 CITechnoTrend TT-connect CT2-4650 CI v1.1TechnoTrend TT-connect CT2-4650 CI/home/ubuntu/Downloads/media_build/v4l/dvbsky.clicense=GPLdescription=Driver for DVBSky USBauthor=Max nibble <nibble.max@gmail.com>parm=adapter_nr:DVB adapter numbersparmtype=adapter_nr:array of shortparm=disable_rc:Disable inbuilt IR receiver.parmtype=disable_rc:intsrcversion=533BB7E5866E52F63B9ACCBalias=usb:v0CCDp10A6d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0CCDp10A5d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0B48p3017d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0B48p3015d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0B48p3012d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0B48p3014d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0572p0320d*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0572p680Cd*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0572p960Cd*dc*dsc*dp*ic*isc*ip*in*alias=usb:v0572p6831d*dc*dsc*dp*ic*isc*ip*in*depends=dvb_usb_v2,dvb-core,rc-core,m88ds3103vermagic=4.8.0-56-generic SMP mod_unload modversions $ÿ¤ÿþ<hmodule_layout‚+@__request_moduleù‚¤ùmsleep½Æî2param_ops_int¬‰Óri2c_transferð{÷dvb_usbv2_resume"µúmutex_unlocki‡ddvb_frontend_detachFõ¥×param_ops_shortç
¿$dvb_usbv2_generic_rw_locked


and finally "before" installing v4l-dvb (but after "make-ing" it) I had a file called "dvb_usb_common.h" in "/~/Downloads/media_build/linux/drivers/media/usb/dvb-usb-v2" which had among other things this in it:

Code:

#ifndef DVB_USB_COMMON_H0x10a6


0x10a6 is the same USB ProdID which my Terratec S7 Rev. 4 has when doing "usb-devices" and also the same thing I altered "TERRATEC_CINERGY_S2_R4" to in "dvb-usb-ids.h" before compiling.

I am guessing that overides the change I made and it tries to load the dvbsky driver for my tuner but I tried this in TVheadend and I don't get any channels while scanning using that (dvbsky) driver.

Any ideas?

Very thankful for your help / TheSwede86

Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Fellow Members, your posts are welcome here! Do not worry about posting everything perfect. Different receivers and LNB's will give you different Frequencies and Symbol Rates. Some set top boxes, PCI cards and USB receivers, Do Not Require all of the same information that others may need. It is not Required to post everything that others may need to tune in a feed. It is just most important to share the find. We can always adjust the Frequency and Symbol Rates and try the various Modulations and FEC's on our own receivers until we get a lock and then give a polite reply with what works for your receiver, as that information might help others as well. We all appreciate the efforts and energy of the Posters!

Thank You for Visiting GOFASTMOTORSPORTS.com - Keep Your Eyes on the Sky and the Track!