Seite 2 von 3 ErsteErste 123 LetzteLetzte
Ergebnis 11 bis 20 von 27
  1. #11
    Anfänger
    Registriert seit
    05.09.2015
    Beiträge
    21
    Thanks (gegeben)
    2
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    @betacentauri: You are great !!!
    Finally it works.
    Now, I suppose I have to put the binary ''enigma2" in usr/bin/ folder of the decoder, is it right ?
    And why this is about 22 Mb whereas the original one is only 3 Mb ?

    Sorry again, these questions must seem too obvious to you.
    Geändert von lastKnight (07.09.2015 um 22:20 Uhr)

    •   Alt Advertising

       

  2. #12
    Avatar von betacentauri
    Registriert seit
    15.06.2013
    Beiträge
    2.359
    Thanks (gegeben)
    287
    Thanks (bekommen)
    1399
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDanke
    Box 1:
    hd51
     
     
    Box 2:
    vuduo4kse
     
     
    Box 3:
    und noch 20-30 andere
     
     
    You can put it wherever you want. For testing I normally copy it to /tmp, make it executable (chmod 755 /tmp/enigma2), stop original e2 (init 4) and start then the binary (/tmp/enigma2).
    But you can also overwrite /usr/bin/enigma2. But then every image update may overwrite it again!

    The binary is not stripped(debug symbols are included). That's why it is so big. I can send you tomorrow the command to strip the binary. It's something like that(out of my mind as my PC is not running):
    ..../<buildenv >/builds/openatv/release/vg2000/tmp/sysroot/i686...linux/usr/bin/mipsel..../mipsel....strip <e2 binary>
    Geändert von betacentauri (07.09.2015 um 23:33 Uhr)
    hd51, vuduo4se,....

  3. #13
    Anfänger
    Registriert seit
    05.09.2015
    Beiträge
    21
    Thanks (gegeben)
    2
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Thanks a lot, I really appreciate your support.

  4. #14
    Senior Mitglied
    Registriert seit
    26.06.2014
    Beiträge
    230
    Thanks (gegeben)
    22
    Thanks (bekommen)
    58
    Total Downloaded
    637,5 KB
    Total Downloaded
    637,5 KB
    ReceiverDanke
    Zitat Zitat von betacentauri Beitrag anzeigen
    You can put it wherever you want. For testing I normally copy it to /tmp, make it executable (chmod 755 /tmp/enigma2), stop original e2 (init 4) and start then the binary (/tmp/enigma2).
    But you can also overwrite /usr/bin/enigma2. But then every image update may overwrite it again!

    The binary is not stripped(debug symbols are included). That's why it is so big. I can send you tomorrow the command to strip the binary. It's something like that(out of my mind as my PC is not running):
    ..../<buildenv >/builds/openatv/release/vg2000/tmp/sysroot/i686...linux/usr/bin/mipsel..../mipsel....strip <e2 binary>
    This has been a really interesting learning process for me ... Always interested in more detail about builds and although a bit heavy for me, really good info... Think I will still keep to the longer build process ... Easier for me!

  5. #15
    Avatar von betacentauri
    Registriert seit
    15.06.2013
    Beiträge
    2.359
    Thanks (gegeben)
    287
    Thanks (bekommen)
    1399
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDanke
    Box 1:
    hd51
     
     
    Box 2:
    vuduo4kse
     
     
    Box 3:
    und noch 20-30 andere
     
     
    The strip command is:
    64 bit Linux:
    <buildenv>/builds/openatv/release/vg2000/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux-strip <path to e2 binary>

    32 bit Linux:
    <buildenv>/builds/openatv/release/vg2000/tmp/sysroots/i686-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux-strip <path to e2 binary>


    Well, there are different ways to get a modified e2 binary. The shown one is perfect for me as a developer. I don't want to build a complete image and I don't care about binary size and debug symbols are sometimes useful. I change the code in the local copy of the git, build e2, transfer it to the box and test it. Afterwards I commit or adapt again the code in the git.
    If you want a complete image you can create your own git (just create github account, fork openatv e2 git and adapt it) and exchange openatv git url with your git. Then start build and you get your personal image. Or create patches and add them to the enigma2.bb in the buildenv (not in the local copy).
    hd51, vuduo4se,....

  6. #16
    Senior Mitglied
    Registriert seit
    26.06.2014
    Beiträge
    230
    Thanks (gegeben)
    22
    Thanks (bekommen)
    58
    Total Downloaded
    637,5 KB
    Total Downloaded
    637,5 KB
    ReceiverDanke
    Thanks, maybe I will get round to the 1st option, currently the 2nd option works for me ..... And that was a learning processwith the Git commands!

  7. #17
    Anfänger
    Registriert seit
    05.09.2015
    Beiträge
    21
    Thanks (gegeben)
    2
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    Zitat Zitat von betacentauri Beitrag anzeigen
    The strip command is:
    64 bit Linux:
    <buildenv>/builds/openatv/release/vg2000/tmp/sysroots/x86_64-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux-strip <path to e2 binary>

    32 bit Linux:
    <buildenv>/builds/openatv/release/vg2000/tmp/sysroots/i686-linux/usr/bin/mipsel-oe-linux/mipsel-oe-linux-strip <path to e2 binary>


    Well, there are different ways to get a modified e2 binary. The shown one is perfect for me as a developer. I don't want to build a complete image and I don't care about binary size and debug symbols are sometimes useful. I change the code in the local copy of the git, build e2, transfer it to the box and test it. Afterwards I commit or adapt again the code in the git.
    If you want a complete image you can create your own git (just create github account, fork openatv e2 git and adapt it) and exchange openatv git url with your git. Then start build and you get your personal image. Or create patches and add them to the enigma2.bb in the buildenv (not in the local copy).
    Thanks a lot.
    As regards debugging, is it possible to build enigma2 binary with no optimization ?
    II found this line in makefiles : "LDFLAGS = -Wl,-O1 -Wl,--as-needed"
    but makefiles seem to be autogenerated.
    I would globally change 'O1' into' 'O0', but I don't know ho to do...

  8. #18
    Avatar von betacentauri
    Registriert seit
    15.06.2013
    Beiträge
    2.359
    Thanks (gegeben)
    287
    Thanks (bekommen)
    1399
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDanke
    Box 1:
    hd51
     
     
    Box 2:
    vuduo4kse
     
     
    Box 3:
    und noch 20-30 andere
     
     
    CFLAGS include -Os:
    "CFLAGS = -Os -pipe -g -feliminate-unused-debug-types -ggdb3 -Wall"

    You can change the -Os in the meta-oe-alliance/meta-oe/conf/distro/openatv.conf

    LDFLAGS I don't currently know.
    Geändert von betacentauri (08.12.2015 um 19:46 Uhr)
    hd51, vuduo4se,....

  9. #19
    Avatar von betacentauri
    Registriert seit
    15.06.2013
    Beiträge
    2.359
    Thanks (gegeben)
    287
    Thanks (bekommen)
    1399
    Total Downloaded
    1,32 MB
    Total Downloaded
    1,32 MB
    ReceiverDanke
    Box 1:
    hd51
     
     
    Box 2:
    vuduo4kse
     
     
    Box 3:
    und noch 20-30 andere
     
     
    It seems you can set LDFLAGS in bb file. E.g. look into meta-oe-alliance/meta-oe/recipes-oe-alliance/openmultiboot/openmultiboot.bb

    Code:
    EXTRA_OEMAKE = " \
        'CFLAGS=${CFLAGS} \
        -I=${includedir}/freetype2 \
        ${@base_contains("MACHINE_FEATURES", "singlecore", "-DOMB_DEFAULT_TIMER=10" , "-DOMB_DEFAULT_TIMER=5", d)} \
        ${@base_contains("MACHINE_FEATURES", "textlcd", "-DOMB_HAVE_TEXTLCD" , "", d)} \
        ${@base_contains("IMAGE_FSTYPES", "ubi", "-DOMB_FLASH_UBI" , "", d)} \
        ${@base_contains("IMAGE_FSTYPES", "jffs2", "-DOMB_FLASH_JFFS2" , "", d)} \
        ${@base_contains("MACHINE_FEATURES", "dreambox", "-DOMB_DREAMBOX", "", d)} \
        -DOMB_KERNEL_MTD=\"/dev/${MTD_KERNEL}\"' \
        'LDFLAGS= -lfreetype ${LDFLAGS}' \
        "
    Perhaps also without EXTRA_OEMAKE like in meta-oe-alliance/meta-brands/meta-vuplus/recipes-frontpannel/vuplus-displayvfd.bb
    hd51, vuduo4se,....

  10. #20
    Anfänger
    Registriert seit
    05.09.2015
    Beiträge
    21
    Thanks (gegeben)
    2
    Thanks (bekommen)
    0
    Themenstarter
    Total Downloaded
    0
    Total Downloaded
    0
    ReceiverDanke
    I added these lines to enigma2.bb file ( the one passed as argument to bitbake):

    EXTRA_OEMAKE = " \
    'CFLAGS=-O0 -pipe -g -ggdb3 -Wall' \
    'LDFLAGS= -O0' \
    "
    but with no luck.
    This is the log.do_compile:

    make[3]: Entering directory `/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/enigma2/main'
    mipsel-oe-linux-g++ -mel -mabi=32 -mhard-float -march=mips32 --sysroot=/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000 -Os -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -ggdb3 -Wall -pthread -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/freetype2 -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/fribidi -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/gstreamer-1.0 -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/lib/gstreamer-1.0/include -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/glib-2.0 -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/lib/glib-2.0/include -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/libpng15 -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/libxml2 -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/lib/sigc++-1.2/include -I/media/Dati/openatv/build-enviroment/builds/openatv/release/vg2000/tmp/sysroots/vg2000/usr/include/sigc++-1.2 -fno-rtti -fno-exceptions -rdynamic -funwind-tables -pthread -fopenmp -O0 -o enigma2 -Wl,--export-dynamic bsod.o enigma.o xmlgenerator.o version_info.o ...


Seite 2 von 3 ErsteErste 123 LetzteLetzte

Stichworte

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein
  •  
Alle Zeitangaben in WEZ +1. Es ist jetzt 09:43 Uhr.
Powered by vBulletin® Version 4.2.5 (Deutsch)
Copyright ©2024 Adduco Digital e.K. und vBulletin Solutions, Inc. Alle Rechte vorbehalten.
Resources saved on this page: MySQL 5,56%
Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)
vBulletin Skin By: PurevB.com