[PATCH 2/2] arm64: zynq(mp): Rename spl_board_init() to spl_arch_init()

2024-03-20 Thread lukas . funke-oss
From: Lukas Funke Rename spl_board_init() to spl_arch_init(). Architecture specific implementation should be separated from board specific implementation in order to be extended by board developers. Signed-off-by: Lukas Funke --- arch/arm/Kconfig | 4 ++-- arch/arm/mach-zynq/spl.c

[PATCH 1/2] spl: Introduce architecture specific init function

2024-03-20 Thread lukas . funke-oss
From: Lukas Funke Some architectures use spl_board_init() in their architecture specific implementation. Board developers should be able to add board specific implementation via spl_board_init(). Hence, introduce a spl_arch_init() method which is called right before spl_board_init() for architect

[PATCH v2 1/2] spl: Introduce SoC specific init function

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Some architectures use spl_board_init() in their SoC specific implementation. Board developers should be able to add board specific implementation via spl_board_init(). Hence, introduce a spl_soc_init() method which is called right before spl_board_init() for SoC specific implem

[PATCH v2 0/2] Introduce spl_soc_init() for SoC specific initialization

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Currently some vendors use spl_board_init() for their SoC specific initialization. This prohibits board developers from adding board init code using said function. This series introduces a new function in order to separate SoC init code from board init code. Changes in v2: -

[PATCH v2 2/2] arm64: zynq(mp): Rename spl_board_init() to spl_soc_init()

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Rename spl_board_init() to spl_soc_init(). SoC specific implementation should be separated from board specific implementation in order to be extended by board developers. Signed-off-by: Lukas Funke --- Changes in v2: - Change spl_arch_init() to spl_soc_init() arch/arm/Kcon

[PATCH v3 0/2] Introduce spl_soc_init() for SoC specific initialization

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Currently some vendors use spl_board_init() for their SoC specific initialization. This prohibits board developers from adding board init code using said function. This series introduces a new function in order to separate SoC init code from board init code. Changes in v3: -

[PATCH v3 2/2] arm64: zynq(mp): Rename spl_board_init() to spl_soc_init()

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Rename spl_board_init() to spl_soc_init(). SoC specific implementation should be separated from board specific implementation in order to be extended by board developers. Signed-off-by: Lukas Funke --- Changes in v3: - Rephrase Kconfig description and correct minor typo Cha

[PATCH v3 1/2] spl: Introduce SoC specific init function

2024-03-27 Thread lukas . funke-oss
From: Lukas Funke Some architectures use spl_board_init() in their SoC specific implementation. Board developers should be able to add board specific implementation via spl_board_init(). Hence, introduce a spl_soc_init() method which is called right before spl_board_init() for SoC specific implem

[PATCH 0/3] Add support for jtag disable/enable and multiboot get/set for zynq

2024-03-28 Thread lukas . funke-oss
From: Lukas Funke This series adds support to enable/disable/lock the jtag interface from u-boot. This becomes handy if secure boot is used but debugging should be poissible for non-productions builds. The series also adds support to get/set the multiboot register in order to ensure a freash bo

[PATCH 1/3] zynq: Add get function for multi boot address register

2024-03-28 Thread lukas . funke-oss
From: Stefan Herbrechtsmeier This commit adds a function to get/set the multiboot register. This becomes handy in order to ensure a fresh bootimage search after reset. Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Lukas Funke --- arch/arm/mach-zynq/cpu.c| 19 ++

[PATCH 2/3] zynq: Add function to enable JTAG

2024-03-28 Thread lukas . funke-oss
From: Stefan Herbrechtsmeier In non-secure boot mode jtag is restored by the BootROM. In secure boot mode jtag has to be restored by the trusted application, i.e. the bootloader. This commit adds a function to enable the jtag interface on zynq devices from u-boot. Signed-off-by: Stefan Herbrech

[PATCH 3/3] zynq: Add function to lock JTAG enable bits

2024-03-28 Thread lukas . funke-oss
From: Stefan Herbrechtsmeier Add function to prevent debug access from being enabled. If the debug lock is set the debug access cannot be enabled after a soft-reset. The debug access can only be enabled after a power-on-reset is performed. Signed-off-by: Stefan Herbrechtsmeier Signed-off-by: Lu

[PATCH 01/12] binman: elf: Check for ELF_TOOLS availability and remove extra semicolon

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Check if elf tools are available when running DecodeElf(). Also remove superfuous semicolon at line ending. Signed-off-by: Lukas Funke --- tools/binman/elf.py | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tools/binman/elf.py b/tools/binman/el

[PATCH 00/12] Sign Xilinx ZynqMP SPL/FSBL boot images using binman

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke This series adds two etypes to create a verified boot chain for Xilinx ZynqMP devices. The first etype 'xilinx_fsbl_auth' is used to create a bootable, signed image for ZynqMP boards using the Xilinx Bootgen tool. The second etype 'u_boot_spl_pubkey_dtb' is used to add a '/sign

[PATCH 04/12] binman: blob_dtb: Add fake_size argument to ObtainContents()

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke The method 'connect_contents_to_file()' calls ObtainsContents() with 'fake_size' argument. Without providing the argument in the blob_dtb we are not able to call this method without error. Signed-off-by: Lukas Funke --- tools/binman/etype/blob_dtb.py | 2 +- 1 file changed,

[PATCH 10/12] binman: btool: Add Xilinx Bootgen btool

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add the Xilinx Bootgen as bintool. Xilinx Bootgen is used to create bootable SPL (FSBL in Xilinx terms) images for Zynq/ZynqMP devices. The btool creates a signed version of the SPL. Signed-off-by: Lukas Funke --- tools/binman/btool/bootgen.py | 82 ++

[PATCH 12/12] binman: etype: Add xilinx_fsbl_auth etype

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke This adds a new etype 'xilinx_fsbl_auth'. Using this etype it is possible to created an authenticated SPL (FSBL in Xilinx terms) for ZynqMP boards. The etype uses Xilinx Bootgen tools in order to transform the SPL into a bootable image and sign the image with a given primary an

[PATCH 06/12] binman: ftest: Add test for u_boot_spl_pubkey_dtb

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add test for u_boot_spl_pubkey_dtb. The test adds a public key to the dtb and checks if the required nodes will be added to the images dtb. Signed-off-by: Lukas Funke --- tools/binman/ftest.py| 32 tools/binman/test/281_spl_pubkey

[PATCH 05/12] binman: doc: Add documentation for fdt_add_pubkey bintool

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add documentation for btool which calls 'fdt_add_pubkey' Signed-off-by: Lukas Funke --- tools/binman/bintools.rst | 10 ++ 1 file changed, 10 insertions(+) diff --git a/tools/binman/bintools.rst b/tools/binman/bintools.rst index c30e7eb9ff..88221adbe1 100644 --- a/t

[PATCH 11/12] binman: ftest: Add test for xilinx_fsbl_auth etype

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add test for the 'xilinx_fsbl_auth' etype Signed-off-by: Lukas Funke --- tools/binman/ftest.py | 8 tools/binman/test/280_xilinx_fsb_auth.dts | 22 ++ 2 files changed, 30 insertions(+) create mode 100644 tools/binman/test/28

[PATCH 09/12] binman: doc: Add documentation for Xilinx Bootgen bintool

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add documentation for the 'bootgen' bintool Signed-off-by: Lukas Funke --- tools/binman/bintools.rst | 12 1 file changed, 12 insertions(+) diff --git a/tools/binman/bintools.rst b/tools/binman/bintools.rst index 88221adbe1..c8d69f7177 100644 --- a/tools/binman

[PATCH 02/12] binman: mkimage: Remove extra colon

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Remove extra colon typo Signed-off-by: Lukas Funke --- tools/binman/etype/mkimage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/binman/etype/mkimage.py b/tools/binman/etype/mkimage.py index e028c44070..dd734fc779 100644 --- a/tools/binman/etype

[PATCH 03/12] binman: Don't decompress data while signing

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke While signing a fit compressed data (i.e. 'blob-ext') is decompressed, but never compressed again. When compressed data was wrapped in a section, decompression leads to an error because the outer section had the original compressed size but the inner entry has the uncompressed s

[PATCH 08/12] binman: etype: Add u_boot_spl_pubkey_dtb etype

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke This adds a new etype 'u_boot_spl_pubkey_dtb'. The etype adds the public key from a certificate to the dtb. This creates a '/signature' node which is turn contains the fields which make up the public key. Usually this is done by 'mkimage -K'. However, 'binman sign' does not add

[PATCH 07/12] binman: btool: Add fdt_add_pubkey as btool

2023-06-29 Thread lukas . funke-oss
From: Lukas Funke Add btool which calls 'fdt_add_pubkey' Signed-off-by: Lukas Funke --- tools/binman/btool/fdt_add_pubkey.py | 67 1 file changed, 67 insertions(+) create mode 100644 tools/binman/btool/fdt_add_pubkey.py diff --git a/tools/binman/btool/fdt_add_pu

[RFC PATCH 0/1] env: introduce variable value ranges

2024-08-26 Thread lukas . funke-oss
From: Lukas Funke This series extends the flags-variable with ranges for environment variables. The range is appended to the variable flags using the '@'-character. A range can be decimal (min/max), bitmask or regular expression (64 byte). Value ranges for variables can be used to make the envi

[RFC PATCH 1/1] env: introduce variable ranges

2024-08-26 Thread lukas . funke-oss
From: Lukas Funke This commit extends the flags-variable with ranges for environment variables. The range is appended to the variable flags using the '@'-character. A range can be decimal (min/max), bitmask or regular expression (64 byte). Value ranges for variables can be used to make the envir

<    1   2