aboutsummaryrefslogtreecommitdiffstats
path: root/tools/modem-image-tool.c
Commit message (Collapse)AuthorAgeFilesLines
* last changespatches-todo/modem-firwmare-tocDenis 'GNUtoo' Carikli2020-10-061-14/+40
| | | | Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
* [WIP] Add tool to parse modem image partition tableDenis 'GNUtoo' Carikli2020-10-061-0/+133
TODO: * Rename all tools to libsamsung-ipc specific names to reduce the probability of conflicting names in packages * Ship the tool on Android too * Generate tables for prettier printing * Maybe rename the partition names * Maybe implement some partition auto-detection and use that for the devices where it's tested on when we have the assurance that all the modem firmwares for a given device have that pratition table? Or don't implement as it would make the implementation less robust if that partition table is corrupted and that the images are always at the same fixed location? * Add a way to check a partition table against known values * Test on all supported devices modem partitions * cleanup the code Devices support: - GT-I9300: OK PSIRAM 0x1000 [0xe000] EBL 0xf000 [0x19000] MAIN 0x28000 [0x9d7800] SECPACK 0x9ff800 [0x800] NV 0xa00000 [0x200000] - GT-N7100: OK PSIRAM 0x1000 [0xe000] EBL 0xf000 [0x19000] MAIN 0x28000 [0x9d7800] SECPACK 0x9ff800 [0x800] NV 0xa00000 [0x200000] - GT-I9250: no partition table Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>