Exemplo n.º 1
0
s1810_project_name = "SCG"

s1810_crypto = aes.AES(s1810_key, s1810_iv)

s1810_patch_info = PatchInfo(
    patch_box_code="5G0906259Q__0005",
    patch_block_index=2,
    patch_filename=internal_path("docs", "patch_1810.bin"),
    block_transfer_sizes_patch=s1810_block_transfer_sizes_patch,
)

s1810_flash_info = FlashInfo(
    base_addresses_s1810,
    block_lengths_s1810,
    sa2_script_s1810,
    block_names_frf_s1810,
    block_identifiers_simos,
    block_checksums_simos,
    ecu_control_module_identifier,
    software_version_location_simos,
    box_code_location_simos,
    block_transfer_sizes_simos,
    s1810_binfile_offsets,
    s1810_binfile_size,
    s1810_project_name,
    s1810_crypto,
    block_name_to_int,
    s1810_patch_info,
    checksum_block_location,
)
Exemplo n.º 2
0
}

dsg_binfile_size = 1572864

dsg_project_name = "F"

dsg_crypto = dsg.DSG()

# Conversion dict for block name to number
block_name_to_int = {"DRIVER": 2, "ASW": 3, "CAL": 4}

dsg_flash_info = FlashInfo(
    None,
    block_lengths_dsg,
    dsg_sa2_script,
    block_names_frf_dsg,
    block_identifiers_dsg,
    block_checksums_dsg,
    dsg_control_module_identifier,
    software_version_location_dsg,
    box_code_location_dsg,
    block_transfer_sizes_dsg,
    dsg_binfile_offsets,
    dsg_binfile_size,
    dsg_project_name,
    dsg_crypto,
    block_name_to_int,
    None,
    None,
)