在ubuntu下,安裝qemu-arm-static後,把/usr/bin/qemu-arm-static 複製到target的/usr/bin/下就,就可以很容易的chroot成功。而在archlinux下無此套件,workaround如下:

1.下載qemu-arm-static的deb套件,解開取得qemu-arm-static的binary,複製到target的/usr/bin

2. 從ubuntu偷/var/lib/binfmts 和/var/cache/binfmts,丟到一樣的位置

3.下載binfmt-support的tarball,執行其中update-binfmts.pl --enable

4. 製作arm rootfs: sudo debootstrap --foreign --arch armel lucid /home/lucid

5.  sudo chroot /home/lucid

6. debootstrap --second-stage

以上是爛招,煩請高手指點。

arrow
arrow
    全站熱搜

    kezeodsnx 發表在 痞客邦 留言(1) 人氣()