From e049bbb622e0f4e149697a07e9722bf48dc2f73d Mon Sep 17 00:00:00 2001 From: Davide Toldo Date: Wed, 9 Oct 2019 13:24:28 +0200 Subject: [PATCH] Add fw file --- internalblue/fw/fw_0x617e.py | 43 ++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 internalblue/fw/fw_0x617e.py diff --git a/internalblue/fw/fw_0x617e.py b/internalblue/fw/fw_0x617e.py new file mode 100644 index 0000000..4e2b7b7 --- /dev/null +++ b/internalblue/fw/fw_0x617e.py @@ -0,0 +1,43 @@ +# fw_0x617e.py +# +# Generic firmware file in case we do not know something... +# +# Copyright (c) 2019 Jiska Classen. (MIT License) +# +# Permission is hereby granted, free of charge, to any person obtaining a copy of +# this software and associated documentation files (the "Software"), to deal in +# the Software without restriction, including without limitation the rights to +# use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +# the Software, and to permit persons to whom the Software is furnished to do so, +# subject to the following conditions: +# - The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# - The Software is provided "as is", without warranty of any kind, express or +# implied, including but not limited to the warranties of merchantability, +# fitness for a particular purpose and noninfringement. In no event shall the +# authors or copyright holders be liable for any claim, damages or other +# liability, whether in an action of contract, tort or otherwise, arising from, +# out of or in connection with the Software or the use or other dealings in the +# Software. + +from fw import MemorySection + +# Firmware Infos +# iPhone 6 +FW_NAME = "BCM4345B0" + + +# Memory Sections +# start, end, is_rom? is_ram? +SECTIONS = [ MemorySection(0x00000000, 0x000c07ff, True, False), # Internal ROM + MemorySection(0x000d0000, 0x000dffff, False, True), # Internal Memory Patchram Contents + MemorySection(0x00200400, 0x00201cff, False, True), # Internal Memory Cortex M3 + ] + +# Patchram +#PATCHRAM_TARGET_TABLE_ADDRESS = 0x310000 #TODO needs to be aligned read +#PATCHRAM_ENABLED_BITMAP_ADDRESS = 0x310204 +#PATCHRAM_VALUE_TABLE_ADDRESS = 0xd0000 +#PATCHRAM_NUMBER_OF_SLOTS = 128 +#PATCHRAM_ALIGNED = True +# only seems to work 4-byte aligned here ... \ No newline at end of file