Box86 - Linux Userspace x86 Emulator


ElPoco

Hardcore Member
Joined
Feb 16, 2012
Messages
1,119
Age
38
Location
Paris, France
I tried to run Baba is You on the Pandora (I think it might be playable) with a version of box86 I compiled last week but couldn't get it to work. It complained about missing libudev so I got it from a x86 distro and added it to my x86 libs but then it failed to load the lib. I can send you the error message if you want.

I'm also unable to run anything with wine. I'll try to re-install wine from scratch. Is there a version you recommend for latest box86 on the Pandora?
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
9,253
Age
49
Location
France, near Lyon
Baba is you might work yes, I'll try on my Pandora, if I can get it to work long enough :S

Wine is tricky on the Pandora. An old version like the 5.13 from there: https://twisteros.com/wine.tgz should work. The issue is gl4es, that still have trouble with wine. Avoid D3D games, it will probably not work. It should works fine with OpenGL or simple 2D games (but some 2D games use D3D by default, like Plants vs Zombies).
 

ElPoco

Hardcore Member
Joined
Feb 16, 2012
Messages
1,119
Age
38
Location
Paris, France
I got Baba is You to work. Turns out I was trying to start it from the wrong working path (I was starting it from the bin32 directory instead of the base directory).
It's playable. The transitions are a bit slow (but they can be skipped) but the game itself is completely playable, there's no lag between the input and the action. And it's pretty fun so far.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
9,253
Age
49
Location
France, near Lyon
(Relatively) new to bbox86 (and box64), is the abbility to run bash. It is interesting on the Pandora, because there is no binfmt integration here (at least, not an isea one).
There is a copy of an i686 version of bash in the "test" folder. It allow you to run bash script and simulate better an x86 system.
Look at what a small session looks like:
Code:
/media/sda1/sources/git/box86/build$ box86 ../tests/bash
Box86 with trace with Dynarec v0.2.7 4946642f built on Aug 30 2022 10:32:16
/media/sda1/sources/git/box86/build$ uname -m
i686
/media/sda1/sources/git/box86/build$ uname -a
Linux gigaseb 3.2.102 #1324 Sun Jun 24 19:08:21 EEST 2018 armv7l GNU/Linux
/media/sda1/sources/git/box86/build$ ../tests/test01
Box86 with trace with Dynarec v0.2.7 4946642f built on Aug 30 2022 10:32:16
Hello World!
/media/sda1/sources/git/box86/build$ echo ${BASH_VERSION}
5.1.16(1)-release
/media/sda1/sources/git/box86/build$ exit
exit
/media/sda1/sources/git/box86/build$ echo ${BASH_VERSION}
3.2.57(1)-release
/media/sda1/sources/git/box86/build$
 

FBnil

They'll own everything and be miserable.
Joined
Dec 14, 2012
Messages
4,995
Location
Yurp
Does it include something of a x86 linux? Or is it just the bash.exe ?
Interesting idea to put a small x86 linux if you have a linux binary you want to run/test out in an isolated environment.
(I can think of a few old Linux games I bought (not sure where they are now... lost, I guess), which are basically compiled for a very old kernel and wont run on a modern linux). So there is a speed gain if box86 can run them instead of through a VM with an old Linux installed on it.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
9,253
Age
49
Location
France, near Lyon
It's just the bash exe. All the command like ls, chmod, whatever will be the arm ones. There is a special case for uname to force the "i686" mesage to fool some bash script. So it's not a full qemu/chroot. Just some way to have bash+x86 binary running without binfmt integration.
 

ptitSeb

Serial Porter
Joined
Aug 15, 2012
Messages
9,253
Age
49
Location
France, near Lyon
I have improved the bash support, and now script are really launched with the x86 version of bash.
For example:
Code:
/media/sda1/sources/git/box86/build$ box86 ../tests/bash /media/sda1/sources/x86/wizard_of_legend_v1_22a_38305.sh
Box86 with trace with Dynarec v0.2.7 76a86e2e built on Sep  8 2022 09:19:17
Verifying archive integrity... All good.
Uncompressing Wizard of Legend (GOG.com)  100%
Box86 with trace with Dynarec v0.2.7 76a86e2e built on Sep  8 2022 09:19:17
Collecting info for this system...
Operating system: linux
CPU Arch: x86
trying mojosetup in bin/linux/x86
USING en_US
Box86 with trace with Dynarec v0.2.7 76a86e2e built on Sep  8 2022 09:19:17
Will launch the setup extracted from the shell script and the installer just see an x86 system, and all this without binfmt integration :)

Now, I have t port that to box64 too.
 
Top