Is it possible to run x86 binaries on Pinebook via QEMU user space emulation?
#1
QEMU has an interesting mode, where it can emulate only machine instructions of usermode binaries and not an entire machine with own kernel. This should allow transparent execution of x86 binaries in theory. Has anyone tried this with a Pinebook? And if yes, what's the performance like.

https://ownyourbits.com/2018/06/13/trans...nfmt_misc/
#2
Haven't tried it, but I suspect it would be pretty poor bordering on unusable.
#3
Well, from what I read, on Raspberry Pi 2 it's pretty usable (and it's SoC is also based on Cortex A53 cores). Besides x86 Linux apps, people were even able to get Windows apps to work through Wine that way. Obviously, performance wouldn't be blazing, but it should be usable for modest and non-CPU/GPU intensive tasks. Unlike full-system emulation, kernel and syscalls would be still native ARM, will full native performance.

I will try to get it running, apparently, qemu-user-static is present in repos and binfmt_misc support in Neon kernel is also present. Only a chroot x86 environment, such as Debian/i386 is required to get it running.
#4
Well, I was able to install a debian stretch i686 chroot with debootstrap, and enter it with QEMU user mode.

I was roughly following tutorial for Raspberry Pi:

https://www.raspberrypi.org/forums/viewt...p?t=204547

It's not quite fast, but it works and it consumes a very small amount of memory (overhead is very small per process). And not that slow, as you would expect from true x86 VM on ARM. Overall, CLI is usable. If such chroot is connected to running host X11, this certainly opens up a way to run some x86-only applications on Pinebook (and even some Wine apps).

It's still rough around the edges, like, you need to replace in chroot the /usr/bin/chfn with a symlink to /bin/true during installation. Also, for some reason - it's faster on KDE Neon than on Armbian.


[Image: cN8ak4pl.png]
#5
I have run SpiderOak this way, which is about the only thing I've run into that was both closed-source and non-ARM, and it worked but was painfully slow because SpiderOak is just an intense app. Smaller tests using hugo (a golang static site generator) binaries were quite pleasing though.

It's been a bit since I did this but I didn't use an alternate root filesystem and instead used debian's multiarch support -- IIRC there's even package support that sets up binfmt_misc for you.

Check out https://wiki.debian.org/QemuUserEmulation

It has some outdated info now, I believe you can stop reading at "That's it." Oh, and when adding a new arch and pulling libraries for it, you need to use "i686" or "amd64" since this was written for someone who wants to run emulated armhf binaries.
#6
I've managed to get exagears running on the DietPi image (couldn't install it on Neon). Still haven't managed to get anything graphical running but I doubt there will be good results if exagears doesn't support the Mali GPU.
#7
Armbian officially provides Exagear virtually for all Ubuntu based desktops out of the box. For year(s) - installation goes from armbian-config

On a more powerful board it looks like this:
https://www.youtube.com/watch?v=__HKvtiOSTY
https://www.youtube.com/watch?v=cz7eEvp5DN0

On all hardware. Performance is as is.

> Also, for some reason - it's faster on KDE Neon than on Armbian.

Compare speed on the same kernel. It is not very likely that fancy OS like KDE Neon is faster in any task.


Possibly Related Threads…
Thread Author Replies Views Last Post
  Dead Pinebook - fix it or spare parts? oloturia 2 2,954 03-19-2023, 03:38 PM
Last Post: oloturia
  Broken bottom case of PineBook 14 Mick 1 1,412 02-22-2023, 05:49 AM
Last Post: Mick
  Original 14" Pinebook an Orphan? vdicarlo 2 1,965 01-05-2023, 10:42 AM
Last Post: jezek
  Pinebook Users are a nobody leperotero 13 15,431 09-06-2022, 09:29 PM
Last Post: zapper
  Does anybody repair pinebook pro laptops for a fee? Tsvi Bar-David 0 1,318 09-05-2022, 07:49 PM
Last Post: Tsvi Bar-David
  Pinebook with a broken screen and 2 eMMC's for sale. UK ONLY. frank-zappa 0 1,937 03-08-2022, 10:14 AM
Last Post: frank-zappa
  Pinebook to Pinebook Pro-esque upgrade kit sebboh 5 8,587 08-18-2021, 11:01 PM
Last Post: Corkonian
  new pinebook help ron_burgundy 5 8,836 12-17-2020, 04:54 PM
Last Post: ron_burgundy
  Few questions about flashing to a MicroSD card on the Pinebook Pro SanjevR 6 11,078 12-07-2020, 04:02 PM
Last Post: SanjevR
  TOR Browser on the Pinebook Pro jay3gg 0 3,314 11-16-2020, 01:25 AM
Last Post: jay3gg

Forum Jump:


Users browsing this thread: 1 Guest(s)