Caspina
Posts: 3
Joined: Tue Feb 19, 2019 1:31 pm

Re: Introducing Pi386

Thu Feb 21, 2019 11:33 pm

I did build my own new kernel now.
It has 3G/1G split and it does boot and run R-Pi 3B+ well.
I can use the chroot method code_exec mentioned on page 1 as well.

However I have a problem with apt inside chroot now.
apt update and apt install both get stuck with "Waiting for headers".
I can ping the debian.org stretch main HTTP repository URL from inside chroot but the apt gets stuck and so I cannot install wine :(

Any suggestions how else to install wine !? or how to fix this if you have seen this issue?

SIDE NOTE: (I managed to build my own wine on an Ubuntu host and then copy over manually which does run x86 Win32 console apps !
The chroot and qemu can even run x86 X11 Linux "graphical" apps too using X11 and xhost+;
However, when I try to run Win32 graphical apps with Wine and chroot it tells me "Application tried to create a window, but no driver could be loaded." "The explorer process failed to start." Note I do have $DISPLAY and I did what code_exec suggested about binds and xhost +.
This is how I can run x86 X11 Linux graphical apps but Win32 ones give me this issue.
So maybe if I install wine using apt properly then this will be fixed !?)

NoDiskNoFun
Posts: 1
Joined: Wed Mar 06, 2019 9:46 am

Re: Introducing Pi386

Wed Mar 06, 2019 10:14 am

Hey,

i tried to create my own environment on my Acer CB5 TegraK1 machine. When i nspawn inside your pi386 everthing runs just fine, but the nouveau driver on both sides are not the same version since i'm on archlinuxarm as host so 3D is not working. So i've build a new environment with archlinux32 but the package manager gives me a segmantation fault on update (inside nspawn). Since i also have a segfault with apt on my self build debian environment i wanted to ask you if you did any changes to your pi386 rootfs to avoid segfaults with package managers.

Thanks for your help and what is this amazing magic linux is able to do :o :o :o :D

mastercleff
Posts: 2
Joined: Tue Feb 12, 2019 8:28 pm

Re: Introducing Pi386

Tue Mar 12, 2019 5:06 pm

Amazing your pi386 project, thank you very much

Gess1t
Posts: 16
Joined: Tue Oct 02, 2018 8:24 pm

Re: Introducing Pi386

Thu Mar 21, 2019 4:55 pm

pi386 command isn't working "command not found", installed your package, what should i do? run qemu 386 manually?

EDIT : hey, got some news, now, it say "systemd-nspawn : command not found"
so i think i need to install another package.
BTW, if we also want to run x86 linux apps, should we just run qemu manually or modify a certain script?

EDIT2: For those who have the same problem, type the following:

Code: Select all

sudo apt-get install -y systemd-container
after installing this package, pi386 command will work properly.

Does anyone has an idea of how to create the 3G/1G kernel? when downloading the source kernel for 4.14.98, it was enabled by default for some reason, i wonder i there is anythings more to modify...

EDIT3: ok, i tried to compile the kernel but lot of folders are missing, took me 1h to build, for nothings
what should i do?

EDIT4: fixed on second try, but this won't work, and the famous warning:

Code: Select all

Warning: memory above 0x80000000 doesn't seem to be accessible.
Wine requires a 3G/1G user/kernel memory split to work properly.
wine: failed to map the shared user data: c0000018

Inf32den
Posts: 3
Joined: Sun Mar 31, 2019 5:09 pm

Re: Introducing Pi386

Sun Mar 31, 2019 7:34 pm

Hello!!! Can somebody help with this error on start game
Hello, Box!
start_main()
load config
start engine
createEngine()
engine start

set enviroment variable SDL_VIDEODRIVER to
SDL_Init error: No available video device
Engine Error

Updated libSDL. did'n t help
i works on exagear, but they f***d everyone... PLS help somebody (((

TheKolaNN
Posts: 4
Joined: Sun Mar 31, 2019 8:07 pm

Re: Introducing Pi386

Tue Apr 02, 2019 10:44 pm

code_exec wrote:
Fri Nov 09, 2018 5:15 pm
Pi386 has been released. Download the .deb file http://www.mediafire.com/file/6j1m9ppcc ... _1.0.1.deb

Download the custom kernel files (which use a 3G/1G memory split rather than the default 2G/2G) http://www.mediafire.com/file/dyho3vj3j ... nel_3g.zip

Once the zip file containing the kernel files has been downloaded, apply the new kernel with the following:

Code: Select all

unzip custom_kernel_3g.zip
sudo cp -rT custom_kernel /boot
Reboot your Pi for the new kernel to take effect.

Install Pi386 with the following command:

Code: Select all

sudo dpkg -i pi386_1.0.1.deb
sudo apt install -f
You can then run Pi386 with the following command:

Code: Select all

pi386
Once you're inside the chroot environment, you can install WINE with the following command:

Code: Select all

apt install wine
For me after sudo cp -rT custom_kernel /boot it starts to boot abnormally or not boot at all.
Can you please post for which Rhasbian version it is meant for? Or how to run it on the current version?

UPDATE: I want to achieve team speak server. Can someone help me with this? All instructions I find on the web uses Eltechs Exagear which is not achievable at the moment.

Camillerim2010
Posts: 1
Joined: Sun Apr 07, 2019 3:37 pm

Re: Introducing Pi386

Sun Apr 07, 2019 3:39 pm

i get an error when i try the custom kernel

Inf32den
Posts: 3
Joined: Sun Mar 31, 2019 5:09 pm

Re: Introducing Pi386

Mon Apr 08, 2019 1:31 am

Can somebody help with running x86 program on raspberry pi b3+ ?

User avatar
RET80
Posts: 22
Joined: Mon Dec 19, 2016 10:52 pm

Re: Introducing Pi386

Thu May 02, 2019 7:38 pm

I'm wondering if it would just be possible to have someone made an image of their OS with this already configured for distribution?
It would save a lot of time and frustration if someone already has this up and running and willing to distribute a clean OS image with the environment already properly set up?

Just my thoughts.
"Just because you invested your valuable time in compensating for a software designer’s madness, does not mean the software is good. It means you don’t value your own time as much as you should. "

code_exec
Posts: 271
Joined: Sun Sep 30, 2018 12:25 pm

Re: Introducing Pi386

Thu May 02, 2019 7:58 pm

Camillerim2010 wrote:
Sun Apr 07, 2019 3:39 pm
i get an error when i try the custom kernel
Don't bother with the months-old custom kernel linked in this post, I am going to revive the project at some point when I've got the time.
Ubuntu 18.04 LTS desktop images for the Raspberry Pi 3.

https://github.com/CodeExecution/Ubuntu-ARM64-RPi

TheKolaNN
Posts: 4
Joined: Sun Mar 31, 2019 8:07 pm

Re: Introducing Pi386

Sun May 05, 2019 7:03 pm

RET80 wrote:
Thu May 02, 2019 7:38 pm
I'm wondering if it would just be possible to have someone made an image of their OS with this already configured for distribution?
It would save a lot of time and frustration if someone already has this up and running and willing to distribute a clean OS image with the environment already properly set up?

Just my thoughts.
+1000

looxonline
Posts: 1
Joined: Sat Jun 15, 2019 12:32 pm

Re: Introducing Pi386

Sat Jun 15, 2019 12:40 pm

Hi,

I like the sound of this tool and I think it may fit my use case but I am interested on getting some feedback from those in the know before I go ahead and start implementing.

I have an apple TV that is running apps which require signing once every 7 days. Instead of me having to resign and then upload using a PC or a mac I would like to connect the apple TV permanently to my pi and run an automation which will sign the apps and side load them.

The tool which performs the side loading and signing is called Cydia Impactor but it is only compiled for x86 linux and it is GUI based. I figured that if I run a VM using this tool then I can run impactor within the VM and I even saw somewhere that someone got x11 graphical interfaces working using this tool so I figure I should have no problems with the GUI.

My concern is the USB interface to the apple TV. I'm not so sure how the pi will have drivers for it in raspbian but perhaps the x86 emu would. Does this tool have usb support within the emu?

I would test all of this but I'm away from home for a while so I thought I would throw this out there to see if there is someone in the know.

Phoenixbyrd
Posts: 1
Joined: Wed Jun 19, 2019 4:12 pm

Re: Introducing Pi386

Wed Jun 19, 2019 4:14 pm

Can you make a version for android, termux or linux on dex???

3d.tanny
Posts: 1
Joined: Mon Jul 08, 2019 5:14 pm

Re: Introducing Pi386

Mon Jul 08, 2019 5:17 pm

Any chance this project is still alive? I could really use WINE for a video conference app and this seems like it is exactly what I am missing to get that running.

Thank you!

MrPi3141
Posts: 9
Joined: Wed Jun 05, 2019 6:19 pm

Re: Introducing Pi386

Wed Jul 17, 2019 3:24 pm

I tried to install the custom kernel, but it bricks my Pi. :cry:
I might be a human, or I might not. When you're on the internet, you can't trust anyone... :geek:

MrPi3141
Posts: 9
Joined: Wed Jun 05, 2019 6:19 pm

Re: Introducing Pi386

Wed Jul 17, 2019 3:36 pm

jdonald wrote:
Tue Nov 20, 2018 11:23 pm
code_exec wrote:
Tue Nov 20, 2018 9:25 pm
please be aware that I won't be able to provide a new kernel for EVERY single Raspbian kernel release.
That's probably fine going forward. The real problem here appears to be that you distributed your custom kernel without its modules. Perhaps you could package those up before building a new one.
(when Pi386 with Ubuntu is released, you can just directly add the Eltechs WINE PPA and install from that).
Awesome, with your hint I found and configured the said PPA:

Code: Select all

    deb http://ppa.launchpad.net/eltechs/wine2g/ubuntu trusty main
(also requires sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F8DC2EE3DCC4D6E7).

And I can confirm it runs my hello.exe with the original Raspbian kernel. This is definitely superior to an installation requiring a modified kernel. Note I'm testing this with wine32:i386 installed directly on the Raspbian Stretch host via multiarch. That approach has its various tradeoffs vs using a chroot.
Is there a new kernel, and where do i find it??
Edit: How do I find Pi386 with Ubuntu?
I might be a human, or I might not. When you're on the internet, you can't trust anyone... :geek:

jdonald
Posts: 388
Joined: Fri Nov 03, 2017 4:36 pm

Re: Introducing Pi386

Sat Jul 27, 2019 6:16 am

Gess1t, TheKolaNN, Camillerim2010, and MrPi3141: Yeah, the only users who were able to get the Pi386 package working are those who had already built a 3G/1G kernel on their own.
RET80 wrote:
Thu May 02, 2019 7:38 pm
I'm wondering if it would just be possible to have someone made an image of their OS with this already configured for distribution?
Use this: https://sourceforge.net/projects/pi-qemu-wine/
mikerr built it a long time back. The image is for Stretch and will require a Pi 3B+ or older, but it's handy for trying out the experience.

Pi 4 support: novaspirit wrote an updated tutorial this past April at https://www.novaspirit.com/2019/04/15/run-x86-arm/ so someone could take that and make a new Pi 4 image. The article is accompanied by a handy walkthrough video.

looxonline: sounds like an interesting project with Apple TV. USB support on qemu isn’t necessarily reliable, and with realtime requirements the Pi’s performance limitations probably don’t help. Anybody taking on this project may consider first trying with VMware or VirtualBox where USB device support is more solid, then do the experiment of a Linux guest OS in qemu for Linux x86, then finally try directly with the Pi if it gets that far.

Diablo2_Fan
Posts: 1
Joined: Thu Aug 01, 2019 6:47 pm

Re: Introducing Pi386

Thu Aug 01, 2019 6:57 pm

Some of the Wine developers are working on a ARM version called Hangover:

https://github.com/AndreRH/hangover

MrPi3141
Posts: 9
Joined: Wed Jun 05, 2019 6:19 pm

Re: Introducing Pi386

Wed Aug 21, 2019 6:33 pm

jdonald wrote:
Sat Jul 27, 2019 6:16 am

The image is for Stretch
Where can I find a Stretch image?
I might be a human, or I might not. When you're on the internet, you can't trust anyone... :geek:

drgeoff
Posts: 9736
Joined: Wed Jan 25, 2012 6:39 pm

Re: Introducing Pi386

Wed Aug 21, 2019 6:57 pm

MrPi3141 wrote:
Wed Aug 21, 2019 6:33 pm
jdonald wrote:
Sat Jul 27, 2019 6:16 am

The image is for Stretch
Where can I find a Stretch image?
http://downloads.raspberrypi.org/raspbian/images/

Raspbian Buster was first released in June 2019. Stretch preceded Buster. Be aware that the Stretch image will not work on a RPi4B.

jdonald
Posts: 388
Joined: Fri Nov 03, 2017 4:36 pm

Re: Introducing Pi386

Wed Aug 21, 2019 7:20 pm

@MrPi3141 I meant mikerr's pi-qemu-wine image is Stretch. You don't need a second Stretch image to run it.

dqs105
Posts: 4
Joined: Thu Aug 08, 2019 9:51 am

Re: Introducing Pi386

Tue Aug 27, 2019 4:09 am

I installed an i386 version of debian through debootstrap, and get it running with chroot and qemu-i386-static. Then I installed wine normally.
In this way, I got wine running successfully once. Just once. :cry:
It somehow doesn't work now.
When I tried to execute wine, it shows "Bus error".
Reinstalling the i386 copy didn't work.
Does anyone have an idea? I'm running Buster on Pi 4B, which already have a 3G/1G kernel.

jdonald
Posts: 388
Joined: Fri Nov 03, 2017 4:36 pm

Re: Introducing Pi386

Sun Sep 01, 2019 2:36 pm

dqs105 wrote:
Tue Aug 27, 2019 4:09 am
Buster on Pi 4B, which already have a 3G/1G kernel.
Awesome, thanks for the heads-up. This makes the whole setup easier and fixes the biggest pain point with "Pi386".
When I tried to execute wine, it shows "Bus error".
My Wine system got into this mode yesterday, then everything was fixed just by rebooting.

I recall seeing something like this on mikerr's image a year ago. Would be curious to rootcause, but it seems difficult to debug unless someone can tell me how to run the armhf strace or gdb from inside the i386 chroot!

I'm also running an i386 Stretch chroot on Raspbian Buster, because trying to make an i386 Buster chroot resulted in segfaults on --second-stage. Furthermore PlayOnLinux doesn't appear to have a Wine build newer than 3.20. What configuration are you using?

dqs105
Posts: 4
Joined: Thu Aug 08, 2019 9:51 am

Re: Introducing Pi386

Mon Sep 02, 2019 6:32 am

jdonald wrote:
Sun Sep 01, 2019 2:36 pm
My Wine system got into this mode yesterday, then everything was fixed just by rebooting.
Rebooting doesn't work for me. Even reinstalling the whole system doesn't fix it...
I'm also running an i386 Stretch chroot on Raspbian Buster, because trying to make an i386 Buster chroot resulted in segfaults on --second-stage.
From the log, It is ldconfig which causes the problem. Running ldconfig in i386 Buster chroot directly also results in segfault.
Furthermore PlayOnLinux doesn't appear to have a Wine build newer than 3.20. What configuration are you using?
I just followed the directions on https://wiki.winehq.org/Debian , which is the official site of wine.

BTW, has anyone tried to build qemu 4.1.0 on Pi? Maybe upgrading qemu will solve this.

dqs105
Posts: 4
Joined: Thu Aug 08, 2019 9:51 am

Re: Introducing Pi386

Mon Sep 02, 2019 1:30 pm

Here, I have something interesting.
I used the same way I did setting up an i386 environment to set up an amd64 debian stretch environment.
Surprisingly, it worked!
Both 32-bit and 64-bit codes can be run with qemu-x86_64-static and qemu-i386-static.
Then, I installed wine.
Here comes the confusing part:
wine64 works(wine64-preloader renamed, wordpad comes with wine works), but wine(the 32-bit one) doesn't.(still, "Bus error")
However, when I tried to launch a 32-bit windows program(copied from my laptop), the program launched!!!
But, after a few seconds, the program died.

That's strange.

Here's something else I found:
1. /sbin/ldconfig is statically linked, while most other programs are dynamically linked to libc.
2. I made an amd64 buster chroot on my laptop, then switched to my Pi. The chroot works, except /sbin/ldconfig.
3. QEMU itself lacks much support.
4. Running programs in chroot environment has some limitations.

Return to “Other projects”