How to run x86 on arm


Originally published at:

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…


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

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.



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

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