手機 - Motorola XT897 - chroot - 安裝Debian 8



Debain x64

$ cd
$ sudo debootstrap --arch armhf --foreign jessie jessie
$ sudo tar czvf jessie.tgz -C jessie .

XT897

$ cd
$ mkdir jessie
$ devel-ssu
# cd jessie
# tar xvfp /media/sdcard/xxx/jessie.tgz
# chroot /home/nemo/jessie /debootstrap/debootstrap --second-stage
# chroot /home/nemo/jessie apt-get clean
# vi /home/nemo/jessie/etc/apt/source.list
  deb http://archive.debian.org/debian/ jessie main contrib non-free
  deb http://archive.debian.org/debian/ jessie-backports main contrib non-free

# mount --bind /proc /home/nemo/jessie/proc
# mount --bind /sys /home/nemo/jessie/sys
# mount --bind /dev /home/nemo/jessie/dev
# mount --bind /dev/pts /home/nemo/jessie/dev/pts
# cp /etc/resolv.conf /home/nemo/jessie/etc/
# chroot /home/nemo/chroot/
# apt-get update