After following the tutorial at https://www.novaspirit.com/2019/04/15/run-x86-arm/ with a few modifications (I used /x86/ as the chroot directory and installed wine via apt-get
), attempting to run winecfg
just returns "Bus Error"
This is being run on a Raspberry Pi 4. The error is so non-descriptive that I've not been able to get anywhere with my troubleshooting attempts.
Here's a complete list of every command I ran to install this:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get update && sudo apt-get install qemu qemu-user qemu-user-static binfmt-support debootstrap binutils
sudo mkdir /x86/
sudo debootstrap --foreign --arch i386 stretch /x86 http://ftp.us.debian.org/debian
sudo mount -t sysfs sys /x86/sys/
sudo mount -t proc proc /x86/proc/
sudo mount --bind /dev /x86/dev/
sudo mount --bind /dev/pts /x86/dev/pts/
sudo mount --bind /dev/shm /x86/dev/shm/
sudo cp /usr/bin/qemu-i386-static /x86/usr/bin/
sudo chroot /x86/ /debootstrap/debootstrap --second-stage
sudo chroot /x86/ /bin/su -l root
echo "export LANGUAGE='C'" >> .bashrc
echo "export LC_ALL='C'" >> .bashrc
echo "export DISPLAY=:0" >> .bashrc
source ~/.bashrc
apt update
adduser -uid 1000 pi
apt install leafpad
exit
sudo chroot /x86/ /bin/su -l pi
echo "export LANGUAGE='C'" >> .bashrc
echo "export LC_ALL='C'" >> .bashrc
echo "export DISPLAY=:01" >> .bashrc
source ~/.bashrc
exit
sudo chroot /x86/ /bin/su -l root
apt install wine
exit
sudo chroot /x86/ /bin/su -l pi
winecfg
When I try to run winecfg
or run things with wine, I just receive the error Bus Error
The qemu binaries from the Raspbian Buster repositories stem from an older source version with an unfortunate set of bugs.
One workaround is to modify your procedure to use
qemu-x86_64-static
andwine64
with an x86_64 chroot[1].Alternatively, you can build a newer version of
qemu-i386-user
from source. If you have a Debian Buster x86_64 system, the cross-compilation instructions are as follows:The referenced thread also contains a link to such a build for testing.
[1] https://www.raspberrypi.org/forums/viewtopic.php?f=41&t=226376&start=72