Forked from thierry-FreeBSD/poudrière_emulation_arm64.txt
Created
August 9, 2025 23:35
-
-
Save Martinfx/1372255ad01e2441cab627f87eb5f24f to your computer and use it in GitHub Desktop.
FreeBSD : create a poudriere jail to build packages by emulation for arm64-aarch64
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # pkg install qemu-user-static | |
| # binmiscctl add arm64-aarch64 \ | |
| --interpreter "/usr/local/bin/qemu-aarch64-static" \ | |
| --magic "\x7f\x45\x4c\x46\x02\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\xb7\x00" \ | |
| --mask "\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff" \ | |
| --size 20 --set-enabled | |
| # service qemu_user_static onestart | |
| (you can also add qemu_user_static_enable="YES" to your /etc/rc.conf ) | |
| # poudriere jail -c -j 13arm64 -a arm64.aarch64 -v 13.1-RELEASE | |
| Of course 13.1-RELEASE can be replaced by the release of your choice. | |
| Et voilà ! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment