Results 1 to 5 of 5
  1. #1
    Elite Vip pclin's Avatar
    Join Date
    Apr 2010
    Posts
    111
    Post Thanks / Like
    Rep Power
    11

    Default kodi 17 Nightly Builds

    Update auf kodi-17.5-RC1

    Download im IHAD

    gruß pclin

  2. Thanks deskjet® thanked for this post
  3. #2
    Elite Vip pclin's Avatar
    Join Date
    Apr 2010
    Posts
    111
    Post Thanks / Like
    Rep Power
    11

    Cool AW: kodi 17 Nightly Builds

    Bei den Nightly Builds wird seit einiger Zeit die kodi crashlogs nach /tmp geschrieben.
    So wird das Image nicht damit belastet, was sonst schnell ein paar hundert MB ausmachen kann.

    Weiterhin hat man die Möglichkeit den Installations Ort von userdata selbst festzulegen.
    Default ist ja /$HOME/.kodi also /root/.kodi
    Auch dadurch 'verliert' man viel Platz im Image.

    Man kann mit einem einfachem echo die Orte selber festlegen.
    Gut geeignet ist /data dann hat man auch nach neuflashen und kodi Neuinstallation schnell wieder alles hergestellt.
    Code:
    echo "PFAD" > "${HOME}/.kodi_crashlog_path"
    echo "PFAD" > "${HOME}/.kodi_userdata_path"
    
    Ist im 'Pfad' für 'USERDATA' kein .kodi vorhanden wird automatisch ein .kodi angelegt (beim ersten start von kodi).
    Führt man also direkt nach kodi erst installlation den 'echo Pfad' aus, braucht man auch nichts verschieben.
    Sollen die Crashlog's nicht nach /tmp, weil man die au ch nach dem Reboot braucht, kann man einfach
    CRASHLOG_DIR ändern.
    Beispiel: nach /media/hdd
    Code:
    echo "/media/hdd" > "${HOME}/.kodi_crashlog_path"
    möchte man das wieder rückgängig machen, die Datei "${HOME}/.kodi_crashlog_path" löschen, oder
    Code:
    echo "/tmp" > "${HOME}/.kodi_crashlog_path"
    Anstelle von ${HOME} könnt ihr auch /root eingeben. Es ist eher unwahrscheinlich das im dreamOS ${HOME} woanders liegt. Aber es könnte ja mal sein...

    USERDATA_DIR ändern.
    Beispiel: nach /data
    Alle Dateien von /root/.kodi nach /data/.kodi kopieren/verschieben.
    Code:
    mv /root/.kodi /data/.kodi
    echo "/data" > "${HOME}/.kodi_userdata_path"
    gruß pclin

  4. Thanks deskjet® thanked for this post
    Likes deskjet® liked this post
  5. #3
    Elite Vip pclin's Avatar
    Join Date
    Apr 2010
    Posts
    111
    Post Thanks / Like
    Rep Power
    11

    Default AW: kodi 17 Nightly Builds

    /usr/bin/kodi

    Code:
    #!/bin/sh
    
    #      Copyright (C) 2008-2013 Team XBMC
    #      http://xbmc.org
    #
    #  This Program is free software; you can redistribute it and/or modify
    #  it under the terms of the GNU General Public License as published by
    #  the Free Software Foundation; either version 2, or (at your option)
    #  any later version.
    #
    #  This Program is distributed in the hope that it will be useful,
    #  but WITHOUT ANY WARRANTY; without even the implied warranty of
    #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    #  GNU General Public License for more details.
    #
    #  You should have received a copy of the GNU General Public License
    #  along with XBMC; see the file COPYING.  If not, write to
    #  the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
    #  http://www.gnu.org/copyleft/gpl.html
    
    APP=Kodi
    bin_name=kodi
    SAVED_ARGS="$@"
    prefix="/usr"
    exec_prefix="/usr"
    datarootdir="${prefix}/share"
    LIBDIR="/usr/lib"
    CRASHLOG_PATH="${HOME}/.kodi_crashlog_path"
    USERDATA_PATH="${HOME}/.kodi_userdata_path"
    #CRASHLOG_DIR=${CRASHLOG_DIR:-$HOME}
    CRASHLOG_DIR="/tmp"
    USERDATA_DIR="${HOME}/.${bin_name}"
    
    if [ -e $CRASHLOG_PATH ]; then
            CRASHLOG_DIR=`cat $CRASHLOG_PATH`
    fi
    if [ -e $USERDATA_PATH ]; then
            HOME=`cat $USERDATA_PATH`
            USERDATA_DIR="${HOME}/.${bin_name}"
    fi
    
    ulimit -n 8192
    
    # Workaround for high CPU load with nvidia GFX
    export __GL_YIELD=USLEEP
    
    # Fix wasting RAM due to fragmentation
    export MALLOC_MMAP_THRESHOLD_=131072
    
    
    # Check for some options used by this script
    while [ "$#" -gt "0" ]
    do
        case "$1" in
            --setlibdir)
                LIBDIR="$2"
                shift; shift
                ;;
            *)
                shift
                ;;
        esac
    done
    
    migrate_home()
    {
      [ "$(basename $0)" = "xbmc" ] && echo "WARNING: Running ${bin_name} as "xbmc" is deprecated and will be removed in later versions, please switch to using the ${bin_name} binary"
    
      #check if data migration is needed
      if [ -d "${HOME}/.xbmc" ] && [ ! -d "${USERDATA_DIR}" ]; then
          echo "INFO: migrating userdata folder. Renaming ${HOME}/.xbmc to $USERDATA_DIR"
          mv ${HOME}/.xbmc $USERDATA_DIR
          touch ${USERDATA_DIR}/.kodi_data_was_migrated
      fi
    }
    
    command_exists()
    {
      command -pv $1 >/dev/null 2>&1
    }
    
    single_stacktrace()
    {
      # core filename is either "core.$PID" or "core"
      find "$1" -maxdepth $2 -name 'core*' | while read core; do
          LC_ALL=C gdb --core="$core" --batch 2> /dev/null | grep -q "^Core was generated by \`$LIBDIR/${bin_name}/${bin_name}.bin" || continue
          echo "=====>  Core file: "$core" ($(stat -c%y "$core"))" >> $FILE
          echo "        =========================================" >> $FILE
          gdb "$LIBDIR/${bin_name}/${bin_name}.bin" --core="$core" --batch -ex "thread apply all bt" 2> /dev/null >> $FILE
          rm -f "$core"
      done
    }
    
    print_crash_report()
    {
      FILE="$CRASHLOG_DIR/${bin_name}_crashlog-`date +%Y%m%d_%H%M%S`.log"
      echo "############## $APP CRASH LOG ###############" >> $FILE
      echo >> $FILE
      echo "################ SYSTEM INFO ################" >> $FILE
      printf " Date: " >> $FILE
      date >> $FILE
      echo " $APP Options: $*" >> $FILE
      printf " Arch: " >> $FILE
      uname -m >> $FILE
      printf " Kernel: " >> $FILE
      uname -rvs >> $FILE
      printf " Release: " >> $FILE
      if [ -f /etc/os-release ]; then
    	  . /etc/os-release
    	  echo $NAME $VERSION >> $FILE
      elif command_exists lsb_release; then
        echo >> $FILE
        lsb_release -a 2> /dev/null | sed -e 's/^/    /' >> $FILE
      else
        echo "lsb_release not available" >> $FILE
      fi
      echo "############## END SYSTEM INFO ##############" >> $FILE
      echo >> $FILE
      echo "############### STACK TRACE #################" >> $FILE
      if command_exists gdb; then
        if command_exists systemd-coredumpctl; then
          systemd-coredumpctl dump -o core ${bin_name}.bin > /dev/null 2>&1
        elif command_exists coredumpctl; then
          coredumpctl dump -o core ${bin_name}.bin > /dev/null 2>&1
        fi
        single_stacktrace "$PWD" 1
        # Find in plugins directories
        if [ $KODI_HOME ]; then
          BASEDIR=$KODI_HOME
        else
          BASEDIR="$LIBDIR/${bin_name}/"
        fi
        single_stacktrace "$BASEDIR" 5
        # find in userdata dir
        single_stacktrace "$HOME" 5
        # try /proc/sys/kernel/core_pattern
        # Check if it does not contain a pipe to a program (see man 5 core)
        if [ "$(cat /proc/sys/kernel/core_pattern | cut -c 1)" != "|" ]; then
          [ -d "$(dirname $(cat /proc/sys/kernel/core_pattern))" ] && single_stacktrace "$(dirname $(cat /proc/sys/kernel/core_pattern))" 1
        fi
      else
        echo "gdb not installed, can't get stack trace." >> $FILE
      fi
      echo "############# END STACK TRACE ###############" >> $FILE
      echo >> $FILE
      echo "################# LOG FILE ##################" >> $FILE
      echo >> $FILE
      if [ -f $USERDATA_DIR/temp/kodi.log ]
      then
        cat $USERDATA_DIR/temp/kodi.log >> $FILE
        echo >> $FILE
      else
        echo "Logfile not found in the usual place." >> $FILE
        echo "Please attach it separately." >> $FILE
        echo "Use pastebin.com or similar for forums or IRC." >> $FILE
      fi
      echo >> $FILE
      echo "############### END LOG FILE ################" >> $FILE
      echo >> $FILE
      echo "############ END $APP CRASH LOG #############" >> $FILE
      echo "Crash report available at $FILE"
    }
    
    migrate_home
    
    if command_exists gdb; then
      # Output warning in case ulimit is unsupported by shell
      eval ulimit -c unlimited
      if [ ! $? = "0" ]; then
        echo "${bin_name}: ulimit is unsupported by this shell" 1>&2
      fi
    fi
    
    LOOP=1
    while [ $(( $LOOP )) = "1" ]
    do
      LOOP=0
      "$LIBDIR/${bin_name}/${bin_name}.bin" $SAVED_ARGS
      RET=$?
      if [ $(( $RET == 65 )) = "1" ]
      then # User requested to restart app
        LOOP=1
      elif [ $(( ($RET >= 131 && $RET <= 136) || $RET == 139 )) = "1" ]
      then # Crashed with core dump
        print_crash_report
      fi
    done
    
    exit $RET
    gruß pclin

  6. Thanks deskjet® thanked for this post
  7. #4
    Elite Vip pclin's Avatar
    Join Date
    Apr 2010
    Posts
    111
    Post Thanks / Like
    Rep Power
    11

    Default AW: kodi 17 Nightly Builds

    kodi_%bbappend

    Code:
    FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:"
    
    SRCREV = "${AUTOREV}"
    PV = "17.6+gitr${SRCPV}" 
    
    SRC_URI += "file://0001-EGL-Port-to-Dreambox.patch \
                file://0002-LinuxInputDevices-Add-KEY_EXIT-and-KEY_OK.patch \
                file://0003-build-fix-presets-for-mips-link-libatomic.patch \
                file://0008-Dreambox-Remote-Keys.patch \
                file://0009-build-with-gst-14.patch \
                file://Splash.png \
                file://kodi.sh \
                file://keyboard.xml \
                "
    
    EXTRA_OECONF_dm900 += " \
    --with-platform=dreambox-cortexa15 \
    --with-ffmpeg=v3d \
    "
    
    EXTRA_OECONF_dm920 += " \
    --with-platform=dreambox-cortexa15 \
    --with-ffmpeg=v3d \
    "
    
    EXTRA_OECONF_dm820 += " \
    --with-platform=dreambox-mipsel \
    --with-ffmpeg=v3d \
    " 
    
    EXTRA_OECONF_dm7080 += " \
    --with-platform=dreambox-mipsel \
    --with-ffmpeg=v3d \
    " 
    
    do_configure_append() {
      mv ${WORKDIR}/Splash.png ${S}/media/Splash.png
    }
    
    do_configure_append() {
      mv ${WORKDIR}/kodi.sh ${S}/tools/Linux/kodi.sh
    }
    
    do_configure_append() {
      mv ${WORKDIR}/keyboard.xml ${S}/system/keymaps/keyboard.xml
    }
    gruß pclin
    Attached Files Attached Files

  8. Thanks deskjet® thanked for this post
  9. #5
    Elite Vip pclin's Avatar
    Join Date
    Apr 2010
    Posts
    111
    Post Thanks / Like
    Rep Power
    11

    Default AW: kodi 17 Nightly Builds

    Hat man im GP4 Bluetooth ein Audio Gerät (Lautsprecher/Kopfhörer) verbunden, kann man das auch in kodi nutzen.

    In kodi geht auch Audio bei Video Wiedergabe, wenn die internen kodi-player verwendet werden!
    Mit gstplayer geht nur das 'Default' device. Es wird automatisch zwischen 'Default' und Bluetooth umgeschaltet.

    gruß pclin
    Attached Images Attached Images

  10. Thanks deskjet® thanked for this post

Posting Permissions

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