[OnePlus 6 ROMs, Kernels, Recoveries, & Other Devel] WrathChild08:
Since it was hard to make it work on my OP6 I'm gonna post a more detailed tutorial for people that don't really understand what they're doing.

Also this is a up-to-date tutorial.

Note : This is for the OnePlus 6, if you want to install it on the 6T, take files for "fajita"

Download

- adb + Parted + Dism64 + WindowsPE

- OnePlus6 arm64 Drivers "enchilada.tar.gz" (DOWNLOAD)

- Windows 11 Arm64 (I'm using the 22000.675 version )

- EDK2 for Enchilada here (boot-enchilada.img)

- TWRP 3.6.1 (Just download the img file if you don't want dual boot) *Since we are using TWRP 3.6.1 recovery you need to be on Android 10 to make it boot

Now extract everything in a folder, I will use *D:\OP6\W10Tools* for this exemple, don't forget to modify with YOUR path.

Prepare USB

-Copy Windows 11 iso

-Copy Dism++64 folder

-Copy Enchilada drivers (Output folder in .tar.gz file)

-Create commands.txt and paste this in it

bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} testsigning on
bcdedit /store Y:\efi\microsoft\boot\bcd /set {Default} nointegritychecks on

Let's start

On phone, boot into TWRP recovery

On PC go into *D:\OP6\W10Tools\adb* and open CMD here (type CMD in the adress bar)

Copy text before the #

adb push "D:\OP6\W10Tools\parted" /sdcard/ # This copy parted in your phone storage, you can drag & drop "parted" file just after you type "adb push" so it gonna write the path automatically
adb shell #enter shell mode
cp /sdcard/parted /sbin/ && chmod 755 /sbin/parted #This makes a copy of parted from /sdcard/ to /sbin/ phone folder and modify the file permissions
umount /data && umount /sdcard # This unmount /data and /sdcard partitions
parted /dev/block/sda #starts parted

If you get umount: /data: Device or resource busy error :

On phone > TWRP menu > "Mount" and click on "Data" to uncheck it, reclick to check it and try again.

Creating the partitions

I'm using my own space since I have a 64GB OP6

You can find the commands for 128GB & 256GB easy on the internet.

rm 17 # removes partition 17 (userdata) got an error here, I did "Yes" and "Ignore"
mkpart esp fat32 6559MB 7000MB # creates "esp" partition in fat32 format. Size is 441MO ; if it asks to Ignore or Cancel > Press I to ignore.
mkpart pe fat32 7000MB 8000MB # creates "pe" partition in in fat32 format. Size is 1GB (This is where we copy WindowsPE)
mkpart win ntfs 8000MB 40GB # creates "win" partition in ntfs format. Size is 32GB FOR WINDOWS
mkpart userdata ext4 40GB 60.5GB #creates "userdata" partition in ext4 format. Size is 20GB FOR ANDROID
set 17 esp on # set bootflag on partition 17 that we created, it's gonna be usefull for Dism++ later
quit

THE LAST COMMAND IS VERY IMPORTANT IN ORDER TO BOOT !

Some "tips" :

You can type /print after each mkpart so you can see if you're creating the partitions

also /print free will show you the free space remaining, can be usefull

If you dont need Android you can just skip the last mkpart command and set the size of "win" with all remaining space

If you don't really understand what you're doing here, read again and again, check size of partitions and you will understand how to create your own.

Go back on your phone, still on TWRP menu go into "Reboot" and "Bootloader"

Go back on your CMD window and type fastboot boot twrp-3.6.1_11-0-enchilada.img

Formating Partitions

Once in TWRP menu, type adb shell

mkfs.fat -F32 -s1 /dev/block/sda17 #format partition 17 (esp)
mkfs.fat -F32 -s1 /dev/block/sda18 #format partition 18 (pe)
mkfs.ntfs -f /dev/block/sda19 #format partition 19 (win)
mke2fs -t ext4 /dev/block/sda20 #format partition 20 (userdata)
mount /dev/block/by-name/pe /mnt #mount partition "pe" to /mnt in phone storage
exit

Copy WindowsPE

On window file manager go into WinPE folder, for me it's *D:\OP6\W10Tools\WinPE* go back to your CMD prompt and type

adb push "D:\OP6\W10Tools\WinPE\boot" /mnt
adb push "D:\OP6\W10Tools\WinPE\efi" /mnt
adb push "D:\OP6\W10Tools\WinPE\sources" /mnt
adb push "D:\OP6\W10Tools\WinPE\bootmgr.efi" /mnt

Go back on phone > TWRP menu > Advanced > File Manager go into /mnt and check that the files we just copied are here, if it's okay you can go back and reboot to BOOTLOADER.

Booting WindowsPE

Now in bootloader, go into your CMD window and type

fastboot boot boot-enchilada.img

IF YOU DID NOT CREATE USERDATA PARTITION :

flash the UEFI Bootloader with command "fastboot flash boot boot-enchilada.img"

Once in UEFI main menu, press volume key - to select "UEFI OS on #3" and boot it.

You should now boot on WindowsPE, get a USB hub, keyboard and mouse and insert USB key.

Installing Windows 11

In CMD window, type

diskpart #launch diskpart utility tool
sel disk 0 # select disk0
sel par 17 #select partition17
assign letter=Y #Assign Y letter to ESP partition that we created earlier, will be usefull to enable testing mode later and for installing boot
exit

Click on "My computer" icon and go into your USB key > Dism++64 and launch dism++ARM64

if chinese go into "Config" folder of Dism64++ open "Config.ini" and edit "Locale" to "en"

-File > Apply Image

-Click on the first "Browse" button and select W11.iso on your USB key

-Click on the 2nd Browse button and check which disk has more space on it (For me it was E: )

-Ok

-Check ON "Add boot"

-Ok

If you have "Boot partition : none" click on "Advanced" and select Y partition that we mounted on startup, otherwise check that it's installing the boot partition on Partition 17

Wait for it to install (takes ~10mins or less)

-Click on "Open Session"

-On left go into "Drivers"

-Click "Add" and go into your "Output" folder of the USB Key

-Ok

Wait for drivers install complete

Now open commands.txt in USB Key and copy everything in it to paste it in CMD prompt of WindowsPE, first command should go auto, press enter to send the 2nd command line.

Also double check that the command is good, sometimes it pastes it twice.

Eveything should be good, you can type shutdown -s -t 0 to power off phone.

Booting on W11

NO DUAL BOOT (userdata partition NOT created)

You can disconnect everything from phone and power it on, select "Windows Boot Manager" in the main menu of EDK2 and it should boot. (can takes up to 10 mins) .. It may reboot after first boot, it's normal

DUALBOOTING (userdata partition created)

Power on the device and let it boot on Android to be sure everything works

Power off

Power + vol down to get into TWRP

check on wich slot you are (Reboot menu)

If you are on slot B copy : fastboot flash boot_a boot-enchilada.img

If you are on slot A copy : fastboot flash boot_b boot-enchilada.img

Click on bootloader to reboot to bootloader

Paste

Enter

fastboot reboot

You'll now boot on android, to boot on other slot, go into TWRP recovery "Reboot" menu and select the other slot than the one you are currently on

Click "Reboot system"

Now you can boot W11

To go back with android just select "UEFI Boot Menu" instead of "Windows Boot manager" , press vol+ to go at the very end of the list "Reboot to other slot"

If you have crashdump mode

Try again to boot W11 OR boot on WinPE, launch dism64++ and select your W11 installation, click on "Recovery" > "Bootmgr repair" and enter the command.txt file in USB key again to enable test mode and signature verifcation off and boot.. If still error, re-install W11.

Hope this helps a lot of people, enjoy your mini computer !