Cum imi compilez oscamul ?

User avatar
dMd
Gold User
Posts: 1550
Joined: 11 Sep 2013 16:29

Re: Cum imi compilez oscamul ?

Unread postby dMd » 03 Jul 2014 10:19

Compilare Oscam-Emu

Se deschide terminalul linux si tastam (fara a fi root):

Code: Select all

cd ~
mkdir oscam_emu
cd oscam_emu
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn

### prin aceasta comanda ne va descarca in folderul oscam_emu cea mai recenta versiune oscam
### descarcam fisierul emu.patch de aici:  https://mega.co.nz/#!3MVWQAZC!kgC7Uo0gFfSXiX-He09gn1Gt_2Ry8_sHrfU4W33zP6U
### copiem fisierul descarcat (emu.patch) in folderul oscam-svn (/HOME/oscam_emu/oscam-svn)
### dupa ce am copiat emu.patch continuam  ...

cd oscam-svn
patch -p0 < emu.patch

### in acest moment oscamului i s-a aplicat patch-ul respectiv
### revenim in folderul oscam_emu

cd
cd ~/oscam_emu

### descarcam simplebuild si ii dam atribut 755

wget http://ss4200.homelinux.com/oscam/simplebuild
chmod 755 simplebuild
./simplebuild menu


Va apare fereastra simplebuild, alegem Continue with local: r97xx, adaugam toolchain , Configure - Customize your oscam , Modules - Modules, Protocols... ==>> Add Ons ==>> cursor jos pana ajungi la ==> WHITH EMU (Emulator support experimental) si il bifezi daca nu este bifat.

Image
Image Image Nu putem avea tot timpul dreptate.
User avatar
Levy
Gold User
Posts: 1581
Joined: 02 Oct 2013 15:07
Location: ABSURDISTAN

Re: Cum imi compilez oscamul ?

Unread postby Levy » 03 Jul 2014 21:25

Am incercat sa compilez un oscam emu de teste, exact cum este descris aici, insa nu-mi apare unde sa bifez aceasta optiune in simplebuild (whith emu).
Dacă ai tăiat și ultimul copac, ai otrăvit și ultimul râu și ai prins și ultimul pește, ai să fi uimit să constați că banii nu sunt comestibili !

Image
User avatar
lao
Advanced User
Posts: 524
Joined: 07 Oct 2013 06:33

Re: Cum imi compilez oscamul ?

Unread postby lao » 03 Jul 2014 21:55

1. trebuie sa pui patch de pe site in /patches
2. la optiuni simplebuild bifeaza with patch
3. nu se merita....

PS Parca asa era... n-am mai facut de ceva timp
Experienta este cel mai dur profesor, pentru ca intai iti da testul si apoi iti spune care era lectia. - Vernon Law
User avatar
dMd
Gold User
Posts: 1550
Joined: 11 Sep 2013 16:29

Re: Cum imi compilez oscamul ?

Unread postby dMd » 03 Jul 2014 23:35

Fisierul emu.patch este acelasi fisier patch care e pe pagina lor numai ca l-am redenumit si incarcat pe net din dorinta de a simplifica pt ca la ei era arhivat ...etc. Am incercat si eu cu plasarea fisierului in folderul patch si nu a mers (mergea la anumite versiuni 87xx parca), din motivul asta am ales varianta descrisa. Nu am testat sa vad ce deschide si nu stiu cat de actualizat este acel patch pt ca in el se afla tot, ... sustin aceeasi chestie precizata de @lao la pct. 3
Image Image Nu putem avea tot timpul dreptate.
User avatar
dMd
Gold User
Posts: 1550
Joined: 11 Sep 2013 16:29

Re: Cum imi compilez oscamul ?

Unread postby dMd » 19 Nov 2014 09:22

Simplebuild 2.00+ Talk (fr/en/it/de) changelog
simplebuild 2.42 + config 1.45
-fix compression for raspberry toolchains (no segfault anymore)
-add Fritzbox 73XX OS 6.2 Support
-add Fritzbox 74XX OS 6.2 Support
-add SCAM support
-cosmetic checkout revision fix(again + multilanguage)


./simplebuild cedit - edit script options
./simplebuild lang_select - switch/select script language
./simplebuild checkout XXXX - get the last svn (XXXX is optional for revision)
./simplebuild toolchainname loadonly - fetch the toolchain only
./simplebuild clean - cleanup (archiv,configs,oscam-svn,simplebuild.config,build.log) not toolchains & toolchain backups
./simplebuild reset_all - delete everything except the simplebuild script itself
./simplebuild debinstall - install all needed packages for building
./simplebuild checksys - check installed packages
Image Image Nu putem avea tot timpul dreptate.
User avatar
dMd
Gold User
Posts: 1550
Joined: 11 Sep 2013 16:29

Re: Cum imi compilez oscamul ?

Unread postby dMd » 19 Apr 2015 14:02

Pentru cei ce-si compileaza oscamul ... au aparut de cateva zile "noutati" in sectiunea oscam-emu.patch.
16 Apr 2015 revision 10648
Image Image Nu putem avea tot timpul dreptate.
User avatar
Levy
Gold User
Posts: 1581
Joined: 02 Oct 2013 15:07
Location: ABSURDISTAN

Re: Cum imi compilez oscamul ?

Unread postby Levy » 19 Apr 2015 16:01

am incercat sa compilez un oscam cu patch, dar descrierea de sus nu mai functioneaza la linia:

Code: Select all

https://mega.co.nz/#!3MVWQAZC!kgC7Uo0gFfSXiX-He09gn1Gt_2Ry8_sHrfU4W33zP6U
Dacă ai tăiat și ultimul copac, ai otrăvit și ultimul râu și ai prins și ultimul pește, ai să fi uimit să constați că banii nu sunt comestibili !

Image
User avatar
Levy
Gold User
Posts: 1581
Joined: 02 Oct 2013 15:07
Location: ABSURDISTAN

Re: Cum imi compilez oscamul ?

Unread postby Levy » 19 Apr 2015 16:28

Am gasit aici.
Dacă ai tăiat și ultimul copac, ai otrăvit și ultimul râu și ai prins și ultimul pește, ai să fi uimit să constați că banii nu sunt comestibili !

Image
User avatar
Levy
Gold User
Posts: 1581
Joined: 02 Oct 2013 15:07
Location: ABSURDISTAN

Re: Cum imi compilez oscamul ?

Unread postby Levy » 03 Aug 2015 09:13

Incerc sa fac o versiune noua de oscam cu emu, insa nu se compileaza pana la capat.

Code: Select all

+-------------------------------------------------------------------------------
| OSCam ver: 1.20-unstable_svn rev: 10937 target: mipsel-unknown-linux-gnu
| Tools:
|  CROSS    = /home/toshiba/oscam_emu/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-
|  CC       = /home/toshiba/oscam_emu/toolchains/mipsoe20/bin/mipsel-unknown-linux-gnu-gcc
| Settings:
|  CONF_DIR = /usr/keys/oscam
|  CC_OPTS  = -Os -ggdb -pipe -ffunction-sections -fdata-sections
|  CC_WARN  = -w
|  CFLAGS   =
|  LDFLAGS  = -Wl,--gc-sections -Wl,-rpath,/lib -Wl,-rpath,/usr/local/lib -Wl,-rpath,/usr/lib -L/home/toshiba/oscam_emu/toolchains/mipsoe20/mipsel-unknown-linux-gnu/sysroot/usr/lib
|  LIBS     = -lpthread -ldl -lrt
|  UseFlags =
| Config:
|  Addons   : WEBIF WEBIF_LIVELOG HAVE_DVBAPI READ_SDT_CHARSETS CS_ANTICASC MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX WITH_EMU
|  Protocols: NEWCAMD CCCAM CCCSHARE CONSTCW
|  Readers  : NAGRA CONAX CRYPTOWORKS VIACCESS
|  CardRdrs : INTERNAL
|  Compiler : mipsel-unknown-linux-gnu-gcc (crosstool-NG 1.15.2) 4.6.3
|  Config   : build/mipsel-unknown-linux-gnu/config.mak
|  Binary   : ../archiv/oscam-svn10937-mipsoe20-webif
+-------------------------------------------------------------------------------
HOSTCC   webif/pages_gen
GEN   webif/pages.c
GEN   Compressed 269856 template bytes into 102903 bytes. 166953 saved bytes (61.87%).
CC   cscrypt/bn_add.c
CC   cscrypt/aes.c
CC   cscrypt/bn_ctx.c
CC   cscrypt/bn_asm.c
CC   cscrypt/bn_div.c
CC   cscrypt/bn_exp.c
CC   cscrypt/bn_lib.c
CC   cscrypt/bn_mul.c
CC   cscrypt/bn_print.c
CC   cscrypt/bn_shift.c
CC   cscrypt/bn_sqr.c
CC   cscrypt/bn_word.c
CC   cscrypt/mem.c
CC   cscrypt/i_cbc.c
CC   cscrypt/des.c
CC   cscrypt/i_ecb.c
CC   cscrypt/i_skey.c
CC   cscrypt/md5.c
CC   cscrypt/rc6.c
CC   cscrypt/sha1.c
CC   csctapi/atr.c
CC   csctapi/icc_async.c
CC   csctapi/io_serial.c
CC   csctapi/protocol_t0.c
CC   csctapi/protocol_t1.c
CC   csctapi/ifd_sci.c
CC   minilzo/minilzo.c
CC   module-cacheex.c
CC   module-anticasc.c
CC   module-camd35-cacheex.c
CC   module-cccam-cacheex.c
CC   module-cccam.c
CC   module-cccshare.c
CC   module-constcw.c
CC   module-emulator.c
CC   module-emulator-osemu.c
CC   module-emulator-stream.c
CC   module-emulator-st20.c
CC   module-emulator-dre2overcrypt.c
CC   ffdecsa/ffdecsa.c
CC   module-csp.c
CC   module-cw-cycle-check.c
CC   module-dvbapi-chancache.c
CC   module-dvbapi.c
CC   module-monitor.c
CC   module-newcamd.c
CC   module-newcamd-des.c
CC   module-stat.c
CC   module-webif-lib.c
CC   module-webif-tpl.c
CC   module-webif.c
CC   webif/pages.c
module-webif.c: In function 'send_oscam_files':
module-webif.c:5999:24: error: 'MNU_CFG_KEY' undeclared (first use in this function)
module-webif.c:5999:24: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [build/mipsel-unknown-linux-gnu/module-webif.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC   reader-common.c
make: *** [all] Error 2


Are cineva idee cum se corecteaza aceasta problema ?
Problema apare si in momentul aplicarii patch-ului, daca nu ma insel la acelasi fisier.
Am repetat procedurile descrise aici pe forum si de aici

Insa indiferent de cum as incerca apare eroare la aplicarea patch-ului si la compilare.

Versiunea testata este: 10973
Dacă ai tăiat și ultimul copac, ai otrăvit și ultimul râu și ai prins și ultimul pește, ai să fi uimit să constați că banii nu sunt comestibili !

Image
User avatar
Levy
Gold User
Posts: 1581
Joined: 02 Oct 2013 15:07
Location: ABSURDISTAN

Re: Cum imi compilez oscamul ?

Unread postby Levy » 03 Aug 2015 09:20

eroarea care apare in momentul aplicarii patch-ului:

Code: Select all

patch -p0 < ../oscam-emu.patch
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
patching file cscrypt/md5.c
patching file cscrypt/md5.h
patching file csctapi/cardreaders.h
patching file ffdecsa/CMakeLists.txt
patching file ffdecsa/COPYING
patching file ffdecsa/Makefile
patching file ffdecsa/ffdecsa.c
patching file ffdecsa/ffdecsa.h
patching file ffdecsa/fftable.h
patching file ffdecsa/parallel_032_int.h
patching file ffdecsa/parallel_generic.h
patching file ffdecsa/parallel_std_def.h
patching file ffdecsa/stream.c
patching file globals.h
Hunk #1 succeeded at 421 (offset 17 lines).
Hunk #2 succeeded at 835 (offset 17 lines).
Hunk #3 succeeded at 965 (offset 17 lines).
Hunk #4 succeeded at 1627 (offset 27 lines).
Hunk #5 succeeded at 2085 (offset 39 lines).
Hunk #6 succeeded at 2258 (offset 42 lines).
patching file Makefile
patching file module-dvbapi.c
Hunk #1 succeeded at 1209 (offset 56 lines).
Hunk #2 succeeded at 1236 (offset 56 lines).
Hunk #3 succeeded at 3823 (offset 56 lines).
Hunk #4 succeeded at 3849 (offset 56 lines).
Hunk #5 succeeded at 5189 (offset 102 lines).
patching file module-dvbapi.h
Hunk #1 succeeded at 98 (offset 1 line).
patching file module-emulator-dre2overcrypt.c
patching file module-emulator-dre2overcrypt.h
patching file module-emulator-osemu.c
patching file module-emulator-osemu.h
patching file module-emulator-st20.c
patching file module-emulator-st20.h
patching file module-emulator-stream.c
patching file module-emulator-stream.h
patching file module-emulator.c
patching file module-newcamd-des.c
patching file module-newcamd-des.h
patching file module-stat.c
patching file module-webif-tpl.c
patching file module-webif.c
Hunk #2 FAILED at 120.
Hunk #3 succeeded at 939 (offset 2 lines).
Hunk #4 succeeded at 1365 (offset 2 lines).
Hunk #5 succeeded at 1806 (offset 2 lines).
Hunk #6 succeeded at 2363 (offset 6 lines).
Hunk #7 succeeded at 2390 (offset 6 lines).
Hunk #8 succeeded at 4070 (offset 10 lines).
Hunk #9 succeeded at 4590 (offset 10 lines).
Hunk #10 succeeded at 5995 (offset 10 lines).
Hunk #11 succeeded at 7485 (offset 19 lines).
1 out of 11 hunks FAILED -- saving rejects to file module-webif.c.rej
patching file oscam-chk.c
Hunk #1 succeeded at 706 (offset 1 line).
Hunk #2 succeeded at 742 (offset 1 line).
Hunk #3 succeeded at 975 (offset 1 line).
patching file oscam-config-global.c
Hunk #1 succeeded at 802 (offset 1 line).
Hunk #2 succeeded at 1081 (offset 1 line).
patching file oscam-config-reader.c
Hunk #2 succeeded at 446 (offset 44 lines).
Hunk #3 succeeded at 754 (offset 44 lines).
Hunk #4 succeeded at 889 (offset 46 lines).
patching file oscam-config.h
Hunk #2 succeeded at 56 (offset 1 line).
patching file oscam-emm.c
patching file oscam-string.c
Hunk #1 succeeded at 494 (offset 3 lines).
patching file oscam-string.h
patching file oscam.c
Hunk #3 succeeded at 1585 (offset 1 line).
Hunk #4 succeeded at 1759 (offset 1 line).
Hunk #5 succeeded at 1841 (offset 2 lines).
patching file reader-common.c
patching file readers.h
patching file webif/config/menu.html
patching file webif/config/menu_streamrelay.html
patching file webif/config/streamrelay.html
patching file webif/files/menu.html
Hunk #1 FAILED at 10.
Hunk #2 FAILED at 18.
2 out of 2 hunks FAILED -- saving rejects to file webif/files/menu.html.rej
patching file webif/files/menu_key.html
patching file webif/pages_index.txt
Hunk #3 succeeded at 179 (offset 2 lines).
patching file webif/readerconfig/readerconfig_emubit.html


Cred ca de aici apare problema. Interesant, cu versiuni mai vechi functiona fara erori.
Dacă ai tăiat și ultimul copac, ai otrăvit și ultimul râu și ai prins și ultimul pește, ai să fi uimit să constați că banii nu sunt comestibili !

Image

Return to “OScam”

Who is online

Users browsing this forum: No registered users and 22 guests