Migration to using binman to generate bootloader
Subsystems (3)
cover Migration to using binman to generate bootloader
This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo that was plumbed into the U-Boot build flow to generate boot images for TI K3 platform devices. And instead, we move towards using binman that aligns better with the community standard build flow.
This series uses binman for all K3 platforms supported on U-Boot currently; both HS (High Security) and GP (General Purpose) devices.
Background on using k3-image-gen:
* TI K3 devices require a SYSFW (System Firmware) image consisting of a signed system firmware image and board configuration binaries, this is needed to bring up system firmware during U-Boot R5 SPL startup.
* Board configuration data contain board-specific information such as resource management, power management and security.
Series intends to use binman to take over the packaging and signing for the R5 bootloader images tiboot3.bin (and sysfw.itb, for non-combined boot flow) instead of k3-image-gen.
Series also packages the A72/A53 bootloader images (tispl.bin and u-boot.img) using ATF, OPTEE and DM (Device Manager)
Neha Malcom Francis (21):
ti: tools: config: Add board config class to generate config binaries
tools: sysfw: Add script for generating configuration blobs
tools: binman: add ti-secure entry type
ti: sysfw: tiboot3: Add support for packaging sysfw.itb and
tiboot3.bin
j721e: schema: yaml: Add general schema and J721E board config files
j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
j7200: yaml: Add J7200 board config files
j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
am65x: yaml: Add AM65x board config files
am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
config: am64x: Add board config for AM64x
am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img
Makefile: Add DM, SYSFW_PATH, SYSFW_HS_INNER_CERT_PATH to
BINMAN_INDIRS
j721s2: yaml: Add board config for J721S2
j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62: yaml: Add board config for AM62
am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62a: yaml: Add board config for AM62ax
am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
k3: tools: config.mk: Update makefile and remove scripts
doc: board: ti: Update documentation for binman flow
Makefile | 17 + arch/arm/dts/k3-am625-r5-sk.dts | 1 + arch/arm/dts/k3-am625-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 2 + arch/arm/dts/k3-am62a-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am62a7-r5-sk.dts | 1 + arch/arm/dts/k3-am62a7-sk.dts | 1 + arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 + arch/arm/dts/k3-am642-r5-evm.dts | 1 + arch/arm/dts/k3-am64x-binman.dtsi | 440 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 1 + .../dts/k3-am654-r5-base-board-u-boot.dtsi | 1 + arch/arm/dts/k3-am65x-binman.dtsi | 482 +++ arch/arm/dts/k3-j7200-binman.dtsi | 377 ++ .../k3-j7200-common-proc-board-u-boot.dtsi | 2 + arch/arm/dts/k3-j721e-binman.dtsi | 605 +++ .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 1 + arch/arm/dts/k3-j721s2-binman.dtsi | 377 ++ .../k3-j721s2-common-proc-board-u-boot.dtsi | 2 + .../dts/k3-j721s2-r5-common-proc-board.dts | 1 + arch/arm/mach-k3/config.mk | 102 +- board/ti/am62ax/Kconfig | 2 + board/ti/am62ax/config.yaml | 1553 ++++++++ board/ti/am62x/Kconfig | 2 + board/ti/am62x/config.yaml | 1490 ++++++++ board/ti/am64x/Kconfig | 2 + board/ti/am64x/config.yaml | 1805 +++++++++ board/ti/am65x/Kconfig | 2 + board/ti/am65x/config.yaml | 2469 ++++++++++++ board/ti/common/schema.yaml | 355 ++ board/ti/j721e/Kconfig | 4 + board/ti/j721e/config.yaml | 3162 ++++++++++++++++ board/ti/j721e/config_j7200.yaml | 2467 ++++++++++++ board/ti/j721s2/Kconfig | 2 + board/ti/j721s2/config.yaml | 3303 +++++++++++++++++ doc/board/ti/am62x_sk.rst | 22 +- doc/board/ti/j721e_evm.rst | 35 +- doc/board/ti/k3.rst | 50 +- include/binman_sym.h | 2 + scripts/Makefile.spl | 2 + test/py/requirements.txt | 1 + tools/binman/entries.rst | 15 + tools/binman/etype/ti_secure.py | 133 + tools/binman/ftest.py | 8 + tools/k3_fit_atf.sh | 123 - tools/k3_gen_x509_cert.sh | 262 -- tools/k3_sysfw_boardcfg_blob_creator.py | 116 + tools/tibcfg_gen.py | 117 + 49 files changed, 20146 insertions(+), 529 deletions(-) create mode 100644 arch/arm/dts/k3-am625-sk-binman.dtsi create mode 100644 arch/arm/dts/k3-am62a-sk-binman.dtsi create mode 100644 arch/arm/dts/k3-am64x-binman.dtsi create mode 100644 arch/arm/dts/k3-am65x-binman.dtsi create mode 100644 arch/arm/dts/k3-j7200-binman.dtsi create mode 100644 arch/arm/dts/k3-j721e-binman.dtsi create mode 100644 arch/arm/dts/k3-j721s2-binman.dtsi create mode 100644 board/ti/am62ax/config.yaml create mode 100644 board/ti/am62x/config.yaml create mode 100644 board/ti/am64x/config.yaml create mode 100644 board/ti/am65x/config.yaml create mode 100644 board/ti/common/schema.yaml create mode 100644 board/ti/j721e/config.yaml create mode 100644 board/ti/j721e/config_j7200.yaml create mode 100644 board/ti/j721s2/config.yaml create mode 100644 tools/binman/etype/ti_secure.py delete mode 100755 tools/k3_fit_atf.sh delete mode 100755 tools/k3_gen_x509_cert.sh create mode 100755 tools/k3_sysfw_boardcfg_blob_creator.py create mode 100644 tools/tibcfg_gen.py
Signature · 1 line
2.34.1
PATCH 1/21 ti: tools: config: Add board config class to generate config binaries
For validating config files and generating binary config artifacts, here board specific config class is added.
Add function cfgBinaryGen() in tibcfg_gen.py. It uses TIBoardConfig class to load given schema and config files in YAML, validate them and generate binaries.
--- test/py/requirements.txt | 1 + tools/tibcfg_gen.py | 117 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 tools/tibcfg_gen.py
test/py/requirements.txt +1 -0
@@ -5,6 +5,7 @@ extras==1.0.0 filelock==3.0.12 fixtures==3.0.0 importlib-metadata==0.23 +jsonschema==4.0.0 linecache2==1.0.0 more-itertools==7.2.0 packaging==19.2
tools/tibcfg_gen.py new file +117 -0
117 lines not on this page · raw message
Signature · 1 line
2.34.1
Re: [PATCH 01/21] ti: tools: config: Add board config class to generate config binaries
Hi Neha,
Quoted 8 lines · Neha Malcom Francis
For validating config files and generating binary config artifacts, here board specific config class is added.
Add function
cfgBinaryGen()intibcfg_gen.py. It uses TIBoardConfig class to load given schema and config files in YAML, validate them and generate binaries.
Quoted 8 lines
Signed-off-by Tarun Sahu <[email protected]>[[email protected]: prepared patch for upstreaming]Signed-off-by Neha Malcom Francis <[email protected]>--- test/py/requirements.txt | 1 + tools/tibcfg_gen.py | 117 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 118 insertions(+) create mode 100644 tools/tibcfg_gen.py
Please don't add new build scripts to U-Boot. This should go into binman.
Regards,
Simon
PATCH 2/21 tools: sysfw: Add script for generating configuration blobs
In reply to Neha Malcom FrancisCertain devices in the K3 architecture such as AM64x require board configuration binaries packed along with their descriptions into a sysfw_data binary. The final binary is required to be packed into the final system firmware images.
--- tools/k3_sysfw_boardcfg_blob_creator.py | 116 ++++++++++++++++++++++++ 1 file changed, 116 insertions(+) create mode 100755 tools/k3_sysfw_boardcfg_blob_creator.py
tools/k3_sysfw_boardcfg_blob_creator.py new file +116 -0
@@ -0,0 +1,116 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# TI Script for Board Configuration Packaging +# + +import argparse +import logging +import os +import struct +import tempfile +from shutil import copyfileobj +from shutil import rmtree + +BOARDCFG = 0xB +BOARDCFG_SEC = 0xD +BOARDCFG_PM = 0xE +BOARDCFG_RM = 0xC +BOARDCFG_NUM_ELEMS = 4 + +class BoardCfgDesc(): + """Get board config descriptor for a given file """ + + fmt = '<HHHBB' + index = 0 + offset = 0 + + def __init__(self, outfile, devgrp, + sw_rev = 0, + num_elems = BOARDCFG_NUM_ELEMS): + self.devgrp = devgrp + try: + self.fh = open(outfile, 'wb') + bytes = self.fh.write(struct.pack('<BB', num_elems, sw_rev)) + self.offset += bytes + self.offset += num_elems * struct.calcsize(self.fmt) + self.tmpdir = tempfile.mkdtemp() + descfile = os.path.join(self.tmpdir, "desc") + bcfgfile = os.path.join(self.tmpdir, "bcfg") + self.desc_fh = open(descfile, "wb+") + self.bcfg_fh = open(bcfgfile, "wb+") + except: + raise Exception("File Error") + + def add_boardcfg(self, bcfgtype, bcfgfile): + with open(bcfgfile, 'rb') as bfh: + bcfg = bfh.read() + size = len(bcfg) + desc = struct.pack(self.fmt, bcfgtype, self.offset, size, self.devgrp, 0) + self.desc_fh.write(desc) + self.bcfg_fh.write(bcfg) + logging.debug("Packing boardcfg data of size [%d bytes] from file %s", size, bcfgfile) + self.offset += size + self.index += 1 + + def finalize(self): + try: + self.desc_fh.seek(0) + self.bcfg_fh.seek(0) + copyfileobj(self.desc_fh, self.fh) + copyfileobj(self.bcfg_fh, self.fh) + except: + logging.error("**** Error in finalizing boardcfg file ****") + raise Exception("File Error") + finally: + self.fh.close() + self.desc_fh.close() + self.bcfg_fh.close() + rmtree(self.tmpdir) + +def create_sysfw_blob(args): + """Create a SYSFW data blob to be used as a component in combined image """ + + logging.info("#### Creating SYSFW data blob - %s ####", args.output_file.name) + logging.info("#### SW Rev = %d", args.sw_rev) + logging.info("#### Device Group = %d", args.devgrp) + + cnt = 0 + if args.boardcfg is not None: cnt = cnt + 1 + if args.boardcfg_sec is not None: cnt = cnt + 1 + if args.boardcfg_pm is not None: cnt = cnt + 1 + if args.boardcfg_rm is not None: cnt = cnt + 1 + + blob = BoardCfgDesc(args.output_file.name, args.devgrp, args.sw_rev, cnt) + if args.boardcfg is not None: + logging.info("#### Board config binary - %s", args.boardcfg.name) + blob.add_boardcfg(BOARDCFG, args.boardcfg.name) + if args.boardcfg_sec is not None: + logging.info("#### Board config security binary - %s", args.boardcfg_sec.name) + blob.add_boardcfg(BOARDCFG_SEC, args.boardcfg_sec.name) + if args.boardcfg_pm is not None: + logging.info("#### Board config PM binary - %s", args.boardcfg_pm.name) + blob.add_boardcfg(BOARDCFG_PM, args.boardcfg_pm.name) + if args.boardcfg_rm is not None: + logging.info("#### Board config RM binary - %s", args.boardcfg_rm.name) + blob.add_boardcfg(BOARDCFG_RM, args.boardcfg_rm.name) + + blob.finalize() + +# options -> device, sw_rev, boardcfg, security boardcfg, pm boardcfg, rm boardcfg, output file + +# parser for mandatory arguments +pp = argparse.ArgumentParser(add_help=False) +pp.add_argument('-l', '--log-level', type=str, default="INFO", choices=["INFO", "DEBUG"]) +pp.add_argument('--sw-rev', type=int, default=1) +pp.add_argument('-o', '--output-file', type=argparse.FileType('wb'), default="./sysfw-data.bin") +pp.add_argument('-d', '--devgrp', type=int, default=0) +pp.add_argument('-b', '--boardcfg', type=argparse.FileType('rb')) +pp.add_argument('-s', '--boardcfg-sec', type=argparse.FileType('rb')) +pp.add_argument('-p', '--boardcfg-pm', type=argparse.FileType('rb')) +pp.add_argument('-r', '--boardcfg-rm', type=argparse.FileType('rb')) + +args = pp.parse_args() +logging.getLogger().setLevel(args.log_level) +logging.debug(args) +create_sysfw_blob(args)
Signature · 1 line
2.34.1
Re: [PATCH 02/21] tools: sysfw: Add script for generating configuration blobs
Hi Simon,
Quoted 123 lines · Neha Malcom Francis
Certain devices in the K3 architecture such as AM64x require board configuration binaries packed along with their descriptions into a
sysfw_databinary. The final binary is required to be packed into the final system firmware images.Signed-off-by Neha Malcom Francis <[email protected]>--- tools/k3_sysfw_boardcfg_blob_creator.py | 116 ++++++++++++++++++++++++ 1 file changed, 116 insertions(+)create mode 100755
tools/k3_sysfw_boardcfg_blob_creator.pytools/k3_sysfw_boardcfg_blob_creator.py new file +106
-0@@ -0,0 +1,116 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# TI Script for Board Configuration Packaging +# + +import argparse +import logging +import os +import struct +import tempfile +from shutil import copyfileobj +from shutil import rmtree + +BOARDCFG = 0xB +BOARDCFG_SEC = 0xD +BOARDCFG_PM = 0xE +BOARDCFG_RM = 0xC +BOARDCFG_NUM_ELEMS = 4 + +class BoardCfgDesc(): + """Get board config descriptor for a given file """ + + fmt = '<HHHBB' + index = 0 + offset = 0 + + def __init__(self, outfile, devgrp, + sw_rev = 0, + num_elems = BOARDCFG_NUM_ELEMS): + self.devgrp = devgrp + try: + self.fh = open(outfile, 'wb') + bytes = self.fh.write(struct.pack('<BB', num_elems, sw_rev)) + self.offset += bytes + self.offset += num_elems * struct.calcsize(self.fmt) + self.tmpdir = tempfile.mkdtemp() + descfile = os.path.join(self.tmpdir, "desc") + bcfgfile = os.path.join(self.tmpdir, "bcfg") + self.desc_fh = open(descfile, "wb+") + self.bcfg_fh = open(bcfgfile, "wb+") + except: + raise Exception("File Error") + + def add_boardcfg(self, bcfgtype, bcfgfile): + with open(bcfgfile, 'rb') as bfh: + bcfg = bfh.read() + size = len(bcfg) + desc = struct.pack(self.fmt, bcfgtype, self.offset, size, self.devgrp, 0) + self.desc_fh.write(desc) + self.bcfg_fh.write(bcfg) + logging.debug("Packing boardcfg data of size [%d bytes] from file %s", size, bcfgfile) + self.offset += size + self.index += 1 + + def finalize(self): + try: + self.desc_fh.seek(0) + self.bcfg_fh.seek(0) + copyfileobj(self.desc_fh, self.fh) + copyfileobj(self.bcfg_fh, self.fh) + except: + logging.error("**** Error in finalizing boardcfg file ****") + raise Exception("File Error") + finally: + self.fh.close() + self.desc_fh.close() + self.bcfg_fh.close() + rmtree(self.tmpdir) + +def create_sysfw_blob(args): + """Create a SYSFW data blob to be used as a component in combined image """ + + logging.info("#### Creating SYSFW data blob - %s ####", args.output_file.name) + logging.info("#### SW Rev = %d", args.sw_rev) + logging.info("#### Device Group = %d", args.devgrp) + + cnt = 0 + if args.boardcfg is not None: cnt = cnt + 1 + if args.boardcfg_sec is not None: cnt = cnt + 1 + if args.boardcfg_pm is not None: cnt = cnt + 1 + if args.boardcfg_rm is not None: cnt = cnt + 1 + + blob = BoardCfgDesc(args.output_file.name, args.devgrp, args.sw_rev, cnt) + if args.boardcfg is not None: + logging.info("#### Board config binary - %s", args.boardcfg.name) + blob.add_boardcfg(BOARDCFG, args.boardcfg.name) + if args.boardcfg_sec is not None: + logging.info("#### Board config security binary - %s", args.boardcfg_sec.name) + blob.add_boardcfg(BOARDCFG_SEC, args.boardcfg_sec.name) + if args.boardcfg_pm is not None: + logging.info("#### Board config PM binary - %s", args.boardcfg_pm.name) + blob.add_boardcfg(BOARDCFG_PM, args.boardcfg_pm.name) + if args.boardcfg_rm is not None: + logging.info("#### Board config RM binary - %s", args.boardcfg_rm.name) + blob.add_boardcfg(BOARDCFG_RM, args.boardcfg_rm.name) + + blob.finalize() + +# options -> device, sw_rev, boardcfg, security boardcfg, pm boardcfg, rm boardcfg, output file + +# parser for mandatory arguments +pp = argparse.ArgumentParser(add_help=False) +pp.add_argument('-l', '--log-level', type=str, default="INFO", choices=["INFO", "DEBUG"]) +pp.add_argument('--sw-rev', type=int, default=1) +pp.add_argument('-o', '--output-file', type=argparse.FileType('wb'), default="./sysfw-data.bin")
tools/k3_sysfw_boardcfg_blob_creator.py line 116
Quoted 10 lines
tools/k3_sysfw_boardcfg_blob_creator.py new file +10
-0+pp.add_argument('-d', '--devgrp', type=int, default=0) +pp.add_argument('-b', '--boardcfg', type=argparse.FileType('rb')) +pp.add_argument('-s', '--boardcfg-sec', type=argparse.FileType('rb')) +pp.add_argument('-p', '--boardcfg-pm', type=argparse.FileType('rb')) +pp.add_argument('-r', '--boardcfg-rm', type=argparse.FileType('rb')) + +args = pp.parse_args() +logging.getLogger().setLevel(args.log_level) +logging.debug(args) +create_sysfw_blob(args)
Working on your reviews, I'm trying to get rid of all external scripts and putting them into btools/etypes which seems fit.
* ti_secure_path can be nicely put into a btool
* ti_boardcfg can also be an etype that outputs <type>-cfg.bins
But... I am not sure about this script above k3_sysfw_boardcfg_blob_creator.py. This script essentially does a more detailed packing of the <type>-cfg.bins that have been generated by binman. Since binman doesn't account for dependencies as of now; I am not sure how to go about it. Any pointers?
I could have something like
combined-sysfw-cfg.bin {
sysfw-boardcfg {
ti-boardcfg {
config = "board-cfg.yaml";
schema = "schema.yaml";
}
ti-boardcfg {
config = "sec-cfg.yaml";
...But is there any way to not have to implement this entry within entry coupled with packaging, which I think might get a little messy?
Signature · 2 lines
Thanking You Neha Malcom Francis
Re: [PATCH 02/21] tools: sysfw: Add script for generating configuration blobs
Hi Neha,
Quoted 161 lines · Neha Malcom Francis
Hi Simon,
Quoted 123 lines · Neha Malcom Francis
Certain devices in the K3 architecture such as AM64x require board configuration binaries packed along with their descriptions into a
sysfw_databinary. The final binary is required to be packed into the final system firmware images.Signed-off-by Neha Malcom Francis <[email protected]>--- tools/k3_sysfw_boardcfg_blob_creator.py | 116 ++++++++++++++++++++++++ 1 file changed, 116 insertions(+)create mode 100755
tools/k3_sysfw_boardcfg_blob_creator.pytools/k3_sysfw_boardcfg_blob_creator.py new file +106
-0@@ -0,0 +1,116 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# TI Script for Board Configuration Packaging +# + +import argparse +import logging +import os +import struct +import tempfile +from shutil import copyfileobj +from shutil import rmtree + +BOARDCFG = 0xB +BOARDCFG_SEC = 0xD +BOARDCFG_PM = 0xE +BOARDCFG_RM = 0xC +BOARDCFG_NUM_ELEMS = 4 + +class BoardCfgDesc(): + """Get board config descriptor for a given file """ + + fmt = '<HHHBB' + index = 0 + offset = 0 + + def __init__(self, outfile, devgrp, + sw_rev = 0, + num_elems = BOARDCFG_NUM_ELEMS): + self.devgrp = devgrp + try: + self.fh = open(outfile, 'wb') + bytes = self.fh.write(struct.pack('<BB', num_elems, sw_rev)) + self.offset += bytes + self.offset += num_elems * struct.calcsize(self.fmt) + self.tmpdir = tempfile.mkdtemp() + descfile = os.path.join(self.tmpdir, "desc") + bcfgfile = os.path.join(self.tmpdir, "bcfg") + self.desc_fh = open(descfile, "wb+") + self.bcfg_fh = open(bcfgfile, "wb+") + except: + raise Exception("File Error") + + def add_boardcfg(self, bcfgtype, bcfgfile): + with open(bcfgfile, 'rb') as bfh: + bcfg = bfh.read() + size = len(bcfg) + desc = struct.pack(self.fmt, bcfgtype, self.offset, size, self.devgrp, 0) + self.desc_fh.write(desc) + self.bcfg_fh.write(bcfg) + logging.debug("Packing boardcfg data of size [%d bytes] from file %s", size, bcfgfile) + self.offset += size + self.index += 1 + + def finalize(self): + try: + self.desc_fh.seek(0) + self.bcfg_fh.seek(0) + copyfileobj(self.desc_fh, self.fh) + copyfileobj(self.bcfg_fh, self.fh) + except: + logging.error("**** Error in finalizing boardcfg file ****") + raise Exception("File Error") + finally: + self.fh.close() + self.desc_fh.close() + self.bcfg_fh.close() + rmtree(self.tmpdir) + +def create_sysfw_blob(args): + """Create a SYSFW data blob to be used as a component in combined image """ + + logging.info("#### Creating SYSFW data blob - %s ####", args.output_file.name) + logging.info("#### SW Rev = %d", args.sw_rev) + logging.info("#### Device Group = %d", args.devgrp) + + cnt = 0 + if args.boardcfg is not None: cnt = cnt + 1 + if args.boardcfg_sec is not None: cnt = cnt + 1 + if args.boardcfg_pm is not None: cnt = cnt + 1 + if args.boardcfg_rm is not None: cnt = cnt + 1 + + blob = BoardCfgDesc(args.output_file.name, args.devgrp, args.sw_rev, cnt) + if args.boardcfg is not None: + logging.info("#### Board config binary - %s", args.boardcfg.name) + blob.add_boardcfg(BOARDCFG, args.boardcfg.name) + if args.boardcfg_sec is not None: + logging.info("#### Board config security binary - %s", args.boardcfg_sec.name) + blob.add_boardcfg(BOARDCFG_SEC, args.boardcfg_sec.name) + if args.boardcfg_pm is not None: + logging.info("#### Board config PM binary - %s", args.boardcfg_pm.name) + blob.add_boardcfg(BOARDCFG_PM, args.boardcfg_pm.name) + if args.boardcfg_rm is not None: + logging.info("#### Board config RM binary - %s", args.boardcfg_rm.name) + blob.add_boardcfg(BOARDCFG_RM, args.boardcfg_rm.name) + + blob.finalize() + +# options -> device, sw_rev, boardcfg, security boardcfg, pm boardcfg, rm boardcfg, output file + +# parser for mandatory arguments +pp = argparse.ArgumentParser(add_help=False) +pp.add_argument('-l', '--log-level', type=str, default="INFO", choices=["INFO", "DEBUG"]) +pp.add_argument('--sw-rev', type=int, default=1) +pp.add_argument('-o', '--output-file', type=argparse.FileType('wb'), default="./sysfw-data.bin")tools/k3_sysfw_boardcfg_blob_creator.py line 116
Quoted 10 lines
tools/k3_sysfw_boardcfg_blob_creator.py new file +10
-0+pp.add_argument('-d', '--devgrp', type=int, default=0) +pp.add_argument('-b', '--boardcfg', type=argparse.FileType('rb')) +pp.add_argument('-s', '--boardcfg-sec', type=argparse.FileType('rb')) +pp.add_argument('-p', '--boardcfg-pm', type=argparse.FileType('rb')) +pp.add_argument('-r', '--boardcfg-rm', type=argparse.FileType('rb')) + +args = pp.parse_args() +logging.getLogger().setLevel(args.log_level) +logging.debug(args) +create_sysfw_blob(args)Working on your reviews, I'm trying to get rid of all external scripts and putting them into btools/etypes which seems fit.
*ti_secure_pathcan be nicely put into a btool
*ti_boardcfgcan also be an etype that outputs <type>-cfg.binsBut... I am not sure about this script above
k3_sysfw_boardcfg_blob_creator.py. This script essentially does a more detailed packing of the <type>-cfg.bins that have been generated by binman. Since binman doesn't account for dependencies as of now; I am not sure how to go about it. Any pointers?I could have something like
combined-sysfw-cfg.bin { sysfw-boardcfg { ti-boardcfg { config = "board-cfg.yaml"; schema = "schema.yaml"; } ti-boardcfg { config = "sec-cfg.yaml"; ...
Quoted 2 lines
But is there any way to not have to implement this entry within entry coupled with packaging, which I think might get a little messy?
Yes you can have entries within entries and it should work fine. See
[1] for an example of that. It is a correct description of how the image is put together, so I don't really see a better way.
BTW perhaps 'config' and 'schema' are a bit too generic, but we can worry about that later. There is no schema validation for binman at present but I suspect I'll be looking at later in the year.
Regarding accounting for dependencies, it is possible to put a 'filename' property in a section such that binman outputs the contents of the section to a separate file.
Regards,
SImon
[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Re: [PATCH 02/21] tools: sysfw: Add script for generating configuration blobs
Hi Simon,
Quoted 175 lines · Simon Glass
Hi Neha,
Quoted 161 lines · Neha Malcom Francis
Hi Simon,
Quoted 123 lines · Neha Malcom Francis
Certain devices in the K3 architecture such as AM64x require board configuration binaries packed along with their descriptions into a
sysfw_databinary. The final binary is required to be packed into the final system firmware images.Signed-off-by Neha Malcom Francis <[email protected]>--- tools/k3_sysfw_boardcfg_blob_creator.py | 116 ++++++++++++++++++++++++ 1 file changed, 116 insertions(+)create mode 100755
tools/k3_sysfw_boardcfg_blob_creator.pytools/k3_sysfw_boardcfg_blob_creator.py new file +106
-0@@ -0,0 +1,116 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# TI Script for Board Configuration Packaging +# + +import argparse +import logging +import os +import struct +import tempfile +from shutil import copyfileobj +from shutil import rmtree + +BOARDCFG = 0xB +BOARDCFG_SEC = 0xD +BOARDCFG_PM = 0xE +BOARDCFG_RM = 0xC +BOARDCFG_NUM_ELEMS = 4 + +class BoardCfgDesc(): + """Get board config descriptor for a given file """ + + fmt = '<HHHBB' + index = 0 + offset = 0 + + def __init__(self, outfile, devgrp, + sw_rev = 0, + num_elems = BOARDCFG_NUM_ELEMS): + self.devgrp = devgrp + try: + self.fh = open(outfile, 'wb') + bytes = self.fh.write(struct.pack('<BB', num_elems, sw_rev)) + self.offset += bytes + self.offset += num_elems * struct.calcsize(self.fmt) + self.tmpdir = tempfile.mkdtemp() + descfile = os.path.join(self.tmpdir, "desc") + bcfgfile = os.path.join(self.tmpdir, "bcfg") + self.desc_fh = open(descfile, "wb+") + self.bcfg_fh = open(bcfgfile, "wb+") + except: + raise Exception("File Error") + + def add_boardcfg(self, bcfgtype, bcfgfile): + with open(bcfgfile, 'rb') as bfh: + bcfg = bfh.read() + size = len(bcfg) + desc = struct.pack(self.fmt, bcfgtype, self.offset, size, self.devgrp, 0) + self.desc_fh.write(desc) + self.bcfg_fh.write(bcfg) + logging.debug("Packing boardcfg data of size [%d bytes] from file %s", size, bcfgfile) + self.offset += size + self.index += 1 + + def finalize(self): + try: + self.desc_fh.seek(0) + self.bcfg_fh.seek(0) + copyfileobj(self.desc_fh, self.fh) + copyfileobj(self.bcfg_fh, self.fh) + except: + logging.error("**** Error in finalizing boardcfg file ****") + raise Exception("File Error") + finally: + self.fh.close() + self.desc_fh.close() + self.bcfg_fh.close() + rmtree(self.tmpdir) + +def create_sysfw_blob(args): + """Create a SYSFW data blob to be used as a component in combined image """ + + logging.info("#### Creating SYSFW data blob - %s ####", args.output_file.name) + logging.info("#### SW Rev = %d", args.sw_rev) + logging.info("#### Device Group = %d", args.devgrp) + + cnt = 0 + if args.boardcfg is not None: cnt = cnt + 1 + if args.boardcfg_sec is not None: cnt = cnt + 1 + if args.boardcfg_pm is not None: cnt = cnt + 1 + if args.boardcfg_rm is not None: cnt = cnt + 1 + + blob = BoardCfgDesc(args.output_file.name, args.devgrp, args.sw_rev, cnt) + if args.boardcfg is not None: + logging.info("#### Board config binary - %s", args.boardcfg.name) + blob.add_boardcfg(BOARDCFG, args.boardcfg.name) + if args.boardcfg_sec is not None: + logging.info("#### Board config security binary - %s", args.boardcfg_sec.name) + blob.add_boardcfg(BOARDCFG_SEC, args.boardcfg_sec.name) + if args.boardcfg_pm is not None: + logging.info("#### Board config PM binary - %s", args.boardcfg_pm.name) + blob.add_boardcfg(BOARDCFG_PM, args.boardcfg_pm.name) + if args.boardcfg_rm is not None: + logging.info("#### Board config RM binary - %s", args.boardcfg_rm.name) + blob.add_boardcfg(BOARDCFG_RM, args.boardcfg_rm.name) + + blob.finalize() + +# options -> device, sw_rev, boardcfg, security boardcfg, pm boardcfg, rm boardcfg, output file + +# parser for mandatory arguments +pp = argparse.ArgumentParser(add_help=False) +pp.add_argument('-l', '--log-level', type=str, default="INFO", choices=["INFO", "DEBUG"]) +pp.add_argument('--sw-rev', type=int, default=1) +pp.add_argument('-o', '--output-file', type=argparse.FileType('wb'), default="./sysfw-data.bin")tools/k3_sysfw_boardcfg_blob_creator.py line 116
Quoted 10 lines
tools/k3_sysfw_boardcfg_blob_creator.py new file +10
-0+pp.add_argument('-d', '--devgrp', type=int, default=0) +pp.add_argument('-b', '--boardcfg', type=argparse.FileType('rb')) +pp.add_argument('-s', '--boardcfg-sec', type=argparse.FileType('rb')) +pp.add_argument('-p', '--boardcfg-pm', type=argparse.FileType('rb')) +pp.add_argument('-r', '--boardcfg-rm', type=argparse.FileType('rb')) + +args = pp.parse_args() +logging.getLogger().setLevel(args.log_level) +logging.debug(args) +create_sysfw_blob(args)Working on your reviews, I'm trying to get rid of all external scripts and putting them into btools/etypes which seems fit.
*ti_secure_pathcan be nicely put into a btool
*ti_boardcfgcan also be an etype that outputs <type>-cfg.binsBut... I am not sure about this script above
k3_sysfw_boardcfg_blob_creator.py. This script essentially does a more detailed packing of the <type>-cfg.bins that have been generated by binman. Since binman doesn't account for dependencies as of now; I am not sure how to go about it. Any pointers?I could have something like
combined-sysfw-cfg.bin { sysfw-boardcfg { ti-boardcfg { config = "board-cfg.yaml"; schema = "schema.yaml"; } ti-boardcfg { config = "sec-cfg.yaml"; ...Quoted 2 lines
But is there any way to not have to implement this entry within entry coupled with packaging, which I think might get a little messy?
Yes you can have entries within entries and it should work fine. See
[1] for an example of that. It is a correct description of how the image is put together, so I don't really see a better way.BTW perhaps 'config' and 'schema' are a bit too generic, but we can worry about that later. There is no schema validation for binman at present but I suspect I'll be looking at later in the year.
Quoted 8 lines
Regarding accounting for dependencies, it is possible to put a 'filename' property in a section such that binman outputs the contents of the section to a separate file.
Regards,
SImon[1] https://patchwork.ozlabs.org/project/uboot/patch/[email protected]/
Thanks for the help! The referenced patch shows a good guideline of how to enable this. I am currently trying to implement this, will reach out in case any confusion arises.
Signature · 2 lines
Thanking You Neha Malcom Francis
PATCH 3/21 tools: binman: add ti-secure entry type
In reply to Neha Malcom FrancisThis entry type is used to create a secured binary for use with K3 High Security (HS) devices.
This allows us to no longer depend on k3_fit_atf.sh for A53 SPL and u-boot image generation even for HS devices.
We still depend on the availability of an external tool provided by the TI_SECURE_DEV_PKG environment variable to secure the binaries.
[[email protected]: enabled signing for all K3 boot binaries for all different boot flows]
--- Makefile | 1 + tools/binman/entries.rst | 15 ++++ tools/binman/etype/ti_secure.py | 133 ++++++++++++++++++++++++++++++++ tools/binman/ftest.py | 8 ++ 4 files changed, 157 insertions(+) create mode 100644 tools/binman/etype/ti_secure.py
Makefile +1 -0
@@ -1329,6 +1329,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ $(foreach f,$(BINMAN_INDIRS),-I $(f)) \ -a atf-bl31-path=${BL31} \ -a tee-os-path=${TEE} \ + -a ti-secure-dev-pkg-path=${TI_SECURE_DEV_PKG} \ -a opensbi-path=${OPENSBI} \ -a default-dt=$(default_dt) \ -a scp-path=$(SCP) \
tools/binman/entries.rst +15 -0
@@ -2361,3 +2361,18 @@ may be used instead. +Entry: ti-secure: Entry containing a Secured binary blob +-------------------------------------------------------- + +Properties / Entry arguments: + - filename: Filename of file to sign and read into entry + +Texas Instruments High-Security (HS) devices need secure binaries to be +provided. This entry uses an external tool to append a x509 certificate +to the file provided in the filename property and places it in the entry. + +The path for the external tool is fetched from TI_SECURE_DEV_PKG +environment variable. + + +
tools/binman/etype/ti_secure.py new file +133 -0
133 lines not on this page · raw message
tools/binman/ftest.py +8 -0
@@ -93,6 +93,7 @@ SCP_DATA = b'scp' TEST_FDT1_DATA = b'fdt1' TEST_FDT2_DATA = b'test-fdt2' ENV_DATA = b'var1=1\nvar2="2"' +TI_UNSECURE_DATA = b'this is some unsecure data' PRE_LOAD_MAGIC = b'UBSH' PRE_LOAD_VERSION = 0x11223344.to_bytes(4, 'big') PRE_LOAD_HDR_SIZE = 0x00001000.to_bytes(4, 'big')
@@ -213,6 +214,7 @@ class TestFunctional(unittest.TestCase): TEST_FDT2_DATA) TestFunctional._MakeInputFile('env.txt', ENV_DATA) + TestFunctional._MakeInputFile('ti_unsecure.bin', TI_UNSECURE_DATA) # ELF file with two sections in different parts of memory, used for both # ATF and OP_TEE
@@ -5545,6 +5547,12 @@ fdt fdtmap Extract the devicetree blob from the fdtmap err) + def testPackTisecure(self): + """Test that an image with a TI secured binary can be created""" + data = self._DoReadFile('187_ti_secure.dts') + securedata = tools.ReadFile('ti_unsecure.bin_HS') + self.assertEquals(data, securedata) + def testFitSplitElfMissing(self): """Test an split-elf FIT with a missing ELF file""" if not elf.ELF_TOOLS:
Signature · 1 line
2.34.1
Re: [PATCH 03/21] tools: binman: add ti-secure entry type
Hi Neha,
\
Quoted 14 lines · Neha Malcom Francis
This entry type is used to create a secured binary for use with K3 High Security (HS) devices.
This allows us to no longer depend on
k3_fit_atf.shfor A53 SPL and u-boot image generation even for HS devices.We still depend on the availability of an external tool provided by the
TI_SECURE_DEV_PKGenvironment variable to secure the binaries.Signed-off-by Roger Quadros <[email protected]>[[email protected]: enabled signing for all K3 boot binaries for all different boot flows]
Quoted 9 lines
Signed-off-by Neha Malcom Francis <[email protected]>--- Makefile | 1 + tools/binman/entries.rst | 15 ++++ tools/binman/etype/ti_secure.py | 133 ++++++++++++++++++++++++++++++++ tools/binman/ftest.py | 8 ++ 4 files changed, 157 insertions(+) create mode 100644 tools/binman/etype/ti_secure.py
Sorry, I have rather a lot of comments, so will do a round of just the major ones for this version.
Makefile cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ · line 1332
Quoted 9 lines
Makefile +1
-0@@ -1329,6 +1329,7 @@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ $(foreach f,$(BINMAN_INDIRS),-I $(f)) \ -a atf-bl31-path=${BL31} \ -a tee-os-path=${TEE} \ + -a ti-secure-dev-pkg-path=${TI_SECURE_DEV_PKG} \
Cam we use ti-secure-path ? The 'dev' and 'pkg' seem to be noise.
Quoted 37 lines
Makefile +0
-0-a opensbi-path=${OPENSBI} \ -a default-dt=$(default_dt) \ -a scp-path=$(SCP) \tools/binman/entries.rst +15
-0@@ -2361,3 +2361,18 @@ may be used instead. +Entry: ti-secure: Entry containing a Secured binary blob +-------------------------------------------------------- + +Properties / Entry arguments: + - filename: Filename of file to sign and read into entry + +Texas Instruments High-Security (HS) devices need secure binaries to be +provided. This entry uses an external tool to append a x509 certificate +to the file provided in the filename property and places it in the entry. + +The path for the external tool is fetched from TI_SECURE_DEV_PKG +environment variable. + + +tools/binman/etype/ti_secure.py new file +5
-0@@ -0,0 +1,133 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (c) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# + +# Support for signed binaries for TI K3 platform
tools/binman/etype/ti_secure.py line 15
Quoted 10 lines
tools/binman/etype/ti_secure.py new file +10
-0+ +from collections import OrderedDict +import os + +from binman.entry import Entry, EntryArg + +from dtoc import fdt_util +from patman import tools + +class Entry_ti_secure(Entry):
So shouldn't this be Entry_blob ?
tools/binman/etype/ti_secure.py line 17
Quoted 2 lines
tools/binman/etype/ti_secure.py new file +2
-0+ """An entry which contains a signed x509 binary for signing TI + General Purpose as well as High-Security devices.
First line of comment must be the summary. Then add a blank line and the extra detail. See how this is done elsewhere
tools/binman/etype/ti_secure.py line 20
Quoted 3 lines
tools/binman/etype/ti_secure.py new file +3
-0+ + Properties / Entry arguments: + - filename: filename of binary file to be secured
Please describe all the properties
tools/binman/etype/ti_secure.py line 29
Quoted 9 lines
tools/binman/etype/ti_secure.py new file +9
-0+ + Output files: + - filename_x509 - output file generated by secure x509 signing script (which + used as entry contents) + """ + def __init__(self, section, etype, node): + super().__init__(section, etype, node) + self.filename = fdt_util.GetString(self._node, 'filename') + self.key = fdt_util.GetString(self._node, 'key', "")
If key is '' does it work?
Please use single quotes consistently except for function comments.
tools/binman/etype/ti_secure.py line 33
Quoted 4 lines
tools/binman/etype/ti_secure.py new file +4
-0+ self.core = fdt_util.GetInt(self._node, 'core', 16) + self.load_addr = fdt_util.GetInt(self._node, 'load', 0x41c00000) + self.sw_rev = fdt_util.GetInt(self._node, 'sw-rev') + self.cert3 = fdt_util.GetBool(self._node, 'sysfw-cert', False)
try to use the same name for the property as the DT one if you can
Quoted 5 lines
tools/binman/etype/ti_secure.py new file +5
-0+ self.secure = fdt_util.GetBool(self._node, 'secure', False) + self.combined = fdt_util.GetBool(self._node, 'combined', False) + self.split_dm = fdt_util.GetBool(self._node, 'split-dm', False) + self.sysfw_filename = fdt_util.GetString(self._node, 'sysfw-filename') + self.sysfw_load_addr = fdt_util.GetInt(self._node, 'sysfw-load')
tools/binman/etype/ti_secure.py line 48
Quoted 10 lines
tools/binman/etype/ti_secure.py new file +10
-0+ self.sysfw_data_filename = fdt_util.GetString(self._node, 'sysfw-data-filename') + self.sysfw_data_load_addr = fdt_util.GetInt(self._node, 'sysfw-data-load') + self.sysfw_inner_cert = fdt_util.GetString(self._node, 'sysfw-inner-cert', "") + self.dm_data_filename = fdt_util.GetString(self._node, 'dm-data-filename') + self.dm_data_load_addr = fdt_util.GetInt(self._node, 'dm-data-load') + self.sysfw_inner_cert_filename = fdt_util.GetString(self._node, 'sysfw-inner-cert-filename') + self.sysfw_inner_cert_load_addr = fdt_util.GetInt(self._node, 'sysfw-inner-cert-load') + self.toolpresent = False + if not self.filename: + self.Raise("ti_secure must have a 'filename' property")
This is handled by putting something like this in __init__
self.required_props = ['filename']
tools/binman/etype/ti_secure.py line 55
Quoted 7 lines
tools/binman/etype/ti_secure.py new file +7
-0+ self.toolspath, = self.GetEntryArgsOrProps( + [EntryArg('ti-secure-dev-pkg-path', str)]) + if not self.toolspath: + print("WARNING: TI_SECURE_DEV_PKG environment " \ + "variable must be defined for TI GP and HS devices! " + + self.filename + " was NOT signed!") + return
This is handled by the bintool being 'missing'.
See how the other bintools are implemented. Create a bintool for your tool.
tools/binman/etype/ti_secure.py line 65
Quoted 12 lines
tools/binman/etype/ti_secure.py new file +10
-0+ + if self.cert3 == True: + self.tool = self.toolspath + "/scripts/gen_x509_cert3.sh" + self.core = "m3" + elif self.secure == True: + self.tool = self.toolspath + "/scripts/secure-binary-image.sh" + elif self.combined: + self.tool = self.toolspath + "/scripts/gen_x509_combined_cert.sh" + else: + self.tool = self.toolspath + "/scripts/gen_x509_cert.sh"
These need to be bintools too, or perhaps other entry types. I'm not sure...
Quoted 6 lines
tools/binman/etype/ti_secure.py new file +6
-0+ self.toolpresent = os.path.exists(self.tool) + if not self.toolpresent: + print(self.tool + " not found. " + + self.filename + " was NOT signed! ") + + if self.key == "" and not self.secure:
tools/binman/etype/ti_secure.py line 81
Quoted 10 lines
tools/binman/etype/ti_secure.py new file +10
-0+ self.key = self.toolspath + "/keys/ti-degenerate-key.pem" + self.keypresent = os.path.exists(self.key) + if not self.keypresent: + print(self.key + " not found. " + + self.filename + " was NOT signed! ") + else: + print("Signing " + self.filename + " with degenerate RSA key...") + else: + self.key = self.toolspath + self.key + print("Signing " + self.filename + " with " + self.key)
You can't use 'print' in binman. You can use things like tout.info() to emit info.
Quoted 33 lines
tools/binman/etype/ti_secure.py new file +33
-0+ + if self.sw_rev is None and not self.secure: + self.sw_revfile = self.toolspath + "/keys/swrv.txt" + with open(self.sw_revfile) as f: + self.sw_rev = int(f.read()) + self.swrevpresent = os.path.exists(self.sw_rev) + if not self.swrevpresent: + print(self.sw_rev + " not found. " + + "Software revision file not found. Default may not work on HS hardware.") + self.sw_rev = 1 + + def ObtainContents(self): + input_fname = self.filename + output_fname = input_fname + "_x509" + if self.secure: + args = [ + input_fname, output_fname, + ] + elif self.combined: + args = [ + '-b', input_fname, + '-l', hex(self.load_addr), + '-s', self.sysfw_filename, + '-m', hex(self.sysfw_load_addr), + '-c', self.sysfw_inner_cert, + '-d', self.sysfw_data_filename, + '-n', hex(self.sysfw_data_load_addr), + '-k', self.key, + '-r', str(self.sw_rev), + '-o', output_fname, + ] + if self.split_dm: + args.extend(['-t', self.dm_data_filename, '-y', hex(self.dm_data_load_addr)])
tools/binman/etype/ti_secure.py line 124
Quoted 10 lines
tools/binman/etype/ti_secure.py new file +10
-0+ else: + args = [ + '-c', str(self.core), + '-b', input_fname, + '-o', output_fname, + '-l', hex(self.load_addr), + '-r', str(self.sw_rev), + '-k', self.key, + ] + if self.cert3 == True:
nit: use:
if self.cert3:
Quoted 30 lines
tools/binman/etype/ti_secure.py new file +9
-0+ args.insert(0, '-d') + if self.toolpresent: + stdout = tools.run(self.tool, *args) + else: + stdout = tools.run('cp', *args) + print(output_fname + ' not signed!') + + self.SetContents(tools.read_file(output_fname)) + return Truetools/binman/ftest.py +2
-0@@ -93,6 +93,7 @@ SCP_DATA = b'scp' TEST_FDT1_DATA = b'fdt1' TEST_FDT2_DATA = b'test-fdt2' ENV_DATA = b'var1=1\nvar2="2"' +TI_UNSECURE_DATA = b'this is some unsecure data' PRE_LOAD_MAGIC = b'UBSH' PRE_LOAD_VERSION = 0x11223344.to_bytes(4, 'big') PRE_LOAD_HDR_SIZE = 0x00001000.to_bytes(4, 'big')@@ -213,6 +214,7 @@ class TestFunctional(unittest.TestCase): TEST_FDT2_DATA) TestFunctional._MakeInputFile('env.txt', ENV_DATA) + TestFunctional._MakeInputFile('ti_unsecure.bin', TI_UNSECURE_DATA) # ELF file with two sections in different parts of memory, used for both # ATF and OP_TEE
tools/binman/ftest.py fdt fdtmap Extract the devicetree blob from the fdtmap · line 5555
Quoted 9 lines
tools/binman/ftest.py +6
-0@@ -5545,6 +5547,12 @@ fdt fdtmap Extract the devicetree blob from the fdtmap err) + def testPackTisecure(self): + """Test that an image with a TI secured binary can be created""" + data = self._DoReadFile('187_ti_secure.dts') + securedata = tools.ReadFile('ti_unsecure.bin_HS') + self.assertEquals(data, securedata) +
The test needs to cover the tool being missing.
Quoted 6 lines
tools/binman/ftest.py +0
-1def testFitSplitElfMissing(self): """Test an split-elf FIT with a missing ELF file""" if not elf.ELF_TOOLS: --2.34.1
Regards,
Simon
PATCH 4/21 ti: sysfw: tiboot3: Add support for packaging sysfw.itb and tiboot3.bin
In reply to Neha Malcom FrancisBoard config binary artifacts must be populated in the R5 output directory to be used by binman to package sysfw.itb and tiboot3.bin.
For devices that follow combined flow, these board configuration binaries must again be packaged into a combined board configuration blobs to be used by binman to package tiboot3.bin.
Modify config.mk to generate all the board configuration binaries as well as the combined blob binaries.
--- arch/arm/mach-k3/config.mk | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
arch/arm/mach-k3/config.mk +31 -0
@@ -39,6 +39,37 @@ $(warning "WARNING: Software revision file not found. Default may not work on HS endif endif +O ?= . + +# Board config binary artifacts necessary for packaging of tiboot3.bin +# and sysfw.itb by binman, currently for general purpose devices and +# devices that require sysfw.itb in ROM boot image. Currently set up +# for J721E +ifdef CONFIG_BINMAN + +CONFIG_YAML = $(srctree)/board/ti/$(BOARD)/config.yaml +SCHEMA_YAML = $(srctree)/board/ti/common/schema.yaml +board-cfg.bin pm-cfg.bin rm-cfg.bin sec-cfg.bin: + $(PYTHON3) $(srctree)/tools/tibcfg_gen.py -c $(CONFIG_YAML) -s $(SCHEMA_YAML) +INPUTS-y += board-cfg.bin +INPUTS-y += pm-cfg.bin +INPUTS-y += rm-cfg.bin +INPUTS-y += sec-cfg.bin + +combined-sysfw-cfg.bin: board-cfg.bin pm-cfg.bin rm-cfg.bin sec-cfg.bin + $(PYTHON3) $(srctree)/tools/k3_sysfw_boardcfg_blob_creator.py -b board-cfg.bin -s sec-cfg.bin -p pm-cfg.bin -r rm-cfg.bin -o $(@) +INPUTS-y += combined-sysfw-cfg.bin + +combined-tifs-cfg.bin: board-cfg.bin pm-cfg.bin rm-cfg.bin sec-cfg.bin + $(PYTHON3) $(srctree)/tools/k3_sysfw_boardcfg_blob_creator.py -b board-cfg.bin -s sec-cfg.bin -p pm-cfg.bin -r rm-cfg.bin -o $(@) +INPUTS-y += combined-tifs-cfg.bin + +combined-dm-cfg.bin: pm-cfg.bin rm-cfg.bin + $(PYTHON3) $(srctree)/tools/k3_sysfw_boardcfg_blob_creator.py -p pm-cfg.bin -r rm-cfg.bin -o $(@) +INPUTS-y += combined-dm-cfg.bin + +endif + # tiboot3.bin is mandated by ROM and ROM only supports R5 boot. # So restrict tiboot3.bin creation for CPU_V7R. ifdef CONFIG_CPU_V7R
Signature · 1 line
2.34.1
PATCH 5/21 j721e: schema: yaml: Add general schema and J721E board config files
In reply to Neha Malcom FrancisSchema file in YAML must be provided in board/ti/common for validating input config files and packaging system firmware. The schema includes entries for rm-cfg, board-cfg, pm-cfg and sec-cfg.
Board config file must be provided in board/ti/<devicename> in YAML. These can then be consumed for generation of binaries to package system firmware. Added YAML config for J721E in particular.
--- board/ti/common/schema.yaml | 355 ++++ board/ti/j721e/config.yaml | 3162 +++++++++++++++++++++++++++++++++++ 2 files changed, 3517 insertions(+) create mode 100644 board/ti/common/schema.yaml create mode 100644 board/ti/j721e/config.yaml
board/ti/common/schema.yaml new file +355 -0
@@ -0,0 +1,355 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Config schema for TI K3 devices +# + +--- + +definitions: + u8: + type: integer + minimum: 0 + maximum: 0xff + u16: + type: integer + minimum: 0 + maximum: 0xffff + u32: + type: integer + minimum: 0 + maximum: 0xffffffff + + + +type: object +properties: + pm-cfg: + type: object + properties: + rev: + type: object + properties: + boardcfg_abi_maj: + $ref: "#/definitions/u8" + boardcfg_abi_min: + $ref: "#/definitions/u8" + board-cfg: + type: object + properties: + rev: + type: object + properties: + boardcfg_abi_maj: + $ref: "#/definitions/u8" + boardcfg_abi_min: + $ref: "#/definitions/u8" + control: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + main_isolation_enable: + $ref: "#/definitions/u8" + main_isolation_hostid: + $ref: "#/definitions/u16" + + + secproxy: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + scaling_factor: + $ref: "#/definitions/u8" + scaling_profile: + $ref: "#/definitions/u8" + disable_main_nav_secure_proxy: + $ref: "#/definitions/u8" + + msmc: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + msmc_cache_size: + $ref: "#/definitions/u8" + debug_cfg: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + trace_dst_enables: + $ref: "#/definitions/u16" + trace_src_enables: + $ref: "#/definitions/u16" + + sec-cfg: + type: object + properties: + rev: + type: object + properties: + boardcfg_abi_maj: + $ref: "#/definitions/u8" + boardcfg_abi_min: + $ref: "#/definitions/u8" + + processor_acl_list: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + proc_acl_entries: + type: array + minItems: 32 + maxItems: 32 + items: + type: object + properties: + processor_id: + $ref: "#/definitions/u8" + proc_access_master: + $ref: "#/definitions/u8" + proc_access_secondary: + type: array + minItems: 3 + maxItems: 3 + items: + $ref: "#/definitions/u8" + host_hierarchy: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + host_hierarchy_entries: + type: array + minItems: 32 + maxItems: 32 + items: + type: object + properties: + host_id: + $ref: "#/definitions/u8" + supervisor_host_id: + $ref: "#/definitions/u8" + + otp_config: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + otp_entry: + type: array + minItems: 32 + maxItems: 32 + items: + type: object + properties: + host_id: + $ref: "#/definitions/u8" + host_perms: + $ref: "#/definitions/u8" + write_host_id: + $ref: "#/definitions/u8" + + dkek_config: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + allowed_hosts: + type: array + minItems: 4 + maxItems: 4 + items: + $ref: "#/definitions/u8" + allow_dkek_export_tisci: + $ref: "#/definitions/u8" + rsvd: + type: array + minItems: 3 + maxItems: 3 + items: + $ref: "#/definitions/u8" + + sa2ul_cfg: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + rsvd: + type: array + minItems: 4 + maxItems: 4 + items: + $ref: "#/definitions/u8" + sec_dbg_config: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + allow_jtag_unlock: + $ref: "#/definitions/u8" + allow_wildcard_unlock: + $ref: "#/definitions/u8" + allowed_debug_level_rsvd: + $ref: "#/definitions/u8" + rsvd: + $ref: "#/definitions/u8" + min_cert_rev: + $ref: "#/definitions/u32" + jtag_unlock_hosts: + type: array + minItems: 4 + maxItems: 4 + items: + $ref: "#/definitions/u8" + + + sec_handover_cfg: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + handover_msg_sender: + $ref: "#/definitions/u8" + handover_to_host_id: + $ref: "#/definitions/u8" + rsvd: + type: array + minItems: 4 + maxItems: 4 + items: + $ref: "#/definitions/u8" + + rm-cfg: + type: object + properties: + rm_boardcfg: + type: object + properties: + rev: + type: object + properties: + boardcfg_abi_maj: + $ref: "#/definitions/u8" + boardcfg_abi_min: + $ref: "#/definitions/u8" + + host_cfg: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + host_cfg_entries: + type: array + minItems: 0 + maxItems: 32 + items: + type: object + properties: + host_id: + $ref: "#/definitions/u8" + allowed_atype: + $ref: "#/definitions/u8" + allowed_qos: + $ref: "#/definitions/u16" + allowed_orderid: + $ref: "#/definitions/u32" + allowed_priority: + $ref: "#/definitions/u16" + allowed_sched_priority: + $ref: "#/definitions/u8" + resasg: + type: object + properties: + subhdr: + type: object + properties: + magic: + $ref: "#/definitions/u16" + size: + $ref: "#/definitions/u16" + resasg_entries_size: + $ref: "#/definitions/u16" + reserved: + $ref: "#/definitions/u16" + + resasg_entries: + type: array + minItems: 0 + maxItems: 418 + items: + type: object + properties: + start_resource: + $ref: "#/definitions/u16" + num_resource: + $ref: "#/definitions/u16" + type: + $ref: "#/definitions/u16" + host_id: + $ref: "#/definitions/u8" + reserved: + $ref: "#/definitions/u8"
board/ti/j721e/config.yaml new file +3162 -0
2,645 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
PATCH 6/21 j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img
In reply to Neha Malcom FrancisBy providing entries in the binman node of the device tree, binman will be able to find and package board config artifacts generated by TIBoardConfig with sysfw.bin and generate the final image sysfw.itb. It will also pick out the R5 SPL and sign it with the help of TI signing entry and generate the final tiboot3.bin.
Entries for A72 build have been added to k3-j721e-binman.dtsi to generate tispl.bin and u-boot.img.
Support has been added for both HS(SR 1.1) and GP images where the encrypted system firmware binary must be signed along with the signed certificate binary.
tiboot3.bin and sysfw-j721e_sr1_1-hs.itb: For HS devices tiboot3.bin_unsigned and sysfw-j721e-gp-evm.itb: For GP devices <filename>.bin/img: For HS devices <filename>.bin_unsigned/img_unsigned: For GP devices
Intention of patch is to move signing and packaging to binman, thus making makefile target only if binman is not enabled.
It is to be noted that the bootflow followed by J721E requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
sysfw.itb:
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbs
u-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
--- arch/arm/dts/k3-j721e-binman.dtsi | 605 ++++++++++++++++++ .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 1 + arch/arm/mach-k3/config.mk | 4 + board/ti/j721e/Kconfig | 2 + scripts/Makefile.spl | 2 + 6 files changed, 615 insertions(+) create mode 100644 arch/arm/dts/k3-j721e-binman.dtsi
arch/arm/dts/k3-j721e-binman.dtsi new file +605 -0
@@ -0,0 +1,605 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/ { + binman: binman { + multiple-images; + }; +}; + +#ifdef CONFIG_TARGET_J721E_R5_EVM + +&binman { + tiboot3 { + filename = "tiboot3.bin"; + ti-secure { + filename = "spl/u-boot-spl.bin"; + core = <16>; + load = <CONFIG_SPL_TEXT_BASE>; + key = "/keys/custMpk.pem"; + }; + }; + ti-fs-cert.bin { + filename = "ti-fs-cert.bin"; + ti-fs-firmware-j721e_sr1_1-hs-cert.bin { + filename = "ti-fs-firmware-j721e_sr1_1-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + }; + sysfw { + filename = "sysfw.bin"; + ti-secure { + filename = "ti-fs-cert.bin"; + core = <0>; + load = <0x40000>; + key = "/keys/custMpk.pem"; + sysfw-cert; + }; + ti-fs-firmware-j721e_sr1_1-hs-enc.bin { + filename = "ti-fs-firmware-j721e_sr1_1-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + itb { + filename = "sysfw-j721e_sr1_1-hs.itb"; + fit { + description = "SYSFW and Config fragments"; + #address-cells = <1>; + images { + sysfw.bin { + description = "sysfw"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "sysfw.bin"; + }; + }; + board-cfg.bin { + description = "board-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = "board-cfg.bin"; + secure; + }; + }; + pm-cfg.bin { + description = "pm-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = "pm-cfg.bin"; + secure; + }; + }; + rm-cfg.bin { + description = "rm-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = "rm-cfg.bin"; + secure; + }; + }; + sec-cfg.bin { + description = "sec-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = "sec-cfg.bin"; + secure; + }; + }; + }; + }; + }; +}; + +&binman { + tiboot3_unsigned { + filename = "tiboot3.bin_unsigned"; + ti-secure { + filename = "spl/u-boot-spl.bin"; + core = <16>; + load = <CONFIG_SPL_TEXT_BASE>; + sw-rev = <CONFIG_K3_X509_SWRV>; + }; + }; + ti-fs.bin { + filename = "ti-fs.bin"; + ti-fs-firmware-j721e-gp.bin { + filename = "ti-fs-firmware-j721e-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + sysfw_gp { + filename = "sysfw.bin_gp"; + ti-secure { + filename = "ti-fs.bin"; + core = <0>; + load = <0x40000>; + sw-rev = <CONFIG_K3_X509_SWRV>; + }; + }; + itb_gp { + filename = "sysfw-j721e-gp-evm.itb"; + symlink = "sysfw.itb"; + fit { + description = "SYSFW and Config fragments"; + #address-cells = <1>; + images { + sysfw.bin { + description = "sysfw"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "sysfw.bin_gp"; + }; + }; + board-cfg.bin { + description = "board-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "board-cfg.bin"; + }; + }; + pm-cfg.bin { + description = "pm-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "pm-cfg.bin"; + }; + }; + rm-cfg.bin { + description = "rm-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "rm-cfg.bin"; + }; + }; + sec-cfg.bin { + description = "sec-cfg"; + type = "firmware"; + arch = "arm"; + compression = "none"; + blob-ext { + filename = "sec-cfg.bin"; + }; + }; + }; + }; + }; +}; +#endif + +#ifdef CONFIG_TARGET_J721E_A72_EVM + +#define SPL_NODTB "spl/u-boot-spl-nodtb.bin" +#define SPL_J721E_EVM_DTB "spl/dts/k3-j721e-common-proc-board.dtb" +#define SPL_J721E_TPS_DTB "spl/dts/k3-j721e-tps65917-proc-board.dtb" +#define SPL_J721E_SK_DTB "spl/dts/k3-j721e-sk.dtb" + +#define UBOOT_NODTB "u-boot-nodtb.bin" +#define J721E_EVM_DTB "arch/arm/dts/k3-j721e-common-proc-board.dtb" +#define J721E_TPS_DTB "arch/arm/dts/k3-j721e-tps65917-proc-board.dtb" +#define J721E_SK_DTB "arch/arm/dts/k3-j721e-sk.dtb" + +&binman { + ti-dm { + filename = "ti-dm.bin"; + blob-ext { + filename = "ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + ti-spl { + filename = "tispl.bin"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + ti-secure { + filename = SPL_NODTB; + secure; + }; + }; + + fdt-0 { + description = "k3-j721e-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_J721E_EVM_DTB; + secure; + }; + }; + + fdt-1 { + description = "k3-j721e-tps65917-proc-board"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_J721E_TPS_DTB; + secure; + }; + }; + + fdt-2 { + description = "k3-j721e-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_J721E_SK_DTB; + secure; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j721e-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + + conf-1 { + description = "k3-j721e-tps65917-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-1"; + }; + + conf-2 { + description = "k3-j721e-sk"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-2"; + }; + }; + }; + }; +}; + +&binman { + u-boot { + filename = "u-boot.img"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for j721e board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + ti-secure { + filename = UBOOT_NODTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-0 { + description = "k3-j721e-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = J721E_EVM_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-1 { + description = "k3-j721e-tps65917-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = J721E_TPS_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-2 { + description = "k3-j721e-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = J721E_SK_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j721e-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + + conf-1 { + description = "k3-j721e-tps65917-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-1"; + }; + + conf-2 { + description = "k3-j721e-sk"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-2"; + }; + }; + }; + }; +}; + +&binman { + ti-spl_unsigned { + filename = "tispl.bin_unsigned"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + filename = "bl31.bin"; + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + filename = "tee-pager_v2.bin"; + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + blob { + filename = "spl/u-boot-spl-nodtb.bin"; + }; + }; + + fdt-1 { + description = "k3-j721e-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = SPL_J721E_EVM_DTB; + }; + }; + + fdt-2 { + description = "k3-j721e-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = SPL_J721E_SK_DTB; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j721e-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-1"; + }; + + conf-2 { + description = "k3-j721e-sk"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-2"; + }; + }; + }; + }; +}; + +&binman { + u-boot_unsigned { + filename = "u-boot.img_unsigned"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for j721e board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + blob { + filename = UBOOT_NODTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-1 { + description = "k3-j721e-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = J721E_EVM_DTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-2 { + description = "k3-j721e-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = J721E_SK_DTB; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j721e-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-1"; + }; + + conf-2 { + description = "k3-j721e-sk"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-2"; + }; + }; + }; + }; +}; +#endif
arch/arm/dts/k3-j721e-common-proc-board-u-boot.dtsi +1 -0
@@ -4,6 +4,7 @@ */ #include <dt-bindings/net/ti-dp83867.h> +#include "k3-j721e-binman.dtsi" / { chosen {
arch/arm/dts/k3-j721e-r5-common-proc-board.dts +1 -0
@@ -8,6 +8,7 @@ #include "k3-j721e-som-p0.dtsi" #include "k3-j721e-ddr-evm-lp4-4266.dtsi" #include "k3-j721e-ddr.dtsi" +#include "k3-j721e-binman.dtsi" #include <dt-bindings/phy/phy-cadence.h> / {
arch/arm/mach-k3/config.mk +4 -0
@@ -72,6 +72,7 @@ endif # tiboot3.bin is mandated by ROM and ROM only supports R5 boot. # So restrict tiboot3.bin creation for CPU_V7R. +ifndef CONFIG_BINMAN ifdef CONFIG_CPU_V7R image_check: $(obj)/u-boot-spl.bin FORCE @if [ $(IMAGE_SIZE) -gt $(MAX_SIZE) ]; then \
@@ -88,6 +89,7 @@ tiboot3.bin: image_check FORCE INPUTS-y += tiboot3.bin endif +endif ifdef CONFIG_ARM64
@@ -95,6 +97,7 @@ ifeq ($(CONFIG_SOC_K3_J721E),) export DM := /dev/null endif +ifndef CONFIG_BINMAN ifeq ($(CONFIG_TI_SECURE_DEVICE),y) SPL_ITS := u-boot-spl-k3_HS.its $(SPL_ITS): export IS_HS=1
@@ -103,6 +106,7 @@ else SPL_ITS := u-boot-spl-k3.its INPUTS-y += tispl.bin endif +endif ifeq ($(CONFIG_SPL_OF_LIST),) LIST_OF_DTB := $(CONFIG_DEFAULT_DEVICE_TREE)
board/ti/j721e/Kconfig +2 -0
@@ -14,6 +14,7 @@ config TARGET_J721E_A72_EVM select BOARD_LATE_INIT imply TI_I2C_BOARD_DETECT select SYS_DISABLE_DCACHE_OPS + select BINMAN config TARGET_J721E_R5_EVM bool "TI K3 based J721E EVM running on R5"
@@ -24,6 +25,7 @@ config TARGET_J721E_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
scripts/Makefile.spl +2 -0
@@ -593,6 +593,8 @@ $(obj)/$(SPL_BIN).multidtb.fit.lzo: $(obj)/$(SPL_BIN).multidtb.fit @lzop -f9 $< > $@ ifdef CONFIG_ARCH_K3 +ifndef CONFIG_BINMAN tispl.bin: $(obj)/u-boot-spl-nodtb.bin $(SHRUNK_ARCH_DTB) $(SPL_ITS) FORCE $(call if_changed,mkfitimage) endif +endif
Signature · 1 line
2.34.1
PATCH 7/21 j7200: yaml: Add J7200 board config files
In reply to Neha Malcom FrancisAdded YAML config for J7200
--- arch/arm/mach-k3/config.mk | 5 + board/ti/j721e/config_j7200.yaml | 2467 ++++++++++++++++++++++++++++++ 2 files changed, 2472 insertions(+) create mode 100644 board/ti/j721e/config_j7200.yaml
arch/arm/mach-k3/config.mk +5 -0
@@ -47,7 +47,12 @@ O ?= . # for J721E ifdef CONFIG_BINMAN +ifndef CONFIG_TARGET_J7200_R5_EVM CONFIG_YAML = $(srctree)/board/ti/$(BOARD)/config.yaml +else +CONFIG_YAML = $(srctree)/board/ti/$(BOARD)/config_j7200.yaml +endif + SCHEMA_YAML = $(srctree)/board/ti/common/schema.yaml board-cfg.bin pm-cfg.bin rm-cfg.bin sec-cfg.bin: $(PYTHON3) $(srctree)/tools/tibcfg_gen.py -c $(CONFIG_YAML) -s $(SCHEMA_YAML)
board/ti/j721e/config_j7200.yaml new file +2467 -0
2,467 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 8/21 j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for J7200.
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned and u-boot.img_unsigned: For GP devices
It is to be noted that the bootflow followed by J7200 requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbs
u-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
--- arch/arm/dts/k3-j7200-binman.dtsi | 377 ++++++++++++++++++ .../k3-j7200-common-proc-board-u-boot.dtsi | 2 + board/ti/j721e/Kconfig | 2 + 3 files changed, 381 insertions(+) create mode 100644 arch/arm/dts/k3-j7200-binman.dtsi
arch/arm/dts/k3-j7200-binman.dtsi new file +377 -0
@@ -0,0 +1,377 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/ { + binman: binman { + multiple-images; + }; +}; + +#ifdef CONFIG_TARGET_J7200_R5_EVM + +&binman { + ti-fs-cert { + filename = "ti-fs-cert.bin"; + ti-fs-firmware-j7200-hs-cert.bin { + filename = "ti-fs-firmware-j7200-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + }; + ti-fs-enc { + filename = "ti-fs-enc.bin"; + ti-fs-firmware-j7200-hs-enc.bin { + filename = "ti-fs-firmware-j7200-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3 { + filename = "tiboot3.bin"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x41c00000>; + sysfw-filename = "ti-fs-enc.bin"; + sysfw-load = <0x40000>; + sysfw-inner-cert = "ti-fs-cert.bin"; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x7f000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x41c80000>; + key = "/keys/custMpk.pem"; + sw-rev = <1>; + }; + }; +}; + +&binman { + ti-fs-gp { + filename = "ti-fs-gp.bin"; + ti-fs-firmware-j7200-gp.bin { + filename = "ti-fs-firmware-j7200-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3_unsigned { + filename = "tiboot3.bin_unsigned"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x41c00000>; + sysfw-filename = "ti-fs-gp.bin"; + sysfw-load = <0x40000>; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x7f000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x41c80000>; + sw-rev = <CONFIG_K3_X509_SWRV>; + }; + }; +}; + +#endif + +#ifdef CONFIG_TARGET_J7200_A72_EVM + +#define SPL_NODTB "spl/u-boot-spl-nodtb.bin" +#define SPL_J7200_EVM_DTB "spl/dts/k3-j7200-common-proc-board.dtb" + +#define UBOOT_NODTB "u-boot-nodtb.bin" +#define J7200_EVM_DTB "arch/arm/dts/k3-j7200-common-proc-board.dtb" + +&binman { + ti-dm { + filename = "ti-dm.bin"; + blob-ext { + filename = "ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + ti-spl { + filename = "tispl.bin"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + ti-secure { + filename = SPL_NODTB; + secure; + }; + }; + + fdt-0 { + description = "k3-j7200-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_J7200_EVM_DTB; + secure; + }; + }; + + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j7200-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + u-boot { + filename = "u-boot.img"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for J7200 board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + ti-secure { + filename = UBOOT_NODTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-0 { + description = "k3-j7200-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = J7200_EVM_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j7200-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + + }; + }; + }; +}; + +&binman { + ti-spl_unsigned { + filename = "tispl.bin_unsigned"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + filename = "bl31.bin"; + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + filename = "tee-pager_v2.bin"; + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + blob { + filename = "spl/u-boot-spl-nodtb.bin"; + }; + }; + + fdt-1 { + description = "k3-j7200-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = SPL_J7200_EVM_DTB; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j7200-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; + +&binman { + u-boot_unsigned { + filename = "u-boot.img_unsigned"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for J7200 board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + blob { + filename = UBOOT_NODTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-1 { + description = "k3-j7200-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = J7200_EVM_DTB; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j7200-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; +#endif
arch/arm/dts/k3-j7200-common-proc-board-u-boot.dtsi +2 -0
@@ -3,6 +3,8 @@ * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ */ +#include "k3-j7200-binman.dtsi" + / { chosen { stdout-path = "serial2:115200n8";
board/ti/j721e/Kconfig +2 -0
@@ -36,6 +36,7 @@ config TARGET_J7200_A72_EVM select BOARD_LATE_INIT imply TI_I2C_BOARD_DETECT select SYS_DISABLE_DCACHE_OPS + select BINMAN config TARGET_J7200_R5_EVM bool "TI K3 based J7200 EVM running on R5"
@@ -46,6 +47,7 @@ config TARGET_J7200_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
Signature · 1 line
2.34.1
PATCH 9/21 am65x: yaml: Add AM65x board config files
In reply to Neha Malcom FrancisAdded YAML config for AM65x
--- board/ti/am65x/config.yaml | 2469 ++++++++++++++++++++++++++++++++++++ 1 file changed, 2469 insertions(+) create mode 100644 board/ti/am65x/config.yaml
board/ti/am65x/config.yaml new file +2469 -0
@@ -0,0 +1,2469 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for AM65x +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x10 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00 + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + +sec-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + processor_acl_list: + subhdr: + magic: 0xF1EA + size: 164 + proc_acl_entries: + - #1 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #2 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #3 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #4 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #5 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #6 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #7 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #8 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #9 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #10 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #11 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #12 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #13 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #14 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #15 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #16 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #17 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #18 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #19 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #20 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #21 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #22 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #23 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #24 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #25 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #26 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #27 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #28 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #29 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #30 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #31 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #32 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + host_hierarchy: + subhdr: + magic: 0x8D27 + size: 68 + host_hierarchy_entries: + - #1 + host_id: 0 + supervisor_host_id: 0 + - #2 + host_id: 0 + supervisor_host_id: 0 + - #3 + host_id: 0 + supervisor_host_id: 0 + - #4 + host_id: 0 + supervisor_host_id: 0 + - #5 + host_id: 0 + supervisor_host_id: 0 + - #6 + host_id: 0 + supervisor_host_id: 0 + - #7 + host_id: 0 + supervisor_host_id: 0 + - #8 + host_id: 0 + supervisor_host_id: 0 + - #9 + host_id: 0 + supervisor_host_id: 0 + - #10 + host_id: 0 + supervisor_host_id: 0 + - #11 + host_id: 0 + supervisor_host_id: 0 + - #12 + host_id: 0 + supervisor_host_id: 0 + - #13 + host_id: 0 + supervisor_host_id: 0 + - #14 + host_id: 0 + supervisor_host_id: 0 + - #15 + host_id: 0 + supervisor_host_id: 0 + - #16 + host_id: 0 + supervisor_host_id: 0 + - #17 + host_id: 0 + supervisor_host_id: 0 + - #18 + host_id: 0 + supervisor_host_id: 0 + - #19 + host_id: 0 + supervisor_host_id: 0 + - #20 + host_id: 0 + supervisor_host_id: 0 + - #21 + host_id: 0 + supervisor_host_id: 0 + - #22 + host_id: 0 + supervisor_host_id: 0 + - #23 + host_id: 0 + supervisor_host_id: 0 + - #24 + host_id: 0 + supervisor_host_id: 0 + - #25 + host_id: 0 + supervisor_host_id: 0 + - #26 + host_id: 0 + supervisor_host_id: 0 + - #27 + host_id: 0 + supervisor_host_id: 0 + - #28 + host_id: 0 + supervisor_host_id: 0 + - #29 + host_id: 0 + supervisor_host_id: 0 + - #30 + host_id: 0 + supervisor_host_id: 0 + - #31 + host_id: 0 + supervisor_host_id: 0 + - #32 + host_id: 0 + supervisor_host_id: 0 + otp_config: + subhdr: + magic: 0x4081 + size: 69 + write_host_id : 0 + otp_entry: + - #1 + host_id: 0 + host_perms: 0 + - #2 + host_id: 0 + host_perms: 0 + - #3 + host_id: 0 + host_perms: 0 + - #4 + host_id: 0 + host_perms: 0 + - #5 + host_id: 0 + host_perms: 0 + - #6 + host_id: 0 + host_perms: 0 + - #7 + host_id: 0 + host_perms: 0 + - #8 + host_id: 0 + host_perms: 0 + - #9 + host_id: 0 + host_perms: 0 + - #10 + host_id: 0 + host_perms: 0 + - #11 + host_id: 0 + host_perms: 0 + - #12 + host_id: 0 + host_perms: 0 + - #13 + host_id: 0 + host_perms: 0 + - #14 + host_id: 0 + host_perms: 0 + - #15 + host_id: 0 + host_perms: 0 + - #16 + host_id: 0 + host_perms: 0 + - #17 + host_id: 0 + host_perms: 0 + - #18 + host_id: 0 + host_perms: 0 + - #19 + host_id: 0 + host_perms: 0 + - #20 + host_id: 0 + host_perms: 0 + - #21 + host_id: 0 + host_perms: 0 + - #22 + host_id: 0 + host_perms: 0 + - #23 + host_id: 0 + host_perms: 0 + - #24 + host_id: 0 + host_perms: 0 + - #25 + host_id: 0 + host_perms: 0 + - #26 + host_id: 0 + host_perms: 0 + - #27 + host_id: 0 + host_perms: 0 + - #28 + host_id: 0 + host_perms: 0 + - #29 + host_id: 0 + host_perms: 0 + - #30 + host_id: 0 + host_perms: 0 + - #31 + host_id: 0 + host_perms: 0 + - #32 + host_id: 0 + host_perms: 0 + dkek_config: + subhdr: + magic: 0x5170 + size: 12 + allowed_hosts: [128, 0, 0, 0] + allow_dkek_export_tisci : 0x5A + rsvd: [0, 0, 0] + sa2ul_cfg: + subhdr: + magic: 0x23BE + size : 0 + rsvd: [0, 0, 0, 0] + sec_dbg_config: + subhdr: + magic: 0x42AF + size: 16 + allow_jtag_unlock : 0x5A + allow_wildcard_unlock : 0x5A + min_cert_rev : 0x0 + jtag_unlock_hosts: [0, 0, 0, 0] + sec_handover_cfg: + subhdr: + magic: 0x608F + size: 10 + handover_msg_sender : 0 + handover_to_host_id : 0 + rsvd: [0, 0, 0, 0] +rm-cfg: + rm_boardcfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + host_cfg: + subhdr: + magic: 0x4C41 + size : 356 + host_cfg_entries: + - #1 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #2 + host_id: 5 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #3 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #4 + host_id: 13 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #5 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #6 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #7 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #8 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #9 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #10 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #11 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #12 + host_id: 5 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #13 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #14 + host_id: 13 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #15 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #16 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #17 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #18 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #19 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #20 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #21 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #22 + host_id: 5 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #23 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #24 + host_id: 13 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #25 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #26 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #27 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #28 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #29 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #30 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #31 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #32 + host_id: 5 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + resasg: + subhdr: + magic: 0x7B25 + size : 8 + resasg_entries_size: 2080 + reserved : 0 + resasg_entries: + - + start_resource: 0 + num_resource: 12 + type: 192 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 4 + type: 192 + host_id: 13 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 192 + host_id: 3 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 192 + host_id: 4 + reserved: 0 + + - + start_resource: 24 + num_resource: 8 + type: 192 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 32 + type: 9664 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 32 + type: 9664 + host_id: 4 + reserved: 0 + + - + start_resource: 32 + num_resource: 32 + type: 9664 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 24 + type: 9728 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 24 + type: 9728 + host_id: 4 + reserved: 0 + + - + start_resource: 24 + num_resource: 24 + type: 9728 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 20 + type: 16384 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 16384 + host_id: 13 + reserved: 0 + + - + start_resource: 24 + num_resource: 4 + type: 16384 + host_id: 3 + reserved: 0 + + - + start_resource: 24 + num_resource: 4 + type: 16384 + host_id: 4 + reserved: 0 + + - + start_resource: 28 + num_resource: 4 + type: 16384 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 20800 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 20800 + host_id: 4 + reserved: 0 + + - + start_resource: 16 + num_resource: 16 + type: 20800 + host_id: 5 + reserved: 0 + + - + start_resource: 32 + num_resource: 8 + type: 20800 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 21888 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 21888 + host_id: 13 + reserved: 0 + + - + start_resource: 8 + num_resource: 4 + type: 21888 + host_id: 3 + reserved: 0 + + - + start_resource: 8 + num_resource: 4 + type: 21888 + host_id: 4 + reserved: 0 + + - + start_resource: 12 + num_resource: 4 + type: 21888 + host_id: 5 + reserved: 0 + + - + start_resource: 16 + num_resource: 80 + type: 24138 + host_id: 12 + reserved: 0 + + - + start_resource: 96 + num_resource: 30 + type: 24138 + host_id: 13 + reserved: 0 + + - + start_resource: 126 + num_resource: 50 + type: 24138 + host_id: 3 + reserved: 0 + + - + start_resource: 126 + num_resource: 50 + type: 24138 + host_id: 4 + reserved: 0 + + - + start_resource: 176 + num_resource: 50 + type: 24138 + host_id: 5 + reserved: 0 + + - + start_resource: 226 + num_resource: 30 + type: 24138 + host_id: 128 + reserved: 0 + + - + start_resource: 16 + num_resource: 1024 + type: 24141 + host_id: 12 + reserved: 0 + + - + start_resource: 1040 + num_resource: 512 + type: 24141 + host_id: 13 + reserved: 0 + + - + start_resource: 1552 + num_resource: 512 + type: 24141 + host_id: 3 + reserved: 0 + + - + start_resource: 1552 + num_resource: 512 + type: 24141 + host_id: 4 + reserved: 0 + + - + start_resource: 2064 + num_resource: 512 + type: 24141 + host_id: 5 + reserved: 0 + + - + start_resource: 2576 + num_resource: 2032 + type: 24141 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 64 + type: 24586 + host_id: 128 + reserved: 0 + + - + start_resource: 20480 + num_resource: 1024 + type: 24589 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 64 + type: 24650 + host_id: 128 + reserved: 0 + + - + start_resource: 22528 + num_resource: 1024 + type: 24653 + host_id: 128 + reserved: 0 + + - + start_resource: 16 + num_resource: 64 + type: 24704 + host_id: 12 + reserved: 0 + + - + start_resource: 80 + num_resource: 40 + type: 24704 + host_id: 13 + reserved: 0 + + - + start_resource: 120 + num_resource: 4 + type: 24704 + host_id: 3 + reserved: 0 + + - + start_resource: 120 + num_resource: 4 + type: 24704 + host_id: 4 + reserved: 0 + + - + start_resource: 124 + num_resource: 4 + type: 24704 + host_id: 5 + reserved: 0 + + - + start_resource: 128 + num_resource: 24 + type: 24704 + host_id: 128 + reserved: 0 + + - + start_resource: 1 + num_resource: 12 + type: 24896 + host_id: 12 + reserved: 0 + + - + start_resource: 13 + num_resource: 4 + type: 24896 + host_id: 13 + reserved: 0 + + - + start_resource: 17 + num_resource: 16 + type: 24896 + host_id: 3 + reserved: 0 + + - + start_resource: 17 + num_resource: 16 + type: 24896 + host_id: 4 + reserved: 0 + + - + start_resource: 33 + num_resource: 16 + type: 24896 + host_id: 5 + reserved: 0 + + - + start_resource: 49 + num_resource: 15 + type: 24896 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25024 + host_id: 128 + reserved: 0 + + - + start_resource: 304 + num_resource: 100 + type: 25025 + host_id: 12 + reserved: 0 + + - + start_resource: 404 + num_resource: 50 + type: 25025 + host_id: 13 + reserved: 0 + + - + start_resource: 454 + num_resource: 256 + type: 25025 + host_id: 3 + reserved: 0 + + - + start_resource: 454 + num_resource: 256 + type: 25025 + host_id: 4 + reserved: 0 + + - + start_resource: 710 + num_resource: 32 + type: 25025 + host_id: 5 + reserved: 0 + + - + start_resource: 742 + num_resource: 26 + type: 25025 + host_id: 128 + reserved: 0 + + - + start_resource: 160 + num_resource: 12 + type: 25026 + host_id: 12 + reserved: 0 + + - + start_resource: 172 + num_resource: 4 + type: 25026 + host_id: 3 + reserved: 0 + + - + start_resource: 172 + num_resource: 4 + type: 25026 + host_id: 4 + reserved: 0 + + - + start_resource: 172 + num_resource: 0 + type: 25026 + host_id: 13 + reserved: 0 + + - + start_resource: 176 + num_resource: 2 + type: 25026 + host_id: 5 + reserved: 0 + + - + start_resource: 178 + num_resource: 52 + type: 25026 + host_id: 12 + reserved: 0 + + - + start_resource: 230 + num_resource: 8 + type: 25026 + host_id: 13 + reserved: 0 + + - + start_resource: 238 + num_resource: 32 + type: 25026 + host_id: 3 + reserved: 0 + + - + start_resource: 238 + num_resource: 32 + type: 25026 + host_id: 4 + reserved: 0 + + - + start_resource: 270 + num_resource: 14 + type: 25026 + host_id: 5 + reserved: 0 + + - + start_resource: 284 + num_resource: 18 + type: 25026 + host_id: 128 + reserved: 0 + + - + start_resource: 8 + num_resource: 12 + type: 25027 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25027 + host_id: 3 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25027 + host_id: 4 + reserved: 0 + + - + start_resource: 20 + num_resource: 0 + type: 25027 + host_id: 13 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 25027 + host_id: 5 + reserved: 0 + + - + start_resource: 26 + num_resource: 38 + type: 25027 + host_id: 12 + reserved: 0 + + - + start_resource: 64 + num_resource: 8 + type: 25027 + host_id: 13 + reserved: 0 + + - + start_resource: 72 + num_resource: 32 + type: 25027 + host_id: 3 + reserved: 0 + + - + start_resource: 72 + num_resource: 32 + type: 25027 + host_id: 4 + reserved: 0 + + - + start_resource: 104 + num_resource: 14 + type: 25027 + host_id: 5 + reserved: 0 + + - + start_resource: 118 + num_resource: 2 + type: 25027 + host_id: 128 + reserved: 0 + + - + start_resource: 120 + num_resource: 4 + type: 25028 + host_id: 12 + reserved: 0 + + - + start_resource: 124 + num_resource: 4 + type: 25028 + host_id: 13 + reserved: 0 + + - + start_resource: 128 + num_resource: 12 + type: 25028 + host_id: 3 + reserved: 0 + + - + start_resource: 128 + num_resource: 12 + type: 25028 + host_id: 4 + reserved: 0 + + - + start_resource: 140 + num_resource: 12 + type: 25028 + host_id: 5 + reserved: 0 + + - + start_resource: 154 + num_resource: 0 + type: 25029 + host_id: 3 + reserved: 0 + + - + start_resource: 154 + num_resource: 0 + type: 25029 + host_id: 4 + reserved: 0 + + - + start_resource: 154 + num_resource: 0 + type: 25029 + host_id: 5 + reserved: 0 + + - + start_resource: 154 + num_resource: 0 + type: 25029 + host_id: 12 + reserved: 0 + + - + start_resource: 154 + num_resource: 2 + type: 25029 + host_id: 12 + reserved: 0 + + - + start_resource: 156 + num_resource: 2 + type: 25029 + host_id: 3 + reserved: 0 + + - + start_resource: 156 + num_resource: 2 + type: 25029 + host_id: 4 + reserved: 0 + + - + start_resource: 158 + num_resource: 2 + type: 25029 + host_id: 5 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25031 + host_id: 3 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25031 + host_id: 4 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25031 + host_id: 5 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25031 + host_id: 12 + reserved: 0 + + - + start_resource: 1 + num_resource: 3 + type: 25031 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25031 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25031 + host_id: 4 + reserved: 0 + + - + start_resource: 6 + num_resource: 2 + type: 25031 + host_id: 5 + reserved: 0 + + - + start_resource: 2 + num_resource: 1 + type: 25034 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 1 + type: 25034 + host_id: 13 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 25035 + host_id: 12 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 25035 + host_id: 3 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 25035 + host_id: 4 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 25035 + host_id: 5 + reserved: 0 + + - + start_resource: 24 + num_resource: 8 + type: 25035 + host_id: 128 + reserved: 0 + + - + start_resource: 150 + num_resource: 64 + type: 25088 + host_id: 12 + reserved: 0 + + - + start_resource: 214 + num_resource: 8 + type: 25088 + host_id: 13 + reserved: 0 + + - + start_resource: 222 + num_resource: 64 + type: 25088 + host_id: 3 + reserved: 0 + + - + start_resource: 222 + num_resource: 64 + type: 25088 + host_id: 4 + reserved: 0 + + - + start_resource: 286 + num_resource: 8 + type: 25088 + host_id: 5 + reserved: 0 + + - + start_resource: 294 + num_resource: 6 + type: 25088 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25089 + host_id: 128 + reserved: 0 + + - + start_resource: 49152 + num_resource: 1024 + type: 25090 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25091 + host_id: 128 + reserved: 0 + + - + start_resource: 8 + num_resource: 12 + type: 25098 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25098 + host_id: 3 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25098 + host_id: 4 + reserved: 0 + + - + start_resource: 20 + num_resource: 0 + type: 25098 + host_id: 13 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 25098 + host_id: 5 + reserved: 0 + + - + start_resource: 26 + num_resource: 52 + type: 25098 + host_id: 12 + reserved: 0 + + - + start_resource: 78 + num_resource: 8 + type: 25098 + host_id: 13 + reserved: 0 + + - + start_resource: 86 + num_resource: 32 + type: 25098 + host_id: 3 + reserved: 0 + + - + start_resource: 86 + num_resource: 32 + type: 25098 + host_id: 4 + reserved: 0 + + - + start_resource: 118 + num_resource: 14 + type: 25098 + host_id: 5 + reserved: 0 + + - + start_resource: 132 + num_resource: 18 + type: 25098 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 0 + type: 25099 + host_id: 3 + reserved: 0 + + - + start_resource: 2 + num_resource: 0 + type: 25099 + host_id: 4 + reserved: 0 + + - + start_resource: 2 + num_resource: 0 + type: 25099 + host_id: 5 + reserved: 0 + + - + start_resource: 2 + num_resource: 0 + type: 25099 + host_id: 12 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 25099 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25099 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25099 + host_id: 4 + reserved: 0 + + - + start_resource: 6 + num_resource: 2 + type: 25099 + host_id: 5 + reserved: 0 + + - + start_resource: 8 + num_resource: 12 + type: 25101 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25101 + host_id: 3 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 25101 + host_id: 4 + reserved: 0 + + - + start_resource: 20 + num_resource: 0 + type: 25101 + host_id: 13 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 25101 + host_id: 5 + reserved: 0 + + - + start_resource: 26 + num_resource: 38 + type: 25101 + host_id: 12 + reserved: 0 + + - + start_resource: 64 + num_resource: 8 + type: 25101 + host_id: 13 + reserved: 0 + + - + start_resource: 72 + num_resource: 32 + type: 25101 + host_id: 3 + reserved: 0 + + - + start_resource: 72 + num_resource: 32 + type: 25101 + host_id: 4 + reserved: 0 + + - + start_resource: 104 + num_resource: 14 + type: 25101 + host_id: 5 + reserved: 0 + + - + start_resource: 118 + num_resource: 2 + type: 25101 + host_id: 128 + reserved: 0 + + - + start_resource: 120 + num_resource: 4 + type: 25102 + host_id: 12 + reserved: 0 + + - + start_resource: 124 + num_resource: 4 + type: 25102 + host_id: 13 + reserved: 0 + + - + start_resource: 128 + num_resource: 12 + type: 25102 + host_id: 3 + reserved: 0 + + - + start_resource: 128 + num_resource: 12 + type: 25102 + host_id: 4 + reserved: 0 + + - + start_resource: 140 + num_resource: 12 + type: 25102 + host_id: 5 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25103 + host_id: 3 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25103 + host_id: 4 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25103 + host_id: 5 + reserved: 0 + + - + start_resource: 1 + num_resource: 0 + type: 25103 + host_id: 12 + reserved: 0 + + - + start_resource: 1 + num_resource: 3 + type: 25103 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25103 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 2 + type: 25103 + host_id: 4 + reserved: 0 + + - + start_resource: 6 + num_resource: 2 + type: 25103 + host_id: 5 + reserved: 0 + + - + start_resource: 8 + num_resource: 80 + type: 25162 + host_id: 12 + reserved: 0 + + - + start_resource: 88 + num_resource: 30 + type: 25162 + host_id: 13 + reserved: 0 + + - + start_resource: 118 + num_resource: 50 + type: 25162 + host_id: 3 + reserved: 0 + + - + start_resource: 118 + num_resource: 50 + type: 25162 + host_id: 4 + reserved: 0 + + - + start_resource: 168 + num_resource: 50 + type: 25162 + host_id: 5 + reserved: 0 + + - + start_resource: 218 + num_resource: 38 + type: 25162 + host_id: 128 + reserved: 0 + + - + start_resource: 16392 + num_resource: 512 + type: 25165 + host_id: 12 + reserved: 0 + + - + start_resource: 16904 + num_resource: 128 + type: 25165 + host_id: 13 + reserved: 0 + + - + start_resource: 17032 + num_resource: 256 + type: 25165 + host_id: 3 + reserved: 0 + + - + start_resource: 17032 + num_resource: 256 + type: 25165 + host_id: 4 + reserved: 0 + + - + start_resource: 17288 + num_resource: 256 + type: 25165 + host_id: 5 + reserved: 0 + + - + start_resource: 17544 + num_resource: 376 + type: 25165 + host_id: 128 + reserved: 0 + + - + start_resource: 4 + num_resource: 28 + type: 25600 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 28 + type: 25600 + host_id: 4 + reserved: 0 + + - + start_resource: 36 + num_resource: 28 + type: 25600 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 25664 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 4 + type: 25664 + host_id: 13 + reserved: 0 + + - + start_resource: 16 + num_resource: 24 + type: 25664 + host_id: 3 + reserved: 0 + + - + start_resource: 16 + num_resource: 24 + type: 25664 + host_id: 4 + reserved: 0 + + - + start_resource: 40 + num_resource: 24 + type: 25664 + host_id: 5 + reserved: 0 + + - + start_resource: 48 + num_resource: 16 + type: 25856 + host_id: 12 + reserved: 0 + + - + start_resource: 64 + num_resource: 4 + type: 25856 + host_id: 13 + reserved: 0 + + - + start_resource: 68 + num_resource: 16 + type: 25856 + host_id: 3 + reserved: 0 + + - + start_resource: 68 + num_resource: 16 + type: 25856 + host_id: 4 + reserved: 0 + + - + start_resource: 84 + num_resource: 8 + type: 25856 + host_id: 5 + reserved: 0 + + - + start_resource: 92 + num_resource: 4 + type: 25856 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25857 + host_id: 128 + reserved: 0 + + - + start_resource: 56320 + num_resource: 256 + type: 25858 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25859 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 25866 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25866 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25866 + host_id: 4 + reserved: 0 + + - + start_resource: 4 + num_resource: 0 + type: 25866 + host_id: 13 + reserved: 0 + + - + start_resource: 8 + num_resource: 2 + type: 25866 + host_id: 5 + reserved: 0 + + - + start_resource: 10 + num_resource: 12 + type: 25866 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 4 + type: 25866 + host_id: 13 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25866 + host_id: 3 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25866 + host_id: 4 + reserved: 0 + + - + start_resource: 36 + num_resource: 12 + type: 25866 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25867 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25867 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25867 + host_id: 4 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25867 + host_id: 4 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 25869 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25869 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25869 + host_id: 4 + reserved: 0 + + - + start_resource: 4 + num_resource: 0 + type: 25869 + host_id: 13 + reserved: 0 + + - + start_resource: 8 + num_resource: 2 + type: 25869 + host_id: 5 + reserved: 0 + + - + start_resource: 10 + num_resource: 12 + type: 25869 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 4 + type: 25869 + host_id: 13 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25869 + host_id: 3 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25869 + host_id: 4 + reserved: 0 + + - + start_resource: 36 + num_resource: 12 + type: 25869 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25871 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25871 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25871 + host_id: 4 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25871 + host_id: 4 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 25920 + host_id: 128 + reserved: 0 + + - + start_resource: 96 + num_resource: 32 + type: 25921 + host_id: 12 + reserved: 0 + + - + start_resource: 128 + num_resource: 8 + type: 25921 + host_id: 13 + reserved: 0 + + - + start_resource: 136 + num_resource: 60 + type: 25921 + host_id: 3 + reserved: 0 + + - + start_resource: 136 + num_resource: 60 + type: 25921 + host_id: 4 + reserved: 0 + + - + start_resource: 196 + num_resource: 60 + type: 25921 + host_id: 5 + reserved: 0 + + - + start_resource: 50 + num_resource: 2 + type: 25922 + host_id: 12 + reserved: 0 + + - + start_resource: 52 + num_resource: 4 + type: 25922 + host_id: 3 + reserved: 0 + + - + start_resource: 52 + num_resource: 4 + type: 25922 + host_id: 4 + reserved: 0 + + - + start_resource: 52 + num_resource: 0 + type: 25922 + host_id: 13 + reserved: 0 + + - + start_resource: 56 + num_resource: 2 + type: 25922 + host_id: 5 + reserved: 0 + + - + start_resource: 58 + num_resource: 12 + type: 25922 + host_id: 12 + reserved: 0 + + - + start_resource: 70 + num_resource: 4 + type: 25922 + host_id: 13 + reserved: 0 + + - + start_resource: 74 + num_resource: 10 + type: 25922 + host_id: 3 + reserved: 0 + + - + start_resource: 74 + num_resource: 10 + type: 25922 + host_id: 4 + reserved: 0 + + - + start_resource: 84 + num_resource: 12 + type: 25922 + host_id: 5 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 25923 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25923 + host_id: 3 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 25923 + host_id: 4 + reserved: 0 + + - + start_resource: 4 + num_resource: 0 + type: 25923 + host_id: 13 + reserved: 0 + + - + start_resource: 8 + num_resource: 2 + type: 25923 + host_id: 5 + reserved: 0 + + - + start_resource: 10 + num_resource: 12 + type: 25923 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 4 + type: 25923 + host_id: 13 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25923 + host_id: 3 + reserved: 0 + + - + start_resource: 26 + num_resource: 10 + type: 25923 + host_id: 4 + reserved: 0 + + - + start_resource: 36 + num_resource: 12 + type: 25923 + host_id: 5 + reserved: 0 + + - + start_resource: 48 + num_resource: 0 + type: 25925 + host_id: 3 + reserved: 0 + + - + start_resource: 48 + num_resource: 2 + type: 25925 + host_id: 3 + reserved: 0 + + - + start_resource: 48 + num_resource: 0 + type: 25925 + host_id: 4 + reserved: 0 + + - + start_resource: 48 + num_resource: 2 + type: 25925 + host_id: 4 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25927 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25927 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 25927 + host_id: 4 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 25927 + host_id: 4 + reserved: 0 + + - + start_resource: 2 + num_resource: 1 + type: 25930 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 1 + type: 25930 + host_id: 13 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 25931 + host_id: 12 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 25931 + host_id: 3 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 25931 + host_id: 4 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 25931 + host_id: 5 + reserved: 0 + + - + start_resource: 24 + num_resource: 8 + type: 25931 + host_id: 128 + reserved: 0
Signature · 1 line
2.34.1
PATCH 10/21 am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin, u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for AM65x.
tiboot3.bin, sysfw.itb, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, sysfw.itb, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices
Note that the bootflow followed by AM65x requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
sysfw.itb:
* sysfw
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* ATF
* OPTEE
* A53 SPL
* A53 SPL dtbs
u-boot.img:
* A53 U-Boot
* A53 U-Boot dtbs
--- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 1 + .../dts/k3-am654-r5-base-board-u-boot.dtsi | 1 + arch/arm/dts/k3-am65x-binman.dtsi | 482 ++++++++++++++++++ board/ti/am65x/Kconfig | 2 + 4 files changed, 486 insertions(+) create mode 100644 arch/arm/dts/k3-am65x-binman.dtsi
arch/arm/dts/k3-am654-base-board-u-boot.dtsi +1 -0
@@ -4,6 +4,7 @@ */ #include "k3-am654-r5-base-board-u-boot.dtsi" +#include "k3-am65x-binman.dtsi" &pru0_0 { remoteproc-name = "pru0_0";
arch/arm/dts/k3-am654-r5-base-board-u-boot.dtsi +1 -0
@@ -5,6 +5,7 @@ #include <dt-bindings/pinctrl/k3.h> #include <dt-bindings/net/ti-dp83867.h> +#include "k3-am65x-binman.dtsi" / { chosen {
arch/arm/dts/k3-am65x-binman.dtsi new file +482 -0
482 lines not on this page · raw message
board/ti/am65x/Kconfig +2 -0
@@ -13,6 +13,7 @@ config TARGET_AM654_A53_EVM select SOC_K3_AM654 select SYS_DISABLE_DCACHE_OPS select BOARD_LATE_INIT + select BINMAN imply TI_I2C_BOARD_DETECT config TARGET_AM654_R5_EVM
@@ -22,6 +23,7 @@ config TARGET_AM654_R5_EVM select SOC_K3_AM654 select K3_LOAD_SYSFW select K3_AM654_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
Signature · 1 line
2.34.1
PATCH 11/21 config: am64x: Add board config for AM64x
In reply to Neha Malcom FrancisAdded YAML config for AM64xx
--- board/ti/am64x/config.yaml | 1805 ++++++++++++++++++++++++++++++++++++ 1 file changed, 1805 insertions(+) create mode 100644 board/ti/am64x/config.yaml
board/ti/am64x/config.yaml new file +1805 -0
@@ -0,0 +1,1805 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for AM64x +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x0 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00 + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + +sec-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + processor_acl_list: + subhdr: + magic: 0xF1EA + size: 164 + proc_acl_entries: + - #1 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #2 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #3 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #4 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #5 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #6 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #7 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #8 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #9 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #10 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #11 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #12 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #13 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #14 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #15 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #16 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #17 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #18 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #19 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #20 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #21 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #22 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #23 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #24 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #25 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #26 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #27 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #28 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #29 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #30 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #31 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #32 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + + host_hierarchy: + subhdr: + magic: 0x8D27 + size: 68 + host_hierarchy_entries: + - #1 + host_id: 0 + supervisor_host_id: 0 + - #2 + host_id: 0 + supervisor_host_id: 0 + - #3 + host_id: 0 + supervisor_host_id: 0 + - #4 + host_id: 0 + supervisor_host_id: 0 + - #5 + host_id: 0 + supervisor_host_id: 0 + - #6 + host_id: 0 + supervisor_host_id: 0 + - #7 + host_id: 0 + supervisor_host_id: 0 + - #8 + host_id: 0 + supervisor_host_id: 0 + - #9 + host_id: 0 + supervisor_host_id: 0 + - #10 + host_id: 0 + supervisor_host_id: 0 + - #11 + host_id: 0 + supervisor_host_id: 0 + - #12 + host_id: 0 + supervisor_host_id: 0 + - #13 + host_id: 0 + supervisor_host_id: 0 + - #14 + host_id: 0 + supervisor_host_id: 0 + - #15 + host_id: 0 + supervisor_host_id: 0 + - #16 + host_id: 0 + supervisor_host_id: 0 + - #17 + host_id: 0 + supervisor_host_id: 0 + - #18 + host_id: 0 + supervisor_host_id: 0 + - #19 + host_id: 0 + supervisor_host_id: 0 + - #20 + host_id: 0 + supervisor_host_id: 0 + - #21 + host_id: 0 + supervisor_host_id: 0 + - #22 + host_id: 0 + supervisor_host_id: 0 + - #23 + host_id: 0 + supervisor_host_id: 0 + - #24 + host_id: 0 + supervisor_host_id: 0 + - #25 + host_id: 0 + supervisor_host_id: 0 + - #26 + host_id: 0 + supervisor_host_id: 0 + - #27 + host_id: 0 + supervisor_host_id: 0 + - #28 + host_id: 0 + supervisor_host_id: 0 + - #29 + host_id: 0 + supervisor_host_id: 0 + - #30 + host_id: 0 + supervisor_host_id: 0 + - #31 + host_id: 0 + supervisor_host_id: 0 + - #32 + host_id: 0 + supervisor_host_id: 0 + otp_config: + subhdr: + magic: 0x4081 + size: 69 + write_host_id : 0 + otp_entry: + - #1 + host_id: 0 + host_perms: 0 + - #2 + host_id: 0 + host_perms: 0 + - #3 + host_id: 0 + host_perms: 0 + - #4 + host_id: 0 + host_perms: 0 + - #5 + host_id: 0 + host_perms: 0 + - #6 + host_id: 0 + host_perms: 0 + - #7 + host_id: 0 + host_perms: 0 + - #8 + host_id: 0 + host_perms: 0 + - #9 + host_id: 0 + host_perms: 0 + - #10 + host_id: 0 + host_perms: 0 + - #11 + host_id: 0 + host_perms: 0 + - #12 + host_id: 0 + host_perms: 0 + - #13 + host_id: 0 + host_perms: 0 + - #14 + host_id: 0 + host_perms: 0 + - #15 + host_id: 0 + host_perms: 0 + - #16 + host_id: 0 + host_perms: 0 + - #17 + host_id: 0 + host_perms: 0 + - #18 + host_id: 0 + host_perms: 0 + - #19 + host_id: 0 + host_perms: 0 + - #20 + host_id: 0 + host_perms: 0 + - #21 + host_id: 0 + host_perms: 0 + - #22 + host_id: 0 + host_perms: 0 + - #23 + host_id: 0 + host_perms: 0 + - #24 + host_id: 0 + host_perms: 0 + - #25 + host_id: 0 + host_perms: 0 + - #26 + host_id: 0 + host_perms: 0 + - #27 + host_id: 0 + host_perms: 0 + - #28 + host_id: 0 + host_perms: 0 + - #29 + host_id: 0 + host_perms: 0 + - #30 + host_id: 0 + host_perms: 0 + - #31 + host_id: 0 + host_perms: 0 + - #32 + host_id: 0 + host_perms: 0 + dkek_config: + subhdr: + magic: 0x5170 + size: 12 + allowed_hosts: [128, 0, 0, 0] + allow_dkek_export_tisci : 0x5A + rsvd: [0, 0, 0] + sa2ul_cfg: + subhdr: + magic: 0x23BE + size : 0 + rsvd: [0, 0, 0, 0] + sec_dbg_config: + subhdr: + magic: 0x42AF + size: 16 + allow_jtag_unlock : 0x5A + allow_wildcard_unlock : 0x5A + allowed_debug_level_rsvd : 0 + rsvd : 0 + min_cert_rev : 0x0 + jtag_unlock_hosts: [0, 0, 0, 0] + sec_handover_cfg: + subhdr: + magic: 0x608F + size: 10 + handover_msg_sender : 0 + handover_to_host_id : 0 + rsvd: [0, 0, 0, 0] + +rm-cfg: + rm_boardcfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + host_cfg: + subhdr: + magic: 0x4C41 + size : 356 + host_cfg_entries: + - #1 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #2 + host_id: 30 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #3 + host_id: 36 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #4 + host_id: 38 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #5 + host_id: 41 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #6 + host_id: 43 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #7 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #8 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #9 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #10 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #11 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #12 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #13 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #14 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #15 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #16 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #17 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #18 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #19 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #20 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #21 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #22 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #23 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #24 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #25 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #26 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #27 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #28 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #29 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #30 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #31 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + + - #32 + host_id: 0 + allowed_atype: 0 + allowed_qos: 0 + allowed_orderid: 0 + allowed_priority: 0 + allowed_sched_priority: 0 + resasg: + subhdr: + magic: 0x7B25 + size : 8 + resasg_entries_size: 1288 + reserved : 0 + resasg_entries: + - + start_resource: 0 + num_resource: 16 + type: 64 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 35 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 36 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 64 + host_id: 38 + reserved: 0 + + - + start_resource: 24 + num_resource: 4 + type: 64 + host_id: 41 + reserved: 0 + + - + start_resource: 28 + num_resource: 4 + type: 64 + host_id: 43 + reserved: 0 + + - + start_resource: 32 + num_resource: 8 + type: 64 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 192 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 192 + host_id: 41 + reserved: 0 + + - + start_resource: 14 + num_resource: 2 + type: 192 + host_id: 43 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 320 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 320 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 41 + type: 384 + host_id: 128 + reserved: 0 + + - + start_resource: 50176 + num_resource: 136 + type: 1666 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 1667 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 1677 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 1677 + host_id: 35 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 1677 + host_id: 36 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 1677 + host_id: 38 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 1677 + host_id: 41 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 1677 + host_id: 43 + reserved: 0 + + - + start_resource: 26 + num_resource: 1 + type: 1677 + host_id: 30 + reserved: 0 + + - + start_resource: 27 + num_resource: 1 + type: 1677 + host_id: 128 + reserved: 0 + + - + start_resource: 48 + num_resource: 6 + type: 1678 + host_id: 12 + reserved: 0 + + - + start_resource: 54 + num_resource: 6 + type: 1678 + host_id: 35 + reserved: 0 + + - + start_resource: 54 + num_resource: 6 + type: 1678 + host_id: 36 + reserved: 0 + + - + start_resource: 60 + num_resource: 2 + type: 1678 + host_id: 38 + reserved: 0 + + - + start_resource: 62 + num_resource: 4 + type: 1678 + host_id: 41 + reserved: 0 + + - + start_resource: 66 + num_resource: 2 + type: 1678 + host_id: 43 + reserved: 0 + + - + start_resource: 28 + num_resource: 6 + type: 1679 + host_id: 12 + reserved: 0 + + - + start_resource: 34 + num_resource: 6 + type: 1679 + host_id: 35 + reserved: 0 + + - + start_resource: 34 + num_resource: 6 + type: 1679 + host_id: 36 + reserved: 0 + + - + start_resource: 40 + num_resource: 2 + type: 1679 + host_id: 38 + reserved: 0 + + - + start_resource: 42 + num_resource: 4 + type: 1679 + host_id: 41 + reserved: 0 + + - + start_resource: 46 + num_resource: 2 + type: 1679 + host_id: 43 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 1696 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 1696 + host_id: 35 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 1696 + host_id: 36 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 1696 + host_id: 38 + reserved: 0 + + - + start_resource: 20 + num_resource: 4 + type: 1696 + host_id: 41 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 1696 + host_id: 43 + reserved: 0 + + - + start_resource: 26 + num_resource: 1 + type: 1696 + host_id: 30 + reserved: 0 + + - + start_resource: 27 + num_resource: 1 + type: 1696 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 6 + type: 1697 + host_id: 12 + reserved: 0 + + - + start_resource: 6 + num_resource: 6 + type: 1697 + host_id: 35 + reserved: 0 + + - + start_resource: 6 + num_resource: 6 + type: 1697 + host_id: 36 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 1697 + host_id: 38 + reserved: 0 + + - + start_resource: 14 + num_resource: 4 + type: 1697 + host_id: 41 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 1697 + host_id: 43 + reserved: 0 + + - + start_resource: 0 + num_resource: 6 + type: 1698 + host_id: 12 + reserved: 0 + + - + start_resource: 6 + num_resource: 6 + type: 1698 + host_id: 35 + reserved: 0 + + - + start_resource: 6 + num_resource: 6 + type: 1698 + host_id: 36 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 1698 + host_id: 38 + reserved: 0 + + - + start_resource: 14 + num_resource: 4 + type: 1698 + host_id: 41 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 1698 + host_id: 43 + reserved: 0 + + - + start_resource: 4 + num_resource: 36 + type: 1802 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 14 + type: 1802 + host_id: 35 + reserved: 0 + + - + start_resource: 44 + num_resource: 14 + type: 1802 + host_id: 36 + reserved: 0 + + - + start_resource: 58 + num_resource: 14 + type: 1802 + host_id: 38 + reserved: 0 + + - + start_resource: 92 + num_resource: 14 + type: 1802 + host_id: 41 + reserved: 0 + + - + start_resource: 106 + num_resource: 14 + type: 1802 + host_id: 43 + reserved: 0 + + - + start_resource: 168 + num_resource: 16 + type: 1802 + host_id: 30 + reserved: 0 + + - + start_resource: 15 + num_resource: 512 + type: 1805 + host_id: 12 + reserved: 0 + + - + start_resource: 527 + num_resource: 256 + type: 1805 + host_id: 35 + reserved: 0 + + - + start_resource: 527 + num_resource: 256 + type: 1805 + host_id: 36 + reserved: 0 + + - + start_resource: 783 + num_resource: 192 + type: 1805 + host_id: 38 + reserved: 0 + + - + start_resource: 975 + num_resource: 256 + type: 1805 + host_id: 41 + reserved: 0 + + - + start_resource: 1231 + num_resource: 192 + type: 1805 + host_id: 43 + reserved: 0 + + - + start_resource: 1423 + num_resource: 96 + type: 1805 + host_id: 30 + reserved: 0 + + - + start_resource: 1519 + num_resource: 17 + type: 1805 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1024 + type: 1807 + host_id: 128 + reserved: 0 + + - + start_resource: 4096 + num_resource: 42 + type: 1808 + host_id: 128 + reserved: 0 + + - + start_resource: 4608 + num_resource: 112 + type: 1809 + host_id: 128 + reserved: 0 + + - + start_resource: 5120 + num_resource: 29 + type: 1810 + host_id: 128 + reserved: 0 + + - + start_resource: 5632 + num_resource: 176 + type: 1811 + host_id: 128 + reserved: 0 + + - + start_resource: 6144 + num_resource: 176 + type: 1812 + host_id: 128 + reserved: 0 + + - + start_resource: 6656 + num_resource: 176 + type: 1813 + host_id: 128 + reserved: 0 + + - + start_resource: 8192 + num_resource: 28 + type: 1814 + host_id: 128 + reserved: 0 + + - + start_resource: 8704 + num_resource: 28 + type: 1815 + host_id: 128 + reserved: 0 + + - + start_resource: 9216 + num_resource: 28 + type: 1816 + host_id: 128 + reserved: 0 + + - + start_resource: 9728 + num_resource: 20 + type: 1817 + host_id: 128 + reserved: 0 + + - + start_resource: 10240 + num_resource: 20 + type: 1818 + host_id: 128 + reserved: 0 + + - + start_resource: 10752 + num_resource: 20 + type: 1819 + host_id: 128 + reserved: 0 + + - + start_resource: 11264 + num_resource: 20 + type: 1820 + host_id: 128 + reserved: 0 + + - + start_resource: 11776 + num_resource: 20 + type: 1821 + host_id: 128 + reserved: 0 + + - + start_resource: 12288 + num_resource: 20 + type: 1822 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 1923 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 1936 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1936 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1936 + host_id: 36 + reserved: 0 + + - + start_resource: 7 + num_resource: 2 + type: 1936 + host_id: 38 + reserved: 0 + + - + start_resource: 9 + num_resource: 4 + type: 1936 + host_id: 41 + reserved: 0 + + - + start_resource: 13 + num_resource: 2 + type: 1936 + host_id: 43 + reserved: 0 + + - + start_resource: 15 + num_resource: 1 + type: 1936 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 64 + type: 1937 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 64 + type: 1937 + host_id: 35 + reserved: 0 + + - + start_resource: 88 + num_resource: 8 + type: 1939 + host_id: 12 + reserved: 0 + + - + start_resource: 96 + num_resource: 8 + type: 1940 + host_id: 12 + reserved: 0 + + - + start_resource: 104 + num_resource: 8 + type: 1941 + host_id: 12 + reserved: 0 + + - + start_resource: 112 + num_resource: 4 + type: 1942 + host_id: 12 + reserved: 0 + + - + start_resource: 116 + num_resource: 3 + type: 1942 + host_id: 35 + reserved: 0 + + - + start_resource: 116 + num_resource: 3 + type: 1942 + host_id: 36 + reserved: 0 + + - + start_resource: 119 + num_resource: 2 + type: 1942 + host_id: 38 + reserved: 0 + + - + start_resource: 121 + num_resource: 4 + type: 1942 + host_id: 41 + reserved: 0 + + - + start_resource: 125 + num_resource: 2 + type: 1942 + host_id: 43 + reserved: 0 + + - + start_resource: 127 + num_resource: 1 + type: 1942 + host_id: 30 + reserved: 0 + + - + start_resource: 128 + num_resource: 16 + type: 1943 + host_id: 12 + reserved: 0 + + - + start_resource: 128 + num_resource: 16 + type: 1943 + host_id: 35 + reserved: 0 + + - + start_resource: 144 + num_resource: 8 + type: 1945 + host_id: 128 + reserved: 0 + + - + start_resource: 152 + num_resource: 8 + type: 1946 + host_id: 12 + reserved: 0 + + - + start_resource: 152 + num_resource: 8 + type: 1947 + host_id: 12 + reserved: 0 + + - + start_resource: 160 + num_resource: 64 + type: 1948 + host_id: 12 + reserved: 0 + + - + start_resource: 224 + num_resource: 64 + type: 1949 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 1955 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1955 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1955 + host_id: 36 + reserved: 0 + + - + start_resource: 7 + num_resource: 2 + type: 1955 + host_id: 38 + reserved: 0 + + - + start_resource: 9 + num_resource: 4 + type: 1955 + host_id: 41 + reserved: 0 + + - + start_resource: 13 + num_resource: 2 + type: 1955 + host_id: 43 + reserved: 0 + + - + start_resource: 15 + num_resource: 1 + type: 1955 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 1956 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 1956 + host_id: 35 + reserved: 0 + + - + start_resource: 25 + num_resource: 1 + type: 1958 + host_id: 12 + reserved: 0 + + - + start_resource: 26 + num_resource: 8 + type: 1959 + host_id: 12 + reserved: 0 + + - + start_resource: 34 + num_resource: 8 + type: 1960 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 1961 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1961 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1961 + host_id: 36 + reserved: 0 + + - + start_resource: 7 + num_resource: 2 + type: 1961 + host_id: 38 + reserved: 0 + + - + start_resource: 9 + num_resource: 4 + type: 1961 + host_id: 41 + reserved: 0 + + - + start_resource: 13 + num_resource: 2 + type: 1961 + host_id: 43 + reserved: 0 + + - + start_resource: 15 + num_resource: 1 + type: 1961 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 1962 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1962 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 3 + type: 1962 + host_id: 36 + reserved: 0 + + - + start_resource: 7 + num_resource: 2 + type: 1962 + host_id: 38 + reserved: 0 + + - + start_resource: 9 + num_resource: 4 + type: 1962 + host_id: 41 + reserved: 0 + + - + start_resource: 13 + num_resource: 2 + type: 1962 + host_id: 43 + reserved: 0 + + - + start_resource: 15 + num_resource: 1 + type: 1962 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 1 + type: 1963 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 1 + type: 1963 + host_id: 35 + reserved: 0 + + - + start_resource: 16 + num_resource: 16 + type: 1964 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 16 + type: 1964 + host_id: 35 + reserved: 0 + + - + start_resource: 32 + num_resource: 8 + type: 1966 + host_id: 128 + reserved: 0 + + - + start_resource: 32 + num_resource: 8 + type: 1968 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 1 + type: 1969 + host_id: 12 + reserved: 0 + + - + start_resource: 40 + num_resource: 8 + type: 1970 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 1971 + host_id: 12 + reserved: 0 + + - + start_resource: 40 + num_resource: 8 + type: 1972 + host_id: 12 + reserved: 0 + + - + start_resource: 21 + num_resource: 4 + type: 1973 + host_id: 12 + reserved: 0 + + - + start_resource: 48 + num_resource: 64 + type: 1974 + host_id: 12 + reserved: 0 + + - + start_resource: 25 + num_resource: 4 + type: 1975 + host_id: 12 + reserved: 0 + + - + start_resource: 112 + num_resource: 64 + type: 1976 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 2112 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 2122 + host_id: 12 + reserved: 0 + + - + start_resource: 20 + num_resource: 2 + type: 2124 + host_id: 35 + reserved: 0 + + - + start_resource: 20 + num_resource: 2 + type: 2124 + host_id: 36 + reserved: 0 + + - + start_resource: 22 + num_resource: 2 + type: 2124 + host_id: 38 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2124 + host_id: 41 + reserved: 0 + + - + start_resource: 26 + num_resource: 2 + type: 2124 + host_id: 43 + reserved: 0 + + - + start_resource: 28 + num_resource: 4 + type: 2124 + host_id: 128 + reserved: 0
Signature · 1 line
2.34.1
PATCH 12/21 am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for AM64x.
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices
Note that the bootflow followed by AM64x requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* sysfw
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* ATF
* OPTEE
* A53 SPL
* A53 SPL dtbs
u-boot.img:
* A53 U-Boot
* A53 U-Boot dtbs
--- arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 + arch/arm/dts/k3-am642-r5-evm.dts | 1 + arch/arm/dts/k3-am64x-binman.dtsi | 440 ++++++++++++++++++++++++++ board/ti/am64x/Kconfig | 2 + 4 files changed, 445 insertions(+) create mode 100644 arch/arm/dts/k3-am64x-binman.dtsi
arch/arm/dts/k3-am642-evm-u-boot.dtsi +2 -0
@@ -3,6 +3,8 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include "k3-am64x-binman.dtsi" + / { chosen { stdout-path = "serial2:115200n8";
arch/arm/dts/k3-am642-r5-evm.dts +1 -0
@@ -8,6 +8,7 @@ #include "k3-am642.dtsi" #include "k3-am64-evm-ddr4-1600MTs.dtsi" #include "k3-am64-ddr.dtsi" +#include "k3-am64x-binman.dtsi" / { chosen {
arch/arm/dts/k3-am64x-binman.dtsi new file +440 -0
440 lines not on this page · raw message
board/ti/am64x/Kconfig +2 -0
@@ -10,6 +10,7 @@ config TARGET_AM642_A53_EVM bool "TI K3 based AM642 EVM running on A53" select ARM64 select SOC_K3_AM642 + select BINMAN imply BOARD imply SPL_BOARD imply TI_I2C_BOARD_DETECT
@@ -23,6 +24,7 @@ config TARGET_AM642_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
Signature · 1 line
2.34.1
PATCH 13/21 Makefile: Add DM, SYSFW_PATH, SYSFW_HS_INNER_CERT_PATH to BINMAN_INDIRS
In reply to Neha Malcom FrancisTo remain consistent with the build commands utilised for K3 devices, we add the paths where component binaries are located to BINMAN_INDIRS. Adding SYSFW_PATH for system firmware binaries, SYSFW_HS_INNER_CERT_PATH for HS device certificate and DM for Device Manager firmware. This way, the existing build command does not change even though we migrate to using binman.
--- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
Makefile +16 -0
@@ -1317,6 +1317,22 @@ u-boot.ldr: u-boot # Use 'make BINMAN_VERBOSE=3' to set vebosity level default_dt := $(if $(DEVICE_TREE),$(DEVICE_TREE),$(CONFIG_DEFAULT_DEVICE_TREE)) +ifneq ($(SYSFW_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_PATH)) +endif + +ifneq ($(SYSFW_HS_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_HS_PATH)) +endif + +ifneq ($(SYSFW_HS_INNER_CERT_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_HS_INNER_CERT_PATH)) +endif + +ifneq ($(DM),) +override BINMAN_INDIRS += $(dir $(DM)) +endif + quiet_cmd_binman = BINMAN $@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ $(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \
Signature · 1 line
2.34.1
Re: [PATCH 13/21] Makefile: Add DM, SYSFW_PATH, SYSFW_HS_INNER_CERT_PATH to BINMAN_INDIRS
Hi Neha,
Quoted 41 lines · Neha Malcom Francis
To remain consistent with the build commands utilised for K3 devices, we add the paths where component binaries are located to
BINMAN_INDIRS. AddingSYSFW_PATHfor system firmware binaries,SYSFW_HS_INNER_CERT_PATHfor HS device certificate and DM for Device Manager firmware. This way, the existing build command does not change even though we migrate to using binman.Signed-off-by Neha Malcom Francis <[email protected]>--- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)Makefile +16
-1@@ -1317,6 +1317,22 @@ u-boot.ldr: u-boot # Use 'make BINMAN_VERBOSE=3' to set vebosity level default_dt := $(if $(DEVICE_TREE),$(DEVICE_TREE),$(CONFIG_DEFAULT_DEVICE_TREE)) +ifneq ($(SYSFW_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_PATH)) +endif + +ifneq ($(SYSFW_HS_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_HS_PATH)) +endif + +ifneq ($(SYSFW_HS_INNER_CERT_PATH),) +override BINMAN_INDIRS += $(dir $(SYSFW_HS_INNER_CERT_PATH)) +endif + +ifneq ($(DM),) +override BINMAN_INDIRS += $(dir $(DM)) +endif + quiet_cmd_binman = BINMAN $@ cmd_binman = $(srctree)/tools/binman/binman $(if $(BINMAN_DEBUG),-D) \ $(foreach f,$(BINMAN_TOOLPATHS),--toolpath $(f)) \ --
Quoted 2 lines
2.34.1
Let's try to do this another way as it needs to use a bintool for the tool that you run. See my other comments.
Regards,
Simon
PATCH 14/21 j721s2: yaml: Add board config for J721S2
In reply to Neha Malcom FrancisAdded YAML config for J721S2
--- board/ti/j721s2/config.yaml | 3303 +++++++++++++++++++++++++++++++++++ 1 file changed, 3303 insertions(+) create mode 100644 board/ti/j721s2/config.yaml
board/ti/j721s2/config.yaml new file +3303 -0
@@ -0,0 +1,3303 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for J721S2 +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x0 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00 + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + +sec-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + processor_acl_list: + subhdr: + magic: 0xF1EA + size: 164 + proc_acl_entries: + - #1 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #2 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #3 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #4 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #5 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #6 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #7 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #8 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #9 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #10 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #11 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #12 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #13 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #14 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #15 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #16 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #17 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #18 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #19 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #20 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #21 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #22 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #23 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #24 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #25 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #26 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #27 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #28 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #29 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #30 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #31 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #32 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + host_hierarchy: + subhdr: + magic: 0x8D27 + size: 68 + host_hierarchy_entries: + - #1 + host_id: 0 + supervisor_host_id: 0 + - #2 + host_id: 0 + supervisor_host_id: 0 + - #3 + host_id: 0 + supervisor_host_id: 0 + - #4 + host_id: 0 + supervisor_host_id: 0 + - #5 + host_id: 0 + supervisor_host_id: 0 + - #6 + host_id: 0 + supervisor_host_id: 0 + - #7 + host_id: 0 + supervisor_host_id: 0 + - #8 + host_id: 0 + supervisor_host_id: 0 + - #9 + host_id: 0 + supervisor_host_id: 0 + - #10 + host_id: 0 + supervisor_host_id: 0 + - #11 + host_id: 0 + supervisor_host_id: 0 + - #12 + host_id: 0 + supervisor_host_id: 0 + - #13 + host_id: 0 + supervisor_host_id: 0 + - #14 + host_id: 0 + supervisor_host_id: 0 + - #15 + host_id: 0 + supervisor_host_id: 0 + - #16 + host_id: 0 + supervisor_host_id: 0 + - #17 + host_id: 0 + supervisor_host_id: 0 + - #18 + host_id: 0 + supervisor_host_id: 0 + - #19 + host_id: 0 + supervisor_host_id: 0 + - #20 + host_id: 0 + supervisor_host_id: 0 + - #21 + host_id: 0 + supervisor_host_id: 0 + - #22 + host_id: 0 + supervisor_host_id: 0 + - #23 + host_id: 0 + supervisor_host_id: 0 + - #24 + host_id: 0 + supervisor_host_id: 0 + - #25 + host_id: 0 + supervisor_host_id: 0 + - #26 + host_id: 0 + supervisor_host_id: 0 + - #27 + host_id: 0 + supervisor_host_id: 0 + - #28 + host_id: 0 + supervisor_host_id: 0 + - #29 + host_id: 0 + supervisor_host_id: 0 + - #30 + host_id: 0 + supervisor_host_id: 0 + - #31 + host_id: 0 + supervisor_host_id: 0 + - #32 + host_id: 0 + supervisor_host_id: 0 + otp_config: + subhdr: + magic: 0x4081 + size: 69 + write_host_id : 0 + otp_entry: + - #1 + host_id: 0 + host_perms: 0 + - #2 + host_id: 0 + host_perms: 0 + - #3 + host_id: 0 + host_perms: 0 + - #4 + host_id: 0 + host_perms: 0 + - #5 + host_id: 0 + host_perms: 0 + - #6 + host_id: 0 + host_perms: 0 + - #7 + host_id: 0 + host_perms: 0 + - #8 + host_id: 0 + host_perms: 0 + - #9 + host_id: 0 + host_perms: 0 + - #10 + host_id: 0 + host_perms: 0 + - #11 + host_id: 0 + host_perms: 0 + - #12 + host_id: 0 + host_perms: 0 + - #13 + host_id: 0 + host_perms: 0 + - #14 + host_id: 0 + host_perms: 0 + - #15 + host_id: 0 + host_perms: 0 + - #16 + host_id: 0 + host_perms: 0 + - #17 + host_id: 0 + host_perms: 0 + - #18 + host_id: 0 + host_perms: 0 + - #19 + host_id: 0 + host_perms: 0 + - #20 + host_id: 0 + host_perms: 0 + - #21 + host_id: 0 + host_perms: 0 + - #22 + host_id: 0 + host_perms: 0 + - #23 + host_id: 0 + host_perms: 0 + - #24 + host_id: 0 + host_perms: 0 + - #25 + host_id: 0 + host_perms: 0 + - #26 + host_id: 0 + host_perms: 0 + - #27 + host_id: 0 + host_perms: 0 + - #28 + host_id: 0 + host_perms: 0 + - #29 + host_id: 0 + host_perms: 0 + - #30 + host_id: 0 + host_perms: 0 + - #31 + host_id: 0 + host_perms: 0 + - #32 + host_id: 0 + host_perms: 0 + dkek_config: + subhdr: + magic: 0x5170 + size: 12 + allowed_hosts: [128, 0, 0, 0] + allow_dkek_export_tisci : 0x5A + rsvd: [0, 0, 0] + sa2ul_cfg: + subhdr: + magic: 0x23BE + size : 0 + rsvd: [0, 0, 0, 0] + sec_dbg_config: + subhdr: + magic: 0x42AF + size: 16 + allow_jtag_unlock : 0x0 + allow_wildcard_unlock : 0x0 + min_cert_rev : 0x0 + jtag_unlock_hosts: [0, 0, 0, 0] + sec_handover_cfg: + subhdr: + magic: 0x608F + size: 10 + handover_msg_sender : 0 + handover_to_host_id : 0 + rsvd: [0, 0, 0, 0] + +rm-cfg: + rm_boardcfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + host_cfg: + subhdr: + magic: 0x4C41 + size : 356 + host_cfg_entries: + - #1 + host_id: 3 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #2 + host_id: 5 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #3 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #4 + host_id: 13 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #5 + host_id: 21 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #6 + host_id: 23 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #7 + host_id: 35 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #8 + host_id: 37 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #9 + host_id: 40 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #10 + host_id: 42 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #11 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #12 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #13 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #14 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #15 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #16 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #17 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #18 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #19 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #20 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #21 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #22 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #23 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #24 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #25 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #26 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #27 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #28 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #29 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #30 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #31 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #32 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + resasg: + subhdr: + magic: 0x7B25 + size : 8 + resasg_entries_size: 3032 + reserved : 0 + resasg_entries: + - + start_resource: 0 + num_resource: 32 + type: 18496 + host_id: 3 + reserved: 0 + + - + start_resource: 32 + num_resource: 24 + type: 18496 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 24 + type: 18560 + host_id: 3 + reserved: 0 + + - + start_resource: 24 + num_resource: 16 + type: 18560 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 48 + type: 18688 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 18752 + host_id: 3 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 18752 + host_id: 5 + reserved: 0 + + - + start_resource: 16 + num_resource: 6 + type: 18752 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 6 + type: 18752 + host_id: 13 + reserved: 0 + + - + start_resource: 28 + num_resource: 2 + type: 18752 + host_id: 35 + reserved: 0 + + - + start_resource: 30 + num_resource: 2 + type: 18752 + host_id: 37 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 20992 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 20992 + host_id: 37 + reserved: 0 + + - + start_resource: 8 + num_resource: 4 + type: 20992 + host_id: 40 + reserved: 0 + + - + start_resource: 12 + num_resource: 4 + type: 20992 + host_id: 42 + reserved: 0 + + - + start_resource: 16 + num_resource: 8 + type: 20992 + host_id: 3 + reserved: 0 + + - + start_resource: 24 + num_resource: 8 + type: 20992 + host_id: 5 + reserved: 0 + + - + start_resource: 32 + num_resource: 12 + type: 20992 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 12 + type: 20992 + host_id: 13 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 21504 + host_id: 128 + reserved: 0 + + - + start_resource: 50176 + num_resource: 96 + type: 35138 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 35139 + host_id: 128 + reserved: 0 + + - + start_resource: 16 + num_resource: 16 + type: 35150 + host_id: 12 + reserved: 0 + + - + start_resource: 32 + num_resource: 16 + type: 35150 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 35151 + host_id: 12 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 35151 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 35169 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 16 + type: 35169 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 35170 + host_id: 12 + reserved: 0 + + - + start_resource: 8 + num_resource: 8 + type: 35170 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 100 + type: 35264 + host_id: 12 + reserved: 0 + + - + start_resource: 110 + num_resource: 32 + type: 35264 + host_id: 13 + reserved: 0 + + - + start_resource: 142 + num_resource: 21 + type: 35264 + host_id: 21 + reserved: 0 + + - + start_resource: 163 + num_resource: 21 + type: 35264 + host_id: 23 + reserved: 0 + + - + start_resource: 196 + num_resource: 28 + type: 35264 + host_id: 35 + reserved: 0 + + - + start_resource: 228 + num_resource: 28 + type: 35264 + host_id: 37 + reserved: 0 + + - + start_resource: 260 + num_resource: 28 + type: 35264 + host_id: 40 + reserved: 0 + + - + start_resource: 292 + num_resource: 28 + type: 35264 + host_id: 42 + reserved: 0 + + - + start_resource: 400 + num_resource: 4 + type: 35264 + host_id: 3 + reserved: 0 + + - + start_resource: 404 + num_resource: 4 + type: 35264 + host_id: 5 + reserved: 0 + + - + start_resource: 0 + num_resource: 64 + type: 38154 + host_id: 128 + reserved: 0 + + - + start_resource: 20480 + num_resource: 1024 + type: 38157 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 64 + type: 38218 + host_id: 128 + reserved: 0 + + - + start_resource: 22528 + num_resource: 1024 + type: 38221 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 38272 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 38272 + host_id: 13 + reserved: 0 + + - + start_resource: 8 + num_resource: 4 + type: 38272 + host_id: 21 + reserved: 0 + + - + start_resource: 12 + num_resource: 4 + type: 38272 + host_id: 23 + reserved: 0 + + - + start_resource: 16 + num_resource: 12 + type: 38272 + host_id: 35 + reserved: 0 + + - + start_resource: 28 + num_resource: 4 + type: 38272 + host_id: 37 + reserved: 0 + + - + start_resource: 32 + num_resource: 4 + type: 38272 + host_id: 40 + reserved: 0 + + - + start_resource: 36 + num_resource: 4 + type: 38272 + host_id: 42 + reserved: 0 + + - + start_resource: 40 + num_resource: 4 + type: 38272 + host_id: 3 + reserved: 0 + + - + start_resource: 44 + num_resource: 4 + type: 38272 + host_id: 5 + reserved: 0 + + - + start_resource: 48 + num_resource: 16 + type: 38272 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 38464 + host_id: 128 + reserved: 0 + + - + start_resource: 423 + num_resource: 32 + type: 38465 + host_id: 21 + reserved: 0 + + - + start_resource: 455 + num_resource: 32 + type: 38465 + host_id: 23 + reserved: 0 + + - + start_resource: 487 + num_resource: 182 + type: 38465 + host_id: 35 + reserved: 0 + + - + start_resource: 669 + num_resource: 40 + type: 38465 + host_id: 37 + reserved: 0 + + - + start_resource: 709 + num_resource: 10 + type: 38465 + host_id: 40 + reserved: 0 + + - + start_resource: 719 + num_resource: 10 + type: 38465 + host_id: 42 + reserved: 0 + + - + start_resource: 729 + num_resource: 6 + type: 38465 + host_id: 3 + reserved: 0 + + - + start_resource: 735 + num_resource: 6 + type: 38465 + host_id: 5 + reserved: 0 + + - + start_resource: 878 + num_resource: 128 + type: 38465 + host_id: 12 + reserved: 0 + + - + start_resource: 1006 + num_resource: 10 + type: 38465 + host_id: 13 + reserved: 0 + + - + start_resource: 345 + num_resource: 6 + type: 38466 + host_id: 12 + reserved: 0 + + - + start_resource: 351 + num_resource: 0 + type: 38466 + host_id: 13 + reserved: 0 + + - + start_resource: 351 + num_resource: 2 + type: 38466 + host_id: 21 + reserved: 0 + + - + start_resource: 353 + num_resource: 2 + type: 38466 + host_id: 23 + reserved: 0 + + - + start_resource: 355 + num_resource: 6 + type: 38466 + host_id: 35 + reserved: 0 + + - + start_resource: 361 + num_resource: 1 + type: 38466 + host_id: 37 + reserved: 0 + + - + start_resource: 362 + num_resource: 1 + type: 38466 + host_id: 40 + reserved: 0 + + - + start_resource: 363 + num_resource: 1 + type: 38466 + host_id: 42 + reserved: 0 + + - + start_resource: 364 + num_resource: 2 + type: 38466 + host_id: 3 + reserved: 0 + + - + start_resource: 366 + num_resource: 2 + type: 38466 + host_id: 5 + reserved: 0 + + - + start_resource: 368 + num_resource: 16 + type: 38466 + host_id: 12 + reserved: 0 + + - + start_resource: 384 + num_resource: 12 + type: 38466 + host_id: 13 + reserved: 0 + + - + start_resource: 396 + num_resource: 4 + type: 38466 + host_id: 21 + reserved: 0 + + - + start_resource: 400 + num_resource: 4 + type: 38466 + host_id: 23 + reserved: 0 + + - + start_resource: 404 + num_resource: 12 + type: 38466 + host_id: 35 + reserved: 0 + + - + start_resource: 416 + num_resource: 1 + type: 38466 + host_id: 37 + reserved: 0 + + - + start_resource: 417 + num_resource: 2 + type: 38466 + host_id: 40 + reserved: 0 + + - + start_resource: 419 + num_resource: 2 + type: 38466 + host_id: 42 + reserved: 0 + + - + start_resource: 421 + num_resource: 2 + type: 38466 + host_id: 128 + reserved: 0 + + - + start_resource: 4 + num_resource: 6 + type: 38467 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 0 + type: 38467 + host_id: 13 + reserved: 0 + + - + start_resource: 10 + num_resource: 2 + type: 38467 + host_id: 21 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 38467 + host_id: 23 + reserved: 0 + + - + start_resource: 14 + num_resource: 6 + type: 38467 + host_id: 35 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 38467 + host_id: 37 + reserved: 0 + + - + start_resource: 21 + num_resource: 1 + type: 38467 + host_id: 40 + reserved: 0 + + - + start_resource: 22 + num_resource: 1 + type: 38467 + host_id: 42 + reserved: 0 + + - + start_resource: 23 + num_resource: 2 + type: 38467 + host_id: 3 + reserved: 0 + + - + start_resource: 25 + num_resource: 2 + type: 38467 + host_id: 5 + reserved: 0 + + - + start_resource: 27 + num_resource: 16 + type: 38467 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 12 + type: 38467 + host_id: 13 + reserved: 0 + + - + start_resource: 55 + num_resource: 4 + type: 38467 + host_id: 21 + reserved: 0 + + - + start_resource: 59 + num_resource: 4 + type: 38467 + host_id: 23 + reserved: 0 + + - + start_resource: 63 + num_resource: 12 + type: 38467 + host_id: 35 + reserved: 0 + + - + start_resource: 75 + num_resource: 4 + type: 38467 + host_id: 37 + reserved: 0 + + - + start_resource: 79 + num_resource: 2 + type: 38467 + host_id: 40 + reserved: 0 + + - + start_resource: 81 + num_resource: 2 + type: 38467 + host_id: 42 + reserved: 0 + + - + start_resource: 83 + num_resource: 2 + type: 38467 + host_id: 128 + reserved: 0 + + - + start_resource: 85 + num_resource: 16 + type: 38468 + host_id: 21 + reserved: 0 + + - + start_resource: 101 + num_resource: 12 + type: 38468 + host_id: 23 + reserved: 0 + + - + start_resource: 113 + num_resource: 2 + type: 38468 + host_id: 35 + reserved: 0 + + - + start_resource: 115 + num_resource: 2 + type: 38468 + host_id: 37 + reserved: 0 + + - + start_resource: 117 + num_resource: 192 + type: 38468 + host_id: 35 + reserved: 0 + + - + start_resource: 309 + num_resource: 32 + type: 38468 + host_id: 37 + reserved: 0 + + - + start_resource: 343 + num_resource: 1 + type: 38469 + host_id: 12 + reserved: 0 + + - + start_resource: 344 + num_resource: 1 + type: 38469 + host_id: 35 + reserved: 0 + + - + start_resource: 341 + num_resource: 1 + type: 38470 + host_id: 12 + reserved: 0 + + - + start_resource: 342 + num_resource: 1 + type: 38470 + host_id: 35 + reserved: 0 + + - + start_resource: 2 + num_resource: 1 + type: 38471 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 1 + type: 38471 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 38472 + host_id: 12 + reserved: 0 + + - + start_resource: 1 + num_resource: 1 + type: 38472 + host_id: 35 + reserved: 0 + + - + start_resource: 2 + num_resource: 5 + type: 38474 + host_id: 12 + reserved: 0 + + - + start_resource: 7 + num_resource: 1 + type: 38474 + host_id: 13 + reserved: 0 + + - + start_resource: 0 + num_resource: 3 + type: 38475 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 2 + type: 38475 + host_id: 13 + reserved: 0 + + - + start_resource: 5 + num_resource: 3 + type: 38475 + host_id: 21 + reserved: 0 + + - + start_resource: 8 + num_resource: 3 + type: 38475 + host_id: 23 + reserved: 0 + + - + start_resource: 11 + num_resource: 6 + type: 38475 + host_id: 35 + reserved: 0 + + - + start_resource: 17 + num_resource: 3 + type: 38475 + host_id: 37 + reserved: 0 + + - + start_resource: 20 + num_resource: 3 + type: 38475 + host_id: 40 + reserved: 0 + + - + start_resource: 23 + num_resource: 3 + type: 38475 + host_id: 42 + reserved: 0 + + - + start_resource: 26 + num_resource: 1 + type: 38475 + host_id: 3 + reserved: 0 + + - + start_resource: 27 + num_resource: 1 + type: 38475 + host_id: 5 + reserved: 0 + + - + start_resource: 28 + num_resource: 4 + type: 38475 + host_id: 128 + reserved: 0 + + - + start_resource: 82 + num_resource: 16 + type: 39104 + host_id: 12 + reserved: 0 + + - + start_resource: 98 + num_resource: 16 + type: 39104 + host_id: 13 + reserved: 0 + + - + start_resource: 114 + num_resource: 110 + type: 39104 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 39105 + host_id: 128 + reserved: 0 + + - + start_resource: 49152 + num_resource: 1024 + type: 39106 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 39107 + host_id: 128 + reserved: 0 + + - + start_resource: 4 + num_resource: 6 + type: 39114 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 0 + type: 39114 + host_id: 13 + reserved: 0 + + - + start_resource: 10 + num_resource: 2 + type: 39114 + host_id: 21 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 39114 + host_id: 23 + reserved: 0 + + - + start_resource: 14 + num_resource: 6 + type: 39114 + host_id: 35 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 39114 + host_id: 37 + reserved: 0 + + - + start_resource: 21 + num_resource: 1 + type: 39114 + host_id: 40 + reserved: 0 + + - + start_resource: 22 + num_resource: 1 + type: 39114 + host_id: 42 + reserved: 0 + + - + start_resource: 23 + num_resource: 2 + type: 39114 + host_id: 3 + reserved: 0 + + - + start_resource: 25 + num_resource: 2 + type: 39114 + host_id: 5 + reserved: 0 + + - + start_resource: 27 + num_resource: 16 + type: 39114 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 12 + type: 39114 + host_id: 13 + reserved: 0 + + - + start_resource: 55 + num_resource: 4 + type: 39114 + host_id: 21 + reserved: 0 + + - + start_resource: 59 + num_resource: 4 + type: 39114 + host_id: 23 + reserved: 0 + + - + start_resource: 63 + num_resource: 12 + type: 39114 + host_id: 35 + reserved: 0 + + - + start_resource: 75 + num_resource: 1 + type: 39114 + host_id: 37 + reserved: 0 + + - + start_resource: 76 + num_resource: 2 + type: 39114 + host_id: 40 + reserved: 0 + + - + start_resource: 78 + num_resource: 2 + type: 39114 + host_id: 42 + reserved: 0 + + - + start_resource: 80 + num_resource: 2 + type: 39114 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 1 + type: 39115 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 1 + type: 39115 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 39116 + host_id: 12 + reserved: 0 + + - + start_resource: 1 + num_resource: 1 + type: 39116 + host_id: 35 + reserved: 0 + + - + start_resource: 4 + num_resource: 6 + type: 39117 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 0 + type: 39117 + host_id: 13 + reserved: 0 + + - + start_resource: 10 + num_resource: 2 + type: 39117 + host_id: 21 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 39117 + host_id: 23 + reserved: 0 + + - + start_resource: 14 + num_resource: 6 + type: 39117 + host_id: 35 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 39117 + host_id: 37 + reserved: 0 + + - + start_resource: 21 + num_resource: 1 + type: 39117 + host_id: 40 + reserved: 0 + + - + start_resource: 22 + num_resource: 1 + type: 39117 + host_id: 42 + reserved: 0 + + - + start_resource: 23 + num_resource: 2 + type: 39117 + host_id: 3 + reserved: 0 + + - + start_resource: 25 + num_resource: 2 + type: 39117 + host_id: 5 + reserved: 0 + + - + start_resource: 27 + num_resource: 16 + type: 39117 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 12 + type: 39117 + host_id: 13 + reserved: 0 + + - + start_resource: 55 + num_resource: 4 + type: 39117 + host_id: 21 + reserved: 0 + + - + start_resource: 59 + num_resource: 4 + type: 39117 + host_id: 23 + reserved: 0 + + - + start_resource: 63 + num_resource: 12 + type: 39117 + host_id: 35 + reserved: 0 + + - + start_resource: 75 + num_resource: 4 + type: 39117 + host_id: 37 + reserved: 0 + + - + start_resource: 79 + num_resource: 2 + type: 39117 + host_id: 40 + reserved: 0 + + - + start_resource: 81 + num_resource: 2 + type: 39117 + host_id: 42 + reserved: 0 + + - + start_resource: 83 + num_resource: 2 + type: 39117 + host_id: 128 + reserved: 0 + + - + start_resource: 85 + num_resource: 16 + type: 39118 + host_id: 21 + reserved: 0 + + - + start_resource: 101 + num_resource: 12 + type: 39118 + host_id: 23 + reserved: 0 + + - + start_resource: 113 + num_resource: 2 + type: 39118 + host_id: 35 + reserved: 0 + + - + start_resource: 115 + num_resource: 2 + type: 39118 + host_id: 37 + reserved: 0 + + - + start_resource: 117 + num_resource: 192 + type: 39118 + host_id: 35 + reserved: 0 + + - + start_resource: 309 + num_resource: 32 + type: 39118 + host_id: 37 + reserved: 0 + + - + start_resource: 2 + num_resource: 1 + type: 39119 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 1 + type: 39119 + host_id: 35 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 39120 + host_id: 12 + reserved: 0 + + - + start_resource: 1 + num_resource: 1 + type: 39120 + host_id: 35 + reserved: 0 + + - + start_resource: 34 + num_resource: 86 + type: 39242 + host_id: 12 + reserved: 0 + + - + start_resource: 120 + num_resource: 32 + type: 39242 + host_id: 13 + reserved: 0 + + - + start_resource: 152 + num_resource: 12 + type: 39242 + host_id: 21 + reserved: 0 + + - + start_resource: 164 + num_resource: 12 + type: 39242 + host_id: 23 + reserved: 0 + + - + start_resource: 176 + num_resource: 28 + type: 39242 + host_id: 35 + reserved: 0 + + - + start_resource: 204 + num_resource: 8 + type: 39242 + host_id: 37 + reserved: 0 + + - + start_resource: 212 + num_resource: 12 + type: 39242 + host_id: 40 + reserved: 0 + + - + start_resource: 224 + num_resource: 12 + type: 39242 + host_id: 42 + reserved: 0 + + - + start_resource: 236 + num_resource: 20 + type: 39242 + host_id: 128 + reserved: 0 + + - + start_resource: 34 + num_resource: 1024 + type: 39245 + host_id: 12 + reserved: 0 + + - + start_resource: 1058 + num_resource: 512 + type: 39245 + host_id: 13 + reserved: 0 + + - + start_resource: 1570 + num_resource: 256 + type: 39245 + host_id: 21 + reserved: 0 + + - + start_resource: 1826 + num_resource: 256 + type: 39245 + host_id: 23 + reserved: 0 + + - + start_resource: 2082 + num_resource: 512 + type: 39245 + host_id: 35 + reserved: 0 + + - + start_resource: 2594 + num_resource: 256 + type: 39245 + host_id: 37 + reserved: 0 + + - + start_resource: 2850 + num_resource: 256 + type: 39245 + host_id: 40 + reserved: 0 + + - + start_resource: 3106 + num_resource: 256 + type: 39245 + host_id: 42 + reserved: 0 + + - + start_resource: 3362 + num_resource: 32 + type: 39245 + host_id: 3 + reserved: 0 + + - + start_resource: 3394 + num_resource: 32 + type: 39245 + host_id: 5 + reserved: 0 + + - + start_resource: 3426 + num_resource: 1182 + type: 39245 + host_id: 128 + reserved: 0 + + - + start_resource: 1536 + num_resource: 16 + type: 39247 + host_id: 128 + reserved: 0 + + - + start_resource: 2048 + num_resource: 16 + type: 39248 + host_id: 128 + reserved: 0 + + - + start_resource: 2560 + num_resource: 16 + type: 39249 + host_id: 128 + reserved: 0 + + - + start_resource: 3072 + num_resource: 32 + type: 39250 + host_id: 128 + reserved: 0 + + - + start_resource: 3584 + num_resource: 32 + type: 39251 + host_id: 128 + reserved: 0 + + - + start_resource: 4096 + num_resource: 32 + type: 39252 + host_id: 128 + reserved: 0 + + - + start_resource: 12 + num_resource: 12 + type: 39424 + host_id: 3 + reserved: 0 + + - + start_resource: 36 + num_resource: 20 + type: 39424 + host_id: 5 + reserved: 0 + + - + start_resource: 1 + num_resource: 4 + type: 40000 + host_id: 12 + reserved: 0 + + - + start_resource: 5 + num_resource: 4 + type: 40000 + host_id: 13 + reserved: 0 + + - + start_resource: 9 + num_resource: 4 + type: 40000 + host_id: 21 + reserved: 0 + + - + start_resource: 13 + num_resource: 4 + type: 40000 + host_id: 23 + reserved: 0 + + - + start_resource: 17 + num_resource: 16 + type: 40000 + host_id: 35 + reserved: 0 + + - + start_resource: 33 + num_resource: 4 + type: 40000 + host_id: 37 + reserved: 0 + + - + start_resource: 37 + num_resource: 4 + type: 40000 + host_id: 40 + reserved: 0 + + - + start_resource: 41 + num_resource: 4 + type: 40000 + host_id: 42 + reserved: 0 + + - + start_resource: 45 + num_resource: 4 + type: 40000 + host_id: 3 + reserved: 0 + + - + start_resource: 49 + num_resource: 4 + type: 40000 + host_id: 5 + reserved: 0 + + - + start_resource: 53 + num_resource: 11 + type: 40000 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 40064 + host_id: 128 + reserved: 0 + + - + start_resource: 96 + num_resource: 20 + type: 40065 + host_id: 12 + reserved: 0 + + - + start_resource: 116 + num_resource: 8 + type: 40065 + host_id: 13 + reserved: 0 + + - + start_resource: 124 + num_resource: 8 + type: 40065 + host_id: 21 + reserved: 0 + + - + start_resource: 132 + num_resource: 8 + type: 40065 + host_id: 23 + reserved: 0 + + - + start_resource: 140 + num_resource: 16 + type: 40065 + host_id: 35 + reserved: 0 + + - + start_resource: 156 + num_resource: 8 + type: 40065 + host_id: 37 + reserved: 0 + + - + start_resource: 164 + num_resource: 8 + type: 40065 + host_id: 40 + reserved: 0 + + - + start_resource: 172 + num_resource: 8 + type: 40065 + host_id: 42 + reserved: 0 + + - + start_resource: 180 + num_resource: 32 + type: 40065 + host_id: 3 + reserved: 0 + + - + start_resource: 212 + num_resource: 12 + type: 40065 + host_id: 5 + reserved: 0 + + - + start_resource: 224 + num_resource: 28 + type: 40065 + host_id: 128 + reserved: 0 + + - + start_resource: 50 + num_resource: 4 + type: 40066 + host_id: 12 + reserved: 0 + + - + start_resource: 54 + num_resource: 0 + type: 40066 + host_id: 13 + reserved: 0 + + - + start_resource: 54 + num_resource: 1 + type: 40066 + host_id: 21 + reserved: 0 + + - + start_resource: 55 + num_resource: 1 + type: 40066 + host_id: 23 + reserved: 0 + + - + start_resource: 56 + num_resource: 1 + type: 40066 + host_id: 35 + reserved: 0 + + - + start_resource: 57 + num_resource: 1 + type: 40066 + host_id: 37 + reserved: 0 + + - + start_resource: 58 + num_resource: 1 + type: 40066 + host_id: 40 + reserved: 0 + + - + start_resource: 59 + num_resource: 1 + type: 40066 + host_id: 42 + reserved: 0 + + - + start_resource: 60 + num_resource: 2 + type: 40066 + host_id: 3 + reserved: 0 + + - + start_resource: 62 + num_resource: 0 + type: 40066 + host_id: 5 + reserved: 0 + + - + start_resource: 62 + num_resource: 9 + type: 40066 + host_id: 12 + reserved: 0 + + - + start_resource: 71 + num_resource: 6 + type: 40066 + host_id: 13 + reserved: 0 + + - + start_resource: 77 + num_resource: 1 + type: 40066 + host_id: 21 + reserved: 0 + + - + start_resource: 78 + num_resource: 1 + type: 40066 + host_id: 23 + reserved: 0 + + - + start_resource: 79 + num_resource: 2 + type: 40066 + host_id: 35 + reserved: 0 + + - + start_resource: 81 + num_resource: 1 + type: 40066 + host_id: 37 + reserved: 0 + + - + start_resource: 82 + num_resource: 1 + type: 40066 + host_id: 40 + reserved: 0 + + - + start_resource: 83 + num_resource: 1 + type: 40066 + host_id: 42 + reserved: 0 + + - + start_resource: 84 + num_resource: 3 + type: 40066 + host_id: 3 + reserved: 0 + + - + start_resource: 87 + num_resource: 2 + type: 40066 + host_id: 5 + reserved: 0 + + - + start_resource: 89 + num_resource: 4 + type: 40066 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 4 + type: 40067 + host_id: 12 + reserved: 0 + + - + start_resource: 6 + num_resource: 0 + type: 40067 + host_id: 13 + reserved: 0 + + - + start_resource: 6 + num_resource: 1 + type: 40067 + host_id: 21 + reserved: 0 + + - + start_resource: 7 + num_resource: 1 + type: 40067 + host_id: 23 + reserved: 0 + + - + start_resource: 8 + num_resource: 1 + type: 40067 + host_id: 35 + reserved: 0 + + - + start_resource: 9 + num_resource: 1 + type: 40067 + host_id: 37 + reserved: 0 + + - + start_resource: 10 + num_resource: 1 + type: 40067 + host_id: 40 + reserved: 0 + + - + start_resource: 11 + num_resource: 1 + type: 40067 + host_id: 42 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 40067 + host_id: 3 + reserved: 0 + + - + start_resource: 14 + num_resource: 0 + type: 40067 + host_id: 5 + reserved: 0 + + - + start_resource: 14 + num_resource: 9 + type: 40067 + host_id: 12 + reserved: 0 + + - + start_resource: 23 + num_resource: 6 + type: 40067 + host_id: 13 + reserved: 0 + + - + start_resource: 29 + num_resource: 1 + type: 40067 + host_id: 21 + reserved: 0 + + - + start_resource: 30 + num_resource: 1 + type: 40067 + host_id: 23 + reserved: 0 + + - + start_resource: 31 + num_resource: 2 + type: 40067 + host_id: 35 + reserved: 0 + + - + start_resource: 33 + num_resource: 1 + type: 40067 + host_id: 37 + reserved: 0 + + - + start_resource: 34 + num_resource: 1 + type: 40067 + host_id: 40 + reserved: 0 + + - + start_resource: 35 + num_resource: 1 + type: 40067 + host_id: 42 + reserved: 0 + + - + start_resource: 36 + num_resource: 3 + type: 40067 + host_id: 3 + reserved: 0 + + - + start_resource: 39 + num_resource: 2 + type: 40067 + host_id: 5 + reserved: 0 + + - + start_resource: 41 + num_resource: 5 + type: 40067 + host_id: 128 + reserved: 0 + + - + start_resource: 48 + num_resource: 0 + type: 40069 + host_id: 3 + reserved: 0 + + - + start_resource: 48 + num_resource: 2 + type: 40069 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 40071 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 40071 + host_id: 3 + reserved: 0 + + - + start_resource: 2 + num_resource: 5 + type: 40074 + host_id: 12 + reserved: 0 + + - + start_resource: 7 + num_resource: 1 + type: 40074 + host_id: 13 + reserved: 0 + + - + start_resource: 0 + num_resource: 3 + type: 40075 + host_id: 12 + reserved: 0 + + - + start_resource: 3 + num_resource: 2 + type: 40075 + host_id: 13 + reserved: 0 + + - + start_resource: 5 + num_resource: 3 + type: 40075 + host_id: 21 + reserved: 0 + + - + start_resource: 8 + num_resource: 3 + type: 40075 + host_id: 23 + reserved: 0 + + - + start_resource: 11 + num_resource: 3 + type: 40075 + host_id: 35 + reserved: 0 + + - + start_resource: 14 + num_resource: 3 + type: 40075 + host_id: 37 + reserved: 0 + + - + start_resource: 17 + num_resource: 3 + type: 40075 + host_id: 40 + reserved: 0 + + - + start_resource: 20 + num_resource: 3 + type: 40075 + host_id: 42 + reserved: 0 + + - + start_resource: 23 + num_resource: 3 + type: 40075 + host_id: 3 + reserved: 0 + + - + start_resource: 26 + num_resource: 3 + type: 40075 + host_id: 5 + reserved: 0 + + - + start_resource: 29 + num_resource: 3 + type: 40075 + host_id: 128 + reserved: 0 + + - + start_resource: 48 + num_resource: 8 + type: 40128 + host_id: 12 + reserved: 0 + + - + start_resource: 56 + num_resource: 4 + type: 40128 + host_id: 13 + reserved: 0 + + - + start_resource: 60 + num_resource: 8 + type: 40128 + host_id: 35 + reserved: 0 + + - + start_resource: 68 + num_resource: 4 + type: 40128 + host_id: 37 + reserved: 0 + + - + start_resource: 72 + num_resource: 4 + type: 40128 + host_id: 40 + reserved: 0 + + - + start_resource: 76 + num_resource: 4 + type: 40128 + host_id: 42 + reserved: 0 + + - + start_resource: 80 + num_resource: 8 + type: 40128 + host_id: 3 + reserved: 0 + + - + start_resource: 88 + num_resource: 4 + type: 40128 + host_id: 5 + reserved: 0 + + - + start_resource: 92 + num_resource: 4 + type: 40128 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 40129 + host_id: 128 + reserved: 0 + + - + start_resource: 56320 + num_resource: 256 + type: 40130 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 40131 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 4 + type: 40138 + host_id: 12 + reserved: 0 + + - + start_resource: 6 + num_resource: 0 + type: 40138 + host_id: 13 + reserved: 0 + + - + start_resource: 6 + num_resource: 1 + type: 40138 + host_id: 21 + reserved: 0 + + - + start_resource: 7 + num_resource: 1 + type: 40138 + host_id: 23 + reserved: 0 + + - + start_resource: 8 + num_resource: 1 + type: 40138 + host_id: 35 + reserved: 0 + + - + start_resource: 9 + num_resource: 1 + type: 40138 + host_id: 37 + reserved: 0 + + - + start_resource: 10 + num_resource: 1 + type: 40138 + host_id: 40 + reserved: 0 + + - + start_resource: 11 + num_resource: 1 + type: 40138 + host_id: 42 + reserved: 0 + + - + start_resource: 12 + num_resource: 2 + type: 40138 + host_id: 3 + reserved: 0 + + - + start_resource: 14 + num_resource: 0 + type: 40138 + host_id: 5 + reserved: 0 + + - + start_resource: 14 + num_resource: 9 + type: 40138 + host_id: 12 + reserved: 0 + + - + start_resource: 23 + num_resource: 6 + type: 40138 + host_id: 13 + reserved: 0 + + - + start_resource: 29 + num_resource: 1 + type: 40138 + host_id: 21 + reserved: 0 + + - + start_resource: 30 + num_resource: 1 + type: 40138 + host_id: 23 + reserved: 0 + + - + start_resource: 31 + num_resource: 2 + type: 40138 + host_id: 35 + reserved: 0 + + - + start_resource: 33 + num_resource: 1 + type: 40138 + host_id: 37 + reserved: 0 + + - + start_resource: 34 + num_resource: 1 + type: 40138 + host_id: 40 + reserved: 0 + + - + start_resource: 35 + num_resource: 1 + type: 40138 + host_id: 42 + reserved: 0 + + - + start_resource: 36 + num_resource: 3 + type: 40138 + host_id: 3 + reserved: 0 + + - + start_resource: 39 + num_resource: 2 + type: 40138 + host_id: 5 + reserved: 0 + + - + start_resource: 41 + num_resource: 4 + type: 40138 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 0 + type: 40139 + host_id: 3 + reserved: 0 + + - + start_resource: 0 + num_resource: 2 + type: 40139 + host_id: 3 + reserved: 0 + + - + start_resource: 2 + num_resource: 4 + type: 40141 + host_id: 12 + reserved: 0 + + - + start_resource: 6 + num_resource: 0 + type: 40141
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Signature · 1 line
2.34.1
Part of the diff is not shown here. View the raw message.
PATCH 15/21 j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for J721S2.
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices
It is to be noted that the bootflow followed by J721S2 requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbs
u-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
--- arch/arm/dts/k3-j721s2-binman.dtsi | 377 ++++++++++++++++++ .../k3-j721s2-common-proc-board-u-boot.dtsi | 2 + .../dts/k3-j721s2-r5-common-proc-board.dts | 1 + board/ti/j721s2/Kconfig | 2 + 4 files changed, 382 insertions(+) create mode 100644 arch/arm/dts/k3-j721s2-binman.dtsi
arch/arm/dts/k3-j721s2-binman.dtsi new file +377 -0
@@ -0,0 +1,377 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/ { + binman: binman { + multiple-images; + }; +}; + +#ifdef CONFIG_TARGET_J721S2_R5_EVM + +&binman { + ti-fs-cert { + filename = "ti-fs-cert.bin"; + ti-fs-firmware-j721s2-hs-cert.bin { + filename = "ti-fs-firmware-j721s2-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + }; + ti-fs-enc { + filename = "ti-fs-enc.bin"; + ti-fs-firmware-j721s2-hs-enc.bin { + filename = "ti-fs-firmware-j721s2-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3 { + filename = "tiboot3.bin"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x41c00000>; + sysfw-filename = "ti-fs-enc.bin"; + sysfw-load = <0x40000>; + sysfw-inner-cert = "ti-fs-cert.bin"; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x67000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x41c80000>; + key = "/keys/custMpk.pem"; + sw-rev = <1>; + }; + }; +}; + +&binman { + ti-fs-gp { + filename = "ti-fs-gp.bin"; + ti-fs-firmware-j721s2-gp.bin { + filename = "ti-fs-firmware-j721s2-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3_unsigned { + filename = "tiboot3.bin_unsigned"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x41c00000>; + sysfw-filename = "ti-fs-gp.bin"; + sysfw-load = <0x40000>; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x67000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x41c80000>; + sw-rev = <1>; + }; + }; +}; + +#endif + +#ifdef CONFIG_TARGET_J721S2_A72_EVM + +#define SPL_NODTB "spl/u-boot-spl-nodtb.bin" +#define SPL_J721S2_EVM_DTB "spl/dts/k3-j721s2-common-proc-board.dtb" + +#define UBOOT_NODTB "u-boot-nodtb.bin" +#define J721S2_EVM_DTB "arch/arm/dts/k3-j721s2-common-proc-board.dtb" + +&binman { + ti-dm { + filename = "ti-dm.bin"; + blob-ext { + filename = "ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + ti-spl { + filename = "tispl.bin"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + ti-secure { + filename = SPL_NODTB; + secure; + }; + }; + + fdt-0 { + description = "k3-j721s2-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_J721S2_EVM_DTB; + secure; + }; + }; + + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j721s2-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + u-boot { + filename = "u-boot.img"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for J721S2 board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + ti-secure { + filename = UBOOT_NODTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-0 { + description = "k3-j721s2-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = J721S2_EVM_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-j721s2-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + + }; + }; + }; +}; + +&binman { + ti-spl_unsigned { + filename = "tispl.bin_unsigned"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + filename = "bl31.bin"; + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + filename = "tee-pager_v2.bin"; + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + blob { + filename = "spl/u-boot-spl-nodtb.bin"; + }; + }; + + fdt-1 { + description = "k3-j721s2-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = SPL_J721S2_EVM_DTB; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j721s2-common-proc-board"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; + +&binman { + u-boot_unsigned { + filename = "u-boot.img_unsigned"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for J721S2 board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + blob { + filename = UBOOT_NODTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-1 { + description = "k3-j721s2-common-proc-board"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = J721S2_EVM_DTB; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-j721s2-common-proc-board"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; +#endif
arch/arm/dts/k3-j721s2-common-proc-board-u-boot.dtsi +2 -0
@@ -3,6 +3,8 @@ * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include "k3-j721s2-binman.dtsi" + / { chosen { stdout-path = "serial2:115200n8";
arch/arm/dts/k3-j721s2-r5-common-proc-board.dts +1 -0
@@ -8,6 +8,7 @@ #include "k3-j721s2-som-p0.dtsi" #include "k3-j721s2-ddr-evm-lp4-4266.dtsi" #include "k3-j721s2-ddr.dtsi" +#include "k3-j721s2-binman.dtsi" / { chosen {
board/ti/j721s2/Kconfig +2 -0
@@ -14,6 +14,7 @@ config TARGET_J721S2_A72_EVM select BOARD_LATE_INIT imply TI_I2C_BOARD_DETECT select SYS_DISABLE_DCACHE_OPS + select BINMAN config TARGET_J721S2_R5_EVM bool "TI K3 based J721S2 EVM running on R5"
@@ -24,6 +25,7 @@ config TARGET_J721S2_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
Signature · 1 line
2.34.1
Re: [PATCH 15/21] j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
Hi,
Quoted 29 lines · Neha Malcom Francis
Support added for HS and GP boot binaries for J721S2.
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices
It is to be noted that the bootflow followed by J721S2 requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfgtispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbsu-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
Quoted 9 lines
Signed-off-by Neha Malcom Francis <[email protected]>--- arch/arm/dts/k3-j721s2-binman.dtsi | 377 ++++++++++++++++++ .../k3-j721s2-common-proc-board-u-boot.dtsi | 2 + .../dts/k3-j721s2-r5-common-proc-board.dts | 1 + board/ti/j721s2/Kconfig | 2 + 4 files changed, 382 insertions(+) create mode 100644 arch/arm/dts/k3-j721s2-binman.dtsi
Please can you use the 'binman:' tag (without "tools:') only for patches to binman itself.
For example, this one should just have the dts: tag.
Regards,
Simon
PATCH 16/21 am62: yaml: Add board config for AM62
In reply to Neha Malcom FrancisAdded YAML config for AM62
--- board/ti/am62x/config.yaml | 1490 ++++++++++++++++++++++++++++++++++++ board/ti/am65x/config.yaml | 144 ++-- 2 files changed, 1562 insertions(+), 72 deletions(-) create mode 100644 board/ti/am62x/config.yaml
board/ti/am62x/config.yaml new file +1490 -0
@@ -0,0 +1,1490 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for AM62 +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x0 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00 + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + +sec-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + processor_acl_list: + subhdr: + magic: 0xF1EA + size: 164 + proc_acl_entries: + - #1 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #2 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #3 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #4 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #5 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #6 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #7 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #8 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #9 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #10 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #11 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #12 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #13 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #14 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #15 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #16 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #17 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #18 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #19 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #20 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #21 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #22 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #23 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #24 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #25 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #26 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #27 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #28 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #29 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #30 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #31 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #32 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + host_hierarchy: + subhdr: + magic: 0x8D27 + size: 68 + host_hierarchy_entries: + - #1 + host_id: 0 + supervisor_host_id: 0 + - #2 + host_id: 0 + supervisor_host_id: 0 + - #3 + host_id: 0 + supervisor_host_id: 0 + - #4 + host_id: 0 + supervisor_host_id: 0 + - #5 + host_id: 0 + supervisor_host_id: 0 + - #6 + host_id: 0 + supervisor_host_id: 0 + - #7 + host_id: 0 + supervisor_host_id: 0 + - #8 + host_id: 0 + supervisor_host_id: 0 + - #9 + host_id: 0 + supervisor_host_id: 0 + - #10 + host_id: 0 + supervisor_host_id: 0 + - #11 + host_id: 0 + supervisor_host_id: 0 + - #12 + host_id: 0 + supervisor_host_id: 0 + - #13 + host_id: 0 + supervisor_host_id: 0 + - #14 + host_id: 0 + supervisor_host_id: 0 + - #15 + host_id: 0 + supervisor_host_id: 0 + - #16 + host_id: 0 + supervisor_host_id: 0 + - #17 + host_id: 0 + supervisor_host_id: 0 + - #18 + host_id: 0 + supervisor_host_id: 0 + - #19 + host_id: 0 + supervisor_host_id: 0 + - #20 + host_id: 0 + supervisor_host_id: 0 + - #21 + host_id: 0 + supervisor_host_id: 0 + - #22 + host_id: 0 + supervisor_host_id: 0 + - #23 + host_id: 0 + supervisor_host_id: 0 + - #24 + host_id: 0 + supervisor_host_id: 0 + - #25 + host_id: 0 + supervisor_host_id: 0 + - #26 + host_id: 0 + supervisor_host_id: 0 + - #27 + host_id: 0 + supervisor_host_id: 0 + - #28 + host_id: 0 + supervisor_host_id: 0 + - #29 + host_id: 0 + supervisor_host_id: 0 + - #30 + host_id: 0 + supervisor_host_id: 0 + - #31 + host_id: 0 + supervisor_host_id: 0 + - #32 + host_id: 0 + supervisor_host_id: 0 + otp_config: + subhdr: + magic: 0x4081 + size: 69 + write_host_id : 0 + otp_entry: + - #1 + host_id: 0 + host_perms: 0 + - #2 + host_id: 0 + host_perms: 0 + - #3 + host_id: 0 + host_perms: 0 + - #4 + host_id: 0 + host_perms: 0 + - #5 + host_id: 0 + host_perms: 0 + - #6 + host_id: 0 + host_perms: 0 + - #7 + host_id: 0 + host_perms: 0 + - #8 + host_id: 0 + host_perms: 0 + - #9 + host_id: 0 + host_perms: 0 + - #10 + host_id: 0 + host_perms: 0 + - #11 + host_id: 0 + host_perms: 0 + - #12 + host_id: 0 + host_perms: 0 + - #13 + host_id: 0 + host_perms: 0 + - #14 + host_id: 0 + host_perms: 0 + - #15 + host_id: 0 + host_perms: 0 + - #16 + host_id: 0 + host_perms: 0 + - #17 + host_id: 0 + host_perms: 0 + - #18 + host_id: 0 + host_perms: 0 + - #19 + host_id: 0 + host_perms: 0 + - #20 + host_id: 0 + host_perms: 0 + - #21 + host_id: 0 + host_perms: 0 + - #22 + host_id: 0 + host_perms: 0 + - #23 + host_id: 0 + host_perms: 0 + - #24 + host_id: 0 + host_perms: 0 + - #25 + host_id: 0 + host_perms: 0 + - #26 + host_id: 0 + host_perms: 0 + - #27 + host_id: 0 + host_perms: 0 + - #28 + host_id: 0 + host_perms: 0 + - #29 + host_id: 0 + host_perms: 0 + - #30 + host_id: 0 + host_perms: 0 + - #31 + host_id: 0 + host_perms: 0 + - #32 + host_id: 0 + host_perms: 0 + dkek_config: + subhdr: + magic: 0x5170 + size: 12 + allowed_hosts: [128, 0, 0, 0] + allow_dkek_export_tisci : 0x5A + rsvd: [0, 0, 0] + sa2ul_cfg: + subhdr: + magic: 0x23BE + size : 0 + rsvd: [0, 0, 0, 0] + sec_dbg_config: + subhdr: + magic: 0x42AF + size: 16 + allow_jtag_unlock : 0x5A + allow_wildcard_unlock : 0x5A + min_cert_rev : 0x0 + jtag_unlock_hosts: [0, 0, 0, 0] + sec_handover_cfg: + subhdr: + magic: 0x608F + size: 10 + handover_msg_sender : 0 + handover_to_host_id : 0 + rsvd: [0, 0, 0, 0] + +rm-cfg: + rm_boardcfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + host_cfg: + subhdr: + magic: 0x4C41 + size : 356 + host_cfg_entries: + - #1 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #2 + host_id: 30 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #3 + host_id: 36 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #4 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #5 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #6 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #7 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #8 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #9 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #10 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #11 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #12 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #13 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #14 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #15 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #16 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #17 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #18 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #19 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #20 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #21 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #22 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #23 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #24 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #25 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #26 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #27 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #28 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #29 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #30 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #31 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #32 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + resasg: + subhdr: + magic: 0x7B25 + size : 8 + resasg_entries_size: 960 + reserved : 0 + resasg_entries: + - + start_resource: 0 + num_resource: 16 + type: 64 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 35 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 36 + reserved: 0 + + - + start_resource: 20 + num_resource: 22 + type: 64 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 192 + host_id: 12 + reserved: 0 + + - + start_resource: 34 + num_resource: 2 + type: 192 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 320 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 320 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 26 + type: 384 + host_id: 128 + reserved: 0 + + - + start_resource: 50176 + num_resource: 164 + type: 2434 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 2435 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2445 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2445 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2445 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2445 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 6 + type: 2445 + host_id: 128 + reserved: 0 + + - + start_resource: 54 + num_resource: 18 + type: 2446 + host_id: 12 + reserved: 0 + + - + start_resource: 72 + num_resource: 6 + type: 2446 + host_id: 35 + reserved: 0 + + - + start_resource: 72 + num_resource: 6 + type: 2446 + host_id: 36 + reserved: 0 + + - + start_resource: 78 + num_resource: 2 + type: 2446 + host_id: 30 + reserved: 0 + + - + start_resource: 80 + num_resource: 2 + type: 2446 + host_id: 128 + reserved: 0 + + - + start_resource: 32 + num_resource: 12 + type: 2447 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 6 + type: 2447 + host_id: 35 + reserved: 0 + + - + start_resource: 44 + num_resource: 6 + type: 2447 + host_id: 36 + reserved: 0 + + - + start_resource: 50 + num_resource: 2 + type: 2447 + host_id: 30 + reserved: 0 + + - + start_resource: 52 + num_resource: 2 + type: 2447 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2464 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2464 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2464 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2464 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 6 + type: 2464 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2465 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2465 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2465 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2465 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 2 + type: 2465 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 2466 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 2466 + host_id: 35 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 2466 + host_id: 36 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 2466 + host_id: 30 + reserved: 0 + + - + start_resource: 20 + num_resource: 2 + type: 2466 + host_id: 128 + reserved: 0 + + - + start_resource: 5 + num_resource: 35 + type: 2570 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 36 + type: 2570 + host_id: 35 + reserved: 0 + + - + start_resource: 44 + num_resource: 36 + type: 2570 + host_id: 36 + reserved: 0 + + - + start_resource: 168 + num_resource: 8 + type: 2570 + host_id: 30 + reserved: 0 + + - + start_resource: 13 + num_resource: 512 + type: 2573 + host_id: 12 + reserved: 0 + + - + start_resource: 525 + num_resource: 256 + type: 2573 + host_id: 35 + reserved: 0 + + - + start_resource: 525 + num_resource: 256 + type: 2573 + host_id: 36 + reserved: 0 + + - + start_resource: 781 + num_resource: 128 + type: 2573 + host_id: 30 + reserved: 0 + + - + start_resource: 909 + num_resource: 627 + type: 2573 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1024 + type: 2575 + host_id: 128 + reserved: 0 + + - + start_resource: 4096 + num_resource: 29 + type: 2576 + host_id: 128 + reserved: 0 + + - + start_resource: 4608 + num_resource: 99 + type: 2577 + host_id: 128 + reserved: 0 + + - + start_resource: 5120 + num_resource: 24 + type: 2578 + host_id: 128 + reserved: 0 + + - + start_resource: 5632 + num_resource: 51 + type: 2579 + host_id: 128 + reserved: 0 + + - + start_resource: 6144 + num_resource: 51 + type: 2580 + host_id: 128 + reserved: 0 + + - + start_resource: 6656 + num_resource: 51 + type: 2581 + host_id: 128 + reserved: 0 + + - + start_resource: 8192 + num_resource: 32 + type: 2582 + host_id: 128 + reserved: 0 + + - + start_resource: 8704 + num_resource: 32 + type: 2583 + host_id: 128 + reserved: 0 + + - + start_resource: 9216 + num_resource: 32 + type: 2584 + host_id: 128 + reserved: 0 + + - + start_resource: 9728 + num_resource: 22 + type: 2585 + host_id: 128 + reserved: 0 + + - + start_resource: 10240 + num_resource: 22 + type: 2586 + host_id: 128 + reserved: 0 + + - + start_resource: 10752 + num_resource: 22 + type: 2587 + host_id: 128 + reserved: 0 + + - + start_resource: 11264 + num_resource: 28 + type: 2588 + host_id: 128 + reserved: 0 + + - + start_resource: 11776 + num_resource: 28 + type: 2589 + host_id: 128 + reserved: 0 + + - + start_resource: 12288 + num_resource: 28 + type: 2590 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 3075 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3088 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3088 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3088 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3088 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3088 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 64 + type: 3089 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 64 + type: 3089 + host_id: 36 + reserved: 0 + + - + start_resource: 83 + num_resource: 8 + type: 3090 + host_id: 12 + reserved: 0 + + - + start_resource: 91 + num_resource: 8 + type: 3091 + host_id: 12 + reserved: 0 + + - + start_resource: 99 + num_resource: 10 + type: 3094 + host_id: 12 + reserved: 0 + + - + start_resource: 109 + num_resource: 3 + type: 3094 + host_id: 35 + reserved: 0 + + - + start_resource: 109 + num_resource: 3 + type: 3094 + host_id: 36 + reserved: 0 + + - + start_resource: 112 + num_resource: 3 + type: 3094 + host_id: 30 + reserved: 0 + + - + start_resource: 115 + num_resource: 3 + type: 3094 + host_id: 128 + reserved: 0 + + - + start_resource: 118 + num_resource: 16 + type: 3095 + host_id: 12 + reserved: 0 + + - + start_resource: 118 + num_resource: 16 + type: 3095 + host_id: 36 + reserved: 0 + + - + start_resource: 134 + num_resource: 8 + type: 3096 + host_id: 12 + reserved: 0 + + - + start_resource: 134 + num_resource: 8 + type: 3097 + host_id: 12 + reserved: 0 + + - + start_resource: 142 + num_resource: 8 + type: 3098 + host_id: 12 + reserved: 0 + + - + start_resource: 142 + num_resource: 8 + type: 3099 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3107 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3107 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3107 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3107 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3107 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 8 + type: 3108 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 8 + type: 3108 + host_id: 36 + reserved: 0 + + - + start_resource: 27 + num_resource: 1 + type: 3109 + host_id: 12 + reserved: 0 + + - + start_resource: 28 + num_resource: 1 + type: 3110 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3113 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3113 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3113 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3113 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3113 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3114 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3114 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3114 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3114 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3114 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 1 + type: 3115 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 1 + type: 3115 + host_id: 36 + reserved: 0 + + - + start_resource: 19 + num_resource: 16 + type: 3116 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 16 + type: 3116 + host_id: 36 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 3117 + host_id: 12 + reserved: 0 + + - + start_resource: 35 + num_resource: 8 + type: 3118 + host_id: 12 + reserved: 0 + + - + start_resource: 21 + num_resource: 1 + type: 3119 + host_id: 12 + reserved: 0 + + - + start_resource: 35 + num_resource: 8 + type: 3120 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 1 + type: 3121 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 8 + type: 3122 + host_id: 12 + reserved: 0 + + - + start_resource: 23 + num_resource: 1 + type: 3123 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 8 + type: 3124 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 3264 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 3274 + host_id: 12 + reserved: 0
board/ti/am65x/config.yaml +72 -72
171 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 17/21 am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for AM62
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned, u-boot.img_unsigned: For GP devices
It is to be noted that the bootflow followed by AM62 requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbs
u-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
--- arch/arm/dts/k3-am625-r5-sk.dts | 1 + arch/arm/dts/k3-am625-sk-binman.dtsi | 377 +++++++++++++++++++++++++++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 2 + board/ti/am62x/Kconfig | 2 + include/binman_sym.h | 2 + 5 files changed, 384 insertions(+) create mode 100644 arch/arm/dts/k3-am625-sk-binman.dtsi
arch/arm/dts/k3-am625-r5-sk.dts +1 -0
@@ -9,6 +9,7 @@ #include "k3-am62-ddr.dtsi" #include "k3-am625-sk-u-boot.dtsi" +#include "k3-am625-sk-binman.dtsi" / { aliases {
arch/arm/dts/k3-am625-sk-binman.dtsi new file +377 -0
377 lines not on this page · raw message
arch/arm/dts/k3-am625-sk-u-boot.dtsi +2 -0
@@ -4,6 +4,8 @@ * Copyright (C) 2021-2022 Texas Instruments Incorporated - https://www.ti.com/ */ +#include "k3-am625-sk-binman.dtsi" + / { chosen { stdout-path = "serial2:115200n8";
board/ti/am62x/Kconfig +2 -0
@@ -11,6 +11,7 @@ config TARGET_AM625_A53_EVM bool "TI K3 based AM625 EVM running on A53" select ARM64 select SOC_K3_AM625 + select BINMAN config TARGET_AM625_R5_EVM bool "TI K3 based AM625 EVM running on R5"
@@ -21,6 +22,7 @@ config TARGET_AM625_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF endchoice
include/binman_sym.h +2 -0
@@ -11,6 +11,8 @@#ifndef __BINMAN_SYM_H#define __BINMAN_SYM_H +#include <linux/types.h> +/* BSYM in little endian, keep in sync with tools/binman/elf.py */ #define BINMAN_SYM_MAGIC_VALUE (0x4d595342UL)#define BINMAN_SYM_MISSING (-1UL)
Signature · 1 line
2.34.1
PATCH 18/21 am62a: yaml: Add board config for AM62ax
In reply to Neha Malcom FrancisAdded YAML config for AM62ax
--- board/ti/am62ax/config.yaml | 1553 +++++++++++++++++++++++++++++++++++ 1 file changed, 1553 insertions(+) create mode 100644 board/ti/am62ax/config.yaml
board/ti/am62ax/config.yaml new file +1553 -0
@@ -0,0 +1,1553 @@ +# SPDX-License-Identifier: GPL-2.0+ +# Copyright (C) 2022 Texas Instruments Incorporated - https://www.ti.com/ +# +# Board configuration for AM62ax +# + +--- + +board-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + control: + subhdr: + magic: 0xC1D3 + size: 7 + main_isolation_enable : 0x5A + main_isolation_hostid : 0x2 + secproxy: + subhdr: + magic: 0x1207 + size: 7 + scaling_factor : 0x1 + scaling_profile : 0x1 + disable_main_nav_secure_proxy : 0 + msmc: + subhdr: + magic: 0xA5C3 + size: 5 + msmc_cache_size : 0x10 + debug_cfg: + subhdr: + magic: 0x020C + size: 8 + trace_dst_enables : 0x00 + trace_src_enables : 0x00 + +pm-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + +sec-cfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + processor_acl_list: + subhdr: + magic: 0xF1EA + size: 164 + proc_acl_entries: + - #1 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #2 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #3 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #4 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #5 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #6 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #7 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #8 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #9 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #10 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #11 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #12 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #13 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #14 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #15 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #16 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #17 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #18 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #19 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #20 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #21 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #22 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #23 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #24 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #25 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #26 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #27 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #28 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #29 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #30 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #31 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + - #32 + processor_id: 0 + proc_access_master: 0 + proc_access_secondary: [0, 0, 0] + host_hierarchy: + subhdr: + magic: 0x8D27 + size: 68 + host_hierarchy_entries: + - #1 + host_id: 0 + supervisor_host_id: 0 + - #2 + host_id: 0 + supervisor_host_id: 0 + - #3 + host_id: 0 + supervisor_host_id: 0 + - #4 + host_id: 0 + supervisor_host_id: 0 + - #5 + host_id: 0 + supervisor_host_id: 0 + - #6 + host_id: 0 + supervisor_host_id: 0 + - #7 + host_id: 0 + supervisor_host_id: 0 + - #8 + host_id: 0 + supervisor_host_id: 0 + - #9 + host_id: 0 + supervisor_host_id: 0 + - #10 + host_id: 0 + supervisor_host_id: 0 + - #11 + host_id: 0 + supervisor_host_id: 0 + - #12 + host_id: 0 + supervisor_host_id: 0 + - #13 + host_id: 0 + supervisor_host_id: 0 + - #14 + host_id: 0 + supervisor_host_id: 0 + - #15 + host_id: 0 + supervisor_host_id: 0 + - #16 + host_id: 0 + supervisor_host_id: 0 + - #17 + host_id: 0 + supervisor_host_id: 0 + - #18 + host_id: 0 + supervisor_host_id: 0 + - #19 + host_id: 0 + supervisor_host_id: 0 + - #20 + host_id: 0 + supervisor_host_id: 0 + - #21 + host_id: 0 + supervisor_host_id: 0 + - #22 + host_id: 0 + supervisor_host_id: 0 + - #23 + host_id: 0 + supervisor_host_id: 0 + - #24 + host_id: 0 + supervisor_host_id: 0 + - #25 + host_id: 0 + supervisor_host_id: 0 + - #26 + host_id: 0 + supervisor_host_id: 0 + - #27 + host_id: 0 + supervisor_host_id: 0 + - #28 + host_id: 0 + supervisor_host_id: 0 + - #29 + host_id: 0 + supervisor_host_id: 0 + - #30 + host_id: 0 + supervisor_host_id: 0 + - #31 + host_id: 0 + supervisor_host_id: 0 + - #32 + host_id: 0 + supervisor_host_id: 0 + otp_config: + subhdr: + magic: 0x4081 + size: 69 + write_host_id : 0 + otp_entry: + - #1 + host_id: 0 + host_perms: 0 + - #2 + host_id: 0 + host_perms: 0 + - #3 + host_id: 0 + host_perms: 0 + - #4 + host_id: 0 + host_perms: 0 + - #5 + host_id: 0 + host_perms: 0 + - #6 + host_id: 0 + host_perms: 0 + - #7 + host_id: 0 + host_perms: 0 + - #8 + host_id: 0 + host_perms: 0 + - #9 + host_id: 0 + host_perms: 0 + - #10 + host_id: 0 + host_perms: 0 + - #11 + host_id: 0 + host_perms: 0 + - #12 + host_id: 0 + host_perms: 0 + - #13 + host_id: 0 + host_perms: 0 + - #14 + host_id: 0 + host_perms: 0 + - #15 + host_id: 0 + host_perms: 0 + - #16 + host_id: 0 + host_perms: 0 + - #17 + host_id: 0 + host_perms: 0 + - #18 + host_id: 0 + host_perms: 0 + - #19 + host_id: 0 + host_perms: 0 + - #20 + host_id: 0 + host_perms: 0 + - #21 + host_id: 0 + host_perms: 0 + - #22 + host_id: 0 + host_perms: 0 + - #23 + host_id: 0 + host_perms: 0 + - #24 + host_id: 0 + host_perms: 0 + - #25 + host_id: 0 + host_perms: 0 + - #26 + host_id: 0 + host_perms: 0 + - #27 + host_id: 0 + host_perms: 0 + - #28 + host_id: 0 + host_perms: 0 + - #29 + host_id: 0 + host_perms: 0 + - #30 + host_id: 0 + host_perms: 0 + - #31 + host_id: 0 + host_perms: 0 + - #32 + host_id: 0 + host_perms: 0 + dkek_config: + subhdr: + magic: 0x5170 + size: 12 + allowed_hosts: [128, 0, 0, 0] + allow_dkek_export_tisci : 0x5A + rsvd: [0, 0, 0] + sa2ul_cfg: + subhdr: + magic: 0x23BE + size : 0 + rsvd: [0, 0, 0, 0] + sec_dbg_config: + subhdr: + magic: 0x42AF + size: 16 + allow_jtag_unlock : 0x5A + allow_wildcard_unlock : 0x5A + min_cert_rev : 0x0 + jtag_unlock_hosts: [0, 0, 0, 0] + sec_handover_cfg: + subhdr: + magic: 0x608F + size: 10 + handover_msg_sender : 0 + handover_to_host_id : 0 + rsvd: [0, 0, 0, 0] + +rm-cfg: + rm_boardcfg: + rev: + boardcfg_abi_maj : 0x0 + boardcfg_abi_min : 0x1 + host_cfg: + subhdr: + magic: 0x4C41 + size : 356 + host_cfg_entries: + - #1 + host_id: 12 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #2 + host_id: 30 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #3 + host_id: 36 + allowed_atype : 0x2A + allowed_qos : 0xAAAA + allowed_orderid : 0xAAAAAAAA + allowed_priority : 0xAAAA + allowed_sched_priority : 0xAA + - #4 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #5 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #6 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #7 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #8 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #9 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #10 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #11 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #12 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #13 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #14 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #15 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #16 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #17 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #18 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #19 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #20 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #21 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #22 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #23 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #24 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #25 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #26 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #27 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #28 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #29 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #30 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #31 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + - #32 + host_id: 0 + allowed_atype : 0 + allowed_qos : 0 + allowed_orderid : 0 + allowed_priority : 0 + allowed_sched_priority : 0 + resasg: + subhdr: + magic: 0x7B25 + size : 8 + resasg_entries_size: 1032 + reserved : 0 + resasg_entries: + - + start_resource: 0 + num_resource: 16 + type: 64 + host_id: 12 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 35 + reserved: 0 + + - + start_resource: 16 + num_resource: 4 + type: 64 + host_id: 36 + reserved: 0 + + - + start_resource: 20 + num_resource: 22 + type: 64 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 16 + type: 192 + host_id: 12 + reserved: 0 + + - + start_resource: 34 + num_resource: 2 + type: 192 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 4 + type: 320 + host_id: 12 + reserved: 0 + + - + start_resource: 4 + num_resource: 4 + type: 320 + host_id: 30 + reserved: 0 + + - + start_resource: 0 + num_resource: 26 + type: 384 + host_id: 128 + reserved: 0 + + - + start_resource: 50176 + num_resource: 164 + type: 2434 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 2435 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2445 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2445 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2445 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2445 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 6 + type: 2445 + host_id: 128 + reserved: 0 + + - + start_resource: 54 + num_resource: 18 + type: 2446 + host_id: 12 + reserved: 0 + + - + start_resource: 72 + num_resource: 6 + type: 2446 + host_id: 35 + reserved: 0 + + - + start_resource: 72 + num_resource: 6 + type: 2446 + host_id: 36 + reserved: 0 + + - + start_resource: 78 + num_resource: 2 + type: 2446 + host_id: 30 + reserved: 0 + + - + start_resource: 80 + num_resource: 2 + type: 2446 + host_id: 128 + reserved: 0 + + - + start_resource: 32 + num_resource: 12 + type: 2447 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 6 + type: 2447 + host_id: 35 + reserved: 0 + + - + start_resource: 44 + num_resource: 6 + type: 2447 + host_id: 36 + reserved: 0 + + - + start_resource: 50 + num_resource: 2 + type: 2447 + host_id: 30 + reserved: 0 + + - + start_resource: 52 + num_resource: 2 + type: 2447 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2464 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2464 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2464 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2464 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 6 + type: 2464 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 18 + type: 2465 + host_id: 12 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2465 + host_id: 35 + reserved: 0 + + - + start_resource: 18 + num_resource: 6 + type: 2465 + host_id: 36 + reserved: 0 + + - + start_resource: 24 + num_resource: 2 + type: 2465 + host_id: 30 + reserved: 0 + + - + start_resource: 26 + num_resource: 2 + type: 2465 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 12 + type: 2466 + host_id: 12 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 2466 + host_id: 35 + reserved: 0 + + - + start_resource: 12 + num_resource: 6 + type: 2466 + host_id: 36 + reserved: 0 + + - + start_resource: 18 + num_resource: 2 + type: 2466 + host_id: 30 + reserved: 0 + + - + start_resource: 20 + num_resource: 2 + type: 2466 + host_id: 128 + reserved: 0 + + - + start_resource: 6 + num_resource: 34 + type: 2570 + host_id: 12 + reserved: 0 + + - + start_resource: 44 + num_resource: 36 + type: 2570 + host_id: 35 + reserved: 0 + + - + start_resource: 44 + num_resource: 36 + type: 2570 + host_id: 36 + reserved: 0 + + - + start_resource: 168 + num_resource: 8 + type: 2570 + host_id: 30 + reserved: 0 + + - + start_resource: 14 + num_resource: 512 + type: 2573 + host_id: 12 + reserved: 0 + + - + start_resource: 526 + num_resource: 256 + type: 2573 + host_id: 35 + reserved: 0 + + - + start_resource: 526 + num_resource: 256 + type: 2573 + host_id: 36 + reserved: 0 + + - + start_resource: 782 + num_resource: 128 + type: 2573 + host_id: 30 + reserved: 0 + + - + start_resource: 910 + num_resource: 626 + type: 2573 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1024 + type: 2575 + host_id: 128 + reserved: 0 + + - + start_resource: 4096 + num_resource: 29 + type: 2576 + host_id: 128 + reserved: 0 + + - + start_resource: 4608 + num_resource: 99 + type: 2577 + host_id: 128 + reserved: 0 + + - + start_resource: 5120 + num_resource: 24 + type: 2578 + host_id: 128 + reserved: 0 + + - + start_resource: 5632 + num_resource: 51 + type: 2579 + host_id: 128 + reserved: 0 + + - + start_resource: 6144 + num_resource: 51 + type: 2580 + host_id: 128 + reserved: 0 + + - + start_resource: 6656 + num_resource: 51 + type: 2581 + host_id: 128 + reserved: 0 + + - + start_resource: 8192 + num_resource: 32 + type: 2582 + host_id: 128 + reserved: 0 + + - + start_resource: 8704 + num_resource: 32 + type: 2583 + host_id: 128 + reserved: 0 + + - + start_resource: 9216 + num_resource: 32 + type: 2584 + host_id: 128 + reserved: 0 + + - + start_resource: 9728 + num_resource: 22 + type: 2585 + host_id: 128 + reserved: 0 + + - + start_resource: 10240 + num_resource: 22 + type: 2586 + host_id: 128 + reserved: 0 + + - + start_resource: 10752 + num_resource: 22 + type: 2587 + host_id: 128 + reserved: 0 + + - + start_resource: 11264 + num_resource: 28 + type: 2588 + host_id: 128 + reserved: 0 + + - + start_resource: 11776 + num_resource: 28 + type: 2589 + host_id: 128 + reserved: 0 + + - + start_resource: 12288 + num_resource: 28 + type: 2590 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 3075 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3088 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3088 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3088 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3088 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3088 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 64 + type: 3089 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 64 + type: 3089 + host_id: 30 + reserved: 0 + + - + start_resource: 83 + num_resource: 8 + type: 3090 + host_id: 12 + reserved: 0 + + - + start_resource: 91 + num_resource: 8 + type: 3091 + host_id: 12 + reserved: 0 + + - + start_resource: 99 + num_resource: 10 + type: 3094 + host_id: 12 + reserved: 0 + + - + start_resource: 109 + num_resource: 3 + type: 3094 + host_id: 35 + reserved: 0 + + - + start_resource: 109 + num_resource: 3 + type: 3094 + host_id: 36 + reserved: 0 + + - + start_resource: 112 + num_resource: 3 + type: 3094 + host_id: 30 + reserved: 0 + + - + start_resource: 115 + num_resource: 3 + type: 3094 + host_id: 128 + reserved: 0 + + - + start_resource: 118 + num_resource: 16 + type: 3095 + host_id: 12 + reserved: 0 + + - + start_resource: 118 + num_resource: 16 + type: 3095 + host_id: 30 + reserved: 0 + + - + start_resource: 134 + num_resource: 8 + type: 3096 + host_id: 12 + reserved: 0 + + - + start_resource: 134 + num_resource: 8 + type: 3097 + host_id: 12 + reserved: 0 + + - + start_resource: 142 + num_resource: 8 + type: 3098 + host_id: 12 + reserved: 0 + + - + start_resource: 142 + num_resource: 8 + type: 3099 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3107 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3107 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3107 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3107 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3107 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 8 + type: 3108 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 8 + type: 3108 + host_id: 30 + reserved: 0 + + - + start_resource: 27 + num_resource: 1 + type: 3109 + host_id: 12 + reserved: 0 + + - + start_resource: 28 + num_resource: 1 + type: 3110 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3113 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3113 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3113 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3113 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3113 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 10 + type: 3114 + host_id: 12 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3114 + host_id: 35 + reserved: 0 + + - + start_resource: 10 + num_resource: 3 + type: 3114 + host_id: 36 + reserved: 0 + + - + start_resource: 13 + num_resource: 3 + type: 3114 + host_id: 30 + reserved: 0 + + - + start_resource: 16 + num_resource: 3 + type: 3114 + host_id: 128 + reserved: 0 + + - + start_resource: 19 + num_resource: 1 + type: 3115 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 1 + type: 3115 + host_id: 30 + reserved: 0 + + - + start_resource: 19 + num_resource: 16 + type: 3116 + host_id: 12 + reserved: 0 + + - + start_resource: 19 + num_resource: 16 + type: 3116 + host_id: 30 + reserved: 0 + + - + start_resource: 20 + num_resource: 1 + type: 3117 + host_id: 12 + reserved: 0 + + - + start_resource: 35 + num_resource: 8 + type: 3118 + host_id: 12 + reserved: 0 + + - + start_resource: 21 + num_resource: 1 + type: 3119 + host_id: 12 + reserved: 0 + + - + start_resource: 35 + num_resource: 8 + type: 3120 + host_id: 12 + reserved: 0 + + - + start_resource: 22 + num_resource: 1 + type: 3121 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 8 + type: 3122 + host_id: 12 + reserved: 0 + + - + start_resource: 23 + num_resource: 1 + type: 3123 + host_id: 12 + reserved: 0 + + - + start_resource: 43 + num_resource: 8 + type: 3124 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 3264 + host_id: 128 + reserved: 0 + + - + start_resource: 2 + num_resource: 2 + type: 3274 + host_id: 12 + reserved: 0 + + - + start_resource: 51200 + num_resource: 12 + type: 26178 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 1 + type: 26179 + host_id: 128 + reserved: 0 + + - + start_resource: 0 + num_resource: 6 + type: 26190 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 6 + type: 26209 + host_id: 12 + reserved: 0 + + - + start_resource: 0 + num_resource: 8 + type: 32778 + host_id: 12 + reserved: 0 + + - + start_resource: 12288 + num_resource: 128 + type: 32781 + host_id: 12 + reserved: 0 + + - + start_resource: 3072 + num_resource: 6 + type: 32796 + host_id: 128 + reserved: 0 + + - + start_resource: 3584 + num_resource: 6 + type: 32797 + host_id: 128 + reserved: 0 + + - + start_resource: 4096 + num_resource: 6 + type: 32798 + host_id: 128 + reserved: 0
Signature · 1 line
2.34.1
PATCH 19/21 am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
In reply to Neha Malcom FrancisSupport added for HS and GP boot binaries for AM62ax.
tiboot3.bin, tispl.bin and u-boot.img: For HS devices tiboot3.bin_unsigned, tispl.bin_unsigned and u-boot.img_unsigned: For GP devices
It is to be noted that the bootflow followed by AM62ax requires:
tiboot3.bin:
* R5 SPL
* R5 SPL dtbs
* TIFS
* board-cfg
* pm-cfg
* sec-cfg
* rm-cfg
tispl.bin:
* DM
* ATF
* OPTEE
* A72 SPL
* A72 SPL dtbs
u-boot.img:
* A72 U-Boot
* A72 U-Boot dtbs
--- arch/arm/dts/k3-am62a-sk-binman.dtsi | 377 +++++++++++++++++++++++++++ arch/arm/dts/k3-am62a7-r5-sk.dts | 1 + arch/arm/dts/k3-am62a7-sk.dts | 1 + board/ti/am62ax/Kconfig | 2 + 4 files changed, 381 insertions(+) create mode 100644 arch/arm/dts/k3-am62a-sk-binman.dtsi
arch/arm/dts/k3-am62a-sk-binman.dtsi new file +377 -0
@@ -0,0 +1,377 @@ +// SPDX-License-Identifier: GPL-2.0 +/* + * Copyright (C) 2021 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/ { + binman: binman { + multiple-images; + }; +}; + +#ifdef CONFIG_TARGET_AM62A7_R5_EVM + +&binman { + ti-fs-cert { + filename = "ti-fs-cert.bin"; + ti-fs-firmware-am62ax-hs-cert.bin { + filename = "ti-fs-firmware-am62ax-hs-cert.bin"; + type = "blob-ext"; + optional; + }; + }; + ti-fs-enc { + filename = "ti-fs-enc.bin"; + ti-fs-firmware-am62ax-hs-enc.bin { + filename = "ti-fs-firmware-am62ax-hs-enc.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3 { + filename = "tiboot3.bin"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x43c00000>; + sysfw-filename = "ti-fs-enc.bin"; + sysfw-load = <0x40000>; + sysfw-inner-cert = "ti-fs-cert.bin"; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x67000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x43c3a800>; + key = "/keys/custMpk.pem"; + sw-rev = <1>; + }; + }; +}; + +&binman { + ti-fs-gp { + filename = "ti-fs-gp.bin"; + ti-fs-firmware-am62ax-gp.bin { + filename = "ti-fs-firmware-am62ax-gp.bin"; + type = "blob-ext"; + optional; + }; + }; + tiboot3_unsigned { + filename = "tiboot3.bin_unsigned"; + ti-secure { + combined; + split-dm; + filename = "spl/u-boot-spl.bin"; + load = <0x43c00000>; + sysfw-filename = "ti-fs-gp.bin"; + sysfw-load = <0x40000>; + sysfw-data-filename = "combined-tifs-cfg.bin"; + sysfw-data-load = <0x67000>; + dm-data-filename = "combined-dm-cfg.bin"; + dm-data-load = <0x43c3a800>; + sw-rev = <1>; + }; + }; +}; + +#endif + +#ifdef CONFIG_TARGET_AM62A7_A53_EVM + +#define SPL_NODTB "spl/u-boot-spl-nodtb.bin" +#define SPL_AM62A7_EVM_DTB "spl/dts/k3-am62a7-sk.dtb" + +#define UBOOT_NODTB "u-boot-nodtb.bin" +#define AM62A7_EVM_DTB "arch/arm/dts/k3-am62a7-sk.dtb" + +&binman { + ti-dm { + filename = "ti-dm.bin"; + blob-ext { + filename = "ipc_echo_testb_mcu1_0_release_strip.xer5f"; + }; + }; + ti-spl { + filename = "tispl.bin"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + ti-secure { + filename = SPL_NODTB; + secure; + }; + }; + + fdt-0 { + description = "k3-am62a7-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = SPL_AM62A7_EVM_DTB; + secure; + }; + }; + + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-am62a7-sk"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-0"; + }; + }; + }; + }; +}; + +&binman { + u-boot { + filename = "u-boot.img"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for AM62Ax board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + ti-secure { + filename = UBOOT_NODTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-0 { + description = "k3-am62a7-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + ti-secure { + filename = AM62A7_EVM_DTB; + secure; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-0"; + + conf-0 { + description = "k3-am62a7-sk"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-0"; + }; + + }; + }; + }; +}; + +&binman { + ti-spl_unsigned { + filename = "tispl.bin_unsigned"; + pad-byte = <0xff>; + + fit { + description = "Configuration to load ATF and SPL"; + #address-cells = <1>; + + images { + + atf { + description = "ARM Trusted Firmware"; + type = "firmware"; + arch = "arm64"; + compression = "none"; + os = "arm-trusted-firmware"; + load = <CONFIG_K3_ATF_LOAD_ADDR>; + entry = <CONFIG_K3_ATF_LOAD_ADDR>; + atf-bl31 { + filename = "bl31.bin"; + }; + }; + + tee { + description = "OPTEE"; + type = "tee"; + arch = "arm64"; + compression = "none"; + os = "tee"; + load = <0x9e800000>; + entry = <0x9e800000>; + tee-os { + filename = "tee-pager_v2.bin"; + }; + }; + + dm { + description = "DM binary"; + type = "firmware"; + arch = "arm32"; + compression = "none"; + os = "DM"; + load = <0x89000000>; + entry = <0x89000000>; + blob-ext { + filename = "ti-dm.bin"; + }; + }; + + spl { + description = "SPL (64-bit)"; + type = "standalone"; + os = "U-Boot"; + arch = "arm64"; + compression = "none"; + load = <CONFIG_SPL_TEXT_BASE>; + entry = <CONFIG_SPL_TEXT_BASE>; + blob { + filename = "spl/u-boot-spl-nodtb.bin"; + }; + }; + + fdt-1 { + description = "k3-am62a7-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = SPL_AM62A7_EVM_DTB; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-am62a7-sk"; + firmware = "atf"; + loadables = "tee", "dm", "spl"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; + +&binman { + u-boot_unsigned { + filename = "u-boot.img_unsigned"; + pad-byte = <0xff>; + + fit { + description = "FIT image with multiple configurations"; + + images { + uboot { + description = "U-Boot for AM62Ax board"; + type = "firmware"; + os = "u-boot"; + arch = "arm"; + compression = "none"; + load = <CONFIG_TEXT_BASE>; + blob { + filename = UBOOT_NODTB; + }; + hash { + algo = "crc32"; + }; + }; + + fdt-1 { + description = "k3-am62a7-sk"; + type = "flat_dt"; + arch = "arm"; + compression = "none"; + blob { + filename = AM62A7_EVM_DTB; + }; + hash { + algo = "crc32"; + }; + }; + }; + + configurations { + default = "conf-1"; + + conf-1 { + description = "k3-am62a7-sk"; + firmware = "uboot"; + loadables = "uboot"; + fdt = "fdt-1"; + }; + }; + }; + }; +}; +#endif
arch/arm/dts/k3-am62a7-r5-sk.dts +1 -0
@@ -7,6 +7,7 @@ #include "k3-am62a7-sk.dts" #include "k3-am62a-ddr-1866mhz-32bit.dtsi" #include "k3-am62a-ddr.dtsi" +#include "k3-am62a-sk-binman.dtsi" #include "k3-am62a7-sk-u-boot.dtsi"
arch/arm/dts/k3-am62a7-sk.dts +1 -0
@@ -10,6 +10,7 @@ #include <dt-bindings/leds/common.h> #include <dt-bindings/gpio/gpio.h> #include "k3-am62a7.dtsi" +#include "k3-am62a-sk-binman.dtsi" / { compatible = "ti,am62a7-sk", "ti,am62a7";
board/ti/am62ax/Kconfig +2 -0
@@ -11,6 +11,7 @@ config TARGET_AM62A7_A53_EVM bool "TI K3 based AM62A7 EVM running on A53" select ARM64 select SOC_K3_AM62A7 + select BINMAN imply BOARD imply SPL_BOARD imply TI_I2C_BOARD_DETECT
@@ -24,6 +25,7 @@ config TARGET_AM62A7_R5_EVM select RAM select SPL_RAM select K3_DDRSS + select BINMAN imply SYS_K3_SPL_ATF imply TI_I2C_BOARD_DETECT
Signature · 1 line
2.34.1
PATCH 20/21 k3: tools: config.mk: Update makefile and remove scripts
In reply to Neha Malcom FrancisSince binman is used to package bootloader images for all K3 devices, we do not have to rely on the earlier methods to package them.
config.mk has been edited to only have binman required make commands.
Scripts that were used to generate x509 certificate for tiboot3.bin and generate tispl.bin have also been removed.
--- arch/arm/mach-k3/config.mk | 92 ------------- tools/k3_fit_atf.sh | 123 ----------------- tools/k3_gen_x509_cert.sh | 262 ------------------------------------- 3 files changed, 477 deletions(-) delete mode 100755 tools/k3_fit_atf.sh delete mode 100755 tools/k3_gen_x509_cert.sh
arch/arm/mach-k3/config.mk +0 -92
@@ -11,34 +11,6 @@ ifeq ($(shell which openssl),) $(error "No openssl in $(PATH), consider installing openssl") endif -IMAGE_SIZE= $(shell cat $(obj)/u-boot-spl.bin | wc -c) -MAX_SIZE= $(shell printf "%d" $(CONFIG_SYS_K3_MAX_DOWNLODABLE_IMAGE_SIZE)) - -ifeq ($(CONFIG_SYS_K3_KEY), "") -KEY="" -# On HS use real key or warn if not available -ifeq ($(CONFIG_TI_SECURE_DEVICE),y) -ifneq ($(wildcard $(TI_SECURE_DEV_PKG)/keys/custMpk.pem),) -KEY=$(TI_SECURE_DEV_PKG)/keys/custMpk.pem -else -$(warning "WARNING: signing key not found. Random key will NOT work on HS hardware!") -endif -endif -else -KEY=$(patsubst "%",$(srctree)/%,$(CONFIG_SYS_K3_KEY)) -endif - -# X509 SWRV default -SWRV = $(CONFIG_K3_X509_SWRV) -# On HS use SECDEV provided software revision or warn if not available -ifeq ($(CONFIG_TI_SECURE_DEVICE),y) -ifneq ($(wildcard $(TI_SECURE_DEV_PKG)/keys/swrv.txt),) -SWRV= $(shell cat $(TI_SECURE_DEV_PKG)/keys/swrv.txt) -else -$(warning "WARNING: Software revision file not found. Default may not work on HS hardware.") -endif -endif - O ?= . # Board config binary artifacts necessary for packaging of tiboot3.bin
@@ -74,68 +46,4 @@ combined-dm-cfg.bin: pm-cfg.bin rm-cfg.bin INPUTS-y += combined-dm-cfg.bin endif - -# tiboot3.bin is mandated by ROM and ROM only supports R5 boot. -# So restrict tiboot3.bin creation for CPU_V7R. -ifndef CONFIG_BINMAN -ifdef CONFIG_CPU_V7R -image_check: $(obj)/u-boot-spl.bin FORCE - @if [ $(IMAGE_SIZE) -gt $(MAX_SIZE) ]; then \ - echo "===============================================" >&2; \ - echo "ERROR: Final Image too big. " >&2; \ - echo "$< size = $(IMAGE_SIZE), max size = $(MAX_SIZE)" >&2; \ - echo "===============================================" >&2; \ - exit 1; \ - fi - -tiboot3.bin: image_check FORCE - $(srctree)/tools/k3_gen_x509_cert.sh -c 16 -b $(obj)/u-boot-spl.bin \ - -o $@ -l $(CONFIG_SPL_TEXT_BASE) -r $(SWRV) -k $(KEY) - -INPUTS-y += tiboot3.bin -endif -endif - -ifdef CONFIG_ARM64 - -ifeq ($(CONFIG_SOC_K3_J721E),) -export DM := /dev/null endif - -ifndef CONFIG_BINMAN -ifeq ($(CONFIG_TI_SECURE_DEVICE),y) -SPL_ITS := u-boot-spl-k3_HS.its -$(SPL_ITS): export IS_HS=1 -INPUTS-y += tispl.bin_HS -else -SPL_ITS := u-boot-spl-k3.its -INPUTS-y += tispl.bin -endif -endif - -ifeq ($(CONFIG_SPL_OF_LIST),) -LIST_OF_DTB := $(CONFIG_DEFAULT_DEVICE_TREE) -else -LIST_OF_DTB := $(CONFIG_SPL_OF_LIST) -endif - -quiet_cmd_k3_mkits = MKITS $@ -cmd_k3_mkits = \ - $(srctree)/tools/k3_fit_atf.sh \ - $(CONFIG_K3_ATF_LOAD_ADDR) \ - $(patsubst %,$(obj)/dts/%.dtb,$(subst ",,$(LIST_OF_DTB))) > $@ - -$(SPL_ITS): FORCE - $(call cmd,k3_mkits) -endif - -else - -ifeq ($(CONFIG_TI_SECURE_DEVICE),y) -INPUTS-y += u-boot.img_HS -else -INPUTS-y += u-boot.img -endif -endif - -include $(srctree)/arch/arm/mach-k3/config_secure.mk
tools/k3_fit_atf.sh deleted +0 -123
123 lines not on this page · raw message
tools/k3_gen_x509_cert.sh deleted +0 -262
262 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH 21/21 doc: board: ti: Update documentation for binman flow
In reply to Neha Malcom FrancisEarlier documentation specified builds for generating bootloader images using an external TI repository k3-image-gen and shell scripts within U-Boot. Modify this to using the binman flow so that user understands how to build the final boot images.
--- doc/board/ti/am62x_sk.rst | 22 ++++++++--------- doc/board/ti/j721e_evm.rst | 35 +++++++++++--------------- doc/board/ti/k3.rst | 50 ++++++++++++-------------------------- 3 files changed, 40 insertions(+), 67 deletions(-)
doc/board/ti/am62x_sk.rst +10 -12
@@ -115,26 +115,26 @@ Below is the pictorial representation of boot flow: Sources: -------- -1. SYSFW: - Tree: git://git.ti.com/k3-image-gen/k3-image-gen.git - Branch: master - -2. ATF: +1. ATF: Tree: https://github.com/ARM-software/arm-trusted-firmware.git Branch: master -3. OPTEE: +2. OPTEE: Tree: https://github.com/OP-TEE/optee_os.git Branch: master -4. U-Boot: +3. U-Boot: Tree: https://source.denx.de/u-boot/u-boot Branch: master -5. TI Linux Firmware: +4. TI Linux Firmware: Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git Branch: ti-linux-firmware +5. TI Security Development Tools + Tree: https://git.ti.com/git/security-development-tools/core-secdev-k3.git + Branch: master + Build procedure: ---------------- 1. ATF:
@@ -156,9 +156,7 @@ Build procedure: .. code-block:: text $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- am62x_evm_r5_defconfig O=/tmp/r5 - $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/tmp/r5 - $ cd <k3-image-gen> - $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- SOC=am62x SBL=/tmp/r5/spl/u-boot-spl.bin SYSFW_PATH=<path to ti-linux-firmware>/ti-sysfw/ti-fs-firmware-am62x-gp.bin + $ make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabihf- O=/tmp/r5 SYSFW_PATH=<path to ti-linux-firmware>/ti-sysfw/ti-fs-firmware-am62x-gp.bin TI_SECURE_DEV_PKG=<path/to/security-development-tools Use the tiboot3.bin generated from last command
@@ -167,7 +165,7 @@ Use the tiboot3.bin generated from last command .. code-block:: text $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- am62x_evm_a53_defconfig O=/tmp/a53 - $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- ATF=<path to ATF dir>/build/k3/lite/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<path to ti-linux-firmware>/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f O=/tmp/a53 + $ make ARCH=arm CROSS_COMPILE=aarch64-none-linux-gnu- BL31=<path to ATF dir>/build/k3/lite/release/bl31.bin TEE=<path to OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<path to ti-linux-firmware>/ti-dm/am62xx/ipc_echo_testb_mcu1_0_release_strip.xer5f O=/tmp/a53 TI_SECURE_DEV_PKG=<path/to/security-development-tools Target Images --------------
doc/board/ti/j721e_evm.rst +14 -21
@@ -130,67 +130,60 @@ support. Below is the pictorial representation of boot flow: Sources: -------- -1. SYSFW: - Tree: git://git.ti.com/k3-image-gen/k3-image-gen.git - Branch: master - -2. ATF: +1. ATF: Tree: https://github.com/ARM-software/arm-trusted-firmware.git Branch: master -3. OPTEE: +2. OPTEE: Tree: https://github.com/OP-TEE/optee_os.git Branch: master -4. DM Firmware: +3. DM Firmware: Tree: git://git.ti.com/processor-firmware/ti-linux-firmware.git Branch: ti-linux-firmware -5. U-Boot: +4. U-Boot: Tree: https://source.denx.de/u-boot/u-boot Branch: master +5. TI Security Development Tools + Tree: https://git.ti.com/git/security-development-tools/core-secdev-k3.git + Branch: master + Build procedure: ---------------- -1. SYSFW: - -.. code-block:: bash - - make CROSS_COMPILE=arm-linux-gnueabihf- SOC=j721e - -2. ATF: +1. ATF: .. code-block:: bash make CROSS_COMPILE=aarch64-linux-gnu- ARCH=aarch64 PLAT=k3 TARGET_BOARD=generic SPD=opteed -3. OPTEE: +2. OPTEE: .. code-block:: bash make PLATFORM=k3-j721e CFG_ARM64_core=y -4. U-Boot: +3. U-Boot: * 4.1 R5: .. code-block:: bash make CROSS_COMPILE=arm-linux-gnueabihf- j721e_evm_r5_defconfig O=build/r5 - make CROSS_COMPILE=arm-linux-gnueabihf- O=build/r5 + make CROSS_COMPILE=arm-linux-gnueabihf- O=build/r5 TI_SECURE_DEV_PKG=/path/to/security-development-tools * 4.2 A72: .. code-block:: bash make CROSS_COMPILE=aarch64-linux-gnu- j721e_evm_a72_defconfig O=build/a72 - make CROSS_COMPILE=aarch64-linux-gnu- ATF=<ATF dir>/build/k3/generic/release/bl31.bin TEE=<OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<DM firmware>/ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f O=build/a72 + make CROSS_COMPILE=aarch64-linux-gnu- BL31=<ATF dir>/build/k3/generic/release/bl31.bin TEE=<OPTEE OS dir>/out/arm-plat-k3/core/tee-pager_v2.bin DM=<DM firmware>/ti-dm/j721e/ipc_echo_testb_mcu1_0_release_strip.xer5f O=build/a72 TI_SECURE_DEV_PKG=/path/to/security-development-tools Target Images -------------- Copy the below images to an SD card and boot: - - sysfw.itb from step 1 - - tiboot3.bin from step 4.1 + - tiboot3.bin and sysfw.itb from step 4.1 - tispl.bin, u-boot.img from 4.2 Image formats:
doc/board/ti/k3.rst +16 -34
103 lines not on this page · raw message
Signature · 1 line
2.34.1
Hi Neha,
Quoted 83 lines · Neha Malcom Francis
This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo that was plumbed into the U-Boot build flow to generate boot images for TI K3 platform devices. And instead, we move towards using binman that aligns better with the community standard build flow.
This series uses binman for all K3 platforms supported on U-Boot currently; both HS (High Security) and GP (General Purpose) devices.
Background on using k3-image-gen:
* TI K3 devices require a SYSFW (System Firmware) image consisting of a signed system firmware image and board configuration binaries, this is needed to bring up system firmware during U-Boot R5 SPL startup.
* Board configuration data contain board-specific information such as resource management, power management and security.Series intends to use binman to take over the packaging and signing for the R5 bootloader images tiboot3.bin (and sysfw.itb, for non-combined boot flow) instead of k3-image-gen.
Series also packages the A72/A53 bootloader images (tispl.bin and u-boot.img) using ATF, OPTEE and DM (Device Manager)
Neha Malcom Francis (21):
ti: tools: config: Add board config class to generate config binaries
tools: sysfw: Add script for generating configuration blobs
tools: binman: add ti-secure entry type
ti: sysfw: tiboot3: Add support for packaging sysfw.itb and
tiboot3.bin
j721e: schema: yaml: Add general schema and J721E board config files
j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
j7200: yaml: Add J7200 board config files
j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
am65x: yaml: Add AM65x board config files
am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
config: am64x: Add board config for AM64x
am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img
Makefile: Add DM,SYSFW_PATH,SYSFW_HS_INNER_CERT_PATHto
BINMAN_INDIRS
j721s2: yaml: Add board config for J721S2
j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62: yaml: Add board config for AM62
am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62a: yaml: Add board config for AM62ax
am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
k3: tools: config.mk: Update makefile and remove scripts
doc: board: ti: Update documentation for binman flowMakefile | 17 + arch/arm/dts/k3-am625-r5-sk.dts | 1 + arch/arm/dts/k3-am625-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 2 + arch/arm/dts/k3-am62a-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am62a7-r5-sk.dts | 1 + arch/arm/dts/k3-am62a7-sk.dts | 1 + arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 + arch/arm/dts/k3-am642-r5-evm.dts | 1 + arch/arm/dts/k3-am64x-binman.dtsi | 440 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 1 + .../dts/k3-am654-r5-base-board-u-boot.dtsi | 1 + arch/arm/dts/k3-am65x-binman.dtsi | 482 +++ arch/arm/dts/k3-j7200-binman.dtsi | 377 ++ .../k3-j7200-common-proc-board-u-boot.dtsi | 2 + arch/arm/dts/k3-j721e-binman.dtsi | 605 +++ .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 1 + arch/arm/dts/k3-j721s2-binman.dtsi | 377 ++ .../k3-j721s2-common-proc-board-u-boot.dtsi | 2 + .../dts/k3-j721s2-r5-common-proc-board.dts | 1 + arch/arm/mach-k3/config.mk | 102 +- board/ti/am62ax/Kconfig | 2 + board/ti/am62ax/config.yaml | 1553 ++++++++ board/ti/am62x/Kconfig | 2 + board/ti/am62x/config.yaml | 1490 ++++++++ board/ti/am64x/Kconfig | 2 + board/ti/am64x/config.yaml | 1805 +++++++++ board/ti/am65x/Kconfig | 2 + board/ti/am65x/config.yaml | 2469 ++++++++++++ board/ti/common/schema.yaml | 355 ++
Quoted 8 lines
board/ti/j721e/Kconfig | 4 + board/ti/j721e/config.yaml | 3162 ++++++++++++++++ board/ti/j721e/config_j7200.yaml | 2467 ++++++++++++ board/ti/j721s2/Kconfig | 2 + board/ti/j721s2/config.yaml | 3303 +++++++++++++++++ doc/board/ti/am62x_sk.rst | 22 +- doc/board/ti/j721e_evm.rst | 35 +- doc/board/ti/k3.rst | 50 +-
Please move all of that into a separate patch. The binman changes should be in their own 'binman:' patch, with tests and docs related just to binman.
Quoted 32 lines
include/binman_sym.h | 2 + scripts/Makefile.spl | 2 + test/py/requirements.txt | 1 + tools/binman/entries.rst | 15 + tools/binman/etype/ti_secure.py | 133 + tools/binman/ftest.py | 8 + tools/k3_fit_atf.sh | 123 - tools/k3_gen_x509_cert.sh | 262 -- tools/k3_sysfw_boardcfg_blob_creator.py | 116 + tools/tibcfg_gen.py | 117 + 49 files changed, 20146 insertions(+), 529 deletions(-) create mode 100644 arch/arm/dts/k3-am625-sk-binman.dtsi create mode 100644 arch/arm/dts/k3-am62a-sk-binman.dtsi create mode 100644 arch/arm/dts/k3-am64x-binman.dtsi create mode 100644 arch/arm/dts/k3-am65x-binman.dtsi create mode 100644 arch/arm/dts/k3-j7200-binman.dtsi create mode 100644 arch/arm/dts/k3-j721e-binman.dtsi create mode 100644 arch/arm/dts/k3-j721s2-binman.dtsi create mode 100644 board/ti/am62ax/config.yaml create mode 100644 board/ti/am62x/config.yaml create mode 100644 board/ti/am64x/config.yaml create mode 100644 board/ti/am65x/config.yaml create mode 100644 board/ti/common/schema.yaml create mode 100644 board/ti/j721e/config.yaml create mode 100644 board/ti/j721e/config_j7200.yaml create mode 100644 board/ti/j721s2/config.yaml create mode 100644 tools/binman/etype/ti_secure.py delete mode 100755 tools/k3_fit_atf.sh delete mode 100755 tools/k3_gen_x509_cert.sh create mode 100755 tools/k3_sysfw_boardcfg_blob_creator.py create mode 100644 tools/tibcfg_gen.py
Quoted 3 lines
--
2.34.1
It is great to see this and thank you for working on it.
My general comments are:
- we need to avoid adding new scripts (they should go into binman) so please let me know what is needed there and how we can adjust it
- needs some work in testing - e.g. 'binman test' and 'binman test -T' need to pass without errors
Regards,
Simon
Hi Simon
Quoted 139 lines · Simon Glass
Hi Neha,
Quoted 83 lines · Neha Malcom Francis
This series aims to eliminate the use of additional custom repositories such as k3-image-gen (K3 Image Generation) repo that was plumbed into the U-Boot build flow to generate boot images for TI K3 platform devices. And instead, we move towards using binman that aligns better with the community standard build flow.
This series uses binman for all K3 platforms supported on U-Boot currently; both HS (High Security) and GP (General Purpose) devices.
Background on using k3-image-gen:
* TI K3 devices require a SYSFW (System Firmware) image consisting of a signed system firmware image and board configuration binaries, this is needed to bring up system firmware during U-Boot R5 SPL startup.
* Board configuration data contain board-specific information such as resource management, power management and security.Series intends to use binman to take over the packaging and signing for the R5 bootloader images tiboot3.bin (and sysfw.itb, for non-combined boot flow) instead of k3-image-gen.
Series also packages the A72/A53 bootloader images (tispl.bin and u-boot.img) using ATF, OPTEE and DM (Device Manager)
Neha Malcom Francis (21):
ti: tools: config: Add board config class to generate config binaries
tools: sysfw: Add script for generating configuration blobs
tools: binman: add ti-secure entry type
ti: sysfw: tiboot3: Add support for packaging sysfw.itb and
tiboot3.bin
j721e: schema: yaml: Add general schema and J721E board config files
j721e: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
j7200: yaml: Add J7200 board config files
j7200: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
am65x: yaml: Add AM65x board config files
am65: dts: binman: Package tiboot3.bin, sysfw.itb, tispl.bin,
u-boot.img
config: am64x: Add board config for AM64x
am64x: dts: binman: Package tiboot3.bin, tispl.bin u-boot.img
Makefile: Add DM,SYSFW_PATH,SYSFW_HS_INNER_CERT_PATHto
BINMAN_INDIRS
j721s2: yaml: Add board config for J721S2
j721s2: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62: yaml: Add board config for AM62
am625: dts: binman: Package tiboot3.bin, tispl.bin and u-boot.img
am62a: yaml: Add board config for AM62ax
am62a: dts: binman: Package tiboot3.bin, tispl.bin, u-boot.img
k3: tools: config.mk: Update makefile and remove scripts
doc: board: ti: Update documentation for binman flowMakefile | 17 + arch/arm/dts/k3-am625-r5-sk.dts | 1 + arch/arm/dts/k3-am625-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 2 + arch/arm/dts/k3-am62a-sk-binman.dtsi | 377 ++ arch/arm/dts/k3-am62a7-r5-sk.dts | 1 + arch/arm/dts/k3-am62a7-sk.dts | 1 + arch/arm/dts/k3-am642-evm-u-boot.dtsi | 2 + arch/arm/dts/k3-am642-r5-evm.dts | 1 + arch/arm/dts/k3-am64x-binman.dtsi | 440 +++ arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 1 + .../dts/k3-am654-r5-base-board-u-boot.dtsi | 1 + arch/arm/dts/k3-am65x-binman.dtsi | 482 +++ arch/arm/dts/k3-j7200-binman.dtsi | 377 ++ .../k3-j7200-common-proc-board-u-boot.dtsi | 2 + arch/arm/dts/k3-j721e-binman.dtsi | 605 +++ .../k3-j721e-common-proc-board-u-boot.dtsi | 1 + .../arm/dts/k3-j721e-r5-common-proc-board.dts | 1 + arch/arm/dts/k3-j721s2-binman.dtsi | 377 ++ .../k3-j721s2-common-proc-board-u-boot.dtsi | 2 + .../dts/k3-j721s2-r5-common-proc-board.dts | 1 + arch/arm/mach-k3/config.mk | 102 +- board/ti/am62ax/Kconfig | 2 + board/ti/am62ax/config.yaml | 1553 ++++++++ board/ti/am62x/Kconfig | 2 + board/ti/am62x/config.yaml | 1490 ++++++++ board/ti/am64x/Kconfig | 2 + board/ti/am64x/config.yaml | 1805 +++++++++ board/ti/am65x/Kconfig | 2 + board/ti/am65x/config.yaml | 2469 ++++++++++++ board/ti/common/schema.yaml | 355 ++Quoted 8 lines
board/ti/j721e/Kconfig | 4 + board/ti/j721e/config.yaml | 3162 ++++++++++++++++ board/ti/j721e/config_j7200.yaml | 2467 ++++++++++++ board/ti/j721s2/Kconfig | 2 + board/ti/j721s2/config.yaml | 3303 +++++++++++++++++ doc/board/ti/am62x_sk.rst | 22 +- doc/board/ti/j721e_evm.rst | 35 +- doc/board/ti/k3.rst | 50 +-Please move all of that into a separate patch. The binman changes should be in their own 'binman:' patch, with tests and docs related just to binman.
Quoted 32 lines
include/binman_sym.h | 2 + scripts/Makefile.spl | 2 + test/py/requirements.txt | 1 + tools/binman/entries.rst | 15 + tools/binman/etype/ti_secure.py | 133 + tools/binman/ftest.py | 8 + tools/k3_fit_atf.sh | 123 - tools/k3_gen_x509_cert.sh | 262 -- tools/k3_sysfw_boardcfg_blob_creator.py | 116 + tools/tibcfg_gen.py | 117 + 49 files changed, 20146 insertions(+), 529 deletions(-)create mode 100644
arch/arm/dts/k3-am625-sk-binman.dtsicreate mode 100644arch/arm/dts/k3-am62a-sk-binman.dtsicreate mode 100644arch/arm/dts/k3-am64x-binman.dtsicreate mode 100644arch/arm/dts/k3-am65x-binman.dtsicreate mode 100644arch/arm/dts/k3-j7200-binman.dtsicreate mode 100644arch/arm/dts/k3-j721e-binman.dtsicreate mode 100644arch/arm/dts/k3-j721s2-binman.dtsicreate mode 100644board/ti/am62ax/config.yamlcreate mode 100644board/ti/am62x/config.yamlcreate mode 100644board/ti/am64x/config.yamlcreate mode 100644board/ti/am65x/config.yamlcreate mode 100644board/ti/common/schema.yamlcreate mode 100644board/ti/j721e/config.yamlcreate mode 100644board/ti/j721e/config_j7200.yamlcreate mode 100644board/ti/j721s2/config.yamlcreate mode 100644tools/binman/etype/ti_secure.pydelete mode 100755tools/k3_fit_atf.sh
delete mode 100755tools/k3_gen_x509_cert.shcreate mode 100755tools/k3_sysfw_boardcfg_blob_creator.pycreate mode 100644tools/tibcfg_gen.pyQuoted 3 lines
--
2.34.1It is great to see this and thank you for working on it.
My general comments are:
Quoted 7 lines
- we need to avoid adding new scripts (they should go into binman) so please let me know what is needed there and how we can adjust it
- needs some work in testing - e.g. 'binman test' and 'binman test -T' need to pass without errorsRegards,
Simon
Thanks for the review comments! I am working on it and will reach out if I need any help.
Signature · 2 lines
Thanking You Neha Malcom Francis