6 May 2014 (Tue)

17:52:26 # Life Trying out Debian arm64 port on chroot running inside qemu-user-static. It seems like it's getting closer to being ready. qemu 2.0 already hit Debian unstable, so qemu-aarch64-static is already available in qemu-user-static package. Today, debootstrap cross almost works but doesn't, because of some missing dependencies in debian-ports. hmmm... Some of the commands I needed to do:

I installed qemu-user-static on sid chroot, and installed the binfmts script on host.

$ sudo cp sid-chroot/usr/share/binfmts/qemu-aarch64 /usr/share/binfmts/
$ sudo update-binfmts --import qemu-aarch64

$ sudo cp sid-chroot/usr/bin/qemu-aarch64-static aarch64-chroot/usr/bin
	

I installed chroot using debootstrap.

$ sudo mkdir chroot
$ cd chroot
$ sudo debootstrap --foreign --arch=arm64 --no-check-gpg unstable . http://ftp.debian-ports.org/debian/

  install libselinux1
$ (cd tmp && wget http://ftp.debian-ports.org/debian/pool-arm64/main/libs/libselinux/libselinux1_2.2.2-1+profile_arm64.deb ) 
$ sudo dpkg -x tmp/libselinux1_2.2.2-1+profile_arm64.deb .
 copy over etc/passwd and etc/group from some other chroot.
$ sudo chroot .
# debootstrap/debootstrap --second-stage
# dpkg -i tmp/libselinux1_2.2.2-1+profile_arm64.deb
# debootstrap/debootstrap --second-stage
	

apt complained some missing packages at this point still. So I manually downloaded and installed using dpkg -i base-passwd_3.5.28_arm64.deb libdb5.3_5.3.28-3.1_arm64.deb gnupg_1.4.15-1.1_arm64.deb libselinux1_2.2.2-1+profile_arm64.deb gpgv_1.4.15-1.1_arm64.deb libsemanage-common_2.2-1_all.deb libaudit-common_2.3.2-2_all.deb libsemanage1_2.2-1_arm64.deb libaudit1_2.3.2-2_arm64.deb libustr-1.0-1_1.0.4-3_arm64.deb

And now I have managed to get apt not complain. Getting closer and closer ...

Junichi Uekawa

$Id: dancer-diary.el,v 1.94 2009/10/21 14:02:48 dancer Exp $