2015-06-12, 19:50
Update: 2015-06-13, updated state to post: http://forum.kodi.tv/showthread.php?tid=...pid2028176
Ok some more information.
Script: first part
Script: second part(after reboot)
Last Part - Script for kodi build
Is there anyone interested in bare debian image with environment for building kodi for Raspberry PI2 (RPi2) ?
Ok some more information.
Script: first part
Code:
#! /bin/bash -x
# prepare source.list
echo -e "deb https://repositories.collabora.co.uk/debian/ jessie rpi2 \n
deb http://ftp.pl.debian.org/debian/ jessie main contrib non-free
deb-src http://ftp.pl.debian.org/debian/ jessie main contrib non-free \n
deb http://security.debian.org/ jessie/updates main contrib non-free
deb http://ftp.us.debian.org/debian/ jessie-updates main contrib non-free \n" > /etc/apt/sources.list
# Pin Collabora repositories
echo -e "Package: flash-kernel
Pin: origin repositories.collabora.co.uk
Pin-Priority: 1000\n" > /etc/apt/preferences.d/flash-kernel
dpkg-reconfigure locales; # Reconfigure locales
dpkg-reconfigure tzdata; # Reconfigure timezone
apt-get update; apt-get upgrade # perform update && upgrade (there is problem with expiration of key, but the system works so leave it like that and don't bother)
# Change ssh key for openssh-server
rm /etc/ssh/ssh_host_*_key*
dpkg-reconfigure openssh-server
# Package for firmware update
apt-get install curl binutils libraspberrypi-bin libraspberrypi-dev kernel-package git screen
# script for firmware update
wget https://raw.githubusercontent.com/Hexxeh/rpi-update/master/rpi-update && chmod +x rpi-update
./rpi-update
# move data to right place
mv /boot/overlays/ /boot/start* /boot/bcm270* /boot/fixup* /boot/bootcode.bin /boot/kernel.img /boot/kernel7.img /boot/.firmware_revision /boot/firmware/
# reboot after firmware update
reboot
Script: second part(after reboot)
Code:
#! /bin/bash -x
# predefined variables
RED=`tput setaf 1`
GREEN=`tput setaf 2`
RESET=`tput sgr0`
# link files from /opt/vc to /usr
for level1 in `ls /opt/vc`; do
for level2 in `ls /opt/vc/${level1}`; do
ln -s /opt/vc/$level1/$level2 /usr/$level1/$level2;
done;
done;
# additional links
ln -s /opt/vc/include/interface/vcos/pthreads/vcos_platform.h /opt/vc/include/interface/vcos/vcos_platform.h
ln -s /opt/vc/include/interface/vcos/pthreads/vcos_platform_types.h /opt/vc/include/interface/vcos/vcos_platform_types.h
ln -s /opt/vc/include/interface/vmcs_host/linux/vchost_config.h /opt/vc/include/interface/vmcs_host/vchost_config.h
# Installing dependency
echo "${GREEN}Installing dependency${RESET}";
PACKAGES="kernel-package git pkg-config autoconf automake autopoint autotools-dev cmake curl debhelper default-jre gawk gperf libao-dev libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libbluetooth-dev \
libbluray-dev libboost-dev libboost-thread-dev libbz2-dev libcap-dev libcdio-dev libcurl4-gnutls-dev libcurl4-gnutls-dev libcwiid-dev libdbus-1-dev libfontconfig-dev libfreetype6-dev libfribidi-dev \
libgif-dev libiso9660-dev libjasper-dev libjpeg-dev libltdl-dev liblzo2-dev libmicrohttpd-dev libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmysqlclient-dev libnfs-dev libogg-dev \
libpcre3-dev libplist-dev libpng-dev libpulse-dev librtmp-dev libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev libswscale-dev libtag1-dev libtiff-dev libtinyxml-dev libtool libudev-dev \
libusb-dev libva-dev libvdpau-dev libvorbis-dev libxinerama-dev libxml2-dev libxmu-dev libxrandr-dev libxslt1-dev libxt-dev libyajl-dev lsb-release nasm python-dev python-imaging python-support swig unzip yasm zip zlib1g-dev"
for x in $PACKAGES; do
PKG_STATUS=`dpkg -s ${x} > /dev/null 2>&1; echo $?`
if [[ $PKG_STATUS -gt 0 ]]; then apt-get -y install ${x} > /dev/null 2>&1; fi
done
Last Part - Script for kodi build
Code:
#! /bin/bash
git clone https://github.com/xbmc/xbmc.git kodi;
cd kodi;
./bootstrap
CFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4";
CXXFLAGS="-I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcs_host/linux -mfloat-abi=hard -mcpu=cortex-a7 -mfpu=neon-vfpv4";
LDFLAGS="-L/opt/vc/lib";
FFMPEG_OPTS="--cpu=cortex-a7";
./configure --prefix=/usr/local/kodi/git-`date +%Y%m%d-%H%M` --disable-gl --enable-gles --with-platform=raspberry-pi --disable-x11 --disable-vaapi --disable-vdpau --disable-avahi --disable-libcec \
--disable-projectm --disable-optical-drive --disable-dvdcss --disable-vtbdecoder --enable-alsa --enable-player=omxplayer
make && make install
# rest of the script in development
Is there anyone interested in bare debian image with environment for building kodi for Raspberry PI2 (RPi2) ?