[Cerowrt-devel] Cross-compiling to armhf

Benjamin Henrion zoobab at gmail.com
Wed Jun 22 09:15:10 EDT 2016


On Wed, Jun 22, 2016 at 3:10 PM, Juliusz Chroboczek
<jch at pps.univ-paris-diderot.fr> wrote:
>> you could also run the following qemu+docker trick,
>
> That's like taking a machine gun to a knife fight ;-)
>
> Just set up a chroot (I like deboostrap, but you could simply copy the
> contents of the device's rootfs), and do
>
>   sudo apt-get install qemu-user-static
>   sudo cp /usr/bin/qemu-arm-static ~/chroot/usr/bin/
>   sudo chroot ~/chroot
>
> and everything should work (but check /proc/sys/fs/binfmt_misc/qemu-arm
> first).

Do not forget:

mount --bind /dev ~/chroot/dev
mount --bind /dev/pts ~/chroot/dev/pts
mount --bind /proc ~/chroot/proc
mount --bind /sys ~/chroot/sys

But with the docker machine gun it is there.

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-3500762
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."


More information about the Cerowrt-devel mailing list