Revert "x509: swrv: Update swrv to 1 for new k3 devices"
authorPraneeth Bajjuri <praneeth@ti.com>
Thu, 9 Dec 2021 04:47:04 +0000 (22:47 -0600)
committerPraneeth Bajjuri <praneeth@ti.com>
Thu, 9 Dec 2021 04:47:13 +0000 (22:47 -0600)
This reverts commit cdb1bd4d158f8348e5e9134d45a25f29a5218f7f.

Signed-off-by: Praneeth Bajjuri <praneeth@ti.com>
scripts/secure-binary-image.sh
scripts/x509-template.txt

index 7bfb15b4b3b96912e70bb94e1589be6392c1cdf2..36d5da1ac3500eac28a8cb094a1f6ef944ac0f6a 100755 (executable)
@@ -64,8 +64,6 @@ fi
 # Parse input options
 INPUT_FILE=$1
 OUTPUT_FILE=$2
-HS_SWRV=1
-
 
 # Get input file info
 HS_SHA_VALUE=$(openssl dgst -sha512 -hex $INPUT_FILE | sed -e "s/^.*= //g")
@@ -74,7 +72,6 @@ HS_IMAGE_SIZE=$(cat $INPUT_FILE | wc -c)
 # Parameters to get populated into the x509 template
 HS_SED_OPTS="-e s/TEST_IMAGE_LENGTH/${HS_IMAGE_SIZE}/ "
 HS_SED_OPTS+="-e s/TEST_IMAGE_SHA_VAL/${HS_SHA_VALUE}/"
-HS_SED_OPTS+="-e s/TEST_SWRV/${HS_SWRV}/"
 TMPX509=$(mktemp) || exit 1
 cat ${PREFIX}/scripts/x509-template.txt | sed ${HS_SED_OPTS} > ${TMPX509}
 
index 4cf37565a086d4b4f83cc38812f53a0b7de079db..cb3e5d17a0215f80eca771cf533c59462dc2f21d 100644 (file)
@@ -20,7 +20,7 @@ basicConstraints       = CA:true
 1.3.6.1.4.1.294.1.35   = ASN1:SEQUENCE:sysfw_image_load
 
 [ swrv ]
-swrv = INTEGER:TEST_SWRV
+swrv = INTEGER:0
 
 [ sysfw_image_integrity ]
 shaType                = OID:2.16.840.1.101.3.4.2.3