From d2cf14fa316b1637bbf3e347f674d6bcdfaa1a43 Mon Sep 17 00:00:00 2001 From: Nikias Bassen Date: Fri, 5 Sep 2025 23:18:53 +0200 Subject: img4: Fix Ap,RestoreDCP2 -> rdc2 mapping The component is called `Ap,RestoreDCP2` and not `RestoreDCP2` --- src/img4.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/img4.c b/src/img4.c index 6735161..e1a3c61 100644 --- a/src/img4.c +++ b/src/img4.c @@ -300,6 +300,7 @@ static const char *_img4_get_component_tag(const char *compname) { "Ap,RestoreANE2", "ran2" }, { "Ap,RestoreANE3", "ran3" }, { "Ap,RestoreCIO", "rcio" }, + { "Ap,RestoreDCP2", "rdc2", }, { "Ap,RestoreTMU", "rtmu" }, { "Ap,Scorpius", "scpf" }, { "Ap,SystemVolumeCanonicalMetadata", "msys" }, @@ -356,7 +357,6 @@ static const char *_img4_get_component_tag(const char *compname) { "RecoveryMode", "recm" }, { "RestoreANS", "rans" }, { "RestoreDCP", "rdcp" }, - { "RestoreDCP2", "rdc2", }, { "RestoreDeviceTree", "rdtr" }, { "RestoreExtDCP", "recp" }, { "RestoreKernelCache", "rkrn" }, @@ -441,6 +441,8 @@ int img4_stitch_component(const char* component_name, const void* component_data memcpy((void*)tag, "rtmu", 4); } else if (strcmp(component_name, "Ap,RestoreCIO") == 0) { memcpy((void*)tag, "rcio", 4); + } else if (strcmp(component_name, "Ap,RestoreDCP2") == 0) { + memcpy((void*)tag, "rdc2", 4); } else if (strcmp(component_name, "Ap,DCP2") == 0) { memcpy((void*)tag, "dcp2", 4); } else if (strcmp(component_name, "Ap,RestoreSecureM3Firmware") == 0) { -- cgit v1.1-32-gdbae