Re: [RFC PATCH 1/2] doc: sphinx: Add sphinx-prompt

2023-08-26 Thread Heinrich Schuchardt
On 8/24/23 17:40, Nishanth Menon wrote: Sphinx-prompt[1] helps bring-in '.. prompt::' option that allows a better rendered documentation, yet be able to copy paste without picking up the prompt from rendered documentation. [1] https://lore.kernel.org/all/87fs48rgto@baylibre.com/

Re: [PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Tom Rini
On Sat, Aug 26, 2023 at 06:16:36PM +0300, Oleksandr Suvorov wrote: > Hi Heinrich, > > On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt > wrote: > > > > On 8/26/23 15:24, Oleksandr Suvorov wrote: > > > If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends > > > up with a

Re: [PATCH 2/2] CI: Move to latest Ubuntu "Jammy" tag

2023-08-26 Thread Tom Rini
On Fri, Aug 25, 2023 at 01:21:27PM -0400, Tom Rini wrote: > Move to the latest "Jammy" tag from Ubuntu. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/2] CI: Update to gcc-13.2.0

2023-08-26 Thread Tom Rini
On Fri, Aug 25, 2023 at 01:21:26PM -0400, Tom Rini wrote: > The latest kernel.org toolchains for gcc are now 13.2.0, so upgrade to > that. > > Signed-off-by: Tom Rini > Reviewed-by: Simon Glass Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v2 00/23] bootstd: Support ChromiumOS better

2023-08-26 Thread Tom Rini
On Thu, Aug 24, 2023 at 01:55:23PM -0600, Simon Glass wrote: > This updates the ChromiumOS bootmeth to detect multiple kernel partitions > on a disk. > > It also includes minor code improvements to the partition drivers, > including accessors for the optional fields. > > This series also

Re: [PATCH 1/2] tools: relocate-rela: Add M68K support

2023-08-26 Thread Marek Vasut
On 8/26/23 09:44, Angelo Dureghello wrote: Hi Marek, thanks a lot for the job i should have done. Tested on real hw: m5282evb   worked out of the box mcf54415   not working, had a lot of unsupported relocation type for R_68K_JMP_SLOT mcf5307    need to fix the hw, will do in short i had to

[PATCH v2 2/2] arch: m68k: Implement relocation

2023-08-26 Thread Marek Vasut
Implement relocation for M68K. Perform all the updates in start.S relocate_code in assemby, since it is a simple matter of traversing the dynsym table and adding relocation offset - MONITOR_BASE to all the items in that table. The necessity to deal with MONITOR_BASE is a specific of M68K, where

[PATCH v2 1/2] tools: relocate-rela: Add M68K support

2023-08-26 Thread Marek Vasut
Add M68K ELF32 support into this tool, so it can patch static rela into M68K u-boot-nodtb.bin . This is the first step toward M68K relocation support, and in turn, removal of NEEDS_MANUAL_RELOC from the codebase altogether. Tested-by: Michal Simek # microblaze, arm64 Signed-off-by: Marek Vasut

Re: [PATCH 1/2] serial: sh: Fix compile error when lacking HSCIF support

2023-08-26 Thread Marek Vasut
On 8/26/23 14:03, Paul Barker wrote: On 23/08/2023 12:22, Marek Vasut wrote: On 8/23/23 08:25, Paul Barker wrote: On 22/08/2023 22:38, Marek Vasut wrote: On 8/22/23 20:10, Paul Barker wrote: If we attempt to compile serial_sh.c for a system which lacks HSCIF support (e.g. R8A7740), we see

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Andrey Skvortsov
Hi Heinrich, On 23-08-26 15:10, Heinrich Schuchardt wrote: > On 8/26/23 14:16, Andrey Skvortsov wrote: > > u-boot adds reserve-memory node, if it's missing, with following > > properties: > > > > ``` > > reserved-memory { > > #address-cells = <2>; > > #size-cells = <2>;

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Andre Przywara
On Sat, 26 Aug 2023 15:10:10 +0200 Heinrich Schuchardt wrote: Hi, > On 8/26/23 14:16, Andrey Skvortsov wrote: > > u-boot adds reserve-memory node, if it's missing, with following > > properties: > > > > ``` > > reserved-memory { > > #address-cells = <2>; > > #size-cells

Re: [PATCH 2/3] cmd: fix gpt enumerate

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 04:04, Simon Glass wrote: Hi Heinrich, On Fri, 25 Aug 2023 at 19:53, Heinrich Schuchardt wrote: Do not assume that partitions are numbered continuously starting at 1. Only a single partition table type can exist on a block device. If we found a GPT partition table, we must not

Re: [PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Oleksandr Suvorov
Hi Heinrich, On Sat, Aug 26, 2023 at 4:46 PM Heinrich Schuchardt wrote: > > On 8/26/23 15:24, Oleksandr Suvorov wrote: > > If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends > > up with a linking error [1]. Select LIB_ELF for all cases when > > valid_elf_image() is used in the

Re: [PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 15:24, Oleksandr Suvorov wrote: If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends up with a linking error [1]. Select LIB_ELF for all cases when valid_elf_image() is used in the imx_bootaux module. [1] ld: /tmp/ccaF1rpv.ltrans0.ltrans.o: in function `do_bootaux':

Re: [PATCH v3 1/1] doc: describe TPL/VPL/SPL boot

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 12:42, Paul Barker wrote: On 26/08/2023 10:13, Heinrich Schuchardt wrote: This is a stub describing how TPL, VPL, and SPL load the next boot stages on a detail level for users. For sure we will need a few patches on top to catch the whole complexity. Signed-off-by: Heinrich

[PATCH] mach-imx: bootaux: fix building with disabled bootelf

2023-08-26 Thread Oleksandr Suvorov
If CMD_ELF disabled and IMX_BOOTAUX enabled, the u-boot building ends up with a linking error [1]. Select LIB_ELF for all cases when valid_elf_image() is used in the imx_bootaux module. [1] ld: /tmp/ccaF1rpv.ltrans0.ltrans.o: in function `do_bootaux': arch/arm/mach-imx/imx_bootaux.c:108:

Re: [PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 14:16, Andrey Skvortsov wrote: u-boot adds reserve-memory node, if it's missing, with following properties: ``` reserved-memory { #address-cells = <2>; #size-cells = <2>; This defines the size of cells for the children of reserved-memory and and for the

[PATCH] rsa: use pkcs11 uri as defined in rfc7512

2023-08-26 Thread Ayoub Zaki
pkcs11 : change engine uri to use full pk11-URI as defined in: https://www.rfc-editor.org/rfc/rfc7512.html Signed-off-by: Ayoub Zaki --- doc/uImage.FIT/signature.txt | 2 +- lib/rsa/rsa-sign.c | 12 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH] pstore: Use root address-cells/size-cells as defaults for reserved-memory

2023-08-26 Thread Andrey Skvortsov
u-boot adds reserve-memory node, if it's missing, with following properties: ``` reserved-memory { #address-cells = <2>; #size-cells = <2>; ranges; } ``` But with these default address-cells and size-cells values, pstore isn't working on A64. Root node for A64

Re: [PATCH 1/2] serial: sh: Fix compile error when lacking HSCIF support

2023-08-26 Thread Paul Barker
On 23/08/2023 12:22, Marek Vasut wrote: > On 8/23/23 08:25, Paul Barker wrote: >> On 22/08/2023 22:38, Marek Vasut wrote: >>> On 8/22/23 20:10, Paul Barker wrote: If we attempt to compile serial_sh.c for a system which lacks HSCIF support (e.g. R8A7740), we see the following compilation

Re: [PATCH v3 1/1] doc: describe TPL/VPL/SPL boot

2023-08-26 Thread Paul Barker
On 26/08/2023 10:13, Heinrich Schuchardt wrote: > This is a stub describing how TPL, VPL, and SPL load the next boot stages > on a detail level for users. > > For sure we will need a few patches on top to catch the whole complexity. > > Signed-off-by: Heinrich Schuchardt > --- > v3: >

Re: [RFC PATCH 1/5] dt: Provide a way to remove non-compliant nodes and properties

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 11:06, Sughosh Ganu wrote: Add a function which is registered to spy for a EVT_FT_FIXUP event, and removes the non upstreamed nodes and properties from the devicetree before it gets passed to the OS. This allows removing entire nodes, or specific properties under nodes from the

Re: [RFC PATCH 4/5] bootefi: Call the EVT_FT_FIXUP event handler

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 11:06, Sughosh Ganu wrote: The bootefi command passes the devicetree to the kernel through the EFI config table. Call the event handlers for fixing the devicetree before jumping into the kernel. This removes any devicetree nodes and/or properties that are specific only to U-Boot, and

Re: [PATCH] sunxi: psci: remove redundant initialization from psci_arch_init

2023-08-26 Thread Marc Zyngier
On Fri, 25 Aug 2023 19:05:32 +0100, Sam Edwards wrote: > > On 8/25/23 00:20, Chen-Yu Tsai wrote: > > Hi Chen-Yu, > > > IIRC the GIC manual says that the secure bit is set or cleared to select > > which bank of registers is accessed. > > Which secure bit are we talking about here? Do we mean

Re: [RFC PATCH 1/5] dt: Provide a way to remove non-compliant nodes and properties

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 11:06, Sughosh Ganu wrote: Add a function which is registered to spy for a EVT_FT_FIXUP event, and removes the non upstreamed nodes and properties from the devicetree before it gets passed to the OS. This allows removing entire nodes, or specific properties under nodes from the

Re: [RFC PATCH 0/5] Allow for removal of DT nodes and properties

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 11:06, Sughosh Ganu wrote: Provide a way for removing certain devicetree nodes and/or properties from the devicetree. This is needed to purge certain nodes and properties which may be relevant only in U-Boot. Such nodes and properties are then removed from the devicetree before it is

Re: [RFC PATCH 5/5] doc: Add a document for non-compliant DT node/property removal

2023-08-26 Thread Heinrich Schuchardt
On 8/26/23 11:06, Sughosh Ganu wrote: Add a document explaining the need for removal of non-compliant devicetree nodes and properties. Also describe in brief, the macros that can be used for this removal. Signed-off-by: Sughosh Ganu Thanks for properly documenting the change. Warning,

[PATCH v3 1/1] doc: describe TPL/VPL/SPL boot

2023-08-26 Thread Heinrich Schuchardt
This is a stub describing how TPL, VPL, and SPL load the next boot stages on a detail level for users. For sure we will need a few patches on top to catch the whole complexity. Signed-off-by: Heinrich Schuchardt --- v3: Call TPL Tertiary Program Loader, VPL Verifying Program Loader

[RFC PATCH 5/5] doc: Add a document for non-compliant DT node/property removal

2023-08-26 Thread Sughosh Ganu
Add a document explaining the need for removal of non-compliant devicetree nodes and properties. Also describe in brief, the macros that can be used for this removal. Signed-off-by: Sughosh Ganu --- .../devicetree/dt_non_compliant_purge.rst | 64 +++ 1 file changed, 64

[RFC PATCH 4/5] bootefi: Call the EVT_FT_FIXUP event handler

2023-08-26 Thread Sughosh Ganu
The bootefi command passes the devicetree to the kernel through the EFI config table. Call the event handlers for fixing the devicetree before jumping into the kernel. This removes any devicetree nodes and/or properties that are specific only to U-Boot, and are not to be passed to the OS.

[RFC PATCH 3/5] capsule: Add the capsule-key property for removal from devicetree

2023-08-26 Thread Sughosh Ganu
The capsule-key property contains the public key in the form of an EFI Signature List(ESL) structure. This property is relevant only in U-Boot, and is not to be passed to the OS. Register for purging this property from the devicetree, before passing it to the OS. Signed-off-by: Sughosh Ganu ---

[RFC PATCH 2/5] fwu: Add the fwu-mdata node for removal from devicetree

2023-08-26 Thread Sughosh Ganu
The FWU metadata devicetree node points to the device which stores the metadata structure. This node is relevant only in U-Boot, and is not to be passed to the OS. Register for purging this node from the devicetree, before passing it to the OS. Signed-off-by: Sughosh Ganu ---

[RFC PATCH 1/5] dt: Provide a way to remove non-compliant nodes and properties

2023-08-26 Thread Sughosh Ganu
Add a function which is registered to spy for a EVT_FT_FIXUP event, and removes the non upstreamed nodes and properties from the devicetree before it gets passed to the OS. This allows removing entire nodes, or specific properties under nodes from the devicetree. The required nodes and properties

[RFC PATCH 0/5] Allow for removal of DT nodes and properties

2023-08-26 Thread Sughosh Ganu
Provide a way for removing certain devicetree nodes and/or properties from the devicetree. This is needed to purge certain nodes and properties which may be relevant only in U-Boot. Such nodes and properties are then removed from the devicetree before it is passed to the kernel. This ensures

Re: [PATCH] fwu: Initialize global fwu library state during CI test

2023-08-26 Thread Sughosh Ganu
On Fri, 25 Aug 2023 at 21:30, Marek Vasut wrote: > > On 8/25/23 12:52, Sughosh Ganu wrote: > > On Wed, 23 Aug 2023 at 05:47, Marek Vasut > > wrote: > >> > >> The current CI test worked by sheer luck, the g_dev global pointer > >> in the fwu library was never initialized and the test equally well

Re: [PATCH 1/2] tools: relocate-rela: Add M68K support

2023-08-26 Thread Angelo Dureghello
Hi Marek, thanks a lot for the job i should have done. Tested on real hw: m5282evb worked out of the box mcf54415 not working, had a lot of unsupported relocation type for R_68K_JMP_SLOT mcf5307need to fix the hw, will do in short i had to add this fix: diff --git

Re: [PATCH v2 1/3] arm: dts: imx8mm: move firmware/optee node to common imx8mm-u-boot.dtsi

2023-08-26 Thread Marcel Ziswiler
Hi Tim Thanks! On Thu, 2023-08-24 at 12:01 -0700, Tim Harvey wrote: > Move the firmware/optee node to the common imx8mm-u-boot.dtsi and > protect it with an ifdef CONFIG_OPTEE as it is a meaningless node > without the optee driver enabled. > > Signed-off-by: Tim Harvey > Reviewed-by: Fabio

Re: [PATCH] tools: relocate-rela: Fix BE symtab handling

2023-08-26 Thread Angelo Dureghello
Hi Marek, thanks ! Reviewed-by: Angelo Dureghello On 31/07/23 12:16 AM, Marek Vasut wrote: The symtab contains data in target endianness, convert the data to native endianness before doing any operations and on them, and back to target endianness before updating the bin file.

Re: [PATCH v2] arm: dts: imx8m: move CAAM nodes into common u-boot.dtsi

2023-08-26 Thread Marcel Ziswiler
Hi Tim Thanks! On Thu, 2023-08-24 at 12:03 -0700, Tim Harvey wrote: > Move the crypto and sec_jr* nodes from board-specific > u-boot.dtsi files into the common files. Additionally protect the > nodes with ifdef CONFIG_FSL_CAAM as they don't serve any purpose if > that is not enabled. > >