Download:
adb push rootfs.tar.gz /mnt/mmc
adb shell
inside adb shell:
mount -o remount,rw /system
cd /system
busybox tar -xf /mnt/mmc/rootfs.tar.gz
Start chroot
mount -o bind /dev /system/root/dev
mount -o bind /proc /system/root/proc
busybox chroot /system/root /bin/bash
export PATH=/bin:/usr/bin
create this file:
[General]
cleanup=true
noauth=false
unpack=true
bootstrap=Debian
aptsources=Debian
[Debian]
packages=kmod dbus
packages=nano dosfstools psmisc binutils
source=http://deb.debian.org/debian
keyring=debian-archive-keyring
suite=stable
components=main contrib non-free
Add or remove packages that you want (see packages=
)
apt-get install multistrap
multistrap -a armhf -d $PWD/root -f multistrap.conf
tar -zcf rootfs.tar.gz root