Script collection of different projects

Moderators: odroid, mdrjr

Script collection of different projects

Unread postby meveric » Wed Apr 24, 2013 2:21 pm

Since it was asked for in another section of the forum, i'm gonna add most of my scripts here.
please note: Most of them are WIP and might not always work, or there might even be better solutions.
Also i will update these scripts and the status of the programs from time to time as i see it fitting, or someone offers a better solution.

I also decided to add .deb files where i can to people that just wanna take a look.
I can't upload all builds, since attachement limit is at 1MB.

Project:
Building a new Kernel
Status:
Normally works
Make sure partition 1 (zImage, etc.) is mounted to /media/boot
TODOs:
  • Adding support for other platforms (U2,X,etc)
  • Adding selection for different Kernel (3.0.x + 3.8.x)
  • Re-add question for boot device (SD/eMMC) to make sure /media/boot is correctly mounted?
  • Make .deb files for kernel + header (no clue how^^)
Code: Select all
#!/bin/bash
ROOT_UID=0
#
# Check if user has root rights and exit if not
#
if [ $UID != $ROOT_UID ]; then
  echo -e "\033[0;31mYou don't have sufficient privileges to run this script.\033[0;0m"
  exit 1
fi
echo -e "\033[1;36mInstall dependencies\033[0;0m"
sleep 2
apt-get install -y p7zip-full build-essential initramfs-tools uboot-mkimage
#
# TODO: make selection between different kernels
#
echo -e "\033[1;36mDownload sources\033[0;0m"
sleep 2
wget --no-check-certificate https://github.com/hardkernel/linux/archive/odroid-3.0.y.zip
mv odroid-3.0.y.zip /usr/src/linux.zip
cd /usr/src
#
# delete old folder if exist
#
if [ -d linux ]; then
  rm -rf linux
fi
echo -e "\033[1;36mPlease wait while files are being extracted... this might take a few minutes...\033[0;0m"
7z x -y linux.zip > /dev/null
mv linux-odroid* linux
cd /usr/src
cd linux
#
# TODO: add switch for different devices here
#
make odroidx2_ubuntu_mali_defconfig
#
# allow reconfiguration of kernel
#
echo -ne "\033[1;36mDo you want to reconfigure settings for kernel? [y/N]: \033[0;0m"
read YesNo
if [ "X$YesNo" = "Xy" ] || [ "X$YesNo" = "XY" ]; then
  apt-get install -y libncurses5-dev
  make menuconfig
fi
#
# allow overclocking
#
echo -ne "\033[1;36mDo you want to overclock mali processor? [y/N]: \033[0;0m"
read YesNo
if [ "X$YesNo" = "Xy" ] || [ "X$YesNo" = "XY" ]; then
  echo -ne "\033[1;36mHow high do you want to overclock? [533/640/733/800]: \033[0;0m"
  read OClock
  if [ "X$OClock" = "X533" ]; then
    sed -i "s/\# CONFIG_MALI_OVERCLOCK_533 is not set/CONFIG_MALI_OVERCLOCK_533=y/" "./.config"
  fi
  if [ "X$OClock" = "X640" ]; then
    sed -i "s/\# CONFIG_MALI_OVERCLOCK_640 is not set/CONFIG_MALI_OVERCLOCK_640=y/" "./.config"
  fi
  if [ "X$OClock" = "X733" ]; then
    sed -i "s/\# CONFIG_MALI_OVERCLOCK_733 is not set/CONFIG_MALI_OVERCLOCK_733=y/" "./.config"
  fi
  if [ "X$OClock" = "X800" ]; then
    sed -i "s/\# CONFIG_MALI_OVERCLOCK_800 is not set/CONFIG_MALI_OVERCLOCK_800=y/" "./.config"
  fi
fi
#
# TODO: not tested yet
#
echo -e "\033[1;36mFixing 24bit HDMI color output if necessary\033[0;0m"
sleep 3
sed -i "s/\# CONFIG_VIDEO_EXYNOS_24_FORCE is not set/CONFIG_VIDEO_EXYNOS_24_FORCE=y/" "./.config"
sed -i "s/DefaultDepth 16/DefaultDepth 24/" "/usr/share/X11/xorg.conf.d/99-hkl_mali.conf"
sed -i "s/DefaultDepth 16/DefaultDepth 24/" "/etc/X11/xorg.conf"
echo -e "\033[1;36mKernel will be build now\033[0;0m"
sleep 3
make -j5 zImage modules
cp arch/arm/boot/zImage /media/boot/zImage
make modules_install
cp .config /boot/config-`cat include/config/kernel.release`
update-initramfs -c -k `cat include/config/kernel.release`
mkimage -A arm -O linux -T ramdisk -C none -a 0 -e 0 -n uInitrd -d /boot/initrd.img-`cat include/config/kernel.release` /boot/uInitrd-`cat include/config/kernel.release`
cp /media/boot/uInitrd /boot/uInitrd-`uname -r`
cp /boot/uInitrd-`cat include/config/kernel.release` /media/boot/uInitrd
cp System.map /boot/System.map-`cat include/config/kernel.release`
#
# TODO: ask for reboot?
#
sync && reboot


Project:
Amiga Emulator (e-uae)
Status:
Project done
Works fullspeed even with A1200 and AGA games
e-uae_0.8.29-1_armhf.deb.zip
Amiga Emulator
(744.24 KiB) Downloaded 77 times

TODOs:
  • figure out how to use good fullscreen and resizing the windows
  • Ubuntu-Software-Center offers e-uae as well, but doesn't seem to always work

Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd sources
if [ ! -d $HOME/sources/e-uae-0.8.29-WIP4 ]; then
  echo -e "\033[1;36mDownloading sources\033[0;0m"
  sleep 2
  wget http://www.rcdrummond.net/uae/e-uae-0.8.29-WIP4/e-uae-0.8.29-WIP4.tar.bz2
  tar xjf e-uae-0.8.29-WIP4.tar.bz2
fi
echo -e "\033[1;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install automake zlib1g-dev libsdl1.2-dev libsdl-mixer1.2-dev libsdl-sound1.2-dev libgtk2.0-dev
echo -e "\033[1;36mConfiguring software\033[0;0m"
sleep 2
cd e-uae-0.8.29-WIP4
./bootstrap.sh
#
# added neon FPU
# no clue if it does any good definitely not necessary
#
CFLAGS="-D__ARM_NEON__ -mfpu=neon" ./configure --disable-jit --enable-dga --enable-audio --with-sdl --with-sdl-gfx --with-alsa --with-x --enable-ui
echo -e "\033[1;36mCompiling e-uae.. Go grab a coffee..\033[0;0m"
ASFLAGS="-mfpu=neon" make -j5
echo -ne "\033[1;36mDo you want to install e-uae? [y/N]: \033[0;0m"
read YesNo
if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
  sudo apt-get install checkinstall
  sudo checkinstall --pkgname=e-uae --pkgversion="0.8.29" --backup=no --deldoc=yes --fstrans=no --default
  echo -ne "\033[1;36mDo you want to create a desktop icon? [y/N]: \033[0;0m"
  read YesNo
  if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
     cd $HOME
#
# stealing a nice icon off the internet
#
     wget http://uae.is.free.fr/UAEIcon-Amiga.gif
    echo "[Desktop Entry]
Version=0.8.29-WIP4
Name=E-UAE Amiga Emulator
Comment=E-UAE Amiga Emulator
Exec=/usr/local/bin/uae
Terminal=false
Type=Application
Icon=$HOME/UAEIcon-Amiga.gif" > $HOME/Desktop/e-uae.desktop
    sudo chmod 755 $HOME/Desktop/e-uae.desktop
  fi
fi


Project:
Multisystem Emulator (mednafen)
Status:
Project done
Thanks to neon FPU SNES now works at a decent speed
TODOs:
  • would be nice to have OpenGL ES support at some point
  • Find a better solution of downloading the latest version -> currently static
  • Maybe adding my play script as well? viewtopic.php?f=52&t=1096

Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd sources
#
# TODO: find a better download source
#
echo -e "\033[1;36mDownloading sources\033[0;0m"
sleep 2
wget "http://forum.fobby.net/index.php?t=getfile&id=450&" -O mednafen_WIP.tar.bz2
tar xjf mednafen_WIP.tar.bz2
cd mednafen
echo -e "\033[1;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install automake libtool libcdio-dev libsdl-dev libsndfile1-dev checkinstall
echo -e "\033[1;36mConfiguring software\033[0;0m"
sleep 2
./autogen.sh
CFLAGS="-D__ARM_NEON__ -mfpu=neon" ./configure
echo -e "\033[1;36mCompiling mednafen.. Get some coffee\033[0;0m"
sleep 4
ASFLAGS="-mfpu=neon" make -j5
echo -en "\033[1;36mDo you want to install mednafen? [y/N]: \033[0;0m"
read YesNo
if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
  sudo checkinstall --pkgname=mednafen --pkgversion="0.9.28" --backup=no --deldoc=yes --fstrans=no --default make install
fi
echo -e "\033[1;36mYou can configure your setting under $HOME/.mednafen/mednafen-09x.cfg\n
make sure you set \033[0;33mvideo.driver\033[1;36m to \033[0;33msdl\033[1;36m to have proper speed and video.\n
See http://mednafen.sourceforge.net/documentation/09x/mednafen.html for option\033[0;0m"


Project:
NDS Emulator (desmume)
Status:
WIP... more like a PoC
  • Working with most games
  • rather slow depending on the game (but also up to full speed sometimes)
  • resizing cause drop of framerate -> better use 720p resolution to see picture
  • music tends to stutter
  • only runs in SDL
  • better use CLI -> able to set 4 cores for processing -> still no change in speed
desmume_0.9.8-1_armhf.deb.zip
NDS Emulator
(890.73 KiB) Downloaded 72 times

TODOs:
  • OpenGL ES support would be nice to see if games can speed up
  • not sure if this is any good on the ODROID more like a PoC

Code: Select all
#!/bin/bash
echo -e "\033[0;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install subversion checkinstall automake gettext libtool shtool libsdl1.2-dev libopenal-dev libagg-dev libsoundtouch-dev libglade2-dev libgtkglext1-dev
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd sources
if [ ! -d $HOME/desmume ]; then
  echo -e "\033[0;36mDownloading sources\033[0;0m"
  sleep 2
#
# rather big download
# TODO: only download last branch -> or 0.9.8 for now
#
  svn co https://desmume.svn.sourceforge.net/svnroot/desmume desmume
fi
#
# trunk doesn't seem to work right now, so we have to use last branch
#
cd desmume
cd branches
cd release_0_9_8
echo -e "\033[0;36mConfiguring Software\033[0;0m"
sleep 2
./autogen.sh
CFLAGS="-D__ARM_NEON__ -mfpu=neon" ./configure --enable-openal --with-x
echo -e "\033[0;36mCompiling...\033[0;0m"
sleep 2
ASFLAGS="-mfpu=neon" make -j4
echo -en "\033[0;36mDo you want to install desmume? [y/N]: \033[0;0m"
read YesNo
if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
  sudo checkinstall --pkgname=desmume --pkgversion="0.9.8" --backup=no --deldoc=yes --fstrans=no --default make install
fi


Project:
NeoGeo Emulator (gngeo)
Status:
Project done
works with many games
gngeo_0.7.1-1_armhf.deb.zip
NeoGeo Emulator
(576.92 KiB) Downloaded 71 times

TODOs:
  • no clue

Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd sources
if [ ! -d $HOME/sources/gngeo ]; then
  echo -e "\033[0;36mDownloading sources\033[0;0m"
  sleep 2
  hg clone https://code.google.com/p/gngeo/
fi
cd gngeo
echo -e "\033[0;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install libsdl1.2-dev zlib1g-dev
echo -e "\033[0;36mConfiguring software\033[0;0m"
sleep 2
#
# added NEON FPU -> not tested yet, not needed
#
CFLAGS="-D__ARM_NEON__ -mfpu=neon" ./configure --disable-i386asm
#
# ok the standard keys are some kind of azerty layout which won't work for us so we switch it to qwerty
#
sudo sed -i 's/\A\=K119/\A\=K122/' 'src/conf.c'
sudo sed -i 's/\C\=K113/\C\=K97/' 'src/conf.c'
sudo sed -i 's/\START\=K38/\START\=K49/' 'src/conf.c'
sudo sed -i 's/\COIN\=K34/\COIN\=K51/' 'src/conf.c'
echo -e "\033[0;36mCompiling gngeo.. Go grab a coffee\033[0;0m"
sleep 4
#
# again neon ... not needed
#
ASFLAGS="-mfpu=neon" make # we can only use one core here
echo -ne "\033[0;36mDo you want to install gngeo? [y/N]: \033[0;0m"
read YesNo
if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
  sudo checkinstall --pkgname=gngeo --pkgversion="0.7.1" --backup=no --deldoc=yes --fstrans=no --default make install
  echo -ne "\033[0;36mDo you want create a desktop icon? [y/N]: \033[0;0m"
  read YesNo
  if [ "x$YesNo" = "xy" ] || [ "x$YesNo" = "xY" ]; then
    if [ ! -d $HOME/.gngeo/ ]; then
      mkdir -p $HOME/.gngeo
      sudo chown $USER:$USER $HOME/.gngeo
    fi
    cp pnd/gngeo.png $HOME/.gngeo
    echo "[Desktop Entry]
Version=1.0
Name=GnGeo - Neo Geo Emulator
Comment=GnGeo - Neo Geo Emulator
Exec=gngeo --scale 3
Terminal=false
Type=Application
Icon=$HOME/.gngeo/gngeo.png" > $HOME/Desktop/gngeo.desktop
    sudo chmod +x $HOME/Desktop/gngeo.desktop
  fi
fi


Project:
freedroidRPG
Status:
Project done
Runs on SDL
TODOs:
  • Having an OpenGL ES version would be very nice

Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd $HOME/sources
echo -e "\033[1;36mDownloading sources\033[0;0m"
sleep 2
git clone git://freedroid.git.sourceforge.net/gitroot/freedroid/freedroid
cd freedroid
echo -e "\033[1;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install libsdl1.2-dev libsdl-mixer1.2-dev libsdl-gfx1.2-dev libsdl-image1.2-dev libogg-dev liblua5.1-dev automake autotools-dev checkinstall
echo -e "\033[1;36mConfiguring software\033[0;0m"
sleep 2
./autogen.sh
#
# added neon FPU -> not tested yet, not needed
#
CFLAGS="-D__ARM_NEON__ -mfpu=neon" ./configure --disable-opengl
echo -e "\033[1;36mBuilding freedroidRPG\033[0;0m"
sleep 2
ASFLAGS="-mfpu=neon" make -j5
echo -ne "\033[1;36mDo you want to install freedroidRPG [y/N]: \033[0;0m"
read YesNo
if [ "X$YesNo" = "Xy" ]; then
#
# checkinstall not tested yet.. might not work
# use sudo make install instead if not working
#
  sudo checkinstall --pkgname=freedroid --backup=no --deldoc=yes --fstrans=no --default make install
fi


Project:
Hedgewars (Worms clone)
Status:
WIP
Does some very weird stuff during compiling which needs some fixes
Menu, Music, Sound is working all fine even internet function (Lobby, News, Downloads) is working
The game itself.... not so much
reason:
everything runs on SDL until it goes to the game itself, since it's faster to generate the world and especially to draw the damage made by weapons they use OpenGL to draw the actually game.
On ODROID this results in a cyan frame with no picture or anything.
You can hear sounds, music and when it's the computers turn, you can hear him moving and attacking.. So the game runs fine in full speed, it just can't draw it -.-
I read that they want to add OpenGL ES in the next Google Summer of Code: http://www.hedgewars.org/node/5159
Hopefully it's working out for us.
I've read some other articles, some even claim that OpenGL ES is already implemented. So i wonder why we can't use it yet. Maybe i just miss something
-> help appreciated
TODOs:
  • Having an OpenGL ES version would be very nice

Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd $HOME/sources
echo -e "\033[1;36mInstalling dependencies\033[0;0m"
sleep 2
#
# here is a tricky part -> it uses mesa OpenGL ES libraries, which we can't allow since we have our own
# that's why we have to hold these packages back
#
sudo apt-mark hold libegl1-mesa-dev libgles2-mesa-dev libqt4-opengl-dev
sudo apt-get install mercurial cmake qt4-qmake libqt4-dev libsdl1.2-dev libsdl-net1.2-dev libsdl-mixer1.2-dev libsdl-image1.2-dev libsdl-ttf2.0-dev liblua5.1-dev libpng12-dev libavcodec-dev libavformat-dev freeglut3-dev checkinstall
#echo -e "\033[1;36mAllow removal of libqt4-opengl-dev\033[0;0m"
#sudo apt-get install -f
if [ ! -f /etc/fpc.cfg ]; then
#
# freepascal is not in the Ubuntu repository, so we have to download it
#
  echo -e "\033[1;36mDownloading and installing freepascal as a dependency\033[0;0m"
  sleep 2
  wget http://sourceforge.net/projects/freepascal/files/Linux/2.6.2/fpc-2.6.2.arm-linux.tar
  echo -e "\033[1;36mExtracting freepascal\033[0;0m"
  sleep 2
  tar xvf fpc-2.6.2.arm-linux.tar
  cd fpc-2.6.2.arm-linux
  echo -e "\033[1;36mInstalling freepascal\033[0;0m"
  sleep 2
  sudo ./install.sh
  cd ..
fi
if [ ! -d ./hedgewars ]; then
  mkdir hedgewars
fi
cd hedgewars
echo -e "\033[1;36mCloning repository.. please be patient this will take a long time!\033[0;0m"
sleep 2
hg clone -v https://hedgewars.googlecode.com/hg/ trunk
cd trunk
echo -e "\033[1;36mConfiguring software\033[0;0m"
sleep 2
#
# added neon FPU again... not necessary
#
CFLAGS="-D__ARM_NEON__ -mfpu=neon" cmake -DCMAKE_BUILD_TYPE="DEBUG" -DCMAKE_INSTALL_PREFIX="$HOME/games" -DDATA_INSTALL_DIR="$HOME/games" -DNOSERVER=1
#
# ok, that part is a sucker, it searches for the library on the wrong location, so we have to set a symlink
#
if [ ! -f /usr/lib/arm-linux-gnueabihf/libstdc++.so ]; then
  echo -e "\033[1;36mLinking missing library\033[0;0m"
  sleep 2
  sudo ln -s /usr/lib/arm-linux-gnueabihf/libstdc++.so.6 /usr/lib/arm-linux-gnueabihf/libstdc++.so
fi
echo -e "\033[1;36mBuilding hedgewars\033[0;0m"
sleep 2
ASFLAGS="-mfpu=neon" make -j5
echo -ne "\033[1;36mDo you want to install hedgewars? [y/N]: \033[0;0m"
read YesNo
if [ "X$YesNo" = "Xy" ]; then
#
# not sure if checkinstall works here.. can't remember the result -> maybe just use make install instead
#
  sudo checkinstall --pkgname=hedgewars --pkgversion="0.9.18" --backup=no --deldoc=yes --fstrans=no --default make install
  cp bin/hwdfile.ico $HOME/games/bin/
  echo "[Desktop Entry]
Version=1.0
Name=Hedgewars
Comment=Hedgewars
Exec=/home/linaro/games/bin/hedgewars
Icon=/home/linaro/games/bin/hwsfile.ico
Terminal=true
Type=Application" > $HOME/Desktop/hedgewars.desktop
  sudo chmod +x $HOME/Desktop/hedgewars.desktop
fi
#
# this part is very weird!
# it compiles hedgewars to use ld-linux-armhf.so.3 but to run hwengine it wants to use ld-linux.so.3 which does not exist
# so we create a symlink for this again or else hwengine won't start
#
if [ ! -f /lib/ld-linux.so.3 ]; then
  echo -e "\033[1;36mFixing odd behaviour\033[0;0m"
  sudo ln -s /lib/ld-linux-armhf.so.3 /lib/ld-linux.so.3
fi


Project:
XBMC
Status:
WIP
This is only going to work if you have 24bit colors activated!
XBMC 11 (Eden) seems to work all fine, interesting part is, that is actually showing that it's using the VCPU which is not shown in the Android version of XBMC 12 (Frodo).
I'm not sure if it's really using the VCPU or not, but if it does, then it's very slow, cause it can't really play 1080p movies.
XBMC 12 (Frodo) compiles just fine but won't start and throws some erros if you kill it afterwards. You only see a black screen and can move your mouse.
What's working:
  • Menu
  • Movies
  • Musik
  • Online Content (YouTube and Co. up to 720p, Covers, Trailers, Informations)
  • Most addons
  • Games via Rom Collection Browser/mednafen - seems to have some sounds issue -> i'll look into that
  • downloading covers and online content
What doesn't work:
  • 1080p movies, although, if you use mpeg4 instead of h264 it might actually work
  • visualizations (cause they are for OpenGL)
TODOs:
  • Having 1080p run fluently would be nice
  • Switching to different default movie player (maybe ffplay or ffmepg)

Actually it runs better in 720p instead of 1080p resolution (no surprise)
If you press "o" on the keyboard you'll see information about processors while playing a movie. You can see it's actually using vcpu for video processing. But as soon as vcpu goes up to 80~90% you probably will have a lower framerate.
h264 is doing very hard on the ODROID, while mpeg4 seems to work fine
Code: Select all
#!/bin/bash
if [ ! -d $HOME/sources ]; then
  mkdir -p $HOME/sources
fi
cd $HOME/sources
echo -e "\033[1;36mInstalling dependencies\033[0;0m"
sleep 2
sudo apt-get install git-core make g++ gcc gawk pmount libtool nasm yasm automake cmake gperf zip unzip bison libsdl1.2-dev libsdl-image1.2-dev libsdl-gfx1.2-dev libsdl-mixer1.2-dev libfribidi-dev liblzo2-dev libfreetype6-dev libsqlite3-dev libogg-dev libasound2-dev python-sqlite libcurl3 libcurl4-gnutls-dev libxrandr-dev libxrender-dev libmad0-dev libogg-dev libvorbisenc2 libsmbclient-dev libmysqlclient-dev libpcre3-dev libdbus-1-dev libhal-dev libhal-storage-dev libjasper-dev libfontconfig-dev libbz2-dev libboost-dev libenca-dev libxt-dev libxmu-dev libpng-dev libjpeg-dev libpulse-dev mesa-utils libcdio-dev libsamplerate-dev libmpeg3-dev libflac-dev libiso9660-dev libass-dev libssl-dev gdc-4.4 libmpeg2-4-dev libmicrohttpd-dev libmodplug-dev libssh-dev gettext cvs python-dev libyajl-dev libboost-thread-dev libplist-dev libusb-dev libudev-dev libtinyxml-dev libcap-dev curl swig default-jre libtiff-dev autopoint libltdl-dev checkinstall
echo -e "\033[1;36mDownloading sources\033[0;0m"
sleep 2
git clone git://github.com/xbmc/xbmc.git
cd xbmc
#
# master is broken and won't compile
# Frodo does not run
#
git checkout origin/Eden
#
# proper taglib only comes with ubuntu 12.10+
# so it has to be build first as a requirement
#
echo -e "\033[1;36mBuilding required library\033[0;0m"
sleep 2
make -C lib/taglib
echo -e "\033[1;36mInstalling required library\033[0;0m"
sleep 2
#
# sudo checkinstall --pkgversion="1.8.0" --default --pkgname="taglib-dev" make -C lib/taglib install
# checkinstall does miss some files so we have to use make install instead
#
sudo make -C lib/taglib install
echo -e "\033[1;36mConfiguring software\033[0;0m"
sleep 2
./bootstrap
#
# using the build-in neon support and OpenGL ES 2.0
# only basic options right now
# TODO: integrate different default players and check some other settings to improve speed
#
./configure --enable-gles --enable-neon --enable-sdl
echo -e "\033[1;36mBuilding XBMC... sit back, this will take quite a while..\033[0;0m"
sleep 3
make -j5
echo -ne "\033[1;36mDo you want to install XBMC? [y/N]: \033[0;0m"
read YesNo
#
# TODO: figure out how to get version for --pgkversion
#
if [ "X$YesNo" = "Xy" ] || [ "X$YesNo" = "XY" ]; then
  sudo checkinstall --pkgversion="11.0" --pkgname=xbmc --backup=no --deldoc=yes --fstrans=no --defaults make install
fi


ok, i just quickly confirmed, converting a file from h264 to a different format (mpeg4) will reduce vcpu usage greatly. I used 720p 4500kbps and vcpu usage droped from 80~99% to 40~60% depending on the speed the picture changes. So 1080p should be possible if you don't use h264 (even without using ffmpeg or ffplay)

strictly using alsa for sound via my play script fixes the sound issue with mednafen as well (adding -sound.device sexyal-literal-default -sound.driver alsa does the trick)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.
User avatar
meveric
 
Posts: 9443
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go

Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest