sakaki- / gentoo-on-rpi-64bit

Bootable 64-bit Gentoo image for the Raspberry Pi4B, 3B & 3B+, with Linux 5.4, OpenRC, Xfce4, VC4/V3D, camera and h/w codec support, weekly-autobuild binhost
GNU General Public License v3.0
926 stars 127 forks source link

Running x86 programs with qemu #171

Closed rulet closed 4 years ago

rulet commented 4 years ago

Hello. It's actually not an issue. I have a question if you can help to run x86 programs with qemu on your system on raspberry pi 3 v.B? The purpose is to run simple windows application with wine. Can you provide some instructions for that?

perkinslr commented 4 years ago

That's really outside the scope of this project... That said, you need to emerge qemu with QEMU_USER_TARGETS="x86_64" (and whatever other targets you want). You can then set up a chroot with wine in it and run that, similar to how qemu and a chroot can be used to compile arm programs from an x86_64 host.

All that said, aarch64 (64bit arm) is a fairly RISC instruction set, which can be easily translated to the CISC instruction set of x86_64. The inverse is not true. Do not expect decent performance going this route (i386 dos programs work reasonably inside dosbox, late 90s programs might work passably).

sakaki- commented 4 years ago

Thanks @perkinslr. Closing.