呆's Blog
  • Home
Subscribe
Tagged

debootstrap

A collection of 1 post

armhf

於 x86 環境下建立 Debian rootfs for armhf

假設我們工作於 debian based distro 中. 首先, 裝上需要用的工具 $ sudo apt-get install debootstrap qemu-user-static 因為我們會在 x86 環境下執行 armhf binary, 所以需要用到 qemu-user. 並且因為我們會做 chroot/systemd-nspawn, process 的 root 會指向 armhf 的, 因此 qemu 必須使用 static 版本, 以免外部 shared library 相依. 接著, 用 debootstrap 產生 rootfs $ sudo debootstrap --foreign --arch=armhf jessie debian-armhf/ http:

  • Derek 呆
Derek 呆 Jun 2, 2015 • 3 min read
呆's Blog © 2021
Powered by Ghost