Re: [PATCH 2/4] ARM: stm32: Factor out save_boot_params

2022-12-06 Thread Patrice CHOTARD
On 12/6/22 03:33, Marek Vasut wrote: > The STM32MP15xx platform currently comes with two incompatible > implementations of save_boot_params() weak function override. > Factor the save_boot_params() implementation into common cpu.c > code and provide accessors to read out both ROM API table addre

Re: [PATCH 3/4] ARM: stm32: Pass ROM API table pointer to U-Boot proper

2022-12-06 Thread Patrice CHOTARD
On 12/6/22 03:33, Marek Vasut wrote: > The ROM API table pointer is no longer accessible from U-Boot, fix > this by passing the ROM API pointer through. This makes it possible > for U-Boot to call ROM API functions to authenticate payload like > signed fitImages. > > Signed-off-by: Marek Vasut

Re: [PATCH 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot

2022-12-06 Thread Patrice CHOTARD
On 12/6/22 03:33, Marek Vasut wrote: > With U-Boot having access to ROM API call table, it is possible to use > the ROM API call it authenticate e.g. signed kernel fitImages using the > BootROM ECDSA support. Make this available by pulling the ECDSA BootROM > call support from SPL-only guard. >

Re: [Uboot-stm32] [PATCH 1/8] env: mmc: introduced ENV_MMC_OFFSET

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:48, Patrick Delaunay wrote: > Introduce ENV_MMC_OFFSET defines. > It is a preliminary step to the next patches to simplify the code. > > Signed-off-by: Patrick Delaunay > --- > > env/mmc.c | 24 > 1 file changed, 20 insertions(+), 4 deletions(-) > > d

Re: [Uboot-stm32] [PATCH 2/8] env: mcc: Drop unnecessary #ifdefs

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:48, Patrick Delaunay wrote: > This file has a lot of conditional code and much of it is unnecessary. > Clean this up to reduce the number of build combinations. > > This patch replaces the test on CONFIG_ENV_OFFSET_REDUND for the > more coherent CONFIG_SYS_REDUNDAND_ENVIRONMENT.

Re: [Uboot-stm32] [PATCH 3/8] env: mcc: fix compilation error with ENV_IS_EMBEDDED

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > When ENV_IS_EMBEDDED is enabled, ret is not defined but is used as a > return value in env_mmc_load(). > This patch correct this issue and simplify the existing code, test only > one time #if defined(ENV_IS_EMBEDDED) and not in the function. > > Sign

Re: [Uboot-stm32] [PATCH 4/8] env: mmc: add CONFIG_ENV_MMC_USE_DT

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > Add a new config CONFIG_ENV_MMC_USE_DT to force configuration of the > U-Boot environment offset with device tree config node. > > This patch avoids issues when several CONFIG_ENV_IS_IN_XXX are activated, > the defconfig file uses the same value for

Re: [Uboot-stm32] [PATCH 6/8] env: mmc: select GPT env partition by type guid

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > Since commit c0364ce1c695 ("doc/README.gpt: define partition type GUID for > U-Boot environment"), a specific type GUID can be used to indicate > the U-Boot environment partition on the device with GPT partition table. > > This patch uses this type G

Re: [Uboot-stm32] [PATCH 7/8] env: mmc: add debug message when mmc-env-partition is not found

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > Add a debug message to indicate a potential issue when > "u-boot,mmc-env-partition" is present in config node of device tree > but this partition name is not found in the mmc device. > > Signed-off-by: Patrick Delaunay > --- > > env/mmc.c | 1 + >

Re: [Uboot-stm32] [PATCH 8/8] env: mmc: cosmetic: remove unused macro STR(X)

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > Remove the unused macro STR(X) since the commit 2b2f727500dc ("env: mmc: > allow support of mmc_get_env_dev with OF_CONTROL") > > Signed-off-by: Patrick Delaunay > --- > > env/mmc.c | 3 --- > 1 file changed, 3 deletions(-) > > diff --git a/env/m

Re: [PATCH 5/8] configs: stm32mp: activate CONFIG_ENV_MMC_USE_DT

2022-12-06 Thread Patrice CHOTARD
On 11/10/22 11:49, Patrick Delaunay wrote: > Activate by default CONFIG_ENV_MMC_USE_DT as "u-boot,mmc-env-partition" > should be always use in STMicroelectronics boards device tree to locate > the environment for mmc backend. The 2 defines: > CONFIG_ENV_OFFSET=0x28 > CONFIG_ENV_OFFSET_RE

Pull request for sound-2023-01-rc4

2022-12-06 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit a50622d78c5c6babd1853ae913f339df54fe532c: Merge tag 'xilinx-for-v2023.01-rc3-v2' of https://source.denx.de/u-boot/custodians/u-boot-microblaze (2022-12-05 08:33:19 -0500) are available in the Git repository at: https://source.denx.de/u-boot/cust

Re: [PATCH 2/4] ARM: stm32: Factor out save_boot_params

2022-12-06 Thread Patrick DELAUNAY
Hi Marek, On 12/6/22 03:33, Marek Vasut wrote: The STM32MP15xx platform currently comes with two incompatible implementations of save_boot_params() weak function override. Factor the save_boot_params() implementation into common cpu.c code and provide accessors to read out both ROM API table add

Re: [RFC 1/1] sound: allow waveform selection

2022-12-06 Thread Heinrich Schuchardt
On 12/6/22 00:55, Simon Glass wrote: Hi Heinrich, On Mon, 5 Dec 2022 at 13:38, Heinrich Schuchardt wrote: * Allow the sound command to select the sine or the square waveform. * Allow to play multiple tones with one command. * Adjust documentation. * Adjust unit test. Signed-off-by: Heinri

Re: [PATCH 3/4] ARM: stm32: Pass ROM API table pointer to U-Boot proper

2022-12-06 Thread Patrick DELAUNAY
Hi, minor comment On 12/6/22 03:33, Marek Vasut wrote: The ROM API table pointer is no longer accessible from U-Boot, fix this by passing the ROM API pointer through. This makes it possible for U-Boot to call ROM API functions to authenticate payload like signed fitImages. Signed-off-by: Marek

Re: [PATCH 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-06 Thread Patrice CHOTARD
just one remark On 12/6/22 03:33, Marek Vasut wrote: > In case Dcache is enabled while the ECDSA authentication function is > called via BootROM ROM API, the CRYP DMA might pick stale version of > data from DRAM. Disable Dcache around the BootROM call to avoid this > issue. > > Signed-off-by: Ma

Re: [PATCH 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/6/22 03:33, Marek Vasut wrote: With U-Boot having access to ROM API call table, it is possible to use the ROM API call it authenticate e.g. signed kernel fitImages using the BootROM ECDSA support. Make this available by pulling the ECDSA BootROM call support from SPL-only guard. Sign

Re: [PATCH 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-06 Thread Patrick DELAUNAY
Hi Marek, On 12/6/22 03:33, Marek Vasut wrote: In case Dcache is enabled while the ECDSA authentication function is called via BootROM ROM API, the CRYP DMA might pick stale version of data from DRAM. Disable Dcache around the BootROM call to avoid this issue. Signed-off-by: Marek Vasut --- Cc

Re: [PATCH 1/3] ARM: stm32: Enable assorted ST specific commands on DHSOM

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/6/22 03:35, Marek Vasut wrote: Enable the stm32prog, stm32key, stboard commands on DHSOM. Those can be used e.g. to implement verified boot. Signed-off-by: Marek Vasut --- Cc: Patrice Chotard Cc: Patrick Delaunay --- configs/stm32mp15_dhcom_basic_defconfig | 4 configs/stm3

Re: [PATCH 2/3] ARM: stm32: Increment boot counter in SPL on DHSOM

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/6/22 03:35, Marek Vasut wrote: Increment the boot counter already in U-Boot SPL instead of incrementing it only later in U-Boot proper. This can be used by SPL to boot either of two U-Boot copies and improve redundancy of software on the platform, e.g. in case of full A/B update strate

Re: [PATCH 3/3] ARM: stm32: Increment WDT by default on DHSOM

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/6/22 03:35, Marek Vasut wrote: Enable watchdog timer on the DHSOM by default, both in U-Boot proper and in SPL. This can be used in combination with boot counter by either SPL or U-Boot proper to boot either copy of system software, e.g. in case of full A/B update strategy. Signed-off

[PATCH] rtc: add ht1380 driver

2022-12-06 Thread Sergei Antonov
Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds , minutes, hours, day of the week, date, month and year information. Datasheet: https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf Signed-off-by: Sergei Antonov --- v2: * The RESET pin is now to be described

Re: [PATCH 04/41] topic_miami*: Disable networking support more fully

2022-12-06 Thread Mike Looijmans
Looks fine to me, Acked-by: Mike Looijmans (PS: Sorry for top-posting, but otherwise our M$ mailserver will mangle it) Met vriendelijke groet / kind regards, Mike Looijmans System Expert TOPIC Embedded Products B.V. Materiaalweg 4, 5681 RJ Best The Netherlands T: +31 (0) 499 33 69 69 E:

Re: [PATCH v2] fastboot: Add OEM run command

2022-12-06 Thread Patrick DELAUNAY
Hi, On 12/5/22 20:15, Sean Anderson wrote: On 12/5/22 14:04, Patrick DELAUNAY wrote: Hi, On 12/2/22 22:03, Sean Anderson wrote: This adds the UUU UCmd functionality as an OEM command. While the fastboot tool allows sending arbitrary commands as long as they are prefixed with "oem". This allow

Re: PSU initialization code on zynqmp platforms

2022-12-06 Thread Michal Simek
Hi, On 12/6/22 02:01, Graeme Smecher wrote: Hi Michal, (Well, that's embarassing. Sending again with a useful subject.) I'm bringing up u-boot on a custom zynqmp platform. For the PSU initialization, I can start with the psu_init_gpl.[ch] files embedded in the .xsa generated by Vivado. Howev

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-06 Thread Leo Liang
Hi Kautuk, We have tested your patchset with QEMU 7.1.0. It generally looks fine, but CI error seems to persist. https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/14314 The error comes from CI testcase timed-out. The reason for the time-out is not yet confirmed, but we suspect it

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-06 Thread Kautuk Consul
Hi Leo, On Tue, Dec 6, 2022 at 4:29 PM Leo Liang wrote: > > Hi Kautuk, > > We have tested your patchset with QEMU 7.1.0. > It generally looks fine, but CI error seems to persist. > https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/14314 > > The error comes from CI testcase timed-o

Re: [PATCH 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-06 Thread Marek Vasut
On 12/6/22 10:13, Patrick DELAUNAY wrote: Hi Marek, Hi, [...] @@ -81,8 +82,21 @@ static int romapi_ecdsa_verify(struct udevice *dev,   memcpy(raw_key + 32, pubkey->y, 32);   stm32mp_rom_get_ecdsa_functions(&rom); + +    /* + * Disable D-cache before calling into BootROM, else CRY

Re: [PATCH] net: ipv6: Add missing break into IPv6 protocol handler

2022-12-06 Thread Daniel Schwierzeck
On 12/6/22 08:08, Viacheslav Mitrofanov wrote: IPv6 protocol handler is not terminated with a break statment. It can lead to running unexpected code. Signed-off-by: Viacheslav Mitrofanov --- net/net.c | 1 + 1 file changed, 1 insertion(+) thanks for the quick fix Reviewed-by: Daniel S

Re: [PATCH] net: ipv6: Fix link-partner MAC address assignment

2022-12-06 Thread Daniel Schwierzeck
On 12/6/22 08:08, Viacheslav Mitrofanov wrote: MAC address of a link-partner is not saved for future use because of bad condition of if statement. Moreover it can potentially cause to NULL-pointer dereference. Signed-off-by: Viacheslav Mitrofanov --- net/ndisc.c | 2 +- 1 file changed, 1

[PATCH] phy: rockchip: handle clock without enable function

2022-12-06 Thread John Keeping
If a clock doesn't supply the enable hook, clk_enable() will return -ENOSYS. In this case the clock is always enabled so there is no error and the phy initialisation should continue. Signed-off-by: John Keeping --- drivers/phy/rockchip/phy-rockchip-inno-usb2.c | 2 +- 1 file changed, 1 insertio

Re: [PATCH v3 4/5] eficonfig: use efi_get_next_variable_name_int()

2022-12-06 Thread Ilias Apalodimas
On Sat, Dec 03, 2022 at 09:56:20AM +0900, Masahisa Kojima wrote: > On Fri, 2 Dec 2022 at 16:36, Ilias Apalodimas > wrote: > > > > On Fri, Dec 02, 2022 at 01:59:36PM +0900, Masahisa Kojima wrote: > > > eficonfig command reads all possible UEFI load options > > > from 0x to 0x to construct t

[PATCH] timer: Kconfig: add clint timer support

2022-12-06 Thread chenzhipeng
add the clint timer device configuration item to Kconfig Signed-off-by: chenzhipeng --- drivers/timer/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/drivers/timer/Kconfig b/drivers/timer/Kconfig index 6d6665005c..3dd1b940f1 100644 --- a/drivers/timer/Kconfig +++ b/drivers/tim

[PATCH] lib: rsa: cosmetic: fix building warning

2022-12-06 Thread Haijun Qin
add initialization of variable 'node',this can aviod the building warning: 'node' may be used uninitialized [-Wmaybe-uninitialized] Signed-off-by: Haijun Qin --- lib/rsa/rsa-sign.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c in

[PATCH] cmd: spi: Judge the number of added parameters

2022-12-06 Thread chenzhipeng
When only sspi is entered, help information can be printed. Signed-off-by: chenzhipeng --- cmd/spi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmd/spi.c b/cmd/spi.c index 454ebe37d7..f30018f33b 100644 --- a/cmd/spi.c +++ b/cmd/spi.c @@ -112,6 +112,9 @@ int do_spi(struct cmd_tbl *cmd

[tom.r...@gmail.com: Fwd: New Defects reported by Coverity Scan for Das U-Boot]

2022-12-06 Thread Tom Rini
Here's the latest report -- Forwarded message - From: Date: Mon, Dec 5, 2022, 3:35 PM Subject: New Defects reported by Coverity Scan for Das U-Boot To: Hi, Please find the latest report on new defect(s) introduced to Das U-Boot found with Coverity Scan. 4 new defect(s) introd

Re: [PATCH] Makefile: With BINMAN_ALLOW_MISSING=1 don't error on missing

2022-12-06 Thread Tom Rini
On Tue, Dec 06, 2022 at 03:36:49PM +1300, Simon Glass wrote: > Hi Tom, > > On Tue, 6 Dec 2022 at 15:03, Tom Rini wrote: > > > > When the user builds with BINMAN_ALLOW_MISSING=1 they're explicitly > > setting the flag to allow for additional binaries to be missing and so > > have acknowledged the

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-06 Thread Sean Anderson
On 12/6/22 00:42, Kautuk Consul wrote: > Hi, > > On Mon, Dec 5, 2022 at 8:46 PM Sean Anderson wrote: >> >> On 12/5/22 00:51, Kautuk Consul wrote: >> > Hi, >> > >> > On Sat, Dec 3, 2022 at 9:44 AM Bin Meng wrote: >> >> >> >> On Fri, Sep 23, 2022 at 3:03 PM Kautuk Consul >> >> wrote: >> >> > >>

[PATCH] renesas: rcar: Apply ATF overlay for reserved-memory

2022-12-06 Thread Detlev Casanova
The function fdtdec_board_setup() is only called by fdtdec_setup() which needs to be called by the board file. This is not the case for the renesas boards so rename the fdtdec_board_setup() function to a local name and call it directly from ft_board_setup(), before cleaning up the memory nodes. S

Re: [PATCH] renesas: rcar: Apply ATF overlay for reserved-memory

2022-12-06 Thread Geert Uytterhoeven
Hi Detlev, On Tue, Dec 6, 2022 at 4:35 PM Detlev Casanova wrote: > The function fdtdec_board_setup() is only called by fdtdec_setup() which > needs to be called by the board file. > > This is not the case for the renesas boards so rename the > fdtdec_board_setup() function to a local name and cal

[PATCH v2] renesas: rcar: Apply ATF overlay for reserved-memory

2022-12-06 Thread Detlev Casanova
The function fdtdec_board_setup() is only called by fdtdec_setup() which needs to be called by the board file. This is not the case for the renesas boards so rename the fdtdec_board_setup() function to a local name and call it directly from ft_board_setup(), before cleaning up the memory nodes. S

RE: [TF-A] [RFC] Proposed location to host the firmware handoff specification.

2022-12-06 Thread Dan Handley
Hi Julius > -Original Message- > From: Julius Werner > Sent: 06 December 2022 04:18 > > It seems like some of us still have very different opinions about how this > handoff structure should and shouldn't be used, which I really think need to > be worked out and then codified in the spec

[PATCH 0/4] Synquacer DT schema fixes

2022-12-06 Thread Rob Herring
| 2 +- arch/arm/dts/synquacer-sc2a11.dtsi | 70 +++--- 3 files changed, 37 insertions(+), 37 deletions(-) --- base-commit: bebb393b340295edb9ba50a996fc0510cd1b6ac0 change-id: 20221206-synquacer-dts-521500f88a1d Best regards, -- Rob Herring

[PATCH 2/4] dts: synquacer: Use generic node names

2022-12-06 Thread Rob Herring
DT node names should follow generic names defined in the DT spec. These are also now checked by dtschema tools. Signed-off-by: Rob Herring --- arch/arm/dts/synquacer-sc2a11-developerbox-u-boot.dtsi | 2 +- arch/arm/dts/synquacer-sc2a11-developerbox.dts | 2 +- arch/arm/dts/synquacer-sc

[PATCH 1/4] dts: synquacer: Drop CPU 'arm,armv8' compatibles

2022-12-06 Thread Rob Herring
'arm,armv8' compatible is for software models only. so drop it from cpu nodes. Signed-off-by: Rob Herring --- arch/arm/dts/synquacer-sc2a11.dtsi | 48 +++--- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/arch/arm/dts/synquacer-sc2a11.dtsi b/arch

[PATCH 4/4] dts: synquacer: Fix idle-states 'entry-method' value

2022-12-06 Thread Rob Herring
The correct value for 'entry-method' in the idle-states binding is 'psci', not 'arm,psci'. It hasn't mattered because it isn't used by the OS. Signed-off-by: Rob Herring --- arch/arm/dts/synquacer-sc2a11.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/dts/synqua

[PATCH 3/4] dts: synquacer: Fix "arm, armv7-timer-mem" node address sizes

2022-12-06 Thread Rob Herring
The "arm,armv7-timer-mem" schema defines the address sizes for child nodes to be 32-bit as there's no need for 64-bit offsets and sizes of the child 'frame' nodes. Signed-off-by: Rob Herring --- arch/arm/dts/synquacer-sc2a11.dtsi | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-)

Re: Pull request for sound-2023-01-rc4

2022-12-06 Thread Tom Rini
On Tue, Dec 06, 2022 at 09:42:39AM +0100, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit a50622d78c5c6babd1853ae913f339df54fe532c: > > Merge tag 'xilinx-for-v2023.01-rc3-v2' of > https://source.denx.de/u-boot/custodians/u-boot-microblaze (2022-12-05 > 08:33:19 -0

Re: PSU initialization code on zynqmp platforms

2022-12-06 Thread Graeme Smecher
Hi Michal, On 2022-12-06 02:50, Michal Simek wrote: Hi, On 12/6/22 02:01, Graeme Smecher wrote: Hi Michal, (Well, that's embarassing. Sending again with a useful subject.) I'm bringing up u-boot on a custom zynqmp platform. For the PSU initialization, I can start with the psu_init_gpl.[ch]

Re: [PATCH v2] arm: dts: rockchip: rk3399: usb: ehci: Fix EHCI probe in rk3399 to access peripherals by USB 2.

2022-12-06 Thread Xavier Drudis Ferran
El Mon, Dec 05, 2022 at 08:08:40PM +0100, Marek Vasut deia: > On 12/5/22 19:54, Xavier Drudis Ferran wrote: > > 5- Trying to replicate linux and have usb2phy somehow provide a clk, > > or have a separate clock device for usb2phy in addition to the phy > > device. I just can't seem to imagin

[PATCHv3 010/149] rsa-verify: Rework host check for CONFIG_RSA_VERIFY_WITH_PKEY

2022-12-06 Thread Tom Rini
While we do not want to use CONFIG_RSA_VERIFY_WITH_PKEY on the host, we cannot undef the symbol in this manner. As this ends up being a test within another function we can use !tools_build() as a test here. Cc: AKASHI Takahiro Cc: Simon Glass Signed-off-by: Tom Rini --- Changes in v3: - Move co

Re: [PATCH 1/1] mvebu: fix end-of-array check

2022-12-06 Thread Pali Rohár
On Tuesday 06 December 2022 07:10:15 Stefan Roese wrote: > Hi Pali, > > On 12/5/22 19:18, Pali Rohár wrote: > > On Monday 05 December 2022 12:42:44 Stefan Roese wrote: > > > Hi! > > > > > > On 12/4/22 11:39, Pali Rohár wrote: > > > > Hello! > > > > > > > > I would suggest to change description o

Re: [PATCH 0/7] updates for km board series

2022-12-06 Thread Tom Rini
On Fri, Dec 02, 2022 at 06:22:36PM +0100, Holger Brunck wrote: > - migrate all boards to environment.txt files > - migrate PPC boards to DM_I2C > - some cleanup > > Holger Brunck (7): > board/km: move ls102xa boards to environment text files > km/powerpc: migrate to env.txt file > board/km/

Re: [PATCH 4/6] arm: Use the WEAK assembly entry point consistently

2022-12-06 Thread Tom Rini
On Thu, Nov 24, 2022 at 12:40:44AM +0100, Pali Rohár wrote: > On Wednesday 23 November 2022 18:15:17 Tom Rini wrote: > > On Wed, Nov 23, 2022 at 11:50:59PM +0100, Pali Rohár wrote: > > > On Tuesday 22 November 2022 12:31:56 Tom Rini wrote: > > > > It is a bad idea, and more modern toolchains will f

[PATCH v2 1/4] ARM: stm32: Fix ECDSA authentication with Dcache enabled

2022-12-06 Thread Marek Vasut
In case Dcache is enabled while the ECDSA authentication function is called via BootROM ROM API, the CRYP DMA might pick stale version of data from DRAM. Disable Dcache around the BootROM call to avoid this issue. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc: Patr

[PATCH v2 2/4] ARM: stm32: Factor out save_boot_params

2022-12-06 Thread Marek Vasut
The STM32MP15xx platform currently comes with two incompatible implementations of save_boot_params() weak function override. Factor the save_boot_params() implementation into common cpu.c code and provide accessors to read out both ROM API table address and DT address from any place in the code ins

[PATCH v2 3/4] ARM: stm32: Pass ROM API table pointer to U-Boot proper

2022-12-06 Thread Marek Vasut
The ROM API table pointer is no longer accessible from U-Boot, fix this by passing the ROM API pointer through. This makes it possible for U-Boot to call ROM API functions to authenticate payload like signed fitImages. Signed-off-by: Marek Vasut --- Cc: Alexandru Gagniuc Cc: Patrice Chotard Cc:

[PATCH v2 4/4] ARM: stm32: Make ECDSA authentication available to U-Boot

2022-12-06 Thread Marek Vasut
With U-Boot having access to ROM API call table, it is possible to use the ROM API call it authenticate e.g. signed kernel fitImages using the BootROM ECDSA support. Make this available by pulling the ECDSA BootROM call support from SPL-only guard. Reviewed-by: Patrice Chotard Reviewed-by: Patric

Re: [PATCH] rockchip: jerry: Enable RESET driver

2022-12-06 Thread Simon Glass
Hi Kever, On Wed, 28 Sept 2022 at 20:40, Kever Yang wrote: > > Hi Simon, > > On 2022/9/28 10:40, Simon Glass wrote: > > At present the display does not work since it needs the reset driver to > > operate. Fix this by enabling it. > > > > Signed-off-by: Simon Glass > > Fixes: cd529f7ad62 ("rockch

Re: [PATCHv3 010/149] rsa-verify: Rework host check for CONFIG_RSA_VERIFY_WITH_PKEY

2022-12-06 Thread Simon Glass
On Wed, 7 Dec 2022 at 07:51, Tom Rini wrote: > > While we do not want to use CONFIG_RSA_VERIFY_WITH_PKEY on the host, we > cannot undef the symbol in this manner. As this ends up being a test > within another function we can use !tools_build() as a test here. > > Cc: AKASHI Takahiro > Cc: Simon G

Re: [PATCH] lib: rsa: cosmetic: fix building warning

2022-12-06 Thread Simon Glass
On Wed, 7 Dec 2022 at 03:50, Haijun Qin wrote: > > add initialization of variable 'node',this can aviod the building > warning: > > 'node' may be used uninitialized [-Wmaybe-uninitialized] > > Signed-off-by: Haijun Qin > --- > lib/rsa/rsa-sign.c | 2 +- > 1 file changed, 1 insertion(+), 1 de

Re: [PATCH] cmd: spi: Judge the number of added parameters

2022-12-06 Thread Simon Glass
On Wed, 7 Dec 2022 at 03:50, chenzhipeng wrote: > > When only sspi is entered, help information can be printed. > > Signed-off-by: chenzhipeng > --- > cmd/spi.c | 3 +++ > 1 file changed, 3 insertions(+) > Reviewed-by: Simon Glass > diff --git a/cmd/spi.c b/cmd/spi.c > index 454ebe37d7..f30

Re: [PATCH] rtc: add ht1380 driver

2022-12-06 Thread Simon Glass
Hi Sergei, On Tue, 6 Dec 2022 at 23:07, Sergei Antonov wrote: > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > , minutes, hours, day of the week, date, month and year information. > > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf > >

Re: [TF-A] Re: [RFC] Proposed location to host the firmware handoff specification.

2022-12-06 Thread Stuart Yoder
On 12/5/22 10:18 PM, Julius Werner via TF-A wrote: It seems like some of us still have very different opinions about how this handoff structure should and shouldn't be used, which I really think need to be worked out and then codified in the spec before we can call the document final, because

Re: [PATCH v4 0/7] binman: rockchip: Migrate from rockchip SPL_FIT_GENERATOR script

2022-12-06 Thread Simon Glass
Hi Kevar, On Mon, 7 Nov 2022 at 11:40, Simon Glass wrote: > > At present rockchip 64-bit boards make use of a FIT-generator script > written in Python. The script supports splitting an ELF file into several > 'loadable' nodes in the FIT. Binman does not current support this feature. > > This seri

Re: Re: [PATCH] lib: rsa: cosmetic: fix building warning

2022-12-06 Thread Haijun Qin
Hi,Simon The toolchain source code we use comes from here(https://github.com/riscv-collab/riscv-gnu-toolchain), but we have made some changes. > On Wed, 7 Dec 2022 at 03:50, Haijun Qin wrote: > > > > add initialization of variable 'node',this can aviod the building > > warning: > > > > 'no

Re: [TF-A] Re: [RFC] Proposed location to host the firmware handoff specification.

2022-12-06 Thread Julius Werner
> OK, this seems to be the crux of the problem. Is it possible for us say that > users are free to register new TLs, while at the same time recommending the > use of existing formats for complex structures (e.g. FDT, HOB)? I'm not really sure what qualifies as a "complex structure" in this discu

[PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-06 Thread Rick Chen
In RISC-V, it only provide normal mode booting currently. To speed up the booting process, here provide SPL_OPENSBI_OS_BOOT to achieve this feature which will be call Fast-Boot mode. By enabling SPL_OPENSBI_OS_BOOT, it will generate linux.itb instead of default u-boot.itb after compiling. It initia

[PATCH 2/4] riscv: dts: Support Fast-Boot

2022-12-06 Thread Rick Chen
By enabling SPL_OPENSBI_OS_BOOT, it will generate linux.itb instead of default u-boot.itb after compiling. And Lnux Kernel Image will be appended in linux.itb. Then it can jump to Linux Kernel from openSBI directly. Signed-off-by: Rick Chen --- arch/riscv/dts/binman.dtsi | 24 +++

[PATCH 3/4] riscv: ae350: Support Fast Boot

2022-12-06 Thread Rick Chen
Add defconfig for Fast Boot Signed-off-by: Rick Chen --- board/AndesTech/ax25-ae350/ax25-ae350.c | 7 ++- configs/ae350_rv32_spl_fastboot_defconfig | 53 +++ configs/ae350_rv64_spl_fastboot_defconfig | 53 +++ 3 files changed, 111 insertions(+), 2 delet

[PATCH 4/4] doc: ae350: Add Fast Boot description

2022-12-06 Thread Rick Chen
Descript how to boot Kernel with Fast Boot and record booting messages here. Signed-off-by: Rick Chen --- doc/board/AndesTech/ax25-ae350.rst | 140 + 1 file changed, 140 insertions(+) diff --git a/doc/board/AndesTech/ax25-ae350.rst b/doc/board/AndesTech/ax25-ae350.r

Re: [PATCH 0/4] Synquacer DT schema fixes

2022-12-06 Thread Ilias Apalodimas
> arch/arm/dts/synquacer-sc2a11-developerbox.dts | 2 +- > arch/arm/dts/synquacer-sc2a11.dtsi | 70 > +++--- > 3 files changed, 37 insertions(+), 37 deletions(-) > --- > base-commit: bebb393b340295edb9ba50a996fc0510cd1b6ac0 > change-id: 20221206-synquacer-dts-521500f88a1d > > Best regards, > -- > Rob Herring

Re: [PATCH v5 3/3] board: qemu-riscv: enable semihosting

2022-12-06 Thread Leo Liang
Hi Kautuk, On Tue, Dec 06, 2022 at 05:02:49PM +0530, Kautuk Consul wrote: > Hi Leo, > > On Tue, Dec 6, 2022 at 4:29 PM Leo Liang wrote: > > > > Hi Kautuk, > > > > We have tested your patchset with QEMU 7.1.0. > > It generally looks fine, but CI error seems to persist. > > https://source.denx.de/

Re: [PATCH 1/1] mvebu: fix end-of-array check

2022-12-06 Thread Stefan Roese
Hi Pali, Hi Derek, On 12/6/22 20:56, Pali Rohár wrote: On Tuesday 06 December 2022 07:10:15 Stefan Roese wrote: Hi Pali, On 12/5/22 19:18, Pali Rohár wrote: On Monday 05 December 2022 12:42:44 Stefan Roese wrote: Hi! On 12/4/22 11:39, Pali Rohár wrote: Hello! I would suggest to change des

Re: [PATCH v3 4/5] eficonfig: use efi_get_next_variable_name_int()

2022-12-06 Thread Masahisa Kojima
On Tue, 6 Dec 2022 at 23:12, Ilias Apalodimas wrote: > > On Sat, Dec 03, 2022 at 09:56:20AM +0900, Masahisa Kojima wrote: > > On Fri, 2 Dec 2022 at 16:36, Ilias Apalodimas > > wrote: > > > > > > On Fri, Dec 02, 2022 at 01:59:36PM +0900, Masahisa Kojima wrote: > > > > eficonfig command reads all p