[PATCH 2/2] image-host: increase path length when setting up the cipher.

2023-12-29 Thread Hugo Cornelis
This patch increases the maximum path length of the filename containing the cipher key for the kernel from 128 to 256 characters. Signed-off-by: Hugo Cornelis --- tools/image-host.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/image-host.c b/tools/image-host.c

[PATCH 1/2] image-host: add a check of the return value of snprintf.

2023-12-29 Thread Hugo Cornelis
This patch allows to generate a sensible error message when generating binary images using very long filenames. This can happen with Buildroot and Yocto builds. Signed-off-by: Hugo Cornelis --- tools/image-host.c | 29 + 1 file changed, 25 insertions(+), 4

Re: [PATCH v13 00/24] Modernize U-Boot shell

2023-12-29 Thread Francis Laniel
Le jeudi 28 décembre 2023, 21:58:59 CET Tom Rini a écrit : > On Fri, 22 Dec 2023 22:02:20 +0100, Francis Laniel wrote: > > During 2021 summer, Sean Anderson wrote a contribution to add a new shell, > > based on LIL, to U-Boot [1, 2]. > > While one of the goals of this contribution was to address

Re: [PATCH v13 15/24] cli: add modern hush as parser for run_command*()

2023-12-29 Thread Francis Laniel
Hi! Le mardi 26 décembre 2023, 10:46:48 CET Simon Glass a écrit : > Hi, > > On Fri, Dec 22, 2023 at 9:23 PM Tom Rini wrote: > > On Fri, Dec 22, 2023 at 10:10:42PM +0100, Francis Laniel wrote: > > > Hi! > > > > > > Le vendredi 22 décembre 2023, 22:02:35 CET Francis Laniel a écrit : > > > >

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 06:44:15PM +0100, Mark Kettenis wrote: > > Date: Fri, 29 Dec 2023 11:17:44 -0500 > > From: Tom Rini > > > > On Fri, Dec 29, 2023 at 05:05:17PM +0100, Heinrich Schuchardt wrote: > > > > > > > > > Am 29. Dezember 2023 16:43:07 MEZ schrieb Tom Rini : > > > >On Fri, Dec 29,

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 06:30:43PM +0100, Heinrich Schuchardt wrote: > On 12/29/23 18:21, Tom Rini wrote: > > On Fri, Dec 29, 2023 at 06:09:44PM +0100, Heinrich Schuchardt wrote: > > > On 12/29/23 17:47, Tom Rini wrote: > > > > On Fri, Dec 29, 2023 at 05:42:17PM +0100, Heinrich Schuchardt wrote: >

[PATCH v2 05/26] arm: dts: k3-am654: copy bootph properties to a53 dts

2023-12-29 Thread Bryan Brattlof
In order to unify the R5 board dtb file with the Linux board dtb file, we will need to copy all bootph-pre-ram properties to the *-u-boot.dtsi overlay. Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 160 +++

[PATCH v2 00/26] sync am65x device tree with Linux v6.7-rc1

2023-12-29 Thread Bryan Brattlof
Hello Again Everyone! This series gets the am65x booting again along with syncing the device tree files with v6.7-rc1 Linux. The bulk of these patches unify the WKUP SPL board file with the arm64 files to make future syncs from Linux much easier. In the end the DTBs should look a lot like what

[PATCH v2 13/26] arm: dts: k3-am654: remove duplicate mcu_uart0 node

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate mcu_uart0 node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 12 1 file changed, 12 deletions(-) diff --git

[PATCH v2 24/26] arm: dts: k3-am654: move dummy_clock to root node

2023-12-29 Thread Bryan Brattlof
The dummy_clock node is used to help the drivers probe the IO needed to setup consoles and boot media to load firmware into the SoC. This dummy_clock isn't a device that exists nor does it exist in the mcu domain. So move it from cbass_mcu to the root node to avoid any confusion. Tested-by: Tom

[PATCH v2 25/26] arm: dts: k3-am654: remove duplicate mcu secure proxy node

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu secure proxy node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 19 +++ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git

[PATCH v2 09/26] arm: dts: k3-am654: remove duplicate timer

2023-12-29 Thread Bryan Brattlof
timer1 is really just the mcu_timer0 node redefined for the WKUP SPL. Remove the timer1 and replace it with the mcu_timer0 from the Linux device tree we imported into U-Boot. Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12

[PATCH v2 04/26] arm: dts: k3-am654: pull in dtb update from Linux

2023-12-29 Thread Bryan Brattlof
Pull in dtb updates for the am654 base board from v6.7-rc1 of Linux Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am65-main.dtsi | 342 ++- arch/arm/dts/k3-am65-mcu.dtsi| 156 ++-- arch/arm/dts/k3-am65-wakeup.dtsi | 10

[PATCH v2 18/26] arm: dts: k3-am654: remove duplicate ospi0 node

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate ospi0 node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 37 - 1 file changed, 37 deletions(-) diff --git

[PATCH v2 14/26] arm: dts: k3-am654: remove duplicate main_uart0

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate main_uart0 node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 17 - 1 file changed, 17 deletions(-) diff --git

[PATCH v2 16/26] arm: dts: k3-am654: remove duplicate sdhci1 pinmux node

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci1 pinmux node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 23 --- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git

[PATCH v2 19/26] arm: dts: k3-am654: remove usb0

2023-12-29 Thread Bryan Brattlof
The pinmux for usb0 is missing from the Linux board dtb file. Remove it until we can introduce it in Linux Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 12 arch/arm/dts/k3-am654-r5-base-board.dts | 29 2

[PATCH v2 06/26] arm: dts: k3-am654: include a53 board dtb for r5 build

2023-12-29 Thread Bryan Brattlof
To make things as organized as possible, start from the Linux board dtbs and apply all properties needed for U-Boot in our *-u-boot.dtsi file for the MAIN SPL and U-Boot builds. We can then include these files for the WKUP SPL build making further edits to the needed properties and nodes for the

[PATCH v2 12/26] arm: dts: k3-am654: add needed regs to udmap nodes

2023-12-29 Thread Bryan Brattlof
Ethernet is one of a few IPs in U-Boot that depend on DMA to operate. However there are a few missing registers ranges in the udmap nodes need to properly setup DMA for the am65x. A fix has been added to the Linux kernel[0] to add these ranges however they have not made it to a Linux tag. To keep

[PATCH v2 10/26] arm: dts: k3-am654: remove duplicate mcu_ringacc

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_ringacc node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 10 -- 1 file changed, 10 deletions(-) diff --git

[PATCH v2 26/26] arm: dts: k3-am654: convert bootph-pre-ram to bootph-all

2023-12-29 Thread Bryan Brattlof
Many nodes are reused between WKUP SPL, MAIN SPL, and U-Boot. Using bootph-pre-ram is causing these nodes to be present in SPL builds but pruned away during the U-Boot build. Convert these nodes to bootph-all so they will remain no matter which dtb build is happening. Tested-by: Tom Rini

[PATCH v2 08/26] arm: dts: k3-am654: remove duplicate wkup_uart0

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board files unified, we now have a duplicate wkup_uart0 node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 12 1 file changed, 12 deletions(-) diff --git

[PATCH v2 20/26] arm: dts: k3-am654: remove duplicate mdio

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mdio node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

[PATCH v2 11/26] arm: dts: k3-am654: remove duplicate mcu_udmap

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate mcu_udmap node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 13 - 1 file changed, 13 deletions(-) diff --git

[PATCH v2 22/26] arm: dts: k3-am654: remove duplicate root properties

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we have duplicate properties in the root node. Remove them Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 3 --- 1 file changed, 3 deletions(-) diff --git

[PATCH v2 23/26] arm: dts: k3-am654: remove un-needed aliases

2023-12-29 Thread Bryan Brattlof
These aliases are not needed in U-Boot. Remove them Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts b/arch/arm/dts/k3-am654-r5-base-board.dts index

[PATCH v2 01/26] configs: am65x_evm_r5: enable driver for fixed regulators

2023-12-29 Thread Bryan Brattlof
Some of the regulators we need to successfully boot are fixed regulators. Enable the driver to properly probe them. Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- configs/am65x_evm_r5_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/am65x_evm_r5_defconfig

[PATCH v2 17/26] arm: dts: k3-am654: remove duplicate wkup_i2c0

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate wkup_i2c0 node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 25 - 1 file changed, 25 deletions(-) diff --git

[PATCH v2 03/26] arm: dts: k3-am654-r5: Merge board file and U-Boot overlay

2023-12-29 Thread Bryan Brattlof
The R5 board file for U-Boot should be the same as the board file copied from Linux with a few alterations to work with the R5's view of the SoC. First we need to unify the R5 board file and it's U-Boot overlay before we can unify the Linux board file with this one. Tested-by: Tom Rini

[PATCH v2 21/26] arm: dts: k3-am654: remove duplicate vtt pinmux

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate vtt_pinmux node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-base-board-u-boot.dtsi | 2 +- arch/arm/dts/k3-am654-r5-base-board.dts | 10 -- 2 files changed, 1

[PATCH v2 02/26] configs: am65x_evm_a53: disable CONSOLE_MUX

2023-12-29 Thread Bryan Brattlof
We do not have a need to share a single console with the evaluation board and disabling this option reduces the complexity of configuring the consoles. Disable CONSOLE_MUX Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- configs/am65x_evm_a53_defconfig | 1 - 1 file changed, 1 deletion(-)

[PATCH v2 15/26] arm: dts: k3-am654: remove duplicate sdhci0 pinmux node

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified, we now have a duplicate sdhci0 pinmux node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 26 - 1 file changed, 8 insertions(+), 18 deletions(-) diff --git

[PATCH v2 07/26] arm: dts: k3-am654: remove duplicate vtt_supply

2023-12-29 Thread Bryan Brattlof
With the Linux and U-Boot board dtb files unified we now have a duplicate vtt_supply node. Remove it Tested-by: Tom Rini Signed-off-by: Bryan Brattlof --- arch/arm/dts/k3-am654-r5-base-board.dts | 9 - 1 file changed, 9 deletions(-) diff --git a/arch/arm/dts/k3-am654-r5-base-board.dts

Re: Proposal: U-Boot memory management

2023-12-29 Thread Mark Kettenis
> Date: Fri, 29 Dec 2023 11:17:44 -0500 > From: Tom Rini > > On Fri, Dec 29, 2023 at 05:05:17PM +0100, Heinrich Schuchardt wrote: > > > > > > Am 29. Dezember 2023 16:43:07 MEZ schrieb Tom Rini : > > >On Fri, Dec 29, 2023 at 05:36:09AM +, Simon Glass wrote: > > >> Hi, > > >> > > >> On Sat,

[PATCH v5 11/11] bloblist: Update documentation and header comment

2023-12-29 Thread Raymond Mao
From: Simon Glass Align the documentation with the v0.9 spec. Signed-off-by: Simon Glass Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- doc/develop/bloblist.rst | 4 +++- include/bloblist.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git

[PATCH v5 10/11] bloblist: Add alignment to bloblist_new()

2023-12-29 Thread Raymond Mao
From: Simon Glass Allow the alignment to be specified when creating a bloblist. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v3 - Keep the flag argument to align to FW handoff spec up to commit 3592349.

[PATCH v5 09/11] bloblist: Adjust the bloblist header

2023-12-29 Thread Raymond Mao
From: Simon Glass The v0.9 spec provides for a 24-byte header. Update the implementation to match this. Rename the fields of the bloblist header to align to the spec. Adds an alignment field into the bloblist header. Update the related bloblist APIs and UT testcases. Signed-off-by: Simon Glass

[PATCH v5 08/11] bloblist: Reduce blob-header size

2023-12-29 Thread Raymond Mao
From: Simon Glass The v0.9 spec provides for an 8-byte header for each blob, with fewer fields. Drop spare value from bloblist record header. The blob data start address should be aligned to the alignment specified by the bloblist header. Update the implementation to match this. Signed-off-by:

[PATCH v5 07/11] bloblist: Handle alignment with a void entry

2023-12-29 Thread Raymond Mao
From: Simon Glass Rather than setting the alignment using the header size, add an entirely new entry to cover the gap left by the alignment. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes

[PATCH v5 06/11] bloblist: Checksum the entire bloblist

2023-12-29 Thread Raymond Mao
From: Simon Glass Use a sinple 8-bit checksum for bloblist, as specified by the spec version 0.9. Spec v0.9 specifies that the entire bloblist area is checksummed, including unused portions. Update the code to follow this. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by:

[PATCH v5 05/11] bloblist: Access record hdr_size and tag via a function

2023-12-29 Thread Raymond Mao
From: Simon Glass Convert accesses to tag and hdr_size via function for grouping tag and hdr_size together later. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas --- Changes in v3 - Update commit message. common/bloblist.c |

[PATCH v5 04/11] bloblist: Set version to 1

2023-12-29 Thread Raymond Mao
From: Simon Glass The new bloblist for v0.9 has version 1 so update this value. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- include/bloblist.h | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v5 03/11] bloblist: Change the magic value

2023-12-29 Thread Raymond Mao
From: Simon Glass This uses a new value with spec v0.9 so change it. Signed-off-by: Simon Glass Co-developed-by: Raymond Mao Signed-off-by: Raymond Mao Reviewed-by: Ilias Apalodimas Reviewed-by: Simon Glass --- Changes in v2 - Update the bloblist magic to align to FW handoff spec v0.9.

[PATCH v5 02/11] bloblist: Adjust API to align in powers of 2

2023-12-29 Thread Raymond Mao
From: Simon Glass The updated bloblist structure stores the alignment as a power-of-two value in its structures. Adjust the API to use this, to avoid needing to calling ilog2(). Update the bloblist alignment from 16 bytes to 8 bytes. Drop a stale comment while we are here. Signed-off-by: Simon

[PATCH v5 01/11] bloblist: Update the tag numbering

2023-12-29 Thread Raymond Mao
From: Simon Glass Align bloblist tags with the FW handoff spec v0.9. The most common ones are from 0. TF related ones are from 0x100. All non-standard ones from 0xfff000. Added new defined tags: BLOBLISTT_OPTEE_PAGABLE_PART for TF. BLOBLISTT_TPM_EVLOG and BLOBLISTT_TPM_CRB_BASE for TPM.

[PATCH v5 00/11] Support Firmware Handoff spec via bloblist

2023-12-29 Thread Raymond Mao
Major changes: Update bloblist to align to Firmware Handoff spec v0.9 (up to commit #3592349 of the spec). (https://github.com/FirmwareHandoff/firmware_handoff). Includes: - Align bloblist tags with the FW handoff spec - Add an explicit alignment field in the header - Update bloblist magic and

Re: Proposal: U-Boot memory management

2023-12-29 Thread Heinrich Schuchardt
On 12/29/23 18:21, Tom Rini wrote: On Fri, Dec 29, 2023 at 06:09:44PM +0100, Heinrich Schuchardt wrote: On 12/29/23 17:47, Tom Rini wrote: On Fri, Dec 29, 2023 at 05:42:17PM +0100, Heinrich Schuchardt wrote: On 12/20/23 20:12, Tom Rini wrote: On Tue, Dec 19, 2023 at 09:15:21PM -0700, Simon

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 06:09:44PM +0100, Heinrich Schuchardt wrote: > On 12/29/23 17:47, Tom Rini wrote: > > On Fri, Dec 29, 2023 at 05:42:17PM +0100, Heinrich Schuchardt wrote: > > > On 12/20/23 20:12, Tom Rini wrote: > > > > On Tue, Dec 19, 2023 at 09:15:21PM -0700, Simon Glass wrote: > > > > >

Re: Proposal: U-Boot memory management

2023-12-29 Thread Heinrich Schuchardt
On 12/29/23 17:47, Tom Rini wrote: On Fri, Dec 29, 2023 at 05:42:17PM +0100, Heinrich Schuchardt wrote: On 12/20/23 20:12, Tom Rini wrote: On Tue, Dec 19, 2023 at 09:15:21PM -0700, Simon Glass wrote: Hi, On Tue, 19 Dec 2023 at 05:46, Tom Rini wrote: On Tue, Dec 19, 2023 at 03:15:38AM

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 05:42:17PM +0100, Heinrich Schuchardt wrote: > On 12/20/23 20:12, Tom Rini wrote: > > On Tue, Dec 19, 2023 at 09:15:21PM -0700, Simon Glass wrote: > > > Hi, > > > > > > On Tue, 19 Dec 2023 at 05:46, Tom Rini wrote: > > > > > > > > On Tue, Dec 19, 2023 at 03:15:38AM

Re: [PATCH 0/9] dts: Move to SoC-specific build rules

2023-12-29 Thread Peter Robinson
On Fri, Dec 29, 2023 at 12:23 AM Tom Rini wrote: > > On Thu, Dec 28, 2023 at 07:48:08PM +, Simon Glass wrote: > > Hi Tom, > > > > On Thu, Dec 28, 2023 at 3:40 PM Tom Rini wrote: > > > > > > On Thu, Dec 28, 2023 at 03:09:40PM +, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Thu,

Re: Proposal: U-Boot memory management

2023-12-29 Thread Heinrich Schuchardt
On 12/20/23 20:12, Tom Rini wrote: On Tue, Dec 19, 2023 at 09:15:21PM -0700, Simon Glass wrote: Hi, On Tue, 19 Dec 2023 at 05:46, Tom Rini wrote: On Tue, Dec 19, 2023 at 03:15:38AM +0100, Heinrich Schuchardt wrote: Am 19. Dezember 2023 02:26:00 MEZ schrieb Tom Rini : On Tue, Dec 19,

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 05:05:17PM +0100, Heinrich Schuchardt wrote: > > > Am 29. Dezember 2023 16:43:07 MEZ schrieb Tom Rini : > >On Fri, Dec 29, 2023 at 05:36:09AM +, Simon Glass wrote: > >> Hi, > >> > >> On Sat, Dec 16, 2023 at 6:01 PM Simon Glass wrote: > >> > > >> > Hi, > >> > > >> >

Re: Proposal: U-Boot memory management

2023-12-29 Thread Heinrich Schuchardt
Am 29. Dezember 2023 16:43:07 MEZ schrieb Tom Rini : >On Fri, Dec 29, 2023 at 05:36:09AM +, Simon Glass wrote: >> Hi, >> >> On Sat, Dec 16, 2023 at 6:01 PM Simon Glass wrote: >> > >> > Hi, >> > >> > This records my thoughts after a discussion with Ilias & Heinrich re >> > memory

Re: ACPI: usage of sandbox virtual addresses

2023-12-29 Thread Heinrich Schuchardt
Am 29. Dezember 2023 15:31:24 MEZ schrieb Simon Glass : >Hi Heinrich, > >On Fri, Dec 29, 2023 at 11:14 AM Heinrich Schuchardt >wrote: >> >> On 12/29/23 09:26, Simon Glass wrote: >> > Hi Heinrich, >> > >> > On Tue, Dec 26, 2023 at 10:03 AM Heinrich Schuchardt >> > wrote: >> >> >> >> On

Re: Proposal: U-Boot memory management

2023-12-29 Thread Tom Rini
On Fri, Dec 29, 2023 at 05:36:09AM +, Simon Glass wrote: > Hi, > > On Sat, Dec 16, 2023 at 6:01 PM Simon Glass wrote: > > > > Hi, > > > > This records my thoughts after a discussion with Ilias & Heinrich re > > memory allocation in U-Boot. > > > > 1. malloc() > > > > malloc() is used for

Re: Proposal: U-Boot memory management

2023-12-29 Thread Heinrich Schuchardt
Am 29. Dezember 2023 06:36:09 MEZ schrieb Simon Glass : >Hi, > >On Sat, Dec 16, 2023 at 6:01 PM Simon Glass wrote: >> >> Hi, >> >> This records my thoughts after a discussion with Ilias & Heinrich re >> memory allocation in U-Boot. >> >> 1. malloc() >> >> malloc() is used for programmatic

Re: [PATCH v3 4/8] dts: Add alternative location for upstream DTB builds

2023-12-29 Thread Sumit Garg
On Fri, 29 Dec 2023 at 01:18, Simon Glass wrote: > > Hi Tom, > > On Thu, Dec 28, 2023 at 3:54 PM Tom Rini wrote: > > > > On Thu, Dec 28, 2023 at 03:09:12PM +, Simon Glass wrote: > > > Hi Tom, Sumit, > > > > > > On Thu, Dec 28, 2023 at 2:03 PM Tom Rini wrote: > > > > > > > > On Thu, Dec 28,

Re: ACPI: usage of sandbox virtual addresses

2023-12-29 Thread Simon Glass
Hi Heinrich, On Fri, Dec 29, 2023 at 11:14 AM Heinrich Schuchardt wrote: > > On 12/29/23 09:26, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, Dec 26, 2023 at 10:03 AM Heinrich Schuchardt > > wrote: > >> > >> On 12/26/23 10:50, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Tue, Dec

[PATCH v3 3/3] Add imx93-var-som support

2023-12-29 Thread Mathieu Othacehe
From: Mathieu Othacehe Add support for the Variscite VAR-SOM-IMX93 evaluation kit. The SoM consists of an NXP iMX93 dual A55 CPU. The SoM is mounted on a Variscite Symphony SBC. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/Makefile |3 +-

[PATCH v3 2/3] mach-imx: Add i.MX93 binman support.

2023-12-29 Thread Mathieu Othacehe
From: Mathieu Othacehe Add dedicated Makefile targets for the i.MX93 and a new imx93-u-boot.dtsi device-tree to create binman images. Signed-off-by: Mathieu Othacehe --- arch/arm/dts/imx93-u-boot.dtsi | 88 ++ arch/arm/mach-imx/Makefile | 22 - 2

[PATCH v3 1/3] spl: binman: Disable u_boot_any symbols for i.MX93 boards

2023-12-29 Thread Mathieu Othacehe
From: Mathieu Othacehe This is extending commit 6516c9b349b3 ("spl: binman: Disable u_boot_any symbols for i.MX8M boards") to i.MX93 boards. Signed-off-by: Mathieu Othacehe --- common/spl/Kconfig | 2 +- common/spl/Kconfig.tpl | 2 +- common/spl/Kconfig.vpl | 2 +- 3 files changed, 3

[PATCH v3 0/3] Add imx93-var-som support

2023-12-29 Thread Mathieu Othacehe
From: Mathieu Othacehe Hello, This v3 adds support for binman and documents how to build and flash a bootloader for the i.MX93 Variscite Symphony evaluation board. Thanks, Mathieu v2: https://lists.denx.de/pipermail/u-boot/2023-December/542001.html Mathieu Othacehe (3): spl: binman:

Re: [PATCH v3 0/3] Add imx93-var-som support

2023-12-29 Thread Fabio Estevam
Hi Mathieu, On Fri, Dec 29, 2023 at 8:17 AM Mathieu Othacehe wrote: > > From: Mathieu Othacehe > > Hello, > > This v3 adds support for binman and documents how to build and flash a > bootloader for the i.MX93 Variscite Symphony evaluation board. Nice work! Thanks for adding i.MX93 binman

Re: [PATCH 1/2] smbios: enable setting processor family > 0xff

2023-12-29 Thread Heinrich Schuchardt
On 12/28/23 14:37, Simon Glass wrote: Hi Heinrich, On Thu, Dec 28, 2023 at 7:30 AM Heinrich Schuchardt wrote: Many value of processor type exceed 0xff and have to be stored as u16 value. In the type 4 table set processor_family = 0xfe signaling that field processor_family2 is used and write

Re: ACPI: usage of sandbox virtual addresses

2023-12-29 Thread Heinrich Schuchardt
On 12/29/23 09:26, Simon Glass wrote: Hi Heinrich, On Tue, Dec 26, 2023 at 10:03 AM Heinrich Schuchardt wrote: On 12/26/23 10:50, Simon Glass wrote: Hi Heinrich, On Tue, Dec 26, 2023 at 8:56 AM Heinrich Schuchardt wrote: Hello Simon, currently we use sandbox virtual addresses in all

Re: [PATCH v6 8/8] docs: k3: Add secure booting documentation

2023-12-29 Thread Manorit Chawdhry
Hi Andrew, On 10:41-20231206, Andrew Davis wrote: > On 12/6/23 3:51 AM, Manorit Chawdhry wrote: > > This commit adds a general flow to explain the usage of firewalls and > > the chain of trust in K3 devices. > > > > Signed-off-by: Manorit Chawdhry > > --- > > doc/board/ti/k3.rst | 45

[PATCH v7 9/9] docs: board: ti: k3: Add secure booting documentation

2023-12-29 Thread Manorit Chawdhry
This commit adds a general flow to explain the usage of firewalls and the chain of trust in K3 devices. Signed-off-by: Manorit Chawdhry --- doc/board/ti/k3.rst | 43 +++ 1 file changed, 43 insertions(+) diff --git a/doc/board/ti/k3.rst

[PATCH v7 8/9] docs: board: ti: k3: Cleanup FIT signature documentation

2023-12-29 Thread Manorit Chawdhry
The previous documentation had been very crude so refactor it to make it cleaner and concise. Signed-off-by: Manorit Chawdhry --- doc/board/ti/k3.rst | 270 +--- 1 file changed, 171 insertions(+), 99 deletions(-) diff --git a/doc/board/ti/k3.rst

[PATCH v7 7/9] arm: dts: k3-j7200-binman: Add firewall configurations

2023-12-29 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j7200-binman.dtsi | 90

[PATCH v7 6/9] arm: dts: k3-j721s2-binman: Add firewall configurations

2023-12-29 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721s2-binman.dtsi | 123

[PATCH v7 5/9] arm: dts: k3-j721e-binman: Add firewall configurations

2023-12-29 Thread Manorit Chawdhry
The following commits adds the configuration of firewalls required to protect ATF and OP-TEE memory region from non-secure reads and writes using master and slave firewalls present in our K3 SOCs. Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-j721e-binman.dtsi | 116

[PATCH v7 4/9] arm: dts: k3-binman: Add k3-security.h and include it in k3-binman.dtsi

2023-12-29 Thread Manorit Chawdhry
For readability during configuring firewalls, adding k3-security.h file and including it in k3-binman.dtsi to be accessible across K3 SoCs Reviewed-by: Simon Glass Signed-off-by: Manorit Chawdhry --- arch/arm/dts/k3-binman.dtsi | 49 ++

[PATCH v7 3/9] binman: ftest: Add test for ti-secure firewall node

2023-12-29 Thread Manorit Chawdhry
Add test for TI firewalling node in ti-secure. Reviewed-by: Simon Glass Signed-off-by: Manorit Chawdhry --- tools/binman/ftest.py | 23 ++ tools/binman/test/324_ti_secure_firewall.dts | 28 ++

[PATCH v7 2/9] binman: ti-secure: Add support for firewalling entities

2023-12-29 Thread Manorit Chawdhry
We can now firewall entities while loading them through our secure entity TIFS, the required information should be present in the certificate that is being parsed by TIFS. The following commit adds the support to enable the certificates to be generated if the firewall configurations are present

[PATCH v7 1/9] dtoc: Change dst to self in debug message

2023-12-29 Thread Manorit Chawdhry
Fix the error message to not use dst and use self as it is copying the properties to self. While using templating if there are no subnodes defined, we end up in this situation where "dst" isn't defined and it tries to print the error message and fails. 'UnboundLocalError: local variable 'dst'

[PATCH v7 0/9] ATF and OP-TEE Firewalling for K3 devices.

2023-12-29 Thread Manorit Chawdhry
K3 devices have firewalls that are used to prevent illegal accesses to memory regions that are deemed secure. The series prevents the illegal accesses to ATF and OP-TEE regions that are present in different K3 devices. AM62X, AM62AX and AM64X are currently in hold due to some firewall

[PATCH V4 3/3] configs: andes: add the fdt blob copy address for SPL

2023-12-29 Thread Randolph
Add the address to which the FDT blob is to be moved. Signed-off-by: Randolph --- configs/ae350_rv32_falcon_defconfig | 1 + configs/ae350_rv32_falcon_xip_defconfig | 1 + configs/ae350_rv64_falcon_defconfig | 1 + configs/ae350_rv64_falcon_xip_defconfig | 1 + 4 files changed, 4

[PATCH V4 2/3] spl: riscv: falcon: move fdt blob to specified address

2023-12-29 Thread Randolph
In Falcon Boot mode, the fdt blob should be move to the RAM from kernel BSS section. To avoid being cleared by BSS initialisation. SPL_PAYLOAD_ARGS_ADDR is the address where SPL copies. Signed-off-by: Randolph --- board/AndesTech/ae350/ae350.c | 25 - common/spl/Kconfig

[PATCH V4 1/3] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-12-29 Thread Randolph
Add documentation to introduce the Falcon Mode on RISC-V. In this mode, the boot sequence is SPL -> OpenSBI -> Linux kernel. Signed-off-by: Randolph --- doc/develop/falcon.rst | 158 + 1 file changed, 158 insertions(+) diff --git a/doc/develop/falcon.rst

[PATCH V4 0/3] doc: falcon: riscv: Falcon Mode boot on RISC-V

2023-12-29 Thread Randolph
Changes in v4: - remove "Function that a board must implement" section in falcon.rst - fix compile error when config LOAD_FIT_OPENSBI_OS_BOOT not enabled. Changes in v3: - Change by suggestions in falcon.rst - Move the board-related code to arch-specific code, its the issue when enabling

Re: ACPI: usage of sandbox virtual addresses

2023-12-29 Thread Simon Glass
Hi Heinrich, On Tue, Dec 26, 2023 at 10:03 AM Heinrich Schuchardt wrote: > > On 12/26/23 10:50, Simon Glass wrote: > > Hi Heinrich, > > > > On Tue, Dec 26, 2023 at 8:56 AM Heinrich Schuchardt > > wrote: > >> > >> Hello Simon, > >> > >> currently we use sandbox virtual addresses in all ACPI