This shows you the differences between two versions of the page.
|
buildingpack [2014/06/28 10:15] 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 108: | Line 117: | ||
| users=root | users=root | ||
| root-users=root | root-users=root | ||
| - | directory=/mnt/armhfjessie | + | directory=/home/xbian/build/armhfjessie |
| [armhfwheezy] | [armhfwheezy] | ||
| Line 114: | Line 123: | ||
| users=root | users=root | ||
| root-users=root | root-users=root | ||
| - | directory=/mnt/armhfwheezy | + | directory=/home/xbian/build/armhfwheezy |
| </code> | </code> | ||
| Line 136: | 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> | ||