~sircmpwn/public-inbox

1

Re: In praise of qemu

Details
Message ID
<yn4gwuypjizEstMgf0GKSKi5YkjvpGgZKcS7YcQV9NFuzrZ2990d0UzlmsOjk7Oq8IGGTvIIEyTa2_9q-gOZOoRWMm94MY0pyF8hmflkbk4=@partin.io>
DKIM signature
missing
Download raw message
Drew,

Thanks for the post. I would be interested in learning a little bit
more about how to combine a chroot with qemu-user in order to setup a
cross-compilation environment, whether that is a pointer to the docs or
another blog post that talks about how you use it for Hare development.

Thanks,

Tristan Partin

Re: In praise of qemu

Details
Message ID
<CMQH7XIX3ZHZ.3GNTVHA2QJ9QL@taiga>
In-Reply-To
<yn4gwuypjizEstMgf0GKSKi5YkjvpGgZKcS7YcQV9NFuzrZ2990d0UzlmsOjk7Oq8IGGTvIIEyTa2_9q-gOZOoRWMm94MY0pyF8hmflkbk4=@partin.io> (view parent)
DKIM signature
missing
Download raw message
If you're on Alpine (and you should be):

# apk add qemu-$arch qemu-openrc
# service qemu-binfmt start

Then download and extract a suitable tarball, such as the "mini root
filesystems" available here:

https://alpinelinux.org/downloads/

Bind mount /dev and /proc (and /sys I guess) into the new root, then run
chroot path/to/root/ /bin/sh and you're in.
Reply to thread Export thread (mbox)