1.1 Binary file maemo/shell/i686/dash has changed
2.1 Binary file maemo/shell/i686/libc.so.6 has changed
3.1 Binary file maemo/shell/i686/libpthread.so.0 has changed
4.1 Binary file maemo/shell/i686/librt.so.1 has changed
5.1 Binary file maemo/shell/i686/qemu-arm has changed
6.1 --- a/maemo/shell/run Thu Oct 13 14:36:43 2011 +0200
6.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
6.3 @@ -1,89 +0,0 @@
6.4 -#!/bin/sh
6.5 -# minimal maemo-sdk rootfs based on qemu-arm
6.6 -# -- pancake // nopcode.org
6.7 -
6.8 -if [ ! -d "shell" ]; then
6.9 - echo "You must run this program from the root of the SDK rootfs:"
6.10 - echo "shell/run.sh"
6.11 - exit 1
6.12 -fi
6.13 -if [ ! $UID = 0 ]; then
6.14 - echo "This script must run as root"
6.15 - exit 1
6.16 -fi
6.17 -
6.18 -ARCH=$(uname -m)
6.19 -CHROOT=$PWD
6.20 -BINDIRS="usr lib bin tmp bin var home"
6.21 -if [ "$1" = 1 ]; then
6.22 - AUFS=1
6.23 -else
6.24 - AUFS=0
6.25 -fi
6.26 -if [ -z "`mount | grep maemo`" ]; then
6.27 - DOMOUNT=1
6.28 -else
6.29 - DOMOUNT=0
6.30 -fi
6.31 -
6.32 -if [ $AUFS = 1 ]; then
6.33 - if [ -z "`lsmod | grep aufs`" ]; then
6.34 - echo "=> No aufs kernel module. Cannot bind rootfs into chroot"
6.35 - AUFS=0
6.36 - fi
6.37 -fi
6.38 -
6.39 -# enter environment
6.40 -echo "=> Rootfs at ${CHROOT} and arch is ${ARCH}"
6.41 -cd "${CHROOT}"
6.42 -if [ 1 = "${DOMOUNT}" ]; then
6.43 - mkdir -p dev proc dev/pts sys etc lib bin
6.44 - mount -o bind /dev dev
6.45 - mount -o bind /dev/pts dev/pts
6.46 - mount -o bind /proc proc
6.47 - mount -o bind /proc/sys/fs/binfmt_misc proc/sys/fs/binfmt_misc
6.48 - mount -o bind /sys sys
6.49 -
6.50 - # Bind rootfs with aufs
6.51 - if [ "$AUFS" = 1 ]; then
6.52 - echo "=> Binding system directories"
6.53 - (
6.54 - for a in ${BINDIRS} ; do
6.55 - mount -t aufs -o br=$a=rw:/$a=ro none $a
6.56 - done
6.57 - )
6.58 - else
6.59 - echo "=> Not binding system directories"
6.60 - fi
6.61 -
6.62 - echo "=> Registering ELF-ARM binaries to be handled by qemu-arm..."
6.63 - mount binfmt_misc -t binfmt_misc proc/sys/fs/binfmt_misc
6.64 - #echo ":qemu-arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/shell/${ARCH}/qemu-arm:" 2>/dev/null > proc/sys/fs/binfmt_misc/register
6.65 - echo ":qemu-arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/shell/qemu-arm:" 2>/dev/null > proc/sys/fs/binfmt_misc/register
6.66 -else
6.67 - echo "==> Not mounting anything. They are already mounted :)"
6.68 -fi
6.69 -
6.70 -echo "=> Copying resolv.conf..."
6.71 -cp -f /etc/resolv.conf etc/
6.72 -
6.73 -echo "=> Welcome to the arm chroot environment"
6.74 -PS1="[\w@qemu-arm]> "
6.75 -chroot . /shell/qemu-arm /bin/bash
6.76 -
6.77 -echo
6.78 -echo "=> Bye bye! hope to see you soon"
6.79 -# quit environment
6.80 -if [ 1 = "${DOMOUNT}" ]; then
6.81 - umount -f proc/sys/fs/binfmt_misc
6.82 - umount -f sys
6.83 - umount -f proc/sys/fs/binfmt_misc
6.84 - umount -f dev/pts
6.85 - umount -f dev
6.86 - umount -f proc
6.87 - if [ "$AUFS" = 1 ]; then
6.88 - for a in ${BINDIRS} ; do
6.89 - umount $a
6.90 - done
6.91 - fi
6.92 -fi
7.1 --- a/maemo/shell/start Thu Oct 13 14:36:43 2011 +0200
7.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
7.3 @@ -1,10 +0,0 @@
7.4 -#!/bin/sh
7.5 -LD_LIBRARY_PATH=/shell/${ARCH}:/usr/lib:/lib
7.6 -ARCH=$1 #`uname -m`
7.7 -PATH=/shell/${ARCH}:/bin:/usr/bin:/sbin:/usr/sbin
7.8 -HOME=/home/user
7.9 -export LD_LIBRARY_PATH PATH HOME
7.10 -cd $HOME
7.11 -echo go run
7.12 -PS1="[\w@qemu-arm]> " /shell/${ARCH}/qemu-arm /bin/sh
7.13 -echo go end