Method of Opening PowerVu Channels in Enigma2 Using Oscam

kalehrl

Senior Member
Messages
147
If you patch the latest oscam with the original patch from here:
https://github.com/oscam-emu/OSEmu
you get:
Code:
patching file CMakeLists.txt
patching file config.h
patching file config.sh
Hunk #4 FAILED at 344.
1 out of 5 hunks FAILED -- saving rejects to file config.sh.rej
To workaround this problem, I used the patch from here:
http://www.streamboard.tv/wbb2/thread.php?postid=548537#post548537
but with this patch, the stream relay option disappears from web interface.
If you use the original patch and ignore the patching error, the stream relay option IS present in the web interface but the question is, is it safe to ignore the error reported?
 

satmafia

Member
Messages
58
If you patch the latest oscam with the original patch from here:
https://github.com/oscam-emu/OSEmu
you get:
Code:
patching file CMakeLists.txt
patching file config.h
patching file config.sh
Hunk #4 FAILED at 344.
1 out of 5 hunks FAILED -- saving rejects to file config.sh.rej
To workaround this problem, I used the patch from here:
http://www.streamboard.tv/wbb2/thread.php?postid=548537#post548537
but with this patch, the stream relay option disappears from web interface.
If you use the original patch and ignore the patching error, the stream relay option IS present in the web interface but the question is, is it safe to ignore the error reported?
I've fixed the rejected part in config.sh manually, so I didn't use anything except the oscam-emu patch from github and the ecm fix provided by you. So it might be an issue with the latest emu patch set.
 

joeuser

Senior Member
Messages
199
Hmm, that patch only has changes for READER_VIACCESS. Maybe the patch is not being applied correctly for the version of oscam-svn you are using??

Code:
 diff oscam-emu.patch oscam-emu-10894.patch
137c137
< -     enabled_any READER_DRE MODULE_SCAM && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
---
> -     enabled_any READER_DRE MODULE_SCAM READER_VIACCESS && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
140c140
< +     enabled_any READER_DRE MODULE_SCAM WITH_EMU && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
---
> +     enabled_any READER_DRE MODULE_SCAM READER_VIACCESS WITH_EMU && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"

EDIT: I did not see last two posts before I posted. Now I know for sure the patch was not being applies correctly. :)

BTW - that patch does not have the other patch...
Code:
for(i=12; i+1 < 12+program_info_length; i+=descriptor_length+2)
 
Last edited:

satmafia

Member
Messages
58
Hmm, that patch only has changes for READER_VIACCESS. Maybe the patch is not being applied correctly for the version of oscam-svn you are using??

Code:
 diff oscam-emu.patch oscam-emu-10894.patch
137c137
< -     enabled_any READER_DRE MODULE_SCAM && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
---
> -     enabled_any READER_DRE MODULE_SCAM READER_VIACCESS && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
140c140
< +     enabled_any READER_DRE MODULE_SCAM WITH_EMU && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"
---
> +     enabled_any READER_DRE MODULE_SCAM READER_VIACCESS WITH_EMU && echo "CONFIG_LIB_DES=y" || echo "# CONFIG_LIB_DES=n"

EDIT: I did not see last two posts before I posted. Now I know for sure the patch was not being applies correctly. :)
Github version of emu is broken for latest svn build 10699, so one needs to edit config.sh manually to fix this issue. It looks like me and @kalehri we both are using the latest oscam-svn.
 

kalehrl

Senior Member
Messages
147
It is not being applied correctly on any oscam svn from 10894. So, use 10893 if you compile oscam with oscam-emu patch.
 

satmafia

Member
Messages
58
oscam-svn10899 gets only three rej lines in config.sh file while using oscam-emu github patch set. I've managed to edit these three lines manually and then manually patched module-emulator-stream.c and managed to compile oscam-svn10699 cleanly. So it is mission complete as long as AFNs are not freezing anymore :)
 

joeuser

Senior Member
Messages
199
If you are interested in have multiple clients connect to oscam-emu or OSEmu, you can try this patch I made for forking to handle each client. (Works well for AFN since all channels are on same transponder.)
Code:
--- OSEmu/module-emulator-stream.c      2015-07-22 10:08:01.074286578 +0200
+++ OSEmu.my/module-emulator-stream.c   2015-07-22 10:08:19.889671289 +0200
@@ -25,6 +25,7 @@
 LLIST *ll_emu_stream_delayed_keys;
 int8_t stream_server_has_ecm = 0;
 #endif
+int our_pid;

 static int32_t glistenfd, gconnfd;

@@ -208,7 +209,7 @@
        if(12+program_info_length >= section_length)
                { return; }

-       for(i=12; i+1 < 12+program_info_length; i+=descriptor_length)
+       for(i=12; i+1 < 12+program_info_length; i+=descriptor_length+2)
        {
                descriptor_tag = data[i];
                descriptor_length = data[i+1];

@@ -658,8 +659,26 @@
                        break;
                }

+               /* Create child process */
+             our_pid = fork();
+             if (our_pid < 0)
+               {
+               perror("ERROR on fork");
+               exit(1);
+               }
+
+             if (our_pid == 0)
+               {
+               /* This is the client process */
+               close(glistenfd);
                handle_stream_client(gconnfd);
                cs_log("[Emu] stream client disconnected");
+               exit(0);
+               }
+             else
+                {
+                close(gconnfd);
+                }
        }

        close(glistenfd);
Note: I only tested on my Linux PC (x86_64) so let me know if it works on other architectures...
 

joeuser

Senior Member
Messages
199
Joe my question to you.I have tried your pti.ko file on openATV 5.0...Amiko not reboot...(bootloop) The your pti.ko file is right for openATV 5.0 or 4.2?Or not?Why not reboot?I don't understood it...Many thx again!!!:D
First post included pti.ko for kernel 217 (openatv5) and the second (216) was for openatv4. Not sure why you have a problem - probably need a serial line connected to capture boot messages...
 

cupof

Senior Member
Messages
143
does powervu open on a vu solo2 clone
with older drivers

or do you have to have lastest drivers

thanks
 

boyet05

Senior Member
Messages
245
Can anyone record pw channels?
Recording starts but the resulting file is always 0 bytes.

Yes I can record powervu channels no problem. Just make sure you have HDD mounted and recording path is ok. I am using DreamElite dm800se.
 

kalehrl

Senior Member
Messages
147
I can record all channels except pw so the path and everything else is correct. I use openpli though.
 

ettore88

Senior Member
Messages
338
First post included pti.ko for kernel 217 (openatv5) and the second (216) was for openatv4. Not sure why you have a problem - probably need a serial line connected to capture boot messages...
Ok joe!!!I have installed your oscam and i have adedd your conf(oscam conf and server)and pti.ko.(openATV 4.2)

Should i install softcam.key?I have tried,but i can't see nothing...:confused:Is there not something wrong here?THX in advance!!!:)
 

cbr900

Registered
Messages
33
can you guys please upload a back image of latest openatv for vu uno with the required files/emus to get afn working properly
 

ettore88

Senior Member
Messages
338
@joeuser Yesss!!!:DOn openATV 5.0 AFN works!(some "freeze")Hw can i fix it?The other powerVu channels don't work?(E 9E,Discovery 0.8w and Discovery 4.8E?)Many thx 4 your support m8!!!:thum:
 

joeuser

Senior Member
Messages
199
@joeuser Yesss!!!:DOn openATV 5.0 AFN works!(some "freeze")Hw can i fix it?The other powerVu channels don't work?(E 9E,Discovery 0.8w and Discovery 4.8E?)Many thx 4 your support m8!!!:thum:
Try playing with the stream relay delay. Instructions are already written in these threads...
 
Top