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
strace
to find out what system callswinecfg
is making when it raises SIGBUS, or what it just made if that happens because of a (guest) user-space operation.