How to run x86 on arm


#1

Originally published at: https://www.novaspirit.com/2019/04/15/run-x86-arm/

This is a guide on how to run x86 on ARM including wine! I have put a lot of time and effort into creating this guide along with breaking down a few older tutorials to give you guys a up to date guide on running x86 on arm (i.e raspberry pi or tinkerboard). Hope you…


#2

Hi, thanks for the tutorial.
I’m having a problem after the step of compiling the Kernel. When I try to run the command: root@raspberrypi:/home/pi# debootstrap --foregin –-arch i386 stretch ./chroot-stretch-i386 http://ftp.us.debian.org/debian

I receive the following error:

E: unrecognized or invalid option --foregin

So I’ve tried change the parameter --foregin for --foreign and the error changed to:
No such script: ./chroot-stretch-i386

Could you help me, please.

Thanks in advance from Brazil.

Diego


#3

Hello Diegombejar,

I had the same problem along with other problems with the install. so far I have up and running. The only problem is that I am having trouble with installing software with wine.

below are the steps that I performed.

sudo apt-get update

sudo apt-get install -y qemu qemu-user qemu-user-static binfmt-support debootstrap binutils

sudo apt-get install -y debian-keyring
sudo apt-get install -y debian-archive-keyring

sudo debootstrap --foreign --arch i386 stretch ./chroot-stretch-i386 http://ftp.us.debian.org/debian

sudo mount -t sysfs sys ./chroot-stretch-i386/sys/
sudo mount -t proc proc ./chroot-stretch-i386/proc/
sudo mount --bind /dev ./chroot-stretch-i386/dev/
sudo mount --bind /dev/pts ./chroot-stretch-i386/dev/pts/
sudo mount --bind /dev/shm ./chroot-stretch-i386/dev/shm/

sudo cp /usr/bin/qemu-i386-static ./chroot-stretch-i386/usr/bin/

sudo chroot ./chroot-stretch-i386/ /debootstrap/debootstrap --second-stage

sudo chroot /home/pi/chroot-stretch-i386/ /bin/su -l root

add to .bashrc

export LANGUAGE=“C”
export LC_ALL=“C”
export DISPLAY=:0

source ~/.bashrc

apt update

add pi user to chroot

adduser -uid 1000 pi

installing leafpad

apt install leafpad

sudo chroot /home/pi/chroot-stretch-i386/ /bin/su -l pi

export LANGUAGE=“C”
export LC_ALL=“C”
export DISPLAY=:0

wget --no-check-certificate https://www.playonlinux.com/wine/binaries/linux-x86/PlayOnLinux-wine-3.9-linux-x86.pol