[PATCH 30/31] scripts: k3img: handle bootcore_opts

Sascha Hauer s.hauer at pengutronix.de
Wed May 28 04:45:42 PDT 2025


bootcore_opts needs another setting for AM62L. Make it configurable.

Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
 scripts/k3img | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/scripts/k3img b/scripts/k3img
index 2cb2a6b33bbdf6bcf2dedcd067dcc2ffd2d17d04..93bcfaea7688d038b2b95189fac764884dec4a72 100755
--- a/scripts/k3img
+++ b/scripts/k3img
@@ -2,7 +2,9 @@
 
 set -e
 
-TEMP=$(getopt -o '' --long 'sysfw:,sysfwdata:,dmdata:,out:,sbl:,key:,innerdata:' -n 'k3img' -- "$@")
+bootcore_opts=0
+
+TEMP=$(getopt -o '' --long 'sysfw:,sysfwdata:,dmdata:,out:,sbl:,key:,innerdata:,bootcore_opts:' -n 'k3img' -- "$@")
 
 if [ $? -ne 0 ]; then
 	echo 'Terminating...' >&2
@@ -54,6 +56,11 @@ while true; do
 		shift 2
 		continue
 	;;
+	'--bootcore_opts')
+		bootcore_opts="$2"
+		shift 2
+		continue
+	;;
 	'--')
 		shift
 		break
@@ -161,7 +168,7 @@ $dm_data
 [sbl]
 compType = INTEGER:1
 bootCore = INTEGER:16
-compOpts = INTEGER:0
+compOpts = INTEGER:$bootcore_opts
 destAddr = FORMAT:HEX,OCT:$sbl_addr
 compSize = INTEGER:$sblsize
 shaType  = OID:2.16.840.1.101.3.4.2.3

-- 
2.39.5




More information about the barebox mailing list