Skip to content

Instantly share code, notes, and snippets.

@tdrkDev
Last active April 25, 2022 21:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tdrkDev/b54865df156235f70e529474a8cb6833 to your computer and use it in GitHub Desktop.
Save tdrkDev/b54865df156235f70e529474a8cb6833 to your computer and use it in GitHub Desktop.
Installing Windows 10 on Meizu M6 Note

WARNING

At first I 'll say that Windows 10 will be booted in VM (VM will be running natively on phone).

Windows 10 is not usable for anything other than just having fun with the fact that it's booted on M6 note.

PHONE WILL LAG AND FREEZE A LOT WHILE WINDOWS IS RUNNING.

Guide

Requirements

  • Meizu M6 Note without sensitive data
  • more than 10GB of free space on device (not SD-card!)
  • 2-3 hours of time

Setting up Termux

Install Termux from GitHub and run these commands:

pkg upgrade
pkg install x11-repo
pkg install qemu-system-x86_64

Install VNC Viewer from Google Play (by RealVNC) and setup connection to 127.0.0.1 (left port field empty).

Downloading files

Download Windows 10 for AARCH64: GDrive (password: win10arm64)

Download QEMU AARCH64 EDK II EFI: GitHub

Extract Windows disk image and EDK2.

Open these files using Termux to put them to ~/downloads folder:

  • QEMU_EFI.img
  • QEMU_VARS.img
  • woa_17134.img

(LOS 14.1 ONLY) Tweak ROM to do not kill QEMU

adb root
adb shell "echo 1,2,3,4,5,6 > /sys/module/lowmemorykiller/parameters/minfree"
adb shell "echo 0 > /sys/module/lowmemorykiller/parameters/enable_adaptive_lmk"

Run QEMU

Run these commands in Termux:

cd ~/downloads
qemu-system-aarch64 \
  -name "Windows 10 on M6 Note" \
  -M virt -cpu cortex-a53 -smp 8 \
  --accel tcg,thread=multi -m 2048 \
  -pflash QEMU_EFI.img \
  -pflash QEMU_VARS.img \
  -device VGA -vnc :0 \
  -device nec-usb-xhci -device usb-kbd \
  -device usb-mouse -device usb-storage,drive=boot \
  -drive if=none,id=boot,file=woa_17134.img

Open VNC Viewer and connect to session what you've previously created.

Run Windows

When EFI shell appears, type exit, go to Boot Manager and start from QEMU ... HARDDRIVE ... 3.

Windows logo will appear, then it goes to recovery mode.

Press F8 (boot options) and run Windows without driver signature verification (Press 7).

Done! Now it'll take 30-40 minutes to see desktop! Enjoy!

Credits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment