Z2U.com - IPTV
SatEurope.net
CardShare.cc
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Advertise Here
Page 2 of 4 FirstFirst 12334 LastLast
Results 11 to 20 of 38

Thread: Oscam sh4 компилация от svn

  1. #11
    New Member
    Join Date
    07-05-2014
    Posts
    2
    Uploads
    0
    Likes
    0

    Re: Oscam sh4 компилация от svn

    Не успявам да компилирам за sh4. Свалям от gfto/oscam в github, после библиотеката за stapi, после ​http://streamboard.de.vu/wbb2/tut-pics/toolchains/toolchain-sh4-tuxbox.bz2.

    make sh4 CROSS=../devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-" EXTRA_CFLAGS=" -I ../devkit_sh4/tdt/tdt/tufsbox/cdkroot/usr/include" EXTRA_LIBS=" -B ../devkit_sh4/tdt/tdt/tufsbox/cdkroot/usr/lib -B ../devkit_sh4/tdt/tdt/tufsbox/cdkroot/lib"

    При линкването стигам до cannot find /lib/ld-linux.so.2

    И не успявам да намеря начин да я преодолея?

    Моля за помощ!

    Благодаря!

  2. Z2U.com - IPTV
  3. #12
    Contributing Member
    Join Date
    20-03-2009
    Posts
    361
    Uploads
    291
    Likes
    12

    Re: Oscam sh4 компилация от svn

    мисля че с това http://www.streamboard.tv/wbb2/threa...d=37367&page=1 ще ти е по-лесно. обърни внимание и на тази тема http://www.streamboard.tv/wbb2/threa...ht=Simplebuild

  4. #13
    New Member
    Join Date
    07-05-2014
    Posts
    2
    Uploads
    0
    Likes
    0

    Re: Oscam sh4 компилация от svn

    Благодаря! Със този скрипт стана бързо. Гледах да не ползвам скриптове, нито се бях регистрирал във streamboard.

  5. #14
    Contributing Member
    Join Date
    20-03-2009
    Posts
    361
    Uploads
    291
    Likes
    12

    Re: Oscam sh4 компилация от svn

    то затова човека го е направил,само и единствено за удобство. пък и същия участва активно в развитието на кама, къде за добро къде за лошо.

  6. #15
    Member
    Join Date
    03-07-2012
    Posts
    96
    Uploads
    1
    Likes
    0

    Re: Oscam compile from svn

    Quote Originally Posted by gfto View Post
    Що се мъчите?

    1. Сваляте си крос компилатор за sh4 - например http://streamboard.gmc.to/wbb2/tut-p...sh4-tuxbox.bz2
    2. разархивирате си го
    3. изпълнявате в директорията където е оскам `make CROSS=/path/to/where/the/sh4-toolchain-is/bin/sh4-linux-`

    това е.

    Не се занимавайте с тия cmake тъпотии, губите си времето.

    Пък пуснете и `make help` има достатъчно примери как се ползва build системата.
    Аз си свалих bz2 крос-компилатора от streambord.tv, разархивирах си го, но има доста файлове, не е само един бин. Трябва да се компилират всички, за да стане един бин или не?

  7. #16
    VIP Member
    Join Date
    02-07-2011
    Location
    Somewhere between the Streams
    Posts
    3,913
    Uploads
    248
    Likes
    303

    Re: Oscam sh4 компилация от svn

    Изпълняваш както е дал за пример Жоро. Не е един bin в make файла си е описано кой да използва, важното е да си написал правилно префикса на файловете.

  8. #17
    Member
    Join Date
    03-07-2012
    Posts
    96
    Uploads
    1
    Likes
    0

    Re: Oscam sh4 компилация от svn

    Code:
    [rotation@localhost ~]$ cd /usr/src
    [rotation@localhost src]$ cd oscam-svn
    [rotation@localhost oscam-svn]$ make CROSS=/home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-
    ./config.sh: line 365: build/sh4-linux/config.mak: No such file or directory
    ./config.sh: line 366: build/sh4-linux/config.c: No such file or directory
    mkdir: cannot create directory ‘build/sh4-linux’: Permission denied
    mkdir: cannot create directory ‘build/sh4-linux’: Permission denied
    mkdir: cannot create directory ‘build/sh4-linux’: Permission denied
    mkdir: cannot create directory ‘build/sh4-linux’: Permission denied
    make: [all] Error 1 (ignored)
    +-------------------------------------------------------------------------------
    | OSCam ver: 1.20-unstable_svn rev: 10642 target: sh4-linux
    | Tools:
    |  CROSS    = /home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-
    |  CC       = /home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc
    | Settings:
    |  CONF_DIR = /usr/local/etc
    |  CC_OPTS  = -O2 -ggdb -pipe -ffunction-sections -fdata-sections
    |  CC_WARN  = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
    |  CFLAGS   = 
    |  LDFLAGS  = -Wl,--gc-sections
    |  LIBS     = -lpthread -ldl -lrt
    |  UseFlags = 
    | Config:
    |  Addons   : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX
    |  Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP
    |  Readers  : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
    |  CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER
    |  Compiler : sh4-linux-gcc (GCC) 4.1.1 (STMicroelectronics/Linux Base 4.1.1-23)
    |  Config   : build/sh4-linux/config.mak
    |  Binary   : Distribution/oscam-1.20-unstable_svn10642-sh4-linux
    +-------------------------------------------------------------------------------
    cc1: fatal error: opening output file build/sh4-linux/cscrypt/md5.d: No such file or directory
    compilation terminated.
    make[1]: *** [build/sh4-linux/cscrypt/md5.o] Error 1
    make: *** [all] Error 2
    [rotation@localhost oscam-svn]$ su root
    502Password: 
    su: Authentication failure
    [rotation@localhost oscam-svn]$ su root
    Password: 
    [root@localhost oscam-svn]# make CROSS=/home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-
    +-------------------------------------------------------------------------------
    | OSCam ver: 1.20-unstable_svn rev: 10642 target: sh4-linux
    | Tools:
    |  CROSS    = /home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-
    |  CC       = /home/rotation/Downloads/devkit_sh4/tdt/tdt/tufsbox/devkit/sh4/bin/sh4-linux-gcc
    | Settings:
    |  CONF_DIR = /usr/local/etc
    |  CC_OPTS  = -O2 -ggdb -pipe -ffunction-sections -fdata-sections
    |  CC_WARN  = -W -Wall -Wshadow -Wredundant-decls -Wstrict-prototypes -Wold-style-definition
    |  CFLAGS   = 
    |  LDFLAGS  = -Wl,--gc-sections
    |  LIBS     = -lpthread -ldl -lrt
    |  UseFlags = 
    | Config:
    |  Addons   : WEBIF WEBIF_LIVELOG WEBIF_JQUERY TOUCH HAVE_DVBAPI IRDETO_GUESSING CS_ANTICASC WITH_DEBUG MODULE_MONITOR WITH_LB CS_CACHEEX CW_CYCLE_CHECK CLOCKFIX
    |  Protocols: CAMD35 CAMD35_TCP NEWCAMD CCCAM CCCSHARE GBOX RADEGAST SCAM SERIAL CONSTCW PANDORA GHTTP
    |  Readers  : NAGRA IRDETO CONAX CRYPTOWORKS SECA VIACCESS VIDEOGUARD DRE TONGFANG BULCRYPT GRIFFIN DGCRYPT
    |  CardRdrs : PHOENIX INTERNAL SC8IN1 MP35 SMARGO DB2COM STAPI STINGER
    |  Compiler : sh4-linux-gcc (GCC) 4.1.1 (STMicroelectronics/Linux Base 4.1.1-23)
    |  Config   : build/sh4-linux/config.mak
    |  Binary   : Distribution/oscam-1.20-unstable_svn10642-sh4-linux
    +-------------------------------------------------------------------------------
    CC    cscrypt/aes.c
    In file included from cscrypt/aes.c:1:
    cscrypt/aes.h:18:20: error: stdint.h: No such file or directory
    In file included from cscrypt/aes.c:1:
    cscrypt/aes.h:30: error: expected specifier-qualifier-list before ‘uint32_t’
    cscrypt/aes.c:5:20: error: assert.h: No such file or directory
    cscrypt/aes.c:6:20: error: stdlib.h: No such file or directory
    cscrypt/aes.c:7:20: error: string.h: No such file or directory
    cscrypt/aes.c:10: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Te0’
    cscrypt/aes.c:77: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Te1’
    cscrypt/aes.c:144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Te2’
    cscrypt/aes.c:211: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Te3’
    cscrypt/aes.c:279: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Te4’
    cscrypt/aes.c:346: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Td0’
    cscrypt/aes.c:413: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Td1’
    cscrypt/aes.c:480: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Td2’
    cscrypt/aes.c:548: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Td3’
    cscrypt/aes.c:615: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘Td4’
    cscrypt/aes.c:682: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘rcon’
    cscrypt/aes.c: In function ‘AES_set_encrypt_key’:
    cscrypt/aes.c:696: error: ‘uint32_t’ undeclared (first use in this function)
    cscrypt/aes.c:696: error: (Each undeclared identifier is reported only once
    cscrypt/aes.c:696: error: for each function it appears in.)
    cscrypt/aes.c:696: error: ‘rk’ undeclared (first use in this function)
    cscrypt/aes.c:698: error: expected ‘;’ before ‘temp’
    cscrypt/aes.c:705: error: ‘AES_KEY’ has no member named ‘rd_key’
    cscrypt/aes.c:708: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:710: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:712: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:722: error: ‘temp’ undeclared (first use in this function)
    cscrypt/aes.c:724: error: ‘Te4’ undeclared (first use in this function)
    cscrypt/aes.c:728: error: ‘rcon’ undeclared (first use in this function)
    cscrypt/aes.c: In function ‘AES_set_decrypt_key’:
    cscrypt/aes.c:807: error: ‘uint32_t’ undeclared (first use in this function)
    cscrypt/aes.c:807: error: ‘rk’ undeclared (first use in this function)
    cscrypt/aes.c:809: error: expected ‘;’ before ‘temp’
    cscrypt/aes.c:816: error: ‘AES_KEY’ has no member named ‘rd_key’
    cscrypt/aes.c:819: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:821: error: ‘temp’ undeclared (first use in this function)
    cscrypt/aes.c:835: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:839: error: ‘Td0’ undeclared (first use in this function)
    cscrypt/aes.c:839: error: ‘Te4’ undeclared (first use in this function)
    cscrypt/aes.c:840: error: ‘Td1’ undeclared (first use in this function)
    cscrypt/aes.c:841: error: ‘Td2’ undeclared (first use in this function)
    cscrypt/aes.c:842: error: ‘Td3’ undeclared (first use in this function)
    cscrypt/aes.c: In function ‘AES_encrypt’:
    cscrypt/aes.c:870: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cscrypt/aes.c:870: error: ‘rk’ undeclared (first use in this function)
    cscrypt/aes.c:871: error: ‘uint32_t’ undeclared (first use in this function)
    cscrypt/aes.c:876: warning: implicit declaration of function ‘assert’
    cscrypt/aes.c:877: error: ‘AES_KEY’ has no member named ‘rd_key’
    cscrypt/aes.c:883: error: ‘s0’ undeclared (first use in this function)
    cscrypt/aes.c:884: error: ‘s1’ undeclared (first use in this function)
    cscrypt/aes.c:885: error: ‘s2’ undeclared (first use in this function)
    cscrypt/aes.c:886: error: ‘s3’ undeclared (first use in this function)
    cscrypt/aes.c:964: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:967: error: ‘t0’ undeclared (first use in this function)
    cscrypt/aes.c:968: error: ‘Te0’ undeclared (first use in this function)
    cscrypt/aes.c:969: error: ‘Te1’ undeclared (first use in this function)
    cscrypt/aes.c:970: error: ‘Te2’ undeclared (first use in this function)
    cscrypt/aes.c:971: error: ‘Te3’ undeclared (first use in this function)
    cscrypt/aes.c:973: error: ‘t1’ undeclared (first use in this function)
    cscrypt/aes.c:979: error: ‘t2’ undeclared (first use in this function)
    cscrypt/aes.c:985: error: ‘t3’ undeclared (first use in this function)
    cscrypt/aes.c:1029: error: ‘Te4’ undeclared (first use in this function)
    cscrypt/aes.c:1034: error: ‘uint8_t’ undeclared (first use in this function)
    cscrypt/aes.c: In function ‘AES_decrypt’:
    cscrypt/aes.c:1066: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
    cscrypt/aes.c:1066: error: ‘rk’ undeclared (first use in this function)
    cscrypt/aes.c:1067: error: ‘uint32_t’ undeclared (first use in this function)
    cscrypt/aes.c:1073: error: ‘AES_KEY’ has no member named ‘rd_key’
    cscrypt/aes.c:1079: error: ‘s0’ undeclared (first use in this function)
    cscrypt/aes.c:1080: error: ‘s1’ undeclared (first use in this function)
    cscrypt/aes.c:1081: error: ‘s2’ undeclared (first use in this function)
    cscrypt/aes.c:1082: error: ‘s3’ undeclared (first use in this function)
    cscrypt/aes.c:1160: error: ‘AES_KEY’ has no member named ‘rounds’
    cscrypt/aes.c:1163: error: ‘t0’ undeclared (first use in this function)
    cscrypt/aes.c:1164: error: ‘Td0’ undeclared (first use in this function)
    cscrypt/aes.c:1165: error: ‘Td1’ undeclared (first use in this function)
    cscrypt/aes.c:1166: error: ‘Td2’ undeclared (first use in this function)
    cscrypt/aes.c:1167: error: ‘Td3’ undeclared (first use in this function)
    cscrypt/aes.c:1169: error: ‘t1’ undeclared (first use in this function)
    cscrypt/aes.c:1175: error: ‘t2’ undeclared (first use in this function)
    cscrypt/aes.c:1181: error: ‘t3’ undeclared (first use in this function)
    cscrypt/aes.c:1225: error: ‘Td4’ undeclared (first use in this function)
    cscrypt/aes.c:1230: error: ‘uint8_t’ undeclared (first use in this function)
    make[1]: *** [build/sh4-linux/cscrypt/aes.o] Error 1
    make: *** [all] Error 2
    [root@localhost oscam-svn]#
    Не правя нещо като хората или не съм си изтеглил правилният компилатор?

  9. #18
    Senior Member
    Join Date
    30-06-2010
    Posts
    151
    Uploads
    3
    Likes
    2

    Re: Oscam sh4 компилация от svn

    Заппочни като за начало със симпълбилд скрипта. Ако все пак не искаш да го използваш отиваме на варианта с инсталиране на stlinux и ползване не неговия компилатор.
    Успех!

  10. #19
    VIP Member
    Join Date
    02-07-2011
    Location
    Somewhere between the Streams
    Posts
    3,913
    Uploads
    248
    Likes
    303

    Re: Oscam sh4 компилация от svn

    Цял stlinux за един oscam ще е загуба на време. Прав си ако не му се чете simplebuild е най-лесното решение в случая.
    Ето пример как аз правя cross compilation на oscam за телевизора ми. За целта съм си инсталирал едно ubuntu чрез docker. Dockerfile съм го прикачил по долу.

    Code:
    export PATH=$PATH:/opt/toolchain/VDLinux-armv7a8/VDLinux-v7a8/bin
    make CROSS=/opt/toolchain/VDLinux-armv7a8/bin/arm-v7a8-linux-gnueabi-
    
    Attached Files Attached Files

  11. SatEurope.net
  12. #20
    Member
    Join Date
    03-07-2012
    Posts
    96
    Uploads
    1
    Likes
    0

    Re: Oscam sh4 компилация от svn

    Quote Originally Posted by woooow View Post
    Заппочни като за начало със симпълбилд скрипта. Ако все пак не искаш да го използваш отиваме на варианта с инсталиране на stlinux и ползване не неговия компилатор.
    Успех!
    Питам какво не е наред с това, което правя, копирах и грешките от конзолата, тъй като следвах указанията на колегата gfto.
    Бъркам ли нещо, доколкото стоплям всичко си правя по трите стъпки на колегата gfto, обаче нещо не се получава.

    Колкото до STLinux, инсталирал съм си компилатора, проблемчето е че не ми дебъгва сорса, трябва ми развойна среда, ама тя не се продава на всеки, за съжаление не съм от избраните :)

Page 2 of 4 FirstFirst 12334 LastLast

Similar Threads

  1. Replies: 149
    Last Post: 09-08-2020, 20:21:31
  2. Replies: 2
    Last Post: 20-06-2012, 21:05:24
  3. Replies: 0
    Last Post: 30-08-2011, 16:22:03
  4. Кокс сообщений для запуска одиннадцать н
    By erdoganeng in forum Russian / Русский
    Replies: 0
    Last Post: 30-11-2008, 06:30:13

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •