[OnePlus 9RT] Active-Hawk:
I installed LineageOS on my OnePlus 9RT using these instructions https://wiki.lineageos.org/devices/martini/install.

How do I go back to OxygenOS? I tried running the `install.bat`, however it throws a bunch of errors and now I'm stuck in the bootloader.

I am able to boot into recovery and fastboot does work.

###################
# Formatting data #
###################

F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11)

Info: Disable heap-based policy
Info: Debug level = 1
Info: Trim is disabled
Info: Set conf for android
Info: Enable Project quota
Info: Segments per section = 1
Info: Sections per zone = 1
Info: sector size = 512
Info: total sectors = 220999064 (107909 MB)
Info: zone aligned segment0 blkaddr: 512
Info: add quota type = 0 => 4
Info: add quota type = 1 => 5
Info: add quota type = 2 => 6
Info: format version with
""
[f2fs_init_sit_area: 640] Filling sit area at offset 0x00600000
[f2fs_init_nat_area: 674] Filling nat area at offset 0x00e00000
[f2fs_write_root_inode:1292] Writing root inode (hot node), 1ca00 0 200 at offset 0x00117248
[f2fs_write_default_quota:1368] Writing quota data, at offset 0001d001, 0001d002
[f2fs_write_qf_inode:1425] Writing quota inode (hot node), 1ca00 0 200 at offset 0x00117249
[f2fs_write_default_quota:1368] Writing quota data, at offset 0001d003, 0001d004
[f2fs_write_qf_inode:1425] Writing quota inode (hot node), 1ca00 0 200 at offset 0x00117250
[f2fs_write_default_quota:1368] Writing quota data, at offset 0001d005, 0001d006
[f2fs_write_qf_inode:1425] Writing quota inode (hot node), 1ca00 0 200 at offset 0x00117251
[f2fs_update_nat_root:1479] Writing nat root, at offset 0x00000e00
[f2fs_add_default_dentry_root:1676] Writing default dentry root, at offset 0x0001d000
Info: Overprovision ratio = 0.440%
Info: Overprovision segments = 237 (GC reserved = 234)
[f2fs_write_check_point_pack: 837] Writing main segments, cp at offset 0x00000200
[f2fs_write_check_point_pack: 993] Writing Segment summary for HOT/WARM/COLD_DATA, at offset 0x00000201
[f2fs_write_check_point_pack:1020] Writing Segment summary for HOT_NODE, at offset 0x00000202
[f2fs_write_check_point_pack:1032] Writing Segment summary for WARM_NODE, at offset 0x00000203
[f2fs_write_check_point_pack:1043] Writing Segment summary for COLD_NODE, at offset 0x00000204
[f2fs_write_check_point_pack:1051] Writing cp page2, at offset 0x00000205
[f2fs_write_check_point_pack:1071] Writing NAT bits pages, at offset 0x000003fe
[f2fs_write_check_point_pack:1092] Writing cp page 1 of checkpoint pack 2, at offset 0x00000400
[f2fs_write_check_point_pack:1111] Writing cp page 2 of checkpoint pack 2, at offset 0x00000405
[f2fs_write_super_block:1144] Writing super block, at offset 0x00000000
Info: format successful
Sending 'userdata' (97 KB) OKAY [ 0.005s]
Writing 'userdata' OKAY [ 0.013s]
Finished. Total time: 0.186s
mke2fs 1.46.6 (1-Feb-2023)
128-byte inodes cannot handle dates beyond 2038 and are deprecated
Creating filesystem with 4096 4k blocks and 4096 inodes

Allocating group tables: done
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done

Sending 'metadata' (44 KB) OKAY [ 2.487s]
Writing 'metadata' OKAY [ 0.247s]
Finished. Total time: 5.231s
#######################################################################
# Oxygen OS Flasher For OnePlus 9RT by abhinavgupta371 and HELLBOY017 #
# updated by Va1d3m #
#######################################################################
#################################
# Flashing firmware into slot A #
#################################
Setting current slot to 'a' OKAY [ 0.039s]
Finished. Total time: 0.042s
#################################
# Flashing bootloader img's #
#################################
Sending 'boot_a' (196608 KB) OKAY [ 5.309s]
Writing 'boot_a' OKAY [ 0.642s]
Sending 'boot_b' (196608 KB) OKAY [ 4.715s]
Writing 'boot_b' OKAY [ 0.615s]
Finished. Total time: 11.321s
Sending 'modem_a' (190204 KB) OKAY [ 4.576s]
Writing 'modem_a' OKAY [ 0.709s]
Sending 'modem_b' (190204 KB) OKAY [ 4.570s]
Writing 'modem_b' OKAY [ 0.560s]
Finished. Total time: 11.150s
Sending 'vendor_boot' (196608 KB) OKAY [ 4.677s]
Writing 'vendor_boot' OKAY [ 0.569s]
Finished. Total time: 5.266s
Sending 'vbmeta' (8 KB) OKAY [ 0.002s]
Writing 'vbmeta' OKAY [ 0.002s]
Finished. Total time: 0.024s
Sending 'vbmeta_system' (4 KB) OKAY [ 0.002s]
Writing 'vbmeta_system' OKAY [ 0.001s]
Finished. Total time: 0.025s
Sending 'vbmeta_vendor' (4 KB) OKAY [ 0.002s]
Writing 'vbmeta_vendor' OKAY [ 0.002s]
Finished. Total time: 0.025s
##########################
# Rebooting to fastbootd #
##########################
Rebooting into fastboot OKAY [ 0.003s]
< waiting for any device >
fastboot: error: Failed to boot into userspace fastboot; one or more components might be unbootable.
#################################
# Flashing fastbootd img's #
#################################
fastboot: error: Could not check if partition abl has slot all
fastboot: error: Could not check if partition aop has slot all
fastboot: error: Could not check if partition bluetooth has slot all
fastboot: error: Could not check if partition cpucp has slot all
fastboot: error: Could not check if partition devcfg has slot all
fastboot: error: Could not check if partition dsp has slot all
fastboot: error: Could not check if partition dtbo has slot all
fastboot: error: Could not check if partition engineering_cdt has slot all
fastboot: error: Could not check if partition featenabler has slot all
fastboot: error: Could not check if partition hyp has slot all
fastboot: error: Could not check if partition imagefv has slot all
fastboot: error: Could not check if partition keymaster has slot all
fastboot: error: Could not check if partition mdtp has slot all
fastboot: error: Could not check if partition mdtpsecapp has slot all
fastboot: error: Could not check if partition multiimgoem has slot all
fastboot: error: Could not check if partition oplus_sec has slot all
fastboot: error: Could not check if partition oplusstanvbk has slot all
fastboot: error: Could not check if partition qupfw has slot all
fastboot: error: Could not check if partition qweslicstore has slot all
fastboot: error: Could not check if partition shrm has slot all
fastboot: error: Could not check if partition splash has slot all
fastboot: error: Could not check if partition tz has slot all
fastboot: error: Could not check if partition uefisecapp has slot all
fastboot: error: Could not check if partition vm-bootsys has slot all
fastboot: error: Could not check if partition xbl has slot all
fastboot: error: Could not check if partition xbl_config has slot all
###############################
# Resizing logical partitions #
###############################
Deleting 'odm_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'odm_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_ext_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_ext_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'product_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'product_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'vendor_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'vendor_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_carrier_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_carrier_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_company_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_company_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_engineering_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_engineering_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_heytap_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_heytap_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_manifest_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_manifest_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_preload_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_preload_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_product_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_product_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_region_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_region_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_stock_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_stock_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'odm_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'odm_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_ext_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'system_ext_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'product_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'product_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'vendor_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'vendor_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_carrier_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_carrier_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_company_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_company_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_engineering_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_engineering_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_heytap_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_heytap_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_manifest_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_manifest_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_preload_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_preload_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_product_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_product_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_region_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_region_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_stock_a-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Deleting 'my_stock_b-cow' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'odm_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'odm_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'system_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'system_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'system_ext_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'system_ext_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'product_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'product_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'vendor_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'vendor_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_carrier_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_carrier_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_company_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_company_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_engineering_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_engineering_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_heytap_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_heytap_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_manifest_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_manifest_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_preload_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_preload_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_product_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_product_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_region_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_region_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_stock_a' FAILED (remote: 'unknown command')
fastboot: error: Command failed
Creating 'my_stock_b' FAILED (remote: 'unknown command')
fastboot: error: Command failed
###############################
# Flashing logical partitions #
###############################
Warning: skip copying vendor image avb footer (vendor partition size: 0, vendor image size: 635977728).
Sending 'vendor' (621072 KB) OKAY [ 14.967s]
Writing 'vendor' FAILED (remote: '(vendor_a) No such partition')
fastboot: error: Command failed
Sending sparse 'odm' 1/2 (786428 KB) OKAY [ 18.959s]
Writing 'odm' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Warning: skip copying system image avb footer (system partition size: 0, system image size: 778534912).
Sending 'system' (760288 KB) OKAY [ 18.319s]
Writing 'system' FAILED (remote: '(system_a) No such partition')
fastboot: error: Command failed
Sending sparse 'system_ext' 1/2 (786428 KB) FAILED (Error reading sparse file)
fastboot: error: Command failed
< waiting for any device >
Warning: skip copying product image avb footer (product partition size: 0, product image size: 72761344).
Sending 'product' (71056 KB) OKAY [ 1.709s]
Writing 'product' FAILED (remote: '(product_a) No such partition')
fastboot: error: Command failed
Warning: skip copying my_carrier image avb footer (my_carrier partition size: 0, my_carrier image size: 348160).
Sending 'my_carrier' (340 KB) OKAY [ 0.011s]
Writing 'my_carrier' FAILED (remote: '(my_carrier_a) No such partition')
fastboot: error: Command failed
Warning: skip copying my_company image avb footer (my_company partition size: 0, my_company image size: 348160).
Sending 'my_company' (340 KB) OKAY [ 0.011s]
Writing 'my_company' FAILED (remote: '(my_company_a) No such partition')
fastboot: error: Command failed
Warning: skip copying my_engineering image avb footer (my_engineering partition size: 0, my_engineering image size: 348160).
Sending 'my_engineering' (340 KB) OKAY [ 0.011s]
Writing 'my_engineering' FAILED (remote: '(my_engineering_a) No such partition')
fastboot: error: Command failed
Sending sparse 'my_heytap' 1/2 (786368 KB) OKAY [ 18.992s]
Writing 'my_heytap' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Warning: skip copying my_manifest image avb footer (my_manifest partition size: 0, my_manifest image size: 737280).
Sending 'my_manifest' (720 KB) OKAY [ 0.021s]
Writing 'my_manifest' FAILED (remote: '(my_manifest_a) No such partition')
fastboot: error: Command failed
Warning: skip copying my_preload image avb footer (my_preload partition size: 0, my_preload image size: 3604480).
Sending 'my_preload' (3520 KB) OKAY [ 0.098s]
Writing 'my_preload' FAILED (remote: '(my_preload_a) No such partition')
fastboot: error: Command failed
Warning: skip copying my_product image avb footer (my_product partition size: 0, my_product image size: 274059264).
Sending 'my_product' (267636 KB) OKAY [ 7.306s]
Writing 'my_product' FAILED (remote: '(my_product_a) No such partition')
fastboot: error: Command failed
Sending sparse 'my_region' 1/2 (782224 KB) OKAY [ 19.310s]
Writing 'my_region' FAILED (remote: 'Partition not found')
fastboot: error: Command failed
Sending sparse 'my_stock' 1/2 (764216 KB) FAILED (Error reading sparse file)
fastboot: error: Command failed
#######################
# Rebooting to system #
#######################
Rebooting FAILED (Write to device failed (Unknown error))
fastboot: error: Command failed