[PATCH v3 0/4] fix npcm bmc error

2023-10-12 Thread Jim Liu
1. add name for gpio pinctrl function 2. add baud rate table 3. fix ecc ram size 4. modify configs Jim Liu (4): pinctrl: npcm8xx: add name for gpio function configs: npcm: support more uart baud rate board: nuvuton: arbel: fix incorrect ram size configs: nuvoton: npcm8xx: disable

Re: [PATCH 15/26] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: If we sent a DHCP packet and get a BOOTP response from the server, we shouldn't try to send a DHCPREQUEST packet, since it won't be DHCPACKed. Transition straight to BIND. This is only enabled for UNIT_TEST to avoid bloat, since I suspect the number of

[PATCH] arm64: zynqmp: Remove fclk driver

2023-10-12 Thread Michal Simek
fclk will never go upstream that's why removing this node from DT. All PL (programmable logic) based IPs should handle clocks self without using this workaround. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp-clk-ccf.dtsi | 6 -- 1 file changed, 6 deletions(-) diff --git

Re: [PATCH v2 11/19] serial: sh: Fix error handling

2023-10-12 Thread Paul Barker
On Tue, Oct 10, 2023 at 07:08:42AM +, Biju Das wrote: > Hi Paul, > > Thanks for the patch. > > > Subject: [PATCH v2 11/19] serial: sh: Fix error handling > > > > The current SCIF error handling is broken for the RZ/G2L. After a break > > condition has been triggered, the current code is

[PATCH V2 1/7] spl: riscv: opensbi: change the default os_type as varible

2023-10-12 Thread Randolph
In order to introduce the Opensbi OS boot mode, the next stage boot image of OpenSBI should be configurable. Signed-off-by: Randolph Reviewed-by: Simon Glass --- common/spl/spl_opensbi.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git

[PATCH V2 5/7] spl: riscv: add os type for next booting stage

2023-10-12 Thread Randolph
If SPL_LOAD_FIT_OPENSBI_OS_BOOT is enabled, the function spl_invoke_opensbi should change the target OS type to IH_OS_LINUX. OpenSBI will load the Linux image as the next boot stage. The os_takes_devicetree function returns a value of true or false depending on whether or not

[PATCH V2 2/7] riscv: kconfig: introduce SPL_LOAD_FIT_OPENSBI_OS_BOOT symbol

2023-10-12 Thread Randolph
Introduce common Kconfig symbol for riscv architecture. This symbol SPL_LOAD_FIT_OPENSBI_OS_BOOT is like falcon mode on ARM, the Falcon boot is a shortcut boot method for SD/eMMC targets. It skips the loading the RAM version U-Boot. Instead, it will loads the FIT image and boots directly to Linux.

[PATCH V2 3/7] riscv: dts: binman: add condition for opensbi os boot

2023-10-12 Thread Randolph
Add condition for OpenSBI OS boot mode, by default it is not enabled. By default, binman creates the output file u-boot.itb. If SPL_OPENSBI_OS_BOOT is enabled, linux.itb will be created after compilation instead of the default u-boot.itb. Signed-off-by: Randolph --- arch/riscv/dts/binman.dtsi |

Re: [PATCH 12/26] fs: Compile in sandbox filesystem in SPL if it is enabled

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: fs.c thinks that the sandbox filesystem is available if SANDBOX is enabled, but it is not in SPL. Compile it in SPL to avoid linker errors. Signed-off-by: Sean Anderson --- fs/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/Makefile

Re: [PATCH 14/26] net: bootp: Move port numbers to header

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: These defines are useful when testing bootp. Signed-off-by: Sean Anderson Reviewed-by: Heinrich Schuchardt --- net/bootp.c | 3 --- net/bootp.h | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/net/bootp.c b/net/bootp.c

[PATCH v2 5/5] clk: rockchip: rk3588: fix up the frac pll calculation

2023-10-12 Thread Elaine Zhang
rk3588 frac pll: FFVCO = ((m + k / 65536) * FFIN) / p FFOUT = ((m + k / 65536) * FFIN) / (p * 2s) k is the original code, but the K[15:0] is complement code (6'b1000___ <= K[15:0] <= 16'b0111___), need to be converted. Signed-off-by: Elaine Zhang ---

[PATCH V2 7/7] riscv: spl: andes: Move the DTB in front of kernel

2023-10-12 Thread Randolph
Originally, u-boot SPL will place the DTB directly after the kernel, but the size of the kernel does not include the BSS section, This means that u-boot SPL places the DTB in the kernel BSS section causing the DTB to be cleared by the kernel BSS initialisation. Moving the DTB in front of the

[PATCH V2 4/7] Makefile: delete file *.itb when make clean

2023-10-12 Thread Randolph
Delete the output file *.itb Signed-off-by: Randolph --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9d2e31e494..a7aa8c02a0 100644 --- a/Makefile +++ b/Makefile @@ -2165,7 +2165,7 @@ CLEAN_FILES += include/bmp_logo.h

[PATCH V2 6/7] andes: config: add riscv falcon mode for ae350 platform

2023-10-12 Thread Randolph
Fork from ae350_rv[32/64]_spl_[xip]_defconfig and append CONFIG_SPL_LOAD_FIT_OPENSBI_OS_BOOT=y Signed-off-by: Randolph --- configs/ae350_rv32_falcon_defconfig | 60 configs/ae350_rv32_falcon_xip_defconfig | 61 +

Re: [PATCH 16/26] spl: Don't cache devices when UNIT_TEST is enabled

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: Several SPL functions try to avoid performing initialization twice by caching devices. This is fine for regular boot, but does not work with UNIT_TEST, since all devices are torn down after each test. Disable caching so we don't use stale devices.

[PATCH v3 3/4] board: nuvuton: arbel: fix incorrect ram size

2023-10-12 Thread Jim Liu
fix incorrect ram size of 4GB dram with ECC enabled Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- board/nuvoton/arbel_evb/arbel_evb.c | 17 + 1 file changed, 9 insertions(+), 8 deletions(-) diff --git

[PATCH v3 1/4] pinctrl: npcm8xx: add name for gpio function

2023-10-12 Thread Jim Liu
gpio function name is needed in the debug log Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/pinctrl/nuvoton/pinctrl-npcm8xx.c

[PATCH v3 2/4] configs: npcm: support more uart baud rate

2023-10-12 Thread Jim Liu
add uart baud rate table to arbel(npcm8xx) and poleg(npcm7xx) Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - modify CONFIG_SYS_BAUDRATE_TABLE --- include/configs/arbel.h | 5 - include/configs/poleg.h | 2 ++ 2 files changed, 6 insertions(+), 1

Re: [PATCH v2 1/1] drivers: rng: add support for Meson S4

2023-10-12 Thread neil . armstrong
Hi, On 10/10/2023 13:13, Alexey Romanov wrote: For some Amlogic SOC's, mechanism to obtain random number has been changed. For example, S4 now uses status bit waiting algo. Signed-off-by: Alexey Romanov --- drivers/rng/meson-rng.c | 72 - 1 file

Re: [PATCH 05/26] arm: imx: Add newlines after error messages

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: These error messages are missing newlines. Add them. Fixes: 6e81ca220e0 ("imx: parse-container: Use malloc for container processing") Signed-off-by: Sean Anderson --- arch/arm/mach-imx/parse-container.c | 4 ++-- 1 file changed, 2 insertions(+), 2

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-10-12 Thread Christopher Obbard
Hi Jonas, Sorry for the late response, I've been meaning to test this for a while but not got around to it. On Thu, 2023-08-17 at 23:56 +, Jonas Karlman wrote: > Hi Christopher, > > On 2023-08-08 16:25, Christopher Obbard wrote: > > Hi Jonas, > > > > On Sun, 2023-07-23 at 15:04 +,

[PATCH v2 4/5] clk: rockchip: rk3588: Avoid re-setting the pll rate of dclk_vop's parent

2023-10-12 Thread Elaine Zhang
Optimize setting process. Signed-off-by: Elaine Zhang --- drivers/clk/rockchip/clk_rk3588.c | 24 +--- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/drivers/clk/rockchip/clk_rk3588.c b/drivers/clk/rockchip/clk_rk3588.c index 7ba037ad72ba..a995dd5591d3

Re: [PATCH v4 1/8] binman: ti-secure: Add support for firewalling entities

2023-10-12 Thread Manorit Chawdhry
Hi Simon, On 11:54-20231011, Manorit Chawdhry wrote: > 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

Re: [PATCH 13/26] net: Fix compiling SPL when fastboot is enabled

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: When fastboot is enabled in U-Boot proper and SPL_NET is enabled, we will try to (unsuccessfully) reference it in SPL. Fix these linker errors by conditioning on SPL_UDP/TCP_FUNCTION_FASTBOOT. Signed-off-by: Sean Anderson --- net/Makefile | 4 ++--

Re: [PATCH 07/26] arm: imx: Check header before calling spl_load_imx_container

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 03:56, Sean Anderson wrote: Make sure we have an IMX header before calling spl_load_imx_container, since if we don't it will fail with -ENOENT. This allows us to fall back to legacy/raw images if they are also enabled. Looking at CONFIG_AHAB_BOOT (related to secure boot) we must be

[PATCH v3 4/4] configs: nuvoton: npcm8xx: disable CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-12 Thread Jim Liu
disable this config to improve flash program time Signed-off-by: Jim Liu Changes for v2: - add commit message Changes for v3: - no change --- configs/arbel_evb_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/arbel_evb_defconfig b/configs/arbel_evb_defconfig index

Re: [PATCH 02/26] spl: nor: Don't allocate header on stack

2023-10-12 Thread Michael Nazzareno Trimarchi
On Thu, Oct 12, 2023 at 5:45 AM Simon Glass wrote: > > On Wed, 11 Oct 2023 at 18:56, Sean Anderson wrote: > > > > spl_image_info.name contains a reference to legacy_img_hdr. If we allocate > > the latter on the stack, it will be clobbered after we return. This was > > addressed for NAND back in

Re: [PATCH] efi_loader: use well-known guid for auto-created boot option

2023-10-12 Thread Heinrich Schuchardt
On 10/12/23 07:31, Masahisa Kojima wrote: The boot option automatically created by efibootmgr is identified by the special guid appended in the optional data of boot option. The same mechanism is implemented in the EDK II reference implementation, it uses the different guid from the one

[PATCH V2 0/7] riscv: spl: OpenSBI OS boot mode

2023-10-12 Thread Randolph
Introduce a shortcut boot mode for RISC-V. As we know, in ARM architecture has the Falcon mode to do the shortcut boot to the Linux kernel. (by enabling CONFIG_SPL_OS_BOOT) ARM Falcon mode boot flow would be as follows: u-boot SPL -> Linux kernel But for RISC-V, OpenSBI is required to allows

Re: [PATCH v2 00/36] expo: Support editing lines of text

2023-10-12 Thread Tom Rini
On Sun, 01 Oct 2023 19:13:04 -0600, Simon Glass wrote: > So far expo only supports menus. These are quite flexible for various > kinds of settings, but cannot deal with free-form input, such as a > serial number or a machine name. > > This series adds support for a textline object, which is a

coreboot 4.11 + U-boot master

2023-10-12 Thread Jay Talbott
Hi Simon, So I gave it a whirl to do a build of coreboot (on the 4.11 branch) with the U-boot payload, specifying U-boot master to get the latest version of U-boot. Unfortunately, it failed to build the payload: Cloning U-Boot from Git Cloning into 'u-boot'... warning: redirecting to

Re: [PATCH 12/26] fs: Compile in sandbox filesystem in SPL if it is enabled

2023-10-12 Thread Sean Anderson
On 10/12/23 02:39, Heinrich Schuchardt wrote: On 10/12/23 03:56, Sean Anderson wrote: fs.c thinks that the sandbox filesystem is available if SANDBOX is enabled, but it is not in SPL. Compile it in SPL to avoid linker errors. Signed-off-by: Sean Anderson ---   fs/Makefile | 1 +   1 file

Re: [PATCH] usb: xhci: Workaround to fix the USB halted endpoint issues

2023-10-12 Thread Michal Simek
On 9/12/23 05:59, Venkatesh Yadav Abbarapu wrote: The xhci host controller driver trying to queue the URB's and it is getting halted at the endpoint, thereby hitting the BUG_ON's. Mostly these kind of random issues are seen on faulty boards. Removing these BUG_ON's from the U-Boot xhci code,

Re: [PATCH 12/26] fs: Compile in sandbox filesystem in SPL if it is enabled

2023-10-12 Thread Tom Rini
On Thu, Oct 12, 2023 at 10:15:45AM -0400, Sean Anderson wrote: > On 10/12/23 02:39, Heinrich Schuchardt wrote: > > On 10/12/23 03:56, Sean Anderson wrote: > > > fs.c thinks that the sandbox filesystem is available if SANDBOX is > > > enabled, > > > but it is not in SPL. Compile it in SPL to avoid

Re: [PATCH v3 1/1] drivers: rng: add support for Meson S4

2023-10-12 Thread neil . armstrong
On 12/10/2023 09:58, Alexey Romanov wrote: For some Amlogic SOC's, mechanism to obtain random number has been changed. For example, S4 now uses status bit waiting algo. Signed-off-by: Alexey Romanov --- drivers/rng/meson-rng.c | 72 - 1 file changed,

[PATCH] arm64: dts: zynqmp: make hw-ecc as the default ecc mode

2023-10-12 Thread Michal Simek
From: Amit Kumar Mahapatra Except for Linux no other component (i.e., u-boot, fsbl or BootRom) of the software stack supports software ecc engine. So, make hw-ecc as the default ecc mode. Signed-off-by: Amit Kumar Mahapatra Signed-off-by: Michal Simek ---

Re: [PATCH 13/26] net: Fix compiling SPL when fastboot is enabled

2023-10-12 Thread Sean Anderson
On 10/12/23 02:52, Heinrich Schuchardt wrote: On 10/12/23 03:56, Sean Anderson wrote: When fastboot is enabled in U-Boot proper and SPL_NET is enabled, we will try to (unsuccessfully) reference it in SPL. Fix these linker errors by conditioning on SPL_UDP/TCP_FUNCTION_FASTBOOT. Signed-off-by:

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

2023-10-12 Thread 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 --- Changes since v5: - Only compile in the measurement u-boot command when CONFIG_MEASURED_BOOT is enabled.

Re: [PATCH v2 2/3] dm: prepare rkmtd UCLASS

2023-10-12 Thread Johan Jonker
On 10/2/23 03:16, Simon Glass wrote: > Hi Johan, > > On Thu, 28 Sept 2023 at 12:51, Johan Jonker wrote: >> >> Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks >> in combination with existing userspace tools and rockusb command. >> >> Signed-off-by: Johan Jonker >> Reviewed-by:

Re: [PATCH 1/5] board: rockchip: Add Pine64 Quartz64-A Board

2023-10-12 Thread Christopher Obbard
Hi Jonas, On Thu, 2023-10-12 at 10:51 +0100, Christopher Obbard wrote: > Hi Jonas, > > Sorry for the late response, I've been meaning to test this for a while but > not got around to it. > > On Thu, 2023-08-17 at 23:56 +, Jonas Karlman wrote: > > Hi Christopher, > > > > On 2023-08-08

[PATCH 0/5] arm64: xilinx: DT sync

2023-10-12 Thread Michal Simek
Hi, I have found 5 more patches internally which should be also upstreamed to get DT in sync and descrease amount of differences. Thanks, Michal Michal Simek (4): arm64: zynqmp: Use mdio node by vp-x-a2785-00-revA and vpk120-revA arm64: zynqmp: Remove xlnx,zynqmp-aes node Revert "arm64:

[PATCH] arm64: zynqmp: Disable the lock option for mini qspi

2023-10-12 Thread Michal Simek
From: Venkatesh Yadav Abbarapu As mini configs are required only for flashing the images, so disabling the lock config which will save nearly 6KB of memory. Signed-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal Simek --- Depends on

Re: [PATCH 16/26] spl: Don't cache devices when UNIT_TEST is enabled

2023-10-12 Thread Sean Anderson
On 10/12/23 03:23, Heinrich Schuchardt wrote: On 10/12/23 03:56, Sean Anderson wrote: Several SPL functions try to avoid performing initialization twice by caching devices. This is fine for regular boot, but does not work with UNIT_TEST, since all devices are torn down after each test. Disable

Re: [PATCH 12/26] fs: Compile in sandbox filesystem in SPL if it is enabled

2023-10-12 Thread Tom Rini
On Thu, Oct 12, 2023 at 10:15:45AM -0400, Sean Anderson wrote: > On 10/12/23 02:39, Heinrich Schuchardt wrote: > > On 10/12/23 03:56, Sean Anderson wrote: > > > fs.c thinks that the sandbox filesystem is available if SANDBOX is > > > enabled, > > > but it is not in SPL. Compile it in SPL to avoid

RE: coreboot 4.11 + U-boot master

2023-10-12 Thread Jay Talbott
Hi Simon, I had openssl installed, but apparently not libssl-dev. But when I added that, it still failed in the same spot. So then I just installed all the prerequisites (cut/paste from [1]), even though many of them were already installed, and then it finally built. So at least I have

[PATCH 2/5] arm64: zynqmp: Remove xlnx,zynqmp-aes node

2023-10-12 Thread Michal Simek
AES can be discovered via firmware interface that's why remove node for it. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 4 1 file changed, 4 deletions(-) diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi index f03c201caee9..463ac14f4b59 100644 ---

[PATCH 1/5] arm64: zynqmp: Use mdio node by vp-x-a2785-00-revA and vpk120-revA

2023-10-12 Thread Michal Simek
All boards have been converted to use mdio node that's why move ethernet phys under mdio node too. Signed-off-by: Michal Simek --- Same change was done by: https://lore.kernel.org/r/ff165281a70a38e2b76fee91e6255ce95ce8021b.1695378830.git.michal.si...@amd.com ---

[PATCH 5/5] arm64: zynqmp: remove snps, xhci-stream-quirk property for usb

2023-10-12 Thread Michal Simek
From: Piyush Mehta To sync up with the upstream bulk-stream feature, removed 'snps,xhci-stream-quirk' DT property for usb. Signed-off-by: Piyush Mehta Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/dts/zynqmp.dtsi

[PATCH 4/5] arm64: zynqmp: Remove address/size-cells from ams node

2023-10-12 Thread Michal Simek
Remove unused address/size-cells which is also done upstream that's why this is pretty much sync patch with upstream. Signed-off-by: Michal Simek --- arch/arm/dts/zynqmp.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/dts/zynqmp.dtsi b/arch/arm/dts/zynqmp.dtsi index

[PATCH] ARM: zynq: Disable the config CONFIG_SPI_FLASH_USE_4K_SECTORS

2023-10-12 Thread Michal Simek
From: Venkatesh Yadav Abbarapu Lock size for the flashes will be in terms of sector size, so disable the CONFIG_SPI_FLASH_USE_4K_SECTORS and read it from the flash itself. Signed-off-by: Venkatesh Yadav Abbarapu Signed-off-by: Michal Simek --- configs/xilinx_zynq_virt_defconfig | 1 + 1

Re: [PATCH 5/4] mkimage: update man page and -h output

2023-10-12 Thread Tom Rini
On Wed, Oct 11, 2023 at 10:17:50PM -0400, Sean Anderson wrote: > Hi Rasmus, > > On 10/11/23 15:07, Rasmus Villemoes wrote: > > On 11/10/2023 20.37, Tom Rini wrote: > > > On Thu, Sep 28, 2023 at 10:02:57AM +0200, Rasmus Villemoes wrote: > > > > > > > The man page correctly said that -B was

RE: [PATCH v2 11/19] serial: sh: Fix error handling

2023-10-12 Thread Chris Paterson
> From: U-Boot On Behalf Of Paul Barker > Sent: Monday, October 9, 2023 5:47 PM > > The current SCIF error handling is broken for the RZ/G2L. After a break > condition has been triggered, the current code is unable to clear the > error and serial port output never resumes. > > The RZ/G2L

[PATCH v3 1/1] drivers: rng: add support for Meson S4

2023-10-12 Thread Alexey Romanov
For some Amlogic SOC's, mechanism to obtain random number has been changed. For example, S4 now uses status bit waiting algo. Signed-off-by: Alexey Romanov --- drivers/rng/meson-rng.c | 72 - 1 file changed, 71 insertions(+), 1 deletion(-) diff --git

[PATCH v3 0/1] hwrng: meson - add support for S4

2023-10-12 Thread Alexey Romanov
Hello! This patch adds support for Meson S4 series hardware number generator using new algo. V2: - Sync with Linux version. V3: - Fix compiler warning "makes pointer from integer without a cast" Alexey Romanov (1): drivers: rng: add support for Meson S4 drivers/rng/meson-rng.c | 72

[PATCH v12 0/8] tpm: Support boot measurements

2023-10-12 Thread Eddie James
This series adds support for measuring the boot images more generically than the existing EFI support. Several EFI functions have been moved to the TPM layer. The series includes optional measurement from the bootm command. A new test case has been added for the bootm measurement to test the new

Re: [PATCH 13/26] net: Fix compiling SPL when fastboot is enabled

2023-10-12 Thread Tom Rini
On Wed, Oct 11, 2023 at 09:56:13PM -0400, Sean Anderson wrote: > When fastboot is enabled in U-Boot proper and SPL_NET is enabled, we will > try to (unsuccessfully) reference it in SPL. Fix these linker errors by > conditioning on SPL_UDP/TCP_FUNCTION_FASTBOOT. > > Signed-off-by: Sean Anderson

[PATCH 3/5] Revert "arm64: zynqmp: Add power domain description for PL"

2023-10-12 Thread Michal Simek
This reverts commit d59fac2f3f247470708a1aed1af96802a05e0e61. This power domain shouldn't be enabled by default. Power domain behavior should be handled on case by case basis. Adding this property to zynqmp.dtsi is breaking some suspend/resume cases that's why remove it from this file.

Re: [PATCH 15/26] net: bootp: Fall back to BOOTP from DHCP when unit testing

2023-10-12 Thread Sean Anderson
On 10/12/23 03:16, Heinrich Schuchardt wrote: On 10/12/23 03:56, Sean Anderson wrote: If we sent a DHCP packet and get a BOOTP response from the server, we shouldn't try to send a DHCPREQUEST packet, since it won't be DHCPACKed. Transition straight to BIND. This is only enabled for UNIT_TEST to

Re: [PATCH v3 0/8] Add SM uclass and Meson SM driver

2023-10-12 Thread neil . armstrong
Hi, On 21/09/2023 10:13, Alexey Romanov wrote: Hello! At the moment, there is no single general approach to using secure monitor in U-Boot, there is only the smc_call() function, over which everyone builds their own add-ons. This patchset is designed to solve this problem by adding a new

[PATCH v12 3/8] tpm: Support boot measurements

2023-10-12 Thread 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 James --- Changes since

Re: coreboot 4.11 + U-boot master

2023-10-12 Thread Simon Glass
Hi Jay, On Wed, 11 Oct 2023 at 21:03, Jay Talbott wrote: > > Hi Simon, > > I had openssl installed, but apparently not libssl-dev. But when I added > that, it still failed in the same spot. So then I just installed all the > prerequisites (cut/paste from [1]), even though many of them were

Re: [PATCH 03/26] spl: fit: Fix entry point for SPL_LOAD_FIT_FULL

2023-10-12 Thread Simon Glass
Hi, On Wed, 11 Oct 2023 at 21:28, Sean Anderson wrote: > > On 10/11/23 23:41, Simon Glass wrote: > > On Wed, 11 Oct 2023 at 18:56, Sean Anderson wrote: > >> > >> The entry point is not always the same as the load address. Use the value > >> of the entrypoint property if it exists and is nonzero

Re: [PATCH 07/26] arm: imx: Check header before calling spl_load_imx_container

2023-10-12 Thread Tom Rini
On Wed, Oct 11, 2023 at 09:56:07PM -0400, Sean Anderson wrote: > Make sure we have an IMX header before calling spl_load_imx_container, > since if we don't it will fail with -ENOENT. This allows us to fall back to > legacy/raw images if they are also enabled. > > To avoid too much bloat,

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

2023-10-12 Thread 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 2b6980e441..6684033deb 100644 --- a/include/tpm-v2.h +++ b/include/tpm-v2.h @@ -169,7

[PATCH v12 6/8] doc: Add measured boot documentation

2023-10-12 Thread 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 doc/usage/measured_boot.rst

[PATCH v12 7/8] efi_loader: fix EFI_ENTRY point on get_active_pcr_banks

2023-10-12 Thread Eddie James
From: Ilias Apalodimas efi_tcg2_get_active_pcr_banks doesn't immediately call the EFI_ENTRY() wrapper once it enters the function. Move the call a few lines above to cover the error cases properly as well. Signed-off-by: Ilias Apalodimas --- lib/efi_loader/efi_tcg2.c | 4 ++-- 1 file changed,

Re: [PATCH v4 1/8] binman: ti-secure: Add support for firewalling entities

2023-10-12 Thread Simon Glass
Hi Manorit, On Wed, 11 Oct 2023 at 23:02, Manorit Chawdhry wrote: > > Hi Simon, > > On 11:54-20231011, Manorit Chawdhry wrote: > > 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

Re: [PATCH V2 4/7] Makefile: delete file *.itb when make clean

2023-10-12 Thread Simon Glass
On Wed, 11 Oct 2023 at 23:44, Randolph wrote: > > Delete the output file *.itb > > Signed-off-by: Randolph > --- > Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Simon Glass

Re: [PATCH V2 2/7] riscv: kconfig: introduce SPL_LOAD_FIT_OPENSBI_OS_BOOT symbol

2023-10-12 Thread Simon Glass
On Wed, 11 Oct 2023 at 23:42, Randolph wrote: > > Introduce common Kconfig symbol for riscv architecture. > This symbol SPL_LOAD_FIT_OPENSBI_OS_BOOT is like falcon mode on ARM, > the Falcon boot is a shortcut boot method for SD/eMMC targets. It > skips the loading the RAM version U-Boot. Instead,

Re: [PATCH v4 1/8] binman: ti-secure: Add support for firewalling entities

2023-10-12 Thread Simon Glass
Hi Manorit, On Wed, 11 Oct 2023 at 22:46, Manorit Chawdhry wrote: > > Hi Simon, > > On 20:41-20231011, Simon Glass wrote: > > Hi Manorit, > > > > On Tue, 10 Oct 2023 at 23:25, Manorit Chawdhry wrote: > > > > > > We can now firewall entities while loading them through our secure > > > entity

[PATCH v12 8/8] test: use a non system PCR for testing PCR extend

2023-10-12 Thread Eddie James
From: 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

Re: [PATCH v2 2/3] dm: prepare rkmtd UCLASS

2023-10-12 Thread Simon Glass
Hi Johan, On Thu, 12 Oct 2023 at 04:19, Johan Jonker wrote: > > > > On 10/2/23 03:16, Simon Glass wrote: > > Hi Johan, > > > > On Thu, 28 Sept 2023 at 12:51, Johan Jonker wrote: > >> > >> Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks > >> in combination with existing userspace

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

2023-10-12 Thread 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 --- Changes since

Re: [PATCH v4 09/16] board: ti: j784s4: Add board support for J784S4 EVM

2023-10-12 Thread Tom Rini
On Sun, Oct 01, 2023 at 10:25:38PM +0530, Apurva Nandan wrote: > Add board files for J784S4 EVM. [snip] > diff --git a/board/ti/j784s4/evm.c b/board/ti/j784s4/evm.c > new file mode 100644 > index 00..025079c6a8 > --- /dev/null > +++ b/board/ti/j784s4/evm.c > @@ -0,0 +1,82 @@ > +//

Re: [PATCH 03/26] spl: fit: Fix entry point for SPL_LOAD_FIT_FULL

2023-10-12 Thread Tom Rini
On Thu, Oct 12, 2023 at 12:28:22AM -0400, Sean Anderson wrote: > On 10/11/23 23:41, Simon Glass wrote: > > On Wed, 11 Oct 2023 at 18:56, Sean Anderson wrote: > > > > > > The entry point is not always the same as the load address. Use the value > > > of the entrypoint property if it exists and is

Re: [PATCH V2 5/7] spl: riscv: add os type for next booting stage

2023-10-12 Thread Simon Glass
On Wed, 11 Oct 2023 at 23:44, Randolph wrote: > > If SPL_LOAD_FIT_OPENSBI_OS_BOOT is enabled, the function > spl_invoke_opensbi should change the target OS type to IH_OS_LINUX. > OpenSBI will load the Linux image as the next boot stage. > The os_takes_devicetree function returns a value of true

Re: [PATCH 25/26] test: spl: Add a test for the NOR load method

2023-10-12 Thread Simon Glass
Hi Sean, On Wed, 11 Oct 2023 at 21:16, Sean Anderson wrote: > > On 10/11/23 23:41, Simon Glass wrote: > > Hi Sean, > > > > On Wed, 11 Oct 2023 at 18:57, Sean Anderson wrote: > >> > >> Add a test for the NOR load method. Since NOR is memory-mapped we can > >> substitute a buffer instead. The

Re: [PATCH v12 6/8] doc: Add measured boot documentation

2023-10-12 Thread Simon Glass
Hi Eddie, On Thu, 12 Oct 2023 at 08:08, Eddie James wrote: > > Briefly describe the feature and specify the requirements. > > Signed-off-by: Eddie James > Reviewed-by: Simon Glass This could use a bit more detail. What pieces are measured? What DT binding is used for the TPM? How is the info

Re: [PATCH 01/26] spl: legacy: Fix referencing _image_binary_end

2023-10-12 Thread Simon Glass
Hi Sean, On Wed, 11 Oct 2023 at 21:30, Sean Anderson wrote: > > On 10/11/23 23:41, Simon Glass wrote: > > On Wed, 11 Oct 2023 at 18:56, Sean Anderson wrote: > >> > >> On non-arm architectures, _image_binary_end is defined as a ulong and not a > >> char[]. Dereference it when accessing it, which

Re: [PATCH V2 3/7] riscv: dts: binman: add condition for opensbi os boot

2023-10-12 Thread Simon Glass
On Wed, 11 Oct 2023 at 23:43, Randolph wrote: > > Add condition for OpenSBI OS boot mode, by default it is not enabled. > By default, binman creates the output file u-boot.itb. > If SPL_OPENSBI_OS_BOOT is enabled, linux.itb will be created > after compilation instead of the default u-boot.itb. >

[PATCH v12 4/8] bootm: Support boot measurement

2023-10-12 Thread 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 --- Changes since v8: - Added a configuration option to select to ignore any existing event log.

[PATCH v3 2/7] rockchip: dm: prepare rkmtd UCLASS

2023-10-12 Thread Johan Jonker
Prepare a rkmtd UCLASS in use for writing Rockchip boot blocks in combination with existing userspace tools and rockusb command. Signed-off-by: Johan Jonker Reviewed-by: Kever Yang --- disk/part.c| 4 drivers/block/blk-uclass.c | 1 + include/dm/uclass-id.h | 1 + 3

[PATCH v3 1/7] mtd: nand: raw: rockchip_nfc: add NAND_SKIP_BBTSCAN option

2023-10-12 Thread Johan Jonker
On Rockchip SoCs the first boot stages are written on NAND with help of manufacturer software that uses a different format then the MTD framework. Skip the automatic BBT scan with the NAND_SKIP_BBTSCAN option to be able to pass the driver probe function and to let the original data unchanged.

Re: [PATCH v4] clk: ti: clk-k3: Notify AVS driver upon setting clock rate

2023-10-12 Thread Tom Rini
On Thu, Sep 21, 2023 at 10:30:38PM +0530, Udit Kumar wrote: > AVS is enabled at R5 SPL stage, on few platforms like J721E > and J7200 clk-k3 is used instead if clk-sci driver. > > Add support in clk-k3 driver as well to notify AVS driver > on setting clock rate so that voltage is changed

Re: [PATCH v7 6/7] docs: board: ti: Add j721s2_evm documentation

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:16:00AM +0530, Manorit Chawdhry wrote: > Add the documentation for J721S2-EVM and SK-AM68 > > TRM for J721S2/AM68: https://www.ti.com/lit/pdf/spruj28 > Product Page for J721S2: https://www.ti.com/tool/J721S2XSOMXEVM > Product Page for AM68:

Re: [PATCH v7 5/7] arm: dts: k3-am68: Sync from Linux tag v6.6-rc1

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:15:59AM +0530, Manorit Chawdhry wrote: > The following commit syncs the device tree from Linux tag > v6.6-rc1 to U-boot and fixes the following to be compatible with > the future syncs - > > - Include k3-am68-sk-base-board.dts file > > Remove the duplicated

Re: [PATCH v7 7/7] board: ti: j721s2: MAINTAINERS: Update the MAINTAINERS File.

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:16:01AM +0530, Manorit Chawdhry wrote: > Update the MAINTAINERS file and propose a new MAINTAINER for j721s2 due > to the previous MAINTAINER not being associated with TI. > > Reviewed-by: Nishanth Menon > Signed-off-by: Manorit Chawdhry Applied to u-boot/master,

Re: [PATCH v7 4/7] arm: dts: k3-j721s2: Sync from Linux tag v6.6-rc1

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:15:58AM +0530, Manorit Chawdhry wrote: > The following commit syncs the device tree from Linux tag > v6.6-rc1 to U-boot and fixes the following to be compatible with > the future syncs - > > - Include k3-j721s2-common-proc-board.dts file > > Remove the duplicated

Re: [PATCH v7 2/7] Revert "arm: dts: k3-j7*: ddr: Update to 0.10 version of DDR config tool"

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:15:56AM +0530, Manorit Chawdhry wrote: > The update causes instability in am68-sk boards so revert the patch in > the meantime till fix is available. > > This reverts commit f1edf4bb6aa19732574ac23ca90cb9a0ba395ec1. > > Signed-off-by: Manorit Chawdhry > Reviewed-by:

Re: [PATCH v7 3/7] arm: mach-k3: j721s2: Add mcu_timer0 id to the dev list

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:15:57AM +0530, Manorit Chawdhry wrote: > mcu_timer0 is used by u-boot as the tick-timer. Add it to the soc > devices lsit so it an be enabled via the k3 power controller. > > Reviewed-by: Neha Malcom Francis > Reviewed-by: Nishanth Menon > Signed-off-by: Manorit

[PATCH v3 6/7] rockchip: test: dm: add rkmtd test

2023-10-12 Thread Johan Jonker
Add Rockchip rkmtd test: Create/attach/detach RKMTD device. Send/read data with Rockchip boot block header. Test that reusing the same label should work. Basic test of 'rkmtd' commands. Signed-off-by: Johan Jonker --- Changed V3: New patch --- test/dm/Makefile | 1 + test/dm/rkmtd.c | 201

[PATCH v3 5/7] rockchip: cmd: add rkmtd command

2023-10-12 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formated virtual disk. Data must be

Re: [PATCH] arm: mach-k3: j721s2_init: Enable memory with CONFIG_K3_J721E_DDRSS

2023-10-12 Thread Tom Rini
On Fri, Aug 11, 2023 at 12:04:44PM +0200, Dominik Haller wrote: > Make that condition more generic by checking if the memory controller > driver is enabled instead of using the EVM's config. > > Signed-off-by: Dominik Haller Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH] clk: ti: clk-sci: Notify AVS driver based upon clock rate

2023-10-12 Thread Tom Rini
On Thu, Sep 21, 2023 at 10:33:43PM +0530, Udit Kumar wrote: > AVS driver needs to be notified before or after clock change, > depending upon new rate is greater or less than current clock rate. > > Fixes: 1e0aa873bc7cd ("clk: clk-ti-sci: Notify AVS driver upon setting clock > rate") > > Cc:

[PATCH v3 0/7] Add rkmtd command

2023-10-12 Thread Johan Jonker
The command rkmtd creates a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". It uses the Rockchip MTD driver to scan for boot blocks and copies data from the first block in a GPT formatted virtual disk. Data must be

[PATCH v3 3/7] rockchip: block: add rkmtd class and drivers

2023-10-12 Thread Johan Jonker
Add rkmtd class and drivers to create a virtual block device to transfer Rockchip boot block data to and from NAND with block orientated tools like "ums" and "rockusb". Signed-off-by: Johan Jonker --- Changed V3: New patch Split driver from command Split header Use devm_kzalloc Remove

Re: [PATCH v2 2/2] board: ti: am64x: Switch to standard boot flow

2023-10-12 Thread Tom Rini
On Thu, Oct 05, 2023 at 04:06:42PM +0300, Roger Quadros wrote: > Switch to using bootstd. Note with this change, we will stop using > distro_bootcmd and instead depend entirely on bootflow method of > starting the system up. > > Drop header files that are no longer needed in am64x_evm.h. >

Re: [PATCH v5 1/2] arm: mach-k3: j7200: Add mcu_timer0 id to the dev list

2023-10-12 Thread Tom Rini
On Thu, Oct 05, 2023 at 01:12:57PM -0500, Reid Tonking wrote: > mcu_timer0 is now used as the tick timer in u-boot, so this adds the > timer to the soc device list so it can be enabled via the k3 power > controller. > > Reviewed-by: Nishanth Menon > Signed-off-by: Reid Tonking Applied to

Re: [PATCH v7 1/7] configs: j721s2_evm_r5_defconfig: Increase malloc pool size in DRAM

2023-10-12 Thread Tom Rini
On Fri, Oct 06, 2023 at 10:15:55AM +0530, Manorit Chawdhry wrote: > From: Udit Kumar > > The malloc capacity in DRAM at R5 SPL is set to 1MB which isn't > sufficient to load the new tispl.bin to > enable loading of tispl.bin the size is increased by 256KB to 1.25MB. > > Cc: Nikhil M Jain >

Re: [PATCH v5 2/2] arm: dts: j7200: dts sync with Linux 6.6-rc1

2023-10-12 Thread Tom Rini
On Thu, Oct 05, 2023 at 01:12:58PM -0500, Reid Tonking wrote: > Sync j7200 dts with Linux 6.6-rc1 > > - k3-j7200-r5-common-proc-board.dts now inherits from > k3-j7200-common-proc-board.dts instead of k3-j7200-som-p0.dtsi. This > allows us to trim down the r5 file considerably by using

  1   2   >