Re: [PATCH v3 1/3] efi_loader: don't load signature database from file

2021-09-05 Thread Heinrich Schuchardt
On 9/6/21 2:12 AM, AKASHI Takahiro wrote: Heinrich, On Thu, Sep 02, 2021 at 11:35:29AM +0200, Heinrich Schuchardt wrote: The UEFI specification requires that the signature database may only be stored in tamper-resistant storage. So these variable may not be read from an unsigned file. Even

Re: [PATCH] efi_loader: boot_service_capability_min should be capitalized

2021-09-05 Thread Ilias Apalodimas
Acked-by: Ilias Apalodimas On Mon, 6 Sept 2021 at 06:02, Masahisa Kojima wrote: > > boot_service_capability_min is constant, it should be capitalized. > > Signed-off-by: Masahisa Kojima > --- > include/efi_tcg2.h| 2 +- > lib/efi_loader/efi_tcg2.c | 4 ++-- > 2 files changed, 3 inserti

Re: [RFC PATCH] stm32mp1: Replace STM32IMAGE config with TFABOOT_FIP

2021-09-05 Thread Etienne Carriere
Hello Alex, Thanks for sharing your thoughts. On Fri, 3 Sept 2021 at 19:47, Alex G. wrote: > > On 9/3/21 10:32 AM, Marek Vasut wrote: > > On 9/1/21 11:07 AM, Patrick DELAUNAY wrote: > >> On 8/31/21 6:42 PM, Marek Vasut wrote: > > >>> I would argue that the U-Boot crypto code went through multip

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Heinrich Schuchardt
Am 6. September 2021 07:22:21 MESZ schrieb Bin Meng : >On Mon, Sep 6, 2021 at 12:45 PM Heinrich Schuchardt wrote: >> >> Am 6. September 2021 03:47:39 MESZ schrieb Bin Meng : >> >On Mon, Sep 6, 2021 at 1:21 AM Heinrich Schuchardt >> >wrote: >> >> >> >> On 9/5/21 7:00 PM, Bin Meng wrote: >> >> > H

Re: [PATCH] arm: mvebu : sata_mv should probe all ports

2021-09-05 Thread Stefan Roese
On 05.09.21 23:48, Tony Dinh wrote: While a board could have multiple SATA ports, some of the ports might not have a disk attached to them. So while probing for disks, sata_mv_probe() should continue probing all ports, and skip one with no disk attached. Tests with: - Seagate Goflex Net (Marvel

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Bin Meng
On Mon, Sep 6, 2021 at 12:45 PM Heinrich Schuchardt wrote: > > Am 6. September 2021 03:47:39 MESZ schrieb Bin Meng : > >On Mon, Sep 6, 2021 at 1:21 AM Heinrich Schuchardt > >wrote: > >> > >> On 9/5/21 7:00 PM, Bin Meng wrote: > >> > Hi Heinrich, > >> > > >> > On Mon, Sep 6, 2021 at 12:50 AM Hein

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Heinrich Schuchardt
Am 6. September 2021 03:47:39 MESZ schrieb Bin Meng : >On Mon, Sep 6, 2021 at 1:21 AM Heinrich Schuchardt wrote: >> >> On 9/5/21 7:00 PM, Bin Meng wrote: >> > Hi Heinrich, >> > >> > On Mon, Sep 6, 2021 at 12:50 AM Heinrich Schuchardt >> > wrote: >> >> >> >> On 9/5/21 1:59 PM, Bin Meng wrote: >>

[PATCH] efi_loader: boot_service_capability_min should be capitalized

2021-09-05 Thread Masahisa Kojima
boot_service_capability_min is constant, it should be capitalized. Signed-off-by: Masahisa Kojima --- include/efi_tcg2.h| 2 +- lib/efi_loader/efi_tcg2.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/efi_tcg2.h b/include/efi_tcg2.h index c99384fb00..5a1

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Bin Meng
On Mon, Sep 6, 2021 at 1:21 AM Heinrich Schuchardt wrote: > > On 9/5/21 7:00 PM, Bin Meng wrote: > > Hi Heinrich, > > > > On Mon, Sep 6, 2021 at 12:50 AM Heinrich Schuchardt > > wrote: > >> > >> On 9/5/21 1:59 PM, Bin Meng wrote: > >>> On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt > >>> w

Re: [PATCH] RFC: Support an EFI-loader bootflow

2021-09-05 Thread AKASHI Takahiro
Hi Simon, On Fri, Sep 03, 2021 at 02:53:52AM -0600, Simon Glass wrote: > Hi Takahiro, > > On Thu, 2 Sept 2021 at 20:27, AKASHI Takahiro > wrote: > > > > Simon, > > > > On Thu, Sep 02, 2021 at 10:40:57AM -0600, Simon Glass wrote: > > > Hi Takahiro, > > > > > > On Tue, 31 Aug 2021 at 00:14, AKASHI

Re: Pull request for efi-2021-10-rc4

2021-09-05 Thread AKASHI Takahiro
On Sat, Sep 04, 2021 at 11:08:28PM +0300, Ilias Apalodimas wrote: > Hi Tom, > > On Sat, 4 Sept 2021 at 21:08, Tom Rini wrote: > > > > On Sat, Sep 04, 2021 at 08:02:49PM +0200, Heinrich Schuchardt wrote: > > > > > > > > > Am 4. September 2021 19:39:49 MESZ schrieb Tom Rini : > > > >On Sat, Sep 04,

Re: [PATCH v2 3/4] sunxi: Support SPL in both eGON and TOC0 images

2021-09-05 Thread Andre Przywara
On Sat, 21 Aug 2021 23:46:47 -0500 Samuel Holland wrote: Hi, > SPL uses the image header to detect the boot device and to find the > offset of the next U-Boot stage. Since this information is stored > differently in the eGON and TOC0 image headers, add code to find the > correct value based on t

Re: [PATCH v2 2/4] tools: mkimage: Add Allwinner TOC0 support

2021-09-05 Thread Andre Przywara
On Sat, 21 Aug 2021 23:46:46 -0500 Samuel Holland wrote: Hi Samuel, > Most Allwinner sunxi SoCs have separate boot ROMs in non-secure and > secure mode. The "non-secure" or "normal" boot ROM (NBROM) uses the > existing sunxi_egon image type. The secure boot ROM (SBROM) uses a > completely differ

Re: [PATCH v3 1/3] efi_loader: don't load signature database from file

2021-09-05 Thread AKASHI Takahiro
Heinrich, On Thu, Sep 02, 2021 at 11:35:29AM +0200, Heinrich Schuchardt wrote: > The UEFI specification requires that the signature database may only be > stored in tamper-resistant storage. So these variable may not be read > from an unsigned file. Even with TF-A (or other methods) assumed, I th

[PATCH v2] Rename CONFIG_SPL_FIT_SHAxxx to CONFIG_SPL_SHAxxx

2021-09-05 Thread Chia-Wei Wang
Rename these options to align the use in common/image-fit.c else if (CONFIG_IS_ENABLED(SHA1) && strcmp(algo, "sha1") == 0) ... else if (CONFIG_IS_ENABLED(SHA256) && strcmp(algo, "sha256") == 0) ... else if (CONFIG_IS_ENABLED(SHA384) && strcmp(algo, "sha384")

[PATCH] arm: mvebu : sata_mv should probe all ports

2021-09-05 Thread Tony Dinh
While a board could have multiple SATA ports, some of the ports might not have a disk attached to them. So while probing for disks, sata_mv_probe() should continue probing all ports, and skip one with no disk attached. Tests with: - Seagate Goflex Net (Marvell Kirkwood 88F6281) out-of-tree u-boot

Booting from NAND on an Armada-370 based machine -> Invalid header checksum

2021-09-05 Thread Uwe Kleine-König
Hello, I'm trying to unbrick a Netgear ReadyNAS 104 (Armada 370). (I accidentally erased the u-boot partition in NAND when I tried to change the NAND partitioning to make the Debian bullseye kernel+initramfs fit.) I have the Vendor U-Boot image that I can boot using kwboot. Its first byte is 0x8b

tftp time outs

2021-09-05 Thread Matteo Guglielmi
Dear All, I've noticed that when u-boot is downloading files from a tftp server (e.g. vmlinuz, initrd etc.) it starts to time out quite heavily "##T #T #T..." if I simply ping the NIC of the raspberry 4b on which it's running. Thanks for any comment or suggestion on this behavior.

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Heinrich Schuchardt
On 9/5/21 7:00 PM, Bin Meng wrote: Hi Heinrich, On Mon, Sep 6, 2021 at 12:50 AM Heinrich Schuchardt wrote: On 9/5/21 1:59 PM, Bin Meng wrote: On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt wrote: Provide sysreset driver using the SBI system reset extension. This patch should be spl

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Bin Meng
Hi Heinrich, On Mon, Sep 6, 2021 at 12:50 AM Heinrich Schuchardt wrote: > > On 9/5/21 1:59 PM, Bin Meng wrote: > > On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt > > wrote: > >> > >> Provide sysreset driver using the SBI system reset extension. > >> > > > > This patch should be split into 2

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Heinrich Schuchardt
On 9/5/21 1:59 PM, Bin Meng wrote: On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt wrote: Provide sysreset driver using the SBI system reset extension. This patch should be split into 2 patches, one for adding the sysreset DM driver, and the other one for EFI support. Signed-off-by: He

Re: Booting from NAND on an Armada-370 based machine -> Invalid header checksum

2021-09-05 Thread Pali Rohár
Hello! On Sunday 05 September 2021 17:48:16 Uwe Kleine-König wrote: > Hello, > > I'm trying to unbrick a Netgear ReadyNAS 104 (Armada 370). (I > accidentally erased the u-boot partition in NAND when I tried to change > the NAND partitioning to make the Debian bullseye kernel+initramfs fit.) > >

[PATCH] mtd: spinand: macronix: Fix ECC Status Read

2021-09-05 Thread li . haolin
From: Haolin Li According to datasheet, the upper four bits are reserved or used for reflecting the ECC status of the accumulated pages. The error bits number for the worst segment of the current page is encoded on lower four bits. Fix it by masking the upper bits. This same issue has been alrea

Re: [PATCH] drivers: net: phy: in112525: fix out of bounds write

2021-09-05 Thread Ramon Fried
On Thu, Sep 2, 2021 at 2:44 PM Cosmin-Florin Aluchenesei wrote: > > Changed declarations of line_temp, reg_addr and reg_data arrays in order to > avoid out-of-bounds write which may be caused by the following writing: > line_temp[column_cnt] = '\0'; (Increased size from 80 to 81). > > Signed-off-b

Re: Subject: [PATCH 0/6] Add support for SDM845 based boards, and SM-G9600

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:42 AM Дмитрий Санковский wrote: > > From 94e21cc200e09c51752e4bb86cfac320a92c48a5 Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Tue, 31 Aug 2021 11:25:37 +0300 > Subject: [PATCH 0/6] Add support for SDM845 based boards, and SM-G9600 > > Snapdragon 845 - hi-

Re: Subject: [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver

2021-09-05 Thread Ramon Fried
On Thu, Sep 2, 2021 at 5:47 PM Дмитрий Санковский wrote: > > From e92b90fcc81565c39eefe63a56051736bd392716 Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Fri, 27 Aug 2021 17:47:22 +0300 > Subject: [PATCH 1/6 v3] serial: qcom: add support for GENI serial driver > > Generic Interface (G

Re: Subject: [PATCH 6/6] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:46 AM Дмитрий Санковский wrote: > > From 94e21cc200e09c51752e4bb86cfac320a92c48a5 Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Sun, 29 Aug 2021 21:57:33 +0300 > Subject: [PATCH 6/6] board: samsung: add Samsung Galaxy S9/S9+(SM-G96x0) board > > Samsung S9 S

Re: Subject: [PATCH 5/6] SoC: qcom: add support for SDM845

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:45 AM Дмитрий Санковский wrote: > > From 1deb063fe8d0e527b0fd412505b7614462c7fd19 Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Sun, 29 Aug 2021 21:55:31 +0300 > Subject: [PATCH 5/6] SoC: qcom: add support for SDM845 > > Hi-end qualcomm chip, introduced in

Re: Subject: [PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:45 AM Дмитрий Санковский wrote: > > From 647a2cd58fff0e9d7e232dc5970071c5c91bb09f Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Sun, 29 Aug 2021 21:54:57 +0300 > Subject: [PATCH 4/6] clocks: qcom: add clocks for SDM845 debug uart > > Allows to change clock

Re: Subject: [PATCH 3/6] pinctrl: qcom: add pinctrl and gpio drivers for SDM845

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:44 AM Дмитрий Санковский wrote: > > From 520bc565a5a6f62c59f87bbd15a194ee61c103af Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Sun, 29 Aug 2021 21:53:40 +0300 > Subject: [PATCH 3/6] pinctrl: qcom: add pinctrl and gpio drivers for SDM845 > SoC > > Signed-o

Re: Subject: [PATCH 2/6 v2] spmi: msm: add arbiter version 5 support

2021-09-05 Thread Ramon Fried
On Tue, Aug 31, 2021 at 11:43 AM Дмитрий Санковский wrote: > > From b65826c49fee93dd7ded11a848814d8fa79fdb2e Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Sat, 28 Aug 2021 13:53:42 +0300 > Subject: [PATCH 2/6 v2] spmi: msm: add arbiter version 5 support > > Currently driver supports

Re: [PATCH] serial: qcom: add support for GENI serial driver.

2021-09-05 Thread Ramon Fried
On Sat, Aug 28, 2021 at 1:05 PM Дмитрий Санковский wrote: > > From 7e77653742d9b6767ad1967dda2556f802ee9d60 Mon Sep 17 00:00:00 2001 > From: Dzmitry Sankouski > Date: Fri, 27 Aug 2021 17:47:22 +0300 > Subject: [PATCH] serial: qcom: add support for GENI serial driver. > > Generic Interface (GENI)

Re: [PATCH v3 2/3] cmd/sbi: use constants instead of numerical values

2021-09-05 Thread Bin Meng
On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt wrote: > > Use constants for extension IDs. > > Signed-off-by: Heinrich Schuchardt > Reviewed-by: Sean Anderson > Reviewed-by: Leo Yu-Chi Liang > --- > v3: > no change > --- > cmd/riscv/sbi.c | 30 +++--- > 1 fi

Re: [PATCH v3 1/3] riscv: add missing SBI extension definitions

2021-09-05 Thread Bin Meng
On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt wrote: > > Add the System Reset Extension and the Hart State Management Extension > definitions. > > Add missing RFENCE Extension enum values. > > The SBI 0.1 extension constants are needed for the sbi command. Remove > an #ifdef. > > Cf. https://

Re: [PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Bin Meng
On Sun, Sep 5, 2021 at 4:38 PM Heinrich Schuchardt wrote: > > Provide sysreset driver using the SBI system reset extension. > This patch should be split into 2 patches, one for adding the sysreset DM driver, and the other one for EFI support. > Signed-off-by: Heinrich Schuchardt > --- > v3: >

[PATCH v3 3/3] sysreset: provide SBI based sysreset driver

2021-09-05 Thread Heinrich Schuchardt
Provide sysreset driver using the SBI system reset extension. Signed-off-by: Heinrich Schuchardt --- v3: no change --- MAINTAINERS | 1 + arch/riscv/cpu/cpu.c| 13 - arch/riscv/include/asm/sbi.h| 1 + arch/riscv/lib/sbi.c| 21 ++--

[PATCH v3 2/3] cmd/sbi: use constants instead of numerical values

2021-09-05 Thread Heinrich Schuchardt
Use constants for extension IDs. Signed-off-by: Heinrich Schuchardt Reviewed-by: Sean Anderson Reviewed-by: Leo Yu-Chi Liang --- v3: no change --- cmd/riscv/sbi.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/cmd/riscv/sbi.c b/cmd/

[PATCH v3 1/3] riscv: add missing SBI extension definitions

2021-09-05 Thread Heinrich Schuchardt
Add the System Reset Extension and the Hart State Management Extension definitions. Add missing RFENCE Extension enum values. The SBI 0.1 extension constants are needed for the sbi command. Remove an #ifdef. Cf. https://github.com/riscv/riscv-sbi-doc/blob/master/riscv-sbi.adoc Signed-off-by: He

[PATCH v3 0/3] riscv: enable SBI system reset

2021-09-05 Thread Heinrich Schuchardt
The purpose of this series is to provide the UEFI ResetSystem() service at runtime on RISC-V systems. With SBI v0.3 a system reset extension is available. This allows to implement reboot and poweroff in U-Boot in a system independent way. * Provide missing constants * Provide a system reset drive