Hi @hattie97 welcome to the /e/ forum
I am basing my answer on the full error being:
ERROR: This package requires firmware from an Android 12 based stock ROM build. Please upgrade firmware and retry!
Perhaps you could share the details from (may vary slightly by device) Settings > About phone > Software information. Significant details are
- Baseband version
- Security software version.
It seems likely that you are not on the very latest “matching” [see below] Software revision; you could check from one of these sources
- (a quick search suggests that the
latestcorrect [see below] software revision might have been Aug/Sept 2023)
The error which I quoted is arising from line 2 of the unzipped ROM e-2.1-t-20240605406922-dev-gta4lwifi/META-INF/com/google/android/updater-script
assert(samsung.verify_trustzone("XF.5.1-01015-1") == "1" || abort("ERROR: This package requires firmware from an Android 12 based stock ROM build. Please upgrade firmware and retry!"););
A similar issue is recorded here Samsung Galaxy Tab S2 error 7 trustzone