top of page

$ sudo apt-get update 

$ sudo apt-get upgrade

 

compilar kernel 

sudo apt install git bc bison flex libssl-dev make

git clone --depth=1 --branch rpi-4.14.y https://github.com/raspberrypi/linux

 

cd linux

KERNEL=kernel7

make bcm2709_defconfig   

 

*dica talvez antes 

$ sudo apt install libncurses5-dev

$ make menuconfig

*dica copiar o nome do arquivo que esta em linux/arch/arm/configs/bcm2709_defconfig

 

$ nano .config

suprimir no arquivo 

# VMSPLIT_2G=y

habilitar no arquivo

VMSPLIT_3G=y

habilitar no arquivo (em alguns casos)

binfmt_misc=y

 

make -j4 zImage modules dtbs

sudo make modules_install

sudo cp arch/arm/boot/dts/*.dtb /boot/

sudo cp arch/arm/boot/dts/overlays/*.dtb* /boot/overlays/

sudo cp arch/arm/boot/dts/overlays/README /boot/overlays/

sudo cp arch/arm/boot/zImage /boot/$KERNEL.img

 

$ sudo apt-get update && apt-get install qemu qemu-user qemu-user-static binfmt-support debootstrap binutils

$ 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

 

$ sudo nano .bashrc

export LANGUAGE=”C” 

export LC_ALL=”C” 

export DISPLAY=:0

 

$ source ~/.bashrc

$ apt update

 

*Abra outro terminal. Agora, podemos criar um usuário. No meu vídeo, usei o mesmo usuário do sistema, o que exige que você conheça o uid desse usuário digitando “id” no terminal (não no terminal x86) e, no nosso caso, o "Pi" uid é "1000. Volte ao terminal principal.

 

$ adduser -uid 1000 pi

$ apt install leafpad

 

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

 

$ sudo nano .bashrc

export LANGUAGE=”C” 

export LC_ALL=”C” 

//export DISPLAY=:0l

export DISPLAY=:0

 

$ source ~/.bashrc

$ leafpad

 

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

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

apt install bzip2

tar -jxf PlayOnLinux-wine-3.9-linux-x86.pol --strip-components=1

mv ./3.9/bin/wine-preloader ./3.9/bin/wine-preloader.renamed

mv ./3.9 /opt/wine-3.9

echo PATH=/opt/wine-3.9/bin/:$PATH >> ~/.bashrc

source ./.bashrc

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

echo PATH=/opt/wine-3.9/bin/:$PATH >> ~/.bashrc

source ./.bashrc

winecfg

 

 

no ambiente principal

sudo apt-get install winetricks

© 2016 POR CLAYTON MATHEUS FENILI. ORGULHOSAMENTE CRIADO COM WIX.COM

  • Black LinkedIn Icon
bottom of page