[PATCH] ARM: stm32: Add IWDG handling into PSCI suspend code

2023-05-10 Thread Marek Vasut
In case the IWDG is enabled by either U-Boot or Linux, the IWDG can never be disabled again. That includes low power states, which means that if the IWDG is enabled, the SoC would reset itself after a while in suspend via the IWDG. This is not desired behavior. It is possible to enable IWDG

Re: [PATCH] efi: fix semihosting EFI payload booting

2023-05-10 Thread Andre Przywara
On Wed, 10 May 2023 23:19:33 +0200 Heinrich Schuchardt wrote: Hi, > On 5/10/23 19:26, Andre Przywara wrote: > > On Wed, 10 May 2023 17:58:06 +0200 > > Heinrich Schuchardt wrote: > > > > Hi, > > > >> On 5/10/23 16:13, Andre Przywara wrote: > >>> At the moment any naive attempt to boot an

Re: [PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-05-10 Thread Tom Rini
On Wed, May 10, 2023 at 03:05:38PM -0700, Troy Kisky wrote: > Hi Tom, > > You are looking at an old patch, here's the new. It was the new one, sorry, I just edited out NOCHECK at least for now. > > commit c969bedb9cb6029360e6fe7e25a331680fabe3ee > Author: Troy Kisky > Date: Thu Feb 23

[PATCH 1/2] bootstd: Rename distro and syslinux to extlinux

2023-05-10 Thread Simon Glass
We use the terms 'distro' to mean extlinux but they are not really the same. 'Distro' could refer to any method of booting a distribution, whereas extlinux is a particular method. Also we sometimes use syslinux, but it is better to use the same term in all cases. Rename distro to syslinux and

[PATCH 2/2] bootstd: Create a new BOOTMETH_DISTRO

2023-05-10 Thread Simon Glass
We cannot be sure what bootmeth a distro will need to use. Add a new BOOTMETH_DISTRO option which collects these together. Select this from BOOTSTD_DEFAULTS so that it is clear what is needed. Signed-off-by: Simon Glass --- boot/Kconfig | 8 1 file changed, 8 insertions(+) diff --git

[PATCH v2] bootstd: Tidy up reporting of errors

2023-05-10 Thread Simon Glass
In a few cases the error handling is not quite right. Make sure we return the actual error in distro_efi_read_bootflow_file() rather than -EINVAL. Return -IO when a file cannot be read. Also show the error name if available. This does not change operation, but does make it easier to diagnose

Re: [PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-05-10 Thread Troy Kisky
Hi Tom, You are looking at an old patch, here's the new. commit c969bedb9cb6029360e6fe7e25a331680fabe3ee Author: Troy Kisky Date: Thu Feb 23 08:01:46 2023 -0800 ns16550: match when to define bdf with uart code When switching defined(CONFIG_PCI) to CONFIG_IS_ENABLED(PCI) bdf is

[PATCH v10] core: fdtaddr: use map_sysmem() as cast for the return (part 2)

2023-05-10 Thread Johan Jonker
For the devfdt_get_addr_size_index_ptr() function use map_sysmem() function as cast for the return for use in sandbox. Signed-off-by: Johan Jonker --- drivers/core/fdtaddr.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c

Re: [PATCH] efi: fix semihosting EFI payload booting

2023-05-10 Thread Heinrich Schuchardt
On 5/10/23 19:26, Andre Przywara wrote: On Wed, 10 May 2023 17:58:06 +0200 Heinrich Schuchardt wrote: Hi, On 5/10/23 16:13, Andre Przywara wrote: At the moment any naive attempt to boot an EFI payload that has just been loaded via "hostfs" (sandbox or semihosting) is met by a rather

Re: [PATCH v5 1/4] efi_loader: get version information from device tree

2023-05-10 Thread Heinrich Schuchardt
On 5/10/23 22:46, Simon Glass wrote: Hi Heinrich, On Thu, 27 Apr 2023 at 22:12, Heinrich Schuchardt wrote: Am 28. April 2023 01:35:04 MESZ schrieb Simon Glass : Hi Masahisa, On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima wrote: Current FMP->GetImageInfo() always return 0 for the

Re: [PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-05-10 Thread Tom Rini
On Wed, May 10, 2023 at 02:46:14PM -0600, Simon Glass wrote: > Hi Tom, > > On Wed, 10 May 2023 at 14:41, Tom Rini wrote: > > > > On Mon, Mar 13, 2023 at 02:31:39PM -0700, Troy Kisky wrote: > > > > > When switching defined(CONFIG_PCI) to CONFIG_IS_ENABLED(PCI) > > > bdf is no longer accessible.

Re: [PATCH v5 1/4] efi_loader: get version information from device tree

2023-05-10 Thread Simon Glass
Hi Heinrich, On Thu, 27 Apr 2023 at 22:12, Heinrich Schuchardt wrote: > > > > Am 28. April 2023 01:35:04 MESZ schrieb Simon Glass : > >Hi Masahisa, > > > >On Mon, 10 Apr 2023 at 03:07, Masahisa Kojima > > wrote: > >> > >> Current FMP->GetImageInfo() always return 0 for the firmware > >> version,

Re: [PATCH 1/1] axi: fix definition of axi_sandbox_get_emul()

2023-05-10 Thread Simon Glass
On Wed, 10 May 2023 at 04:00, Heinrich Schuchardt wrote: > > Compiling with gcc 13 results in an error: > > drivers/axi/axi-emul-uclass.c:16:5: warning: conflicting types for > ‘axi_sandbox_get_emul’ due to enum/integer mismatch; have > ‘int(struct udevice *, ulong, enum axi_size_t,

Re: [PATCH 8/9] test: Account PCR updates properly during testing

2023-05-10 Thread Simon Glass
Hi Ilias, On Wed, 10 May 2023 at 09:26, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > > wrote: > > > > > > Currently we only read the pcr updates once on

Re: [PATCH 7/9] test: use a non system PCR for testing PCR extend

2023-05-10 Thread Simon Glass
On Wed, 10 May 2023 at 09:27, Ilias Apalodimas wrote: > > Hi Simon, > > On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > > wrote: > > > > > > We currently use PCR 0 for testing the PCR read/extend functionality in > > >

Re: [PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-05-10 Thread Simon Glass
Hi Tom, On Wed, 10 May 2023 at 14:41, Tom Rini wrote: > > On Mon, Mar 13, 2023 at 02:31:39PM -0700, Troy Kisky wrote: > > > When switching defined(CONFIG_PCI) to CONFIG_IS_ENABLED(PCI) > > bdf is no longer accessible. So add preprocessor protection > > to avoid access. > > > > Signed-off-by:

Re: [PATCH v3 17/23] ns16550: match when to define bdf with uart code

2023-05-10 Thread Tom Rini
On Mon, Mar 13, 2023 at 02:31:39PM -0700, Troy Kisky wrote: > When switching defined(CONFIG_PCI) to CONFIG_IS_ENABLED(PCI) > bdf is no longer accessible. So add preprocessor protection > to avoid access. > > Signed-off-by: Troy Kisky > Reviewed-by: Simon Glass > --- > > (no changes since v2)

Re: [EXTERNAL] Re: [PATCH] firmware: ti_sci: Add missing LF in error message

2023-05-10 Thread Andreas Dannenberg
On Wed, May 10, 2023 at 12:09:47PM -0400, Tom Rini wrote: > On Wed, May 10, 2023 at 08:46:37AM -0700, Andrew Davis wrote: > > On 5/9/23 4:38 PM, Andreas Dannenberg wrote: > > > The "Message not acknowledged" error message is missing a line feed, > > > leading to the console log getting garbled and

Re: U-Boot OMAP GPMC ECC change

2023-05-10 Thread Colin Foster
Hi Roger, On Wed, May 10, 2023 at 12:42:43PM +0300, Roger Quadros wrote: > Hi Colin, > > On 09/05/2023 18:31, Colin Foster wrote: > > Hi Roger, > > > > I was looking to test my system against U-Boot 2023.04. I'm running an > > OMAP 4460 SOM (I've been waiting to get kernel acceptance before

Re: [PATCH] efi: fix semihosting EFI payload booting

2023-05-10 Thread Andre Przywara
On Wed, 10 May 2023 17:58:06 +0200 Heinrich Schuchardt wrote: Hi, > On 5/10/23 16:13, Andre Przywara wrote: > > At the moment any naive attempt to boot an EFI payload that has just > > been loaded via "hostfs" (sandbox or semihosting) is met by a rather > > confusing error message: > >

Re: [PATCH 1/6] net: split IP_TCP header into separate IP/IP6 and TCP headers

2023-05-10 Thread Dmitrii Merkurev
Hey Paul, Huge thanks for pointing this out. Uploaded v2 with a couple of fixes (including wget test on 1/6). On Mon, May 8, 2023 at 10:18 PM Paul Liu wrote: > > Hi Dmitrii, > > It seems to me that this series of patches breaks the unittest of TCP stack > in sandbox. > > I'll see if I have

Re: Pull request: u-boot-rockchip-20230509

2023-05-10 Thread Tom Rini
On Wed, May 10, 2023 at 12:04:40AM +0800, Kever Yang wrote: > Hi Tom, > > Sorry for late to send this PR for some reason, but still a few patch sets > are not merge > due to conflict. > > Please pull the updates for rockchip platform: > - Rockchip NFC driver update and dev addr pointer api

[PATCH v2 5/6] net: add fastboot TCP documentation and IP6-only mode

2023-05-10 Thread Dmitrii Merkurev
Command to start IP6 only TCP fastboot: fastboot tcp -ipv6 Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- cmd/fastboot.c | 29 + doc/android/fastboot.rst | 8 +++- 2 files

[PATCH v2 6/6] net: update net_ip6 from link_local address when eth device is changed

2023-05-10 Thread Dmitrii Merkurev
Current active eth device may be changed (due to ethprime), so make sure current net_ip6 is updated as a reaction. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- net/net.c | 8 1 file changed, 4 insertions(+), 4

[PATCH v2 2/6] net: prepare existing TCP stack to be reused by IP6

2023-05-10 Thread Dmitrii Merkurev
Changes: 1. Separate reusable part from net_set_tcp_header to net_set_tcp_header_common 2. Make TCP signatures reusable by receiving particular IP agnostic TCP headers 3. Extract net_send_ip_packet6 from net_send_udp_packet6 to reuse the code 4. Expose TCP state machine related functions This

[PATCH v2 4/6] net: add fastboot TCP6 support

2023-05-10 Thread Dmitrii Merkurev
fastboot tcp command remains the same, but started listening IP6 in case it's enabled. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/fastboot_tcp.h | 2 +- net/fastboot_tcp.c | 72

[PATCH v2 3/6] net: introduce TCP/IP6 support

2023-05-10 Thread Dmitrii Merkurev
Add TCP/IP6 related headers and reuse refactored TCP/IP implementation Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp6.h | 106 + include/net6.h | 14 ++

[PATCH v2 1/6] net: split IP_TCP header into separate IP/IP6 and TCP headers

2023-05-10 Thread Dmitrii Merkurev
This allows us to reuse TCP logic between IP and IP6 stack. Signed-off-by: Dmitrii Merkurev Cc: Ying-Chun Liu (PaulLiu) Cc: Simon Glass Сс: Joe Hershberger Сс: Ramon Fried --- include/net/tcp.h | 54 net/tcp.c | 70

Re: [PATCH] firmware: ti_sci: Add missing LF in error message

2023-05-10 Thread Tom Rini
On Wed, May 10, 2023 at 08:46:37AM -0700, Andrew Davis wrote: > On 5/9/23 4:38 PM, Andreas Dannenberg wrote: > > The "Message not acknowledged" error message is missing a line feed, > > leading to the console log getting garbled and joined together with > > whatever the next output is in case this

Re: [PATCH] efi: fix semihosting EFI payload booting

2023-05-10 Thread Heinrich Schuchardt
On 5/10/23 16:13, Andre Przywara wrote: At the moment any naive attempt to boot an EFI payload that has just been loaded via "hostfs" (sandbox or semihosting) is met by a rather confusing error message: === VExpress64# load hostfs - $kernel_addr_r Image 52752896 bytes read in 8 ms (6.1

[PATCH] rockchip: board: Update Odroid Go2 to Support Additional Revisions

2023-05-10 Thread Chris Morgan
From: Chris Morgan Update the board.c file for the Odroid Go Advance to support the Black Edition and the Odroid Go Super. The Odroid Go Advance Black Edition differs from the original model with the addition of 2 extra buttons and an ESP8266 WiFi module. The Odroid Go Super adds an additional 2

Re: [PATCH 9/9] tpm: Make 'tpm init' to call tpm_auto_start()

2023-05-10 Thread Ilias Apalodimas
On Wed, 10 May 2023 at 18:32, Ilias Apalodimas wrote: > > On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > > > Hi Ilias, > > > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > > wrote: > > > > > > For a TPM device to be operational we need to initialize it and > > > perform its startup

Re: [PATCH] firmware: ti_sci: Add missing LF in error message

2023-05-10 Thread Andrew Davis
On 5/9/23 4:38 PM, Andreas Dannenberg wrote: The "Message not acknowledged" error message is missing a line feed, leading to the console log getting garbled and joined together with whatever the next output is in case this error happens: "ti_sci system-controller@44043000: Message not

Re: [PATCH 9/9] tpm: Make 'tpm init' to call tpm_auto_start()

2023-05-10 Thread Ilias Apalodimas
On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > Hi Ilias, > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > wrote: > > > > For a TPM device to be operational we need to initialize it and > > perform its startup sequence. The 'tpm init' command currently calls > > tpm_init() which ends

Re: [PATCH 7/9] test: use a non system PCR for testing PCR extend

2023-05-10 Thread Ilias Apalodimas
Hi Simon, On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > Hi Ilias, > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > wrote: > > > > We currently use PCR 0 for testing the PCR read/extend functionality in > > our selftests. How ever those PCRs are defined by the TCG spec for > >

Re: [PATCH 8/9] test: Account PCR updates properly during testing

2023-05-10 Thread Ilias Apalodimas
Hi Simon, On Wed, 10 May 2023 at 17:32, Simon Glass wrote: > > Hi Ilias, > > On Wed, 10 May 2023 at 01:44, Ilias Apalodimas > wrote: > > > > Currently we only read the pcr updates once on test_tpm2_pcr_read(). > > It turns out that the tpm init sequence of force_init() which consists > > of: >

Re: [RFC PATCH 1/5] add lwip-external submodule

2023-05-10 Thread Peter Robinson
On Wed, May 10, 2023 at 8:40 AM Ilias Apalodimas wrote: > > Hi Simon, > > On Mon, May 08, 2023 at 08:43:14AM -0600, Simon Glass wrote: > > Hi Maxim, > > > > On Fri, 5 May 2023 at 04:50, Maxim Uvarov wrote: > > > > > > Signed-off-by: Maxim Uvarov > > > --- > > > .gitmodules| 3 +++ >

Re: [BUG] issues with new bootflow, uefi and virtio

2023-05-10 Thread Simon Glass
Hi Vincent, On Mon, 24 Apr 2023 at 13:44, Simon Glass wrote: > > Hi Vincent, > > On Tue, 11 Apr 2023 at 06:00, Vincent Stehlé wrote: > > > > On Fri, Apr 07, 2023 at 05:31:06PM +1200, Simon Glass wrote: > > .. > > > > When combined with the patch from Mathew[1], it does indeed repair the > > >

Re: [PATCH 7/9] test: use a non system PCR for testing PCR extend

2023-05-10 Thread Simon Glass
Hi Ilias, On Wed, 10 May 2023 at 01:44, Ilias Apalodimas wrote: > > We currently use PCR 0 for testing the PCR read/extend functionality in > our selftests. How ever those PCRs are defined by the TCG spec for > platform use. For example if the tests run *after* the efi subsystem >

Re: [PATCH 8/9] test: Account PCR updates properly during testing

2023-05-10 Thread Simon Glass
Hi Ilias, On Wed, 10 May 2023 at 01:44, Ilias Apalodimas wrote: > > Currently we only read the pcr updates once on test_tpm2_pcr_read(). > It turns out that the tpm init sequence of force_init() which consists > of: > - tpm2 init > - tpm2 startup TPM2_SU_CLEAR > - tpm2 self_test full > - tpm2

Re: [PATCH 9/9] tpm: Make 'tpm init' to call tpm_auto_start()

2023-05-10 Thread Simon Glass
Hi Ilias, On Wed, 10 May 2023 at 01:44, Ilias Apalodimas wrote: > > For a TPM device to be operational we need to initialize it and > perform its startup sequence. The 'tpm init' command currently calls > tpm_init() which ends up calling the ->open() per-device callback and > performs the

Re: U-Boot - Behaviour of 'go' command

2023-05-10 Thread Simon Glass
Hi Little, On Sun, 7 May 2023 at 04:48, Little Tree wrote: > > I have written a minimal bare-metal Raspberry Pi-3B program (ARM64- > CortexA53) to switch from EL2 (Exception Level 2) to EL1. U-Boot is used as > the bootloader. The code is loaded to RAM using the "tftpboot" command. The > "go"

[PATCH] bootstd: Tidy up reporting of errors

2023-05-10 Thread Simon Glass
In a few cases the error handling is not quite right. Make sure we return the actual error in distro_efi_read_bootflow_file() rather than -EINVAL. Return -IO when a file cannot be read. Also show the error name if available. This does not change operation, but does make it easier to diagnose

Re: [PATCH 1/5] arm: mxs: Provide Kconfig option to to not use VDD5V as IMX28 PMU source

2023-05-10 Thread Fabio Estevam
Hi Lukasz, The series looks good. Only a minor comment: On Tue, May 9, 2023 at 11:33 AM Lukasz Majewski wrote: > +config SPL_MXS_PMU_MINIMAL_VDD5V_CURRENT > + bool "Force minimal current draw from VDD5V by MX28 PMU" > + default n Please drop "default n" as it is already the

[PATCH] efi: fix semihosting EFI payload booting

2023-05-10 Thread Andre Przywara
At the moment any naive attempt to boot an EFI payload that has just been loaded via "hostfs" (sandbox or semihosting) is met by a rather confusing error message: === VExpress64# load hostfs - $kernel_addr_r Image 52752896 bytes read in 8 ms (6.1 GiB/s) VExpress64# bootefi $kernel_addr_r

[PATCH] ubifs: allow loading to above 4GiB

2023-05-10 Thread Ben Dooks
The ubifsload command is truncating any address above 4GiB as it casts this address to an u32, instead of using an unsigned long which most of the other load commands do. Change this to an unsigned long to allow loading into high memory for boards which use these areas. Fixes the following error:

Re: [PATCH v3 0/3] initial support for the Videostrong KII Pro

2023-05-10 Thread Neil Armstrong
Hi, On 07/05/2023 14:42, Ferass El Hafidi wrote: The Videostrong KII Pro is a set-top box based on the Amlogic p201 reference board and with the following specification: * Amlogic S905 ARM Cortex-A53 quad-core SoC @ 1.5GHz * ARM Mali 450 GPU * 2GB DDR3 SDRAM * 16GB eMMC * Gigabit

Re: [PATCH 00/14] rockchip: rk35xx: Update defconfigs and enable boot from SPI NOR flash

2023-05-10 Thread Kever Yang
Hi Jonas, On 2023/5/9 21:24, Kever Yang wrote: [3] https://patchwork.ozlabs.org/project/uboot/patch/20230419134526.128800-1-eugen.hris...@collabora.com/ Thanks for figure out all the dependency. This patch is on my list, I'm not sure when it will be merged, so if you have patch depends on

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-10 Thread Vyacheslav V. Mitrofanov
On Wed, 2023-05-10 at 13:05 +0300, Sergei Antonov wrote: > > Hey! It was added without "__packed", see > https://lists.denx.de/pipermail/u-boot/2023-May/517370.html > Hello, Sergei. I see Ehsan hadn't sent v5 before v4 was applied. I would make a patch with __packed attribute and post it.

Re: [PATCH v4 1/3] net: ipv6: Add support for default gateway discovery.

2023-05-10 Thread Sergei Antonov
On Sat, 6 May 2023 at 17:53, Tom Rini wrote: > > On Fri, Apr 21, 2023 at 05:08:21PM -0700, emohand...@linux.microsoft.com > wrote: > > > From: Ehsan Mohandesi > > > > In IPv6, the default gateway and prefix length are determined by receiving > > a router advertisement as defined in - > >

[PATCH 1/1] axi: fix definition of axi_sandbox_get_emul()

2023-05-10 Thread Heinrich Schuchardt
Compiling with gcc 13 results in an error: drivers/axi/axi-emul-uclass.c:16:5: warning: conflicting types for ‘axi_sandbox_get_emul’ due to enum/integer mismatch; have ‘int(struct udevice *, ulong, enum axi_size_t, struct udevice **)’ {aka ‘int(struct udevice *, long unsigned

Re: U-Boot OMAP GPMC ECC change

2023-05-10 Thread Roger Quadros
Hi Colin, On 09/05/2023 18:31, Colin Foster wrote: > Hi Roger, > > I was looking to test my system against U-Boot 2023.04. I'm running an > OMAP 4460 SOM (I've been waiting to get kernel acceptance before U-Boot, > but that has slipped) and it boots from NAND. > > When I jumped from 2023.01 to

Re: [EXTERNAL] Re: [PATCH] usb: cdns3: gadget.c: Set fast access bit

2023-05-10 Thread Roger Quadros
+Pawel & Peter On 09/05/2023 08:58, Ravi Gunasekaran wrote: > Hi Roger, > > On 05/05/23 6:02 pm, Roger Quadros wrote: >> Hi Ravi, >> >> On 05/05/2023 15:13, Ravi Gunasekaran wrote: >>> From: Aswath Govindraju >>> >>> When the device port is in a low power state [U3/L2/Not Connected], >>>

Re: [PATCH v2 0/8] Add DFU, emmc and usb boot for TI am62x

2023-05-10 Thread Mattijs Korpershoek
Hi Sjoerd, Thank you for this series. On jeu., avril 06, 2023 at 20:55, Sjoerd Simons wrote: > This series adds more boot sources for the TI am62x. For that the dts' > are synced from the upstream ti-next git tree (to add usb nodes), some > dwc3 glue is and finally the default configuration is

[PATCH 9/9] tpm: Make 'tpm init' to call tpm_auto_start()

2023-05-10 Thread Ilias Apalodimas
For a TPM device to be operational we need to initialize it and perform its startup sequence. The 'tpm init' command currently calls tpm_init() which ends up calling the ->open() per-device callback and performs the initial hardware configuration as well as requesting locality 0 for the caller.

[PATCH 8/9] test: Account PCR updates properly during testing

2023-05-10 Thread Ilias Apalodimas
Currently we only read the pcr updates once on test_tpm2_pcr_read(). It turns out that the tpm init sequence of force_init() which consists of: - tpm2 init - tpm2 startup TPM2_SU_CLEAR - tpm2 self_test full - tpm2 clear TPM2_RH_LOCKOUT also counts as an update. Running this in the console

[PATCH 7/9] test: use a non system PCR for testing PCR extend

2023-05-10 Thread Ilias Apalodimas
We currently use PCR 0 for testing the PCR read/extend functionality in our selftests. How ever those PCRs are defined by the TCG spec for platform use. For example if the tests run *after* the efi subsystem initialization, which extends PCRs 0 & 7 it will give a false positive. So let's switch

[PATCH 6/9] doc: Add measured boot documentation

2023-05-10 Thread Ilias Apalodimas
From: Eddie James Briefly describe the feature and specify the requirements. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- doc/usage/index.rst | 1 + doc/usage/measured_boot.rst | 23 +++ 2 files changed, 24 insertions(+) create mode 100644

[PATCH 5/9] test: Add sandbox TPM boot measurement

2023-05-10 Thread Ilias Apalodimas
From: Eddie James Use the sandbox TPM driver to measure some boot images in a unit test case. Signed-off-by: Eddie James Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas --- arch/sandbox/dts/sandbox.dtsi | 13 +++ arch/sandbox/dts/test.dts | 13 +++ configs/sandbox_defconfig

[PATCH 4/9] bootm: Support boot measurement

2023-05-10 Thread Ilias Apalodimas
From: Eddie James Add a configuration option to measure the boot through the bootm function. Add the measurement state to the booti and bootz paths as well. Signed-off-by: Eddie James Reviewed-by: Simon Glass --- boot/Kconfig| 32 + boot/bootm.c| 74

[PATCH 3/9] tpm: Support boot measurements

2023-05-10 Thread Ilias Apalodimas
From: Eddie James Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in the EFI subsystem, so remove it there and use the common functions. Signed-off-by: Eddie

[PATCH 2/9] tpm: sandbox: Update for needed TPM2 capabilities

2023-05-10 Thread Ilias Apalodimas
From: Eddie James The driver needs to support getting the PCRs in the capabilities command. Fix various other things and support the max number of PCRs for TPM2. Remove the !SANDBOX dependency for EFI TCG2 as well. Signed-off-by: Eddie James Reviewed-by: Simon Glass Acked-by: Ilias Apalodimas

[PATCH 1/9] tpm: Fix spelling for tpmu_ha union

2023-05-10 Thread Ilias Apalodimas
From: Eddie James tmpu -> tpmu Signed-off-by: Eddie James Reviewed-by: Ilias Apalodimas --- include/tpm-v2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/tpm-v2.h b/include/tpm-v2.h index 2b6980e441d6..6684033debef 100644 --- a/include/tpm-v2.h +++

Re: [RFC PATCH 1/5] add lwip-external submodule

2023-05-10 Thread Ilias Apalodimas
Hi Simon, On Mon, May 08, 2023 at 08:43:14AM -0600, Simon Glass wrote: > Hi Maxim, > > On Fri, 5 May 2023 at 04:50, Maxim Uvarov wrote: > > > > Signed-off-by: Maxim Uvarov > > --- > > .gitmodules| 3 +++ > > lib/lwip/lwip-external | 1 + > > 2 files changed, 4 insertions(+) > >

Re: [PATCH 00/14] rockchip: rk35xx: Update defconfigs and enable boot from SPI NOR flash

2023-05-10 Thread Jonas Karlman
Hi again, On 2023-05-09 16:40, Jonas Karlman wrote: > Hi Eugen, > > On 2023-05-09 15:24, Kever Yang wrote: >> Hi Jonas and Eugen, >> >> On 2023/4/22 09:23, Jonas Karlman wrote: >>> This series sync some defconfig options across the different rk35xx >>> boards and enables boot from SPI NOR flash

AW: [PATCH v2 2/3] X86: Add support for distro boot

2023-05-10 Thread Mittelstaedt Thomas (XC-CT/EBV3)
Hello Simon, I've integrated your patches (1-3-usb-Tidy-up-the-usb_start-flag.patch, bootstd-Correct-default-boot-command.patch) The system with CONFIG_BOOTSTD_DEFAULT instead of CONFIG_BOOTSTD_FULL doesn't start like before with boot script. The extlinux configuration still works. ===