PINE64
Running x86 software - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111)
+--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114)
+--- Thread: Running x86 software (/showthread.php?tid=10196)

Pages: 1 2


Running x86 software - GloriousCoffee - 06-11-2020

Hi all

I'm wondering, as there are a few pcs of software that are not available for ARM, is it somehow possible to emulate x86 under arm64/linux? Don't care about performance in this regard, only to be able to run a few apps.

Cheers!


RE: Running x86 software - Eight Bit - 06-11-2020

You can try box86
https://github.com/ptitSeb/box86

You might need to run it in a 32 bit docker image if you're on Manjaro, or run Debian... I have yet to try it out myself Smile


RE: Running x86 software - Syonyk - 06-11-2020

You should be able to use qemu's userspace emulation to run 32 and 64 bit x86 apps, but it requires carrying around the full library dependencies for x86 as well.

I've measured qemu's performance running x86_64 on aarch64 as about 10% of native performance, so it's slow, but it does work.

Unfortunately, I've also found problems with things like spotify - I can't get it working right, even though there's an x86 Linux client. :/  It crashes on startup and I've not had the time to troubleshoot it.


RE: Running x86 software - Wizzard - 06-11-2020

It depends what kind of apps do you need. If you are talking about retro games, you can run Dosbox quite fine and also PCem seems to run fine even with Windows 98. I am just playing with it and testing which hardware is the best to emulate for Win98 and similar systems.


RE: Running x86 software - GloriousCoffee - 06-12-2020

Eight Bit; Never used Docker, have looked at it but feeling kind of confused. I'll keep looking into it.
I did try to compile the box86 on the PineBook tho, but gave errors and could not compile.

Syonyk; Okay, well, I don't mind a performance drop, but 10% might be a bit to bad..

Wizzard; Dosbox runs fine, but in this case there are a few apps I want to run which are native on Linux (Ledger Live for example).


RE: Running x86 software - Syonyk - 06-12-2020

The 10% was actually over on a Jetson Nano, so different aarch64 hardware. I've got it on my list to get running on the PBP, both a 32 and 64 bit chroot, just haven't had time to do it yet. I couldn't get Spotify to run, but that's an electron app, so it's using Chrome, so it's not exactly light. I was getting weird errors on early startup and then the whole thing just crashed.


RE: Running x86 software - GloriousCoffee - 06-12-2020

Eight Bit; Been testing docker out and docker seems very interesting, I'm surely going to be using this in the future (thanks!). Seems lovely to be basically have a whole server/website in a container and never have to worry about moving it around if need be, but- after installing docker on the PineBook, and pulling debian for example, I notice all the packages from apt are for arm64. Is this because docker and host is sharing kernel? Or is there any way to get x86/64 repos available for a pulled distro in docker?


RE: Running x86 software - Eight Bit - 06-12-2020

Yes, afaik it shares the kernel but I'm in no way knowledgeable of docker. I used it to run 32 bit Chromium-armhf for use with spotify, netflix and other drm needing stuff.

In the 32 bit docker Debian environment you should be able to compile box86 to run the x86 software... In theory Smile


RE: Running x86 software - feoh - 08-25-2020

(06-11-2020, 09:25 AM)Eight Bit Wrote: You can try box86
https://github.com/ptitSeb/box86

You might need to run it in a 32 bit docker image if you're on Manjaro, or run Debian... I have yet to try it out myself Smile

I wondered about Docker as a better alternative to arch-chroot, but I wasn't sure that running an ARM32 container on an ARM64 host would work.

Has anyone actually done this? I'll definitely play with it when my PBPro arrives Smile


RE: Running x86 software - appelgriebsch - 08-25-2020

(08-25-2020, 08:12 AM)feoh Wrote:
(06-11-2020, 09:25 AM)Eight Bit Wrote: You can try box86
https://github.com/ptitSeb/box86

You might need to run it in a 32 bit docker image if you're on Manjaro, or run Debian... I have yet to try it out myself Smile

I wondered about Docker as a better alternative to arch-chroot, but I wasn't sure that running an ARM32 container on an ARM64 host would work.

Has anyone actually done this? I'll definitely play with it when my PBPro arrives Smile

I did this... packaged my chromium plus widevine in a systemd-nspawn container based on a Debian 10 armhf, so I don’t have to run docker for it...

https://gitlab.com/appelgriebsch/chromium_widevine

works well and is part of my ManjaroARM Sway profile installation