mirror of
https://github.com/palera1n/palera1n.git
synced 2026-12-06 16:24:54 +01:00
17 files changed
+384
-177
No files matched your search
+98
-140
@@ -12,6 +12,7 @@
|
||||
#include "../gen/payloads/yolo_t7001.h"
|
||||
#include "../gen/payloads/yolo_t8010.h"
|
||||
#include "../gen/payloads/yolo_t8011.h"
|
||||
#include "../gen/payloads/yolo_t8012.h"
|
||||
#include "../gen/payloads/yolo_t8015.h"
|
||||
|
||||
bool checkm8_find_device_configuration_for_cpid(
|
||||
@@ -64,160 +65,116 @@ bool checkm8_find_payload_configuration_for_cpid(
|
||||
bool foundMatchingConfiguration = true;
|
||||
switch (cpid) {
|
||||
case A11:
|
||||
config->tlbi = 0x1000004AC;
|
||||
config->nop_gadget = 0x10000A9C4;
|
||||
config->ret_gadget = 0x100000148;
|
||||
config->patch_addr = 0x10000624C;
|
||||
config->ttbr0_addr = 0x18000C000;
|
||||
config->func_gadget = 0x10000A9AC;
|
||||
config->write_ttbr0 = 0x10000045C;
|
||||
config->memcpy_addr = 0x10000E9D0;
|
||||
config->aes_crypto_cmd = 0x100009E9C;
|
||||
config->boot_tramp_end = 0x18001C000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180003A78;
|
||||
config->dfu_handle_request = 0x180008638;
|
||||
config->usb_core_do_transfer = 0x10000B9A8;
|
||||
config->dfu_handle_bus_reset = 0x180008668;
|
||||
config->insecure_memory_base = 0x18001C000;
|
||||
config->handle_interface_request = 0x10000BCCC;
|
||||
config->usb_create_string_descriptor = 0x10000AE80;
|
||||
config->usb_serial_number_string_descriptor = 0x1800008FA;
|
||||
config->insecure_memory_base = 0x18001C000;
|
||||
config->func_gadget = 0x10000a998;
|
||||
config->tlbi = 0x1000004AC;
|
||||
config->write_prim = 0x100009c48;
|
||||
config->arm_clean_invalidate_dcache_line = 0x1000004e4;
|
||||
config->arm_invalidate_icache = 0x1000004c0;
|
||||
config->enter_critical_section = 0x10000f958;
|
||||
config->exit_critical_section = 0x10000f9a0;
|
||||
config->write_ttbr0 = 0x10000045c;
|
||||
config->tlbi = 0x1000004ac;
|
||||
config->TTBR0_PATCH_BASE = 0x180020000;
|
||||
config->TTBR0_BASE = 0xc000;
|
||||
config->bootstrap_task_lr = 0x180015f88;
|
||||
config->payload_start_offset = 0x800;
|
||||
break;
|
||||
case T2:
|
||||
config->tlbi = 0x100000494;
|
||||
config->nop_gadget = 0x100008DB8;
|
||||
config->ret_gadget = 0x10000012C;
|
||||
config->patch_addr = 0x100004854;
|
||||
config->ttbr0_addr = 0x18000C000;
|
||||
config->func_gadget = 0x100008DA0;
|
||||
config->write_ttbr0 = 0x100000444;
|
||||
config->memcpy_addr = 0x10000EA30;
|
||||
config->aes_crypto_cmd = 0x1000082AC;
|
||||
config->boot_tramp_end = 0x18001C000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180003AF8;
|
||||
config->dfu_handle_request = 0x180008B08;
|
||||
config->usb_core_do_transfer = 0x10000BD20;
|
||||
config->dfu_handle_bus_reset = 0x180008B38;
|
||||
config->insecure_memory_base = 0x18001C000;
|
||||
config->handle_interface_request = 0x10000BFFC;
|
||||
config->usb_create_string_descriptor = 0x10000B1CC;
|
||||
config->usb_serial_number_string_descriptor = 0x18000082A;
|
||||
config->insecure_memory_base = 0x18001C000;
|
||||
config->func_gadget = 0x100008d8c;
|
||||
config->write_prim = 0x100008058;
|
||||
config->arm_clean_invalidate_dcache_line = 0x1000004cc;
|
||||
config->arm_invalidate_icache = 0x1000004a8;
|
||||
config->enter_critical_section = 0x10000f9b8;
|
||||
config->exit_critical_section = 0x10000fa00;
|
||||
config->write_ttbr0 = 0x100000444;
|
||||
config->tlbi = 0x100000494;
|
||||
config->TTBR0_PATCH_BASE = 0x180020000;
|
||||
config->TTBR0_BASE = 0xc000;
|
||||
config->bootstrap_task_lr = 0x180015f78;
|
||||
config->payload_start_offset = 0x800;
|
||||
break;
|
||||
case A10X:
|
||||
config->tlbi = 0x100000444;
|
||||
config->nop_gadget = 0x10000CD0C;
|
||||
config->ret_gadget = 0x100000148;
|
||||
config->patch_addr = 0x100007630;
|
||||
config->ttbr0_addr = 0x1800A0000;
|
||||
config->func_gadget = 0x10000CCEC;
|
||||
config->write_ttbr0 = 0x1000003F4;
|
||||
config->memcpy_addr = 0x100010950;
|
||||
config->aes_crypto_cmd = 0x10000C994;
|
||||
config->boot_tramp_end = 0x1800B0000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180083D28;
|
||||
config->dfu_handle_request = 0x180088A58;
|
||||
config->usb_core_do_transfer = 0x10000DD64;
|
||||
config->dfu_handle_bus_reset = 0x180088A88;
|
||||
config->insecure_memory_base = 0x1800B0000;
|
||||
config->handle_interface_request = 0x10000E08C;
|
||||
config->usb_create_string_descriptor = 0x10000D234;
|
||||
config->usb_serial_number_string_descriptor = 0x18008062A;
|
||||
config->insecure_memory_base = 0x1800B0000;
|
||||
config->func_gadget = 0x10000cce4;
|
||||
config->write_prim2 = 0x100001804;
|
||||
config->arm_clean_invalidate_dcache_line = 0x10000047c;
|
||||
config->arm_invalidate_icache = 0x100000458;
|
||||
config->enter_critical_section = 0x10000a658;
|
||||
config->exit_critical_section = 0x10000a6a0;
|
||||
config->write_ttbr0 = 0x1000003F4;
|
||||
config->tlbi = 0x100000444;
|
||||
config->TTBR0_PATCH_BASE = 0x1800b4000;
|
||||
config->TTBR0_BASE = 0xa0000;
|
||||
config->bootstrap_task_lr = 0x1800a9f88;
|
||||
config->payload_start_offset = 0x800;
|
||||
break;
|
||||
case A10:
|
||||
config->tlbi = 0x100000434;
|
||||
config->nop_gadget = 0x10000CC6C;
|
||||
config->ret_gadget = 0x10000015C;
|
||||
config->patch_addr = 0x1000074AC;
|
||||
config->ttbr0_addr = 0x1800A0000;
|
||||
config->func_gadget = 0x10000CC4C;
|
||||
config->write_ttbr0 = 0x1000003E4;
|
||||
config->memcpy_addr = 0x100010730;
|
||||
config->aes_crypto_cmd = 0x10000C8F4;
|
||||
config->boot_tramp_end = 0x1800B0000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180083CF8;
|
||||
config->dfu_handle_request = 0x180088B48;
|
||||
config->usb_core_do_transfer = 0x10000DC98;
|
||||
config->dfu_handle_bus_reset = 0x180088B78;
|
||||
config->insecure_memory_base = 0x1800B0000;
|
||||
config->handle_interface_request = 0x10000DFB8;
|
||||
config->usb_create_string_descriptor = 0x10000D150;
|
||||
config->usb_serial_number_string_descriptor = 0x1800805DA;
|
||||
config->insecure_memory_base = 0x1800B0000;
|
||||
config->func_gadget = 0x10000cc44;
|
||||
config->write_prim2 = 0x100001808;
|
||||
config->arm_clean_invalidate_dcache_line = 0x10000046c;
|
||||
config->arm_invalidate_icache = 0x100000448;
|
||||
config->enter_critical_section = 0x10000A4B8;
|
||||
config->exit_critical_section = 0x10000A514;
|
||||
config->write_ttbr0 = 0x1000003E4;
|
||||
config->tlbi = 0x100000434;
|
||||
config->TTBR0_PATCH_BASE = 0x1800b4000;
|
||||
config->TTBR0_BASE = 0xa0000;
|
||||
config->bootstrap_task_lr = 0x1800a9f68;
|
||||
config->payload_start_offset = 0x800;
|
||||
break;
|
||||
case A9X:
|
||||
config->tlbi = 0x100000404;
|
||||
config->nop_gadget = 0x10000CD60;
|
||||
config->ret_gadget = 0x100000118;
|
||||
config->patch_addr = 0x100007668;
|
||||
config->ttbr0_addr = 0x180050000;
|
||||
config->func_gadget = 0x10000CD40;
|
||||
config->write_ttbr0 = 0x1000003B4;
|
||||
config->memcpy_addr = 0x1000106F0;
|
||||
config->aes_crypto_cmd = 0x10000C9D4;
|
||||
config->boot_tramp_end = 0x180044000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180047578;
|
||||
config->dfu_handle_request = 0x18004C378;
|
||||
config->usb_core_do_transfer = 0x10000DDA4;
|
||||
config->dfu_handle_bus_reset = 0x18004C3A8;
|
||||
config->insecure_memory_base = 0x180000000;
|
||||
config->handle_interface_request = 0x10000E0B4;
|
||||
config->usb_create_string_descriptor = 0x10000D280;
|
||||
config->usb_serial_number_string_descriptor = 0x18004486A;
|
||||
config->insecure_memory_base = 0x180000000;
|
||||
config->func_gadget = 0x10000cd38;
|
||||
config->write_prim2 = 0x100001a78;
|
||||
config->arm_clean_invalidate_dcache_line = 0x10000043c;
|
||||
config->arm_invalidate_icache = 0x100000418;
|
||||
config->enter_critical_section = 0x100009b24;
|
||||
config->exit_critical_section = 0x100009b88;
|
||||
config->write_ttbr0 = 0x1000003b4;
|
||||
config->tlbi = 0x100000404;
|
||||
config->TTBR0_PATCH_BASE = 0x180004000;
|
||||
config->TTBR0_BASE = 0x50000;
|
||||
config->bootstrap_task_lr = 0x180059f58;
|
||||
config->payload_start_offset = 0x800;
|
||||
break;
|
||||
case A9:
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->func_gadget = 0x10000de0c;
|
||||
config->write_prim2 = 0x100001bc0;
|
||||
config->arm_clean_invalidate_dcache_line = 0x10000042c;
|
||||
config->arm_invalidate_icache = 0x100000408;
|
||||
config->bootstrap_task_lr = 0x1800c2f58;
|
||||
config->payload_start_offset = 0xc0;
|
||||
break;
|
||||
case A9_TSMC:
|
||||
case A9:
|
||||
config->patch_addr = 0x10000812C;
|
||||
config->ttbr0_addr = 0x1800C8000;
|
||||
config->memcpy_addr = 0x100011030;
|
||||
config->aes_crypto_cmd = 0x10000DAA0;
|
||||
config->boot_tramp_end = 0x1800E1000;
|
||||
config->ttbr0_vrom_off = 0x400;
|
||||
config->ttbr0_sram_off = 0x600;
|
||||
config->gUSBSerialNumber = 0x180087958;
|
||||
config->dfu_handle_request = 0x1800878F8;
|
||||
config->usb_core_do_transfer = 0x10000EE78;
|
||||
config->dfu_handle_bus_reset = 0x180087928;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->handle_interface_request = 0x10000F1B0;
|
||||
config->usb_create_string_descriptor = 0x10000E354;
|
||||
config->usb_serial_number_string_descriptor = 0x1800807DA;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->func_gadget = 0x10000de0c;
|
||||
config->write_prim2 = 0x100001bc0;
|
||||
config->arm_clean_invalidate_dcache_line = 0x10000042c;
|
||||
config->arm_invalidate_icache = 0x100000408;
|
||||
config->bootstrap_task_lr = 0x1800c2f58;
|
||||
config->payload_start_offset = 0xc0;
|
||||
break;
|
||||
case A8X:
|
||||
config->patch_addr = 0x10000AD04;
|
||||
config->memcpy_addr = 0x100013F10;
|
||||
config->aes_crypto_cmd = 0x100010A90;
|
||||
config->boot_tramp_end = 0x1800E1000;
|
||||
config->gUSBSerialNumber = 0x180088E48;
|
||||
config->dfu_handle_request = 0x180088DF8;
|
||||
config->usb_core_do_transfer = 0x100011BB4;
|
||||
config->dfu_handle_bus_reset = 0x180088E18;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->handle_interface_request = 0x100011EE4;
|
||||
config->usb_create_string_descriptor = 0x100011074;
|
||||
config->usb_serial_number_string_descriptor = 0x180080C2A;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->func_gadget = 0x100010df4;
|
||||
config->write_prim = 0x10000ed5c;
|
||||
config->arm_clean_invalidate_dcache_line = 0x100000448;
|
||||
config->arm_invalidate_icache = 0x100000424;
|
||||
config->bootstrap_task_lr = 0x1800c2f68;
|
||||
config->payload_start_offset = 0xc0;
|
||||
break;
|
||||
case A8:
|
||||
config->patch_addr = 0x100007E98;
|
||||
config->memcpy_addr = 0x100010E70;
|
||||
config->aes_crypto_cmd = 0x10000DA90;
|
||||
config->boot_tramp_end = 0x1800E1000;
|
||||
config->gUSBSerialNumber = 0x1800888C8;
|
||||
config->dfu_handle_request = 0x180088878;
|
||||
config->usb_core_do_transfer = 0x10000EBB4;
|
||||
config->dfu_handle_bus_reset = 0x180088898;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->handle_interface_request = 0x10000EEE4;
|
||||
config->usb_create_string_descriptor = 0x10000E074;
|
||||
config->usb_serial_number_string_descriptor = 0x18008062A;
|
||||
config->insecure_memory_base = 0x180380000;
|
||||
config->func_gadget = 0x10000ddf4;
|
||||
config->write_prim = 0x10000bc2c;
|
||||
config->arm_clean_invalidate_dcache_line = 0x100000448;
|
||||
config->arm_invalidate_icache = 0x100000424;
|
||||
config->bootstrap_task_lr = 0x1800c2f68;
|
||||
config->payload_start_offset = 0xc0;
|
||||
break;
|
||||
default:
|
||||
LOG_ERROR("CPID 0x%x is not supported!", cpid);
|
||||
@@ -228,6 +185,7 @@ bool checkm8_find_payload_configuration_for_cpid(
|
||||
|
||||
static const yolo_payload_t yolo_payloads[] = {
|
||||
{A11, payloads_yolo_t8015_bin, payloads_yolo_t8015_bin_len},
|
||||
{T2, payloads_yolo_t8012_bin, payloads_yolo_t8012_bin_len},
|
||||
{A10X, payloads_yolo_t8011_bin, payloads_yolo_t8011_bin_len},
|
||||
{A10, payloads_yolo_t8010_bin, payloads_yolo_t8010_bin_len},
|
||||
{A9_TSMC, payloads_yolo_s8003_bin, payloads_yolo_s8003_bin_len},
|
||||
|
||||
Reference in new issue
Block a user