Closed Lexzie closed 4 years ago
Please use the prebuild toolchain arm_dream or you create your own toolchain via ./s3 tcupdate --create
. Please choose dream_arm as template and start the build process. Additional information you can find in the wiki.
Building from toolchain arm_dream doesn't work. I think that's for the (original) OE2.2 images. Like everywhere where I can find a oscam for Dreambox DM9x0. After building the file: -Stopped the softcam (in the menu Setup>SoftCam/CI>Softcam Setup I choose no softcam ) -With WinSCP I replaced the existing file 'oscam' in the folder /usr/bin -Made sure it has 755 attributes (should inherit it from the former file) -Restart the softcam Even did a complete reboot, oscam isn't starting.... 😢
Like I said in the title: I need a toolchain for OE2.0 / OpenPLi 7.x
I hope I understand how to make a toolchain myself. But after all there should already be one, because the image-builders supply a (old) version of oscam in their feed.
Please provide more information like error messages from oscam start. I think it's an OpenSSL issue...
Where can I find that?
/etc/init.d/softcam restart
root@dm920:~# /etc/init.d/softcam restart cat: can't open '/tmp/oscam-emu.pid': No such file or directory /usr/bin/oscam-emu: error while loading shared libraries: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory
As I said: an OpenSSL issue! Your oscam is compiled against OpenSSL 1.0.0 and OpenPLi 7.2 uses OpenSSL 1.0.2.
You have to create symlinks or update your toolchain (see wiki).
Symlink:
ln -s libcrypto.so.1.0.0 /usr/lib/libcrypto.so.1.0.2
ln -s libssl.so.1.0.0 /usr/lib/libssl.so.1.0.2
Thanks! I think I'd best update the toolchain. Just have to figure out how...
I have updated dream_arm with library SSL_102 (OpenSSL 1.0.2u) but nothing is build anymore (no file in support/binaries). I even downloaded the simplebuild program again and started from scratch...
If I build from another toolchain there's no problem.
The lastbuild.log ends with:
make[1]: *** [build/arm-linux-gnueabihf-ssl-libusb-pcsc/csctapi/CC module-camd35.c
Makefile:373: recipe for target 'all' failed
make: *** [all] Error 2
I managed to fix the problem not building, now I get this message when I try to start oscam:
/usr/bin/oscam-emu: error while loading shared libraries: libusb-1.0.so.0: cannot open shared object file: No such file or directory
When I thought I had libusb updated too. So, still WiP.
You have to install libusb 1.0 on your device runnung oscam
I did this:
root@dm920:~# opkg install libusb-1.0-0
Installing libusb-1.0-0 (1.0.21) on root
Downloading http://openpli-7star.japhar.net/feeds/openpli-7star/cortexa15hf-neon-vfpv4/libusb-1.0-0_1.0.21-r0_cortexa15hf-neon-vfpv4.ipk.
Configuring libusb-1.0-0.
root@dm920:~#
Now I get this message:
/usr/bin/oscam-emu: error while loading shared libraries: libpcsclite.so.1: cannot open shared object file: No such file or directory
What I don't understand: I can download a (stripped) oscam from the feed. Working okay. Why can't I build one myself (with smartreader and pcsc support f.e.)?
If I need to install libusb 1.0, I should have needed that before with the oscam downloaded from the feed?
Next you have to install pcsclite on your stb. The oscam versions from feed are linked to older versions of libusb and pcsclite (which are already installed ob your stb) or this libs are statically linked (included) to (in) this oscam binaries.
s3 dont support static linking of lib currently.
Sounds logical. And I guess that's the way, not linking to older versions.
After installing libpcsclite1 it worked!
Oscam r11580 with the options I like!
The only thing I miss is a patch which I placed in the folder patches.
The option USE_PATCH is on:
When the building starts I see the message
Apply patch: done all OK
(something like that)
But I miss the option USE_PATCH=1
when I look at the UseFlags in Lastbuid.log
So much that can (and will) go wrong, thanks for your patience and support @WXbet !
the cmd option is USE_PATCH or USE_PATCH_off this option is s3 internal not used by oscam source
I miss the option USE_PATCH
too.
+-------------------------------------------------------------------------------
| OSCam ver: 1.20_svn rev: 11589 target: arm-dreambox-linux-gnueabihf-ssl-libusb-pcsc
| Tools:
| CROSS = /home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/bin/arm-dreambox-linux-gnueabihf-
| CC = /home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/bin/arm-dreambox-linux-gnueabihf-gcc
| Settings:
| CONF_DIR = /etc/tuxbox/config
| CC_OPTS = -O0 -ggdb -pipe -ffunction-sections -fdata-sections
| CC_WARN = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
| CFLAGS = -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/arm-dreambox-linux-gnueabihf/sysroot/usr/include/PCSC -I/home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/arm-dreambox-linux-gnueabihf/sysroot/usr/include/../local/include/PCSC -DWITH_UTF8=1 -DWITH_UTF8
| LDFLAGS = -Wl,--gc-sections -DWITH_SSL=1 -DWITH_LIBCRYPTO=1 -DWITH_LIBUSB=1 -DWITH_PCSC=1 -I/home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/arm-dreambox-linux-gnueabihf/sysroot/usr/include/PCSC -I/home/lexzie/Downloads/s3_releases-s3_310_Final/support/toolchains/dream_arm/arm-dreambox-linux-gnueabihf/sysroot/usr/include/../local/include/PCSC -DWITH_UTF8=1 -DWITH_UTF8
| LIBS = -lssl -lcrypto -lusb-1.0 -lrt -lpcsclite -lm -lpthread -ldl
| UseFlags = USE_SSL=1 USE_LIBCRYPTO=1 USE_LIBUSB=1 USE_PCSC=1 USE_UTF8=1
| Config:
| Addons : WEBIF WEBIF_LIVELOG WEBIF_JQUERY WITH_SSL HAVE_DVBAPI READ_SDT_CHARSETS IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK
| Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX SCAM CONSTCW
| Readers : NAGRA NAGRA_MERLIN IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
| CardRdrs : PHOENIX INTERNAL SMARGO STINGER SMART PCSC
| Compiler : arm-dreambox-linux-gnueabihf-gcc (crosstool-NG 1.24.0.105_5659366) 9.2.0
| Config : build/arm-dreambox-linux-gnueabihf-ssl-libusb-pcsc/config.mak
| Binary : /home/lexzie/Downloads/s3_releases-s3_310_Final/support/binaries/oscam-svn11589-dream_arm-webif-dvbapi-ssl-libusb-pcsc
+-------------------------------------------------------------------------------
Please help how to apply the patch?
Sorry in advance if my question is not in place here, but after three days trying I'm quite out of options. I have OSCam via the feed installed and works fine, but I want to compile it myself. In oscam.version I see
arm-oe-linux-gnueabi
, but none of the toolchains gives me a version of OSCam that will run on my box. What toolchain do I need, where to find it and how to add it in Simplebuild?