Running x86 software
#11
You can install QEMU, Virtlib and VM Manager.
All available in the Manjaro repository.

You have to start VirtLib by hand.
https://doc.opensuse.org/documentation/l...rview.html

And here is a video with instructions: https://www.youtube.com/watch?v=_FoTnDoR4_8
  Reply
#12
I've compiled box86 on Manjaro and I've been able to run x86 vim through it. Basic instructions:

- install docker(Arch wiki is your friend)
- use this image as base: https://hub.docker.com/r/arm32v7/debian/
- inside the Debian container, install the dependencies and compile box86(https://github.com/ptitSeb/box86)
- add i386 to apt's architecture list(https://wiki.debian.org/Multiarch/HOWTO)
- install i386 vim(apt install vim:i386)
- run it: "<BOX86_PATH>/box86 vim"

I've been also able to install i386 wine from https://wiki.winehq.org/Debian, I had to install some dependencies from .deb packages because they weren't in Debian's repositories. My goal was to mess with old Windows games(box86 has a video of Neverwinter Nights running), but then I've managed to loss my progress and I have a thesis to write; ). Next step would be to get X11 running with debian's docker, run something like "box86 wine notepad", and then move on to trying games. It seems like just using Debian would be a more straightforward way, but I don't want to lose AUR with such limited binary package selection.
  Reply
#13
(08-29-2020, 06:23 AM)brzegorz Wrote: I've compiled box86 on Manjaro and I've been able to run x86 vim through it. Basic instructions:

- install docker(Arch wiki is your friend)
- use this image as base: https://hub.docker.com/r/arm32v7/debian/
- inside the Debian container, install the dependencies and compile box86(https://github.com/ptitSeb/box86)
- add i386 to apt's architecture list(https://wiki.debian.org/Multiarch/HOWTO)
- install i386 vim(apt install vim:i386)
- run it: "<BOX86_PATH>/box86 vim"

I've been also able to install i386 wine from https://wiki.winehq.org/Debian, I had to install some dependencies from .deb packages because they weren't in Debian's repositories. My goal was to mess with old Windows games(box86 has a video of Neverwinter Nights running), but then I've managed to loss my progress and I have a thesis to write; ). Next step would be to get X11 running with debian's docker, run something like "box86 wine notepad", and then move on to trying games. It seems like just using Debian would be a more straightforward way, but I don't want to lose AUR with such limited binary package selection.
It would be best if you could write this all into a Dockerfile, making it easier for all others (and hopefully yourself as well) to re-build a new docker image
  Reply
#14
(08-29-2020, 06:43 AM)hthiemann Wrote:
(08-29-2020, 06:23 AM)brzegorz Wrote: I've compiled box86 on Manjaro and I've been able to run x86 vim through it. Basic instructions:

- install docker(Arch wiki is your friend)
- use this image as base: https://hub.docker.com/r/arm32v7/debian/
- inside the Debian container, install the dependencies and compile box86(https://github.com/ptitSeb/box86)
- add i386 to apt's architecture list(https://wiki.debian.org/Multiarch/HOWTO)
- install i386 vim(apt install vim:i386)
- run it: "<BOX86_PATH>/box86 vim"

I've been also able to install i386 wine from https://wiki.winehq.org/Debian, I had to install some dependencies from .deb packages because they weren't in Debian's repositories. My goal was to mess with old Windows games(box86 has a video of Neverwinter Nights running), but then I've managed to loss my progress and I have a thesis to write; ). Next step would be to get X11 running with debian's docker, run something like "box86 wine notepad", and then move on to trying games. It seems like just using Debian would be a more straightforward way, but I don't want to lose AUR with such limited binary package selection.
It would be best if you could write this all into a Dockerfile, making it easier for all others (and hopefully yourself as well) to re-build a new docker image

I'm sure I'll do it if I get to the final result, i.e. working box86+wine+graphical interface. I wanted to share partial results since I'll probably abandon the idea for a few weeks.
  Reply
#15
(08-29-2020, 06:23 AM)brzegorz Wrote: My goal was to mess with old Windows games(box86 has a video of Neverwinter Nights running), but then I've managed to loss my progress and I have a thesis to write; ). Next step would be to get X11 running with debian's docker, run something like "box86 wine notepad", and then move on to trying games. It seems like just using Debian would be a more straightforward way, but I don't want to lose AUR with such limited binary package selection.

Configuring box86 with -DARM_DYNAREC=1 can significantly help performance.
Debian stable has a very old version of Mesa so you'll want to use Debian testing (bullseye) or compile it yourself.

To get X11 working in docker, you'll want to bind /tmp/.X11-unix and /dev/dri into the container. Maybe you'll need to set DISPLAY to what it is outside the container. box86+Wine should work with X11, though I found that I needed to run winecfg and enable the virtual desktop to get anything using OpenGL working.

At least with a new enough Mesa and PAN_MESA_DEBUG=gl3, some D3D9 stuff will work through Wine's OpenGL wrapper, and I've been trying to get Gallium Nine working for native D3D9 support in Panfrost.
  Reply
#16
Nice, I was able to get Dwarf Fortress running!

I used debootstrap to install Debian armhf, then cloned and compiled Box86 inside there.

Downloaded df_linux and had to change the start script to invoke Box86, then install some missing libraries.

It is working at a comparatively playable 25 FPS, but I'm sure it can be optimized with settings.
  Reply
#17
I've experimented some more, without great results - I've connected X server, Docker, 32-bit Debian, i386 wine and box86, but I weren't able to run anything exciting. I'm a bit tired now, but here is the Dockerfile:


Code:
FROM arm32v7/debian:bullseye

##### Get i386 vim
RUN dpkg --add-architecture i386
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y dist-upgrade
#RUN apt-get install -y libc:i386
RUN apt install -y git cmake g++ python3 gnupg wget libstb0:i386 \
    libavcodec58:i386 libavutil56:i386 libsdl2-2.0-0:i386 libxxf86vm1 \
    libfaudio0:i386 libxcb-randr0 libwine libgl1 mesa-utils \
    libxinerama1 libxrandr2 libxcomposite1 libxi6 libxfixes3 libxcursor1

##### Get wine
RUN wget -nc https://dl.winehq.org/wine-builds/winehq.key
RUN apt-key add winehq.key
RUN echo "deb https://dl.winehq.org/wine-builds/debian/ bullseye main" >> /etc/apt/sources.list.d/wine.list
RUN apt update
RUN apt install -y --install-recommends winehq-stable:i386 wine-stable:i386 \
    wine-stable-i386:i386

##### Get box86
RUN mkdir /home/developer
RUN mkdir /home/developer/Builds
WORKDIR /home/developer/Builds
RUN git clone https://github.com/ptitSeb/box86
WORKDIR /home/developer/Builds/box86
RUN mkdir build
WORKDIR /home/developer/Builds/box86/build
RUN cmake .. -DARM_DYNAREC=ON -DCMAKE_BUILD_TYPE=RelWithDebInfo && \
    make -j5 install
ENV PAN_MESA_DEBUG=gl3


In order to run something, I'm using x11docker(available for AUR) with following command:
Code:
x11docker --hostdisplay --gpu --pulseaudio --clipboard --hostnet --limit=1 --home=$HOME --workdir=$HOME <image_name> box86 wine explorer /desktop=name,800x600 <absolute_path_to_exe>


The most interesting case is Neverwinter Nights, I think, since it's flashy and it works on other devices/configs. Without PAN_MESA_DEBUG=gl3 it silently exits. With PAN_MESA_DEBUG=gl3 I get a segmentation fault. I'm able to run the launcher and the config utility, but not the actual game. I'm using GOG version extracted with innoextract. The OS is Manjaro.
  Reply
#18
[Image: rxfz0G.jpg]

We have some Videos of  Box86 on RK3399 hardware mostly tested on RockPro64 and RockPi4C boards with TwisterOS Armbian V1.0
Obviously, they should run without problems on Pinebook Pro.

BOX86 on RK3399: Warcraft 3 and Warcraft 2 BNE TEST
https://www.youtube.com/watch?v=_Xlmhcy7-e4&t=19s

BOX86 on RK3399: Farcry 1 TEST
https://www.youtube.com/watch?v=8NpLhp8pTys&t=646s

BOX86 (and ULTRA64) on RK3399: Killer instinct I & II
https://www.youtube.com/watch?v=3xH1uuEdpng&t=238s


BOX86 on RK3399 TEST : Claw (1997) and Mark of the Ninja (2012)
https://www.youtube.com/watch?v=ULuVldfA5fY&t=378s

BOX86 on OPI4 (RK3399) : Counter Strike 1.6
https://www.youtube.com/watch?v=E6USoxyTF-w&t=320s

To Download TwisterOS Armbian for RK3399 devices:
https://twisteros.com/twisterarmbian.html

[Image: KJWPFR.jpg]



[Image: d21ehn.jpg]


  Reply
#19
jiyong Wrote:You can install QEMU, Virtlib and VM Manager.
All available in the Manjaro repository.

You have to start VirtLib by hand.
https://doc.opensuse.org/documentation/l...rview.html

And  here is a video with instructions: https://www.youtube.com/watch?v=_FoTnDoR4_8
Can I run steam by this.
  Reply
#20
(02-14-2021, 07:25 PM)pcx Wrote:
jiyong Wrote:You can install QEMU, Virtlib and VM Manager.
All available in the Manjaro repository.

You have to start VirtLib by hand.
https://doc.opensuse.org/documentation/l...rview.html

And  here is a video with instructions: https://www.youtube.com/watch?v=_FoTnDoR4_8
Can I run steam by this.

Nope, itś really slow. https://youtu.be/2PXxufqXMyA

Probably you can get better performance with something like Hangover, but it will take years before it gets to a usable state.
https://liliputing.com/2020/11/hangover-...chips.html
  Reply


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

Forum Jump:


Users browsing this thread: 4 Guest(s)