User Tools

  • (equal to forum credentials)

Site Tools


buildingpack

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

buildingpack [2014/06/28 10:14]
curlymo
buildingpack [2014/07/03 16:50] (current)
rabeeh typos in instructions
Line 56: Line 56:
 chroot armhfwheezy chroot armhfwheezy
 echo "deb http://​mirrordirector.raspbian.org/​raspbian/​ wheezy main rpi" >> /​etc/​apt/​sources.list echo "deb http://​mirrordirector.raspbian.org/​raspbian/​ wheezy main rpi" >> /​etc/​apt/​sources.list
 +echo "none /proc proc defaults 0 0" >> /etc/fstab
 +echo "​devtmpfs /dev devtmpfs mode=0755,​nosuid 0 0" >> /etc/fstab
 +echo "​devpts /dev/pts devpts gid=5,​mode=620 0 0" >> /etc/fstab
 +mount -a
 </​code>​ </​code>​
  
Line 78: Line 82:
 mmkdir -p /​home/​xbian/​build mmkdir -p /​home/​xbian/​build
 cd /​home/​xbian/​build cd /​home/​xbian/​build
-debootstrap --arch armhf --foreign ​Jessie ​./​armhfjessie http://​ftp.us.debian.org/​debian+debootstrap --arch armhf --foreign ​jessie ​./​armhfjessie http://​ftp.us.debian.org/​debian
 </​code>​ </​code>​
  
Line 84: Line 88:
  
 <​code>​ <​code>​
-cp /​usr/​bin/​qemu-arm-static ./armhjessie+cp /​usr/​bin/​qemu-arm-static ./armhfjessie
 chroot ./​armhfjessie debootstrap/​debootstrap --second-stage chroot ./​armhfjessie debootstrap/​debootstrap --second-stage
  
 chroot armhfwheezy chroot armhfwheezy
 echo "deb http://​ftp.us.debian.org/​debian wheezy main" >> /​etc/​apt/​sources.list echo "deb http://​ftp.us.debian.org/​debian wheezy main" >> /​etc/​apt/​sources.list
 +
 +echo "none /proc proc defaults 0 0" >> /etc/fstab
 +echo "​devtmpfs /dev devtmpfs mode=0755,​nosuid 0 0" >> /etc/fstab
 +echo "​devpts /dev/pts devpts gid=5,​mode=620 0 0" >> /etc/fstab
 +mount -a
  
 wget http://​xbian.brantje.com/​pool/​stable/​main/​x/​xbian-package-repo/​xbian-package-repo_1.0.0_armhf.deb wget http://​xbian.brantje.com/​pool/​stable/​main/​x/​xbian-package-repo/​xbian-package-repo_1.0.0_armhf.deb
Line 96: Line 105:
 apt-get install xbian-package-cec xbian-package-libtag xbian-package-shairplay libafpclient-dev xbian-package-firmware autoconf automake autopoint autoconf automake autopoint autotools-dev cmake curl debhelper default-jre gawk gperf libao-dev libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev ​ libbluetooth-dev libbluray-dev libboost-dev libboost-thread-dev libbz2-dev libcap-dev ​ libcdio-dev libgpg-error-dev libcurl4-gnutls-dev libcwiid-dev libdbus-1-dev libenca-dev ​ libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libiso9660-dev libjasper-dev ​ libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev liblockdev1-dev libmicrohttpd-dev ​ libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmysqlclient-dev libnfs-dev libogg-dev ​ libpcre3-dev libplist-dev libpng12-dev libpng-dev libpostproc-dev libpulse-dev librtmp-dev ​ libsamplerate-dev libafpclient-devv libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev ​ libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-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 libmp3lame-dev libfuse2 doxygen openjdk-7-jre-headless libsdl1.2-dev libsdl-image1.2-dev libltdl7 libavahi-compat-libdnssd1 libao4 locales apt-get install xbian-package-cec xbian-package-libtag xbian-package-shairplay libafpclient-dev xbian-package-firmware autoconf automake autopoint autoconf automake autopoint autotools-dev cmake curl debhelper default-jre gawk gperf libao-dev libasound2-dev libass-dev libavahi-client-dev libavahi-common-dev libavcodec-dev libavfilter-dev libavformat-dev libavutil-dev ​ libbluetooth-dev libbluray-dev libboost-dev libboost-thread-dev libbz2-dev libcap-dev ​ libcdio-dev libgpg-error-dev libcurl4-gnutls-dev libcwiid-dev libdbus-1-dev libenca-dev ​ libflac-dev libfontconfig-dev libfreetype6-dev libfribidi-dev libiso9660-dev libjasper-dev ​ libjpeg-dev libltdl-dev liblzo2-dev libmad0-dev liblockdev1-dev libmicrohttpd-dev ​ libmodplug-dev libmpcdec-dev libmpeg2-4-dev libmysqlclient-dev libnfs-dev libogg-dev ​ libpcre3-dev libplist-dev libpng12-dev libpng-dev libpostproc-dev libpulse-dev librtmp-dev ​ libsamplerate-dev libafpclient-devv libsmbclient-dev libsqlite3-dev libssh-dev libssl-dev ​ libswscale-dev libtiff-dev libtinyxml-dev libtool libudev-dev libusb-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 libmp3lame-dev libfuse2 doxygen openjdk-7-jre-headless libsdl1.2-dev libsdl-image1.2-dev libltdl7 libavahi-compat-libdnssd1 libao4 locales
 </​code>​ </​code>​
 +
 +Exit either your wheezy or jessie chroot environment by typing ''​exit''​.
  
 Depending on what our interest is in regards to target system, we don't need to deploy both buildsystems. For the Raspberry Pi just armhfwheezy is enough. Depending on what our interest is in regards to target system, we don't need to deploy both buildsystems. For the Raspberry Pi just armhfwheezy is enough.
Line 106: Line 117:
 users=root users=root
 root-users=root root-users=root
-directory=/mnt/​armhfjessie+directory=/home/​xbian/​build/​armhfjessie
  
 [armhfwheezy] [armhfwheezy]
Line 112: Line 123:
 users=root users=root
 root-users=root root-users=root
-directory=/mnt/​armhfwheezy+directory=/home/​xbian/​build/​armhfwheezy
 </​code>​ </​code>​
  
Line 134: Line 145:
 <​code>​ <​code>​
 export MAKEFLAGS="​-j$(grep -c processor /​proc/​cpuinfo )" export MAKEFLAGS="​-j$(grep -c processor /​proc/​cpuinfo )"
 +</​code>​
 +
 +==== Troubleshoot ====
 +
 +If you get the perl error about locales, run the ''​apt-get install''​ step again after you did this:
 +<​code>​
 +localedef -v -c -i en_US -f UTF-8 en_US.UTF-8 ​
 </​code>​ </​code>​
buildingpack.1403943263.txt.gz ยท Last modified: 2014/06/28 10:14 by curlymo