Running x86 software
#1
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!
  Reply
#2
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
  Reply
#3
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.
  Reply
#4
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.
  Reply
#5
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).
  Reply
#6
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.
  Reply
#7
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?
  Reply
#8
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
  Reply
#9
(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
  Reply
#10
(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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error trying to update Manjaro software boosterh 5 3,835 08-31-2022, 10:28 PM
Last Post: shulamy
  Is anyone successfully running guix system on PBP bluekeys 8 9,416 08-29-2022, 01:19 PM
Last Post: bluekeys
  Manjaro and Arch repository with privacy oriented software as400 86 133,879 04-27-2022, 07:44 AM
Last Post: annahellrothsparent
  software request: LuckyBackup mexsudo 2 2,525 11-25-2021, 05:59 AM
Last Post: mexsudo
  Where to find a PDF viewer (and other software) compatible with aarch64? mjc 8 10,353 09-29-2020, 07:55 AM
Last Post: hmuller
  Error when running pinebook-pro-keyboard-updater NoahB 13 17,140 07-29-2020, 06:33 PM
Last Post: guiltydoggy
  Software Compatibility, If on Pi then? chetchinglo 5 7,700 06-06-2020, 07:11 PM
Last Post: chetchinglo
  Arm supported software nabeel 1 2,999 03-18-2020, 08:47 AM
Last Post: tophneal
  Running into problems while installing RStudio from sources FingO 0 1,959 02-01-2020, 07:05 AM
Last Post: FingO

Forum Jump:


Users browsing this thread: 1 Guest(s)