RE: [EXT] Re: Re: [PATCH 1/2] fsl-layerscape: add dtb overlay feature

2022-01-31 Thread Sahil Malhotra (OSS)
Hi Francois. Sorry for the delayed response. > > Elaborating on a broader context: who is the user in U-Boot? In > desktops/laptops context, I understand the user could be the > desktop/laptop owner but based on my limited understanding of Chrome, > users are quite constrained in what they can do

Re: [PATCH 1/2] powerpc: mpc8xx: drop CONFIG_SYS_RESET_ADDRESS

2022-01-31 Thread Stefan Roese
On 1/31/22 08:20, Ovidiu Panait wrote: There are no boards that define CONFIG_SYS_RESET_ADDRESS, so drop the associated mpc8xx code that checks for it. Signed-off-by: Ovidiu Panait Reviewed-by: Stefan Roese Thanks, Stefan --- arch/powerpc/cpu/mpc8xx/cpu.c | 11 ++- scripts/con

Re: [PATCH 2/2] common: drop CONFIG_SYS_RESET_ADDR

2022-01-31 Thread Stefan Roese
On 1/31/22 08:20, Ovidiu Panait wrote: There are no boards that define CONFIG_SYS_RESET_ADDR, so drop the remaining comments referencing it and also the config_whitelist.txt entry. Signed-off-by: Ovidiu Panait Reviewed-by: Stefan Roese Thanks, Stefan --- include/configs/10m50_devboard.

Re: [PATCH] ARM: dts: stm32: Add USB OTG pinctrl and regulator nodes into SPL DT on DHCOR

2022-01-31 Thread Patrice CHOTARD
Hi Marek On 1/28/22 19:35, Marek Vasut wrote: > Fix the following warning in SPL and make sure that even DTs which > enforce Vbus detection using u-boot,force-vbus-detection;, the DFU > in SPL will work. > > dwc2-udc-otg usb-otg@4900: prop pinctrl-0 index 0 invalid phandle > > Signed-off-by:

[PATCH 0/2] EFI: Reset system after capsule-on-disk

2022-01-31 Thread Masami Hiramatsu
Hi, According to Takahiro's suggestion and discussion, I made a patchset to update the EFI capsule-on-disk, so that it does not use UpdateCapsule() EFI API and reset after completing the capsule-on-disk. The reset after completing the capsule-on-disk is stated in the UEFI specification 2.9, secti

[PATCH 1/2] efi_loader: Avoid using efi_update_capsule() from update capsule on disk

2022-01-31 Thread Masami Hiramatsu
The efi_update_capsule() may have to handle the capsule flags as an UEFI runtime and boottime service, but the capsule-on-disk process doesn't. Thus, the capsule-on-disk should use the efi_capsule_update_firmware() directly instead of efi_update_capsule(). To keep the consistency ESRT also will be

[PATCH 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-01-31 Thread Masami Hiramatsu
Add a config option to reset system soon after processing capsule update on disk. This is required in UEFI specification 2.9 Section 8.5.5 "Delivery of Capsules via file on Mass Storage device" as; In all cases that a capsule is identified for processing the system is restarted after caps

Re: Early debug UART not working on AM33XX SoC

2022-01-31 Thread Felix Brack
Hello Simon On 27.01.22 18:33, Simon Glass wrote: > Hi Felix, > > On Thu, 27 Jan 2022 at 09:27, Felix Brack wrote: >> >> Hello Simon, >> >> On 27.01.22 16:05, Simon Glass wrote: >>> Hi Felix, >>> >>> On Wed, 26 Jan 2022 at 07:02, Felix Brack wrote: Hello Simon, I am trying t

Re: [PATCH 2/2] scsi: ceva: Enable PHY and reset support

2022-01-31 Thread Vladimir Oltean
On Wed, Jan 19, 2022 at 03:18:54PM +0100, Michal Simek wrote: > Add phy and reset support for ceva sata IP. Phy and reset are optional > properties that's why detect if description is available. If not just > continue with operation. > This code was tested on Xilinx Kria SOM kv260-revA with sata co

Re: [PATCH v3 03/31] str: Fix a few bugs in trailing_strtoln()

2022-01-31 Thread Rasmus Villemoes
On 19/01/2022 02.42, Simon Glass wrote: > At present this has a minor bug in that it reads the byte before the > start of the string. Only for an empty string, AFAICS. Which is a bug, of course, but mostly the caller is to blame. Also it doesn't handle a non-numeric prefix which is > only one ch

Re: [PATCH 1/2] powerpc: mpc8xx: drop CONFIG_SYS_RESET_ADDRESS

2022-01-31 Thread Christophe Leroy
Le 31/01/2022 à 08:20, Ovidiu Panait a écrit : > There are no boards that define CONFIG_SYS_RESET_ADDRESS, so drop the > associated mpc8xx code that checks for it. > > Signed-off-by: Ovidiu Panait Acked-by: Christophe Leroy > --- > > arch/powerpc/cpu/mpc8xx/cpu.c | 11 ++- > scri

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Giulio Benetti
Hi Andre and Jesse, I test it today on both F1C100s and F1C200s! Lichee Pi Nano and the Jesse’s board with F1C200s. Best regards —- Giulio Benetti Benetti Engineering sas > Il giorno 31 gen 2022, alle ore 03:12, Jesse Taube > ha scritto: > >  > >> On 1/30/22 21:04, Andre Przywara wrote: >>

Re: [RESEND PATCH 1/2] imx: mx6ull: fix REFTOP_VBGADJ setting

2022-01-31 Thread Fabio Estevam
Hi Peng and Jacky, On Mon, Jan 31, 2022 at 4:50 AM Dario Binacchi wrote: > > The previous code wrote the contents of the fuse as is in the > REFTOP_VBGADJ[2:0], but this was wrong if you consider the contents of > the table in the code comment. This table is also different from the > table in the

Re: [PATCH 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-01-31 Thread Grant Likely
On 31/01/2022 09:19, Masami Hiramatsu wrote: Add a config option to reset system soon after processing capsule update on disk. This is required in UEFI specification 2.9 Section 8.5.5 "Delivery of Capsules via file on Mass Storage device" as; In all cases that a capsule is identified for

Re: [PATCH] arm: mvebu: Espressobin: Fix URLs in comments

2022-01-31 Thread Stefan Roese
On 1/21/22 12:01, Pali Rohár wrote: Use versioned URLs for line numbers as branches are moving in the time and use master branch for mv-ddr-marvell where is up-to-date code. Signed-off-by: Pali Rohár Applied to u-boot-marvell/master Thanks, Stefan --- board/Marvell/mvebu_armada-37xx/boar

Re: [PATCH v5 0/3] arm: kirkwood: Add support for Pogoplug V4

2022-01-31 Thread Stefan Roese
On 1/24/22 07:17, Tony Dinh wrote: Pogoplug V4 specifications: Kirkwood 88F6192 SoC 800 MHz CPU 1Gbs Ethernet 128 MB RAM 128 MB NAND 1x USB 2.0 2x USB 3.0 (on PCIe bus) 1 SDHC slot 1x External SATA port (USM enclosure form factor slot) Changes in v5: - Currently, CONFIG_RESET_PHY_R symbol is

Re: [PATCH] arm: kirkwood: Pogoplug V4 : Use Marvel network PHY driver

2022-01-31 Thread Stefan Roese
On 1/25/22 10:48, Tony Dinh wrote: The Pogoplug V4 board has the network chip Marvell 88E1118R. So to properly configure the network, enable CONFIG_PHY_MARVELL to activate the driver M88E1118R. - This patch depends on the series: https://patchwork.ozlabs.org/project/uboot/patch/20220124061712.28

Re: [PATCH u-boot-marvell 00/14] Another set of kwboot improvements

2022-01-31 Thread Stefan Roese
On 1/25/22 18:12, Marek Behún wrote: From: Marek Behún Hello Stefan, here comes another set of kwboot improvements from Pali, reviewed and signed off by myself. Marek Pali Rohár (14): tools: kwboot: Increase blk_rsp_timeo to 2s tools: kwboot: Wait blk_rsp_timeo when flushing tools:

Re: [PATCH] arm: kirkwood: GoFlex Home : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-01-31 Thread Stefan Roese
On 1/26/22 04:33, Tony Dinh wrote: The GoFlex Home board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1118R to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with m

Please pull u-boot-marvell/master

2022-01-31 Thread Stefan Roese
Hi Tom, please pull the next batch of mostly Marvell MVEBU related patches: - kirkwood: Add Pogoplug-V4 support (Tony) - kirkwood: GoFlex Home : Use Marvell PHY driver (Tony) - Another set of kwboot improvements (Pali) - Minor misc

Re: [PATCH 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-01-31 Thread Heinrich Schuchardt
On 1/31/22 12:19, Grant Likely wrote: On 31/01/2022 09:19, Masami Hiramatsu wrote: Add a config option to reset system soon after processing capsule update on disk. This is required in UEFI specification 2.9 Section 8.5.5   "Delivery of Capsules via file on Mass Storage device" as; In all

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Giulio Benetti
Hi All, I've tried several times on both F1C100s and F1C200s, maybe I'm doing something wrong but it doesn't work :-/ I burn sd-card with: # sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1k seek=8 I've triple-checked that the file has been written there by dumping the sd-card and I see

Re: [PATCH] arm: kirkwood: Dreamplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-01-31 Thread Pali Rohár
On Sunday 30 January 2022 15:02:30 Tony Dinh wrote: > The Globalscale Technologies Dreamplug board has the network chip > Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 > driver to bring up Ethernet. > > - Currently, CONFIG_RESET_PHY_R symbol is used in > arch/arm/mach-kirkw

Re: [PATCH 2/2] efi_loader: Reset system after CapsuleUpdate on disk

2022-01-31 Thread Masami Hiramatsu
Hi Grant, 2022年1月31日(月) 20:20 Grant Likely : > > On 31/01/2022 09:19, Masami Hiramatsu wrote: > > Add a config option to reset system soon after processing capsule update > > on disk. This is required in UEFI specification 2.9 Section 8.5.5 > > "Delivery of Capsules via file on Mass Storage devi

[PATCH] gpio: Add gpio_request_by_line_name()

2022-01-31 Thread Andrew Jeffery
Add support for the upstream gpio-line-names property already described in the common GPIO binding document[1]. The ability to search for a line name allows boards to lift the implementation of common GPIO behaviours away from specific line indexes on a GPIO controller. [1] https://github.com/dev

[PATCH] image: Control FIT signature verification at runtime

2022-01-31 Thread Andrew Jeffery
Some platform designs include support for disabling secure-boot via a jumper on the board. Sometimes this control can be separate from the mechanism enabling the root-of-trust for the platform. Add support for this latter scenario by allowing boards to implement board_fit_image_require_verfied(), w

[RESEND PATCH 1/2] imx: mx6ull: fix REFTOP_VBGADJ setting

2022-01-31 Thread Dario Binacchi
The previous code wrote the contents of the fuse as is in the REFTOP_VBGADJ[2:0], but this was wrong if you consider the contents of the table in the code comment. This table is also different from the table in the commit description. But then, which of the two is correct? If it is assumed that an

[RESEND PATCH 2/2] mx6: crm_regs: drop BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ

2022-01-31 Thread Dario Binacchi
Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting") made this macro unused. Then remove it. Signed-off-by: Dario Binacchi --- arch/arm/include/asm/arch-mx6/crm_regs.h | 1 - 1 file changed, 1 deletion(-) diff --git a/arch/arm/include/asm/arch-mx6/crm_regs.h b/arch/arm/inclu

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Andre Przywara
On Mon, 31 Jan 2022 13:17:52 +0100 Giulio Benetti wrote: > Hi All, > > I've tried several times on both F1C100s and F1C200s, maybe I'm doing > something wrong but it doesn't work :-/ > > I burn sd-card with: > # sudo dd if=u-boot-sunxi-with-spl.bin of=/dev/sdb bs=1k seek=8 > > I've triple-che

Re: [RESEND PATCH 2/2] mx6: crm_regs: drop BM_ANADIG_ANA_MISC0_REFTOP_VBGADJ

2022-01-31 Thread Fabio Estevam
On Mon, Jan 31, 2022 at 4:50 AM Dario Binacchi wrote: > > Commit 97c16dc8bf098 ("imx: mx6ull: update the REFTOP_VBGADJ setting") > made this macro unused. Then remove it. > > Signed-off-by: Dario Binacchi Reviewed-by: Fabio Estevam

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Giulio Benetti
Hi Andre, > Il giorno 31 gen 2022, alle ore 13:57, Andre Przywara > ha scritto: > > On Mon, 31 Jan 2022 13:17:52 +0100 > Giulio Benetti wrote: > >> Hi All, >> >> I've tried several times on both F1C100s and F1C200s, maybe I'm doing >> something wrong but it doesn't work :-/ >> >> I burn s

Re: [RFC PATCH v3 9/9] mkeficapsule: Add support for generating empty capsules

2022-01-31 Thread Sughosh Ganu
hi Ilias, On Fri, 21 Jan 2022 at 18:30, Ilias Apalodimas wrote: > > Hi Sughosh, > > On Thu, Jan 20, 2022 at 12:25:48AM +0530, Sughosh Ganu wrote: > > The Dependable Boot specification describes the structure of the > > firmware accept and revert capsules. These are empty capsules which > > are us

Re: [PATCH v6 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-01-31 Thread Ariel D'Alessandro
Hi Tom, Any reason why this is still pending? Thanks, Ariel On 1/4/22 11:10, Ariel D'Alessandro wrote: Hi Tom, On 1/4/22 10:56, Tom Rini wrote: On Mon, Jan 03, 2022 at 05:55:21PM -0300, Ariel D'Alessandro wrote: Gentle ping. Can we get this merged? Does this need to be in for the v2022.0

Re: [PATCH v2 0/2] imx8mn-smm-s2/pro: Add iMX8MN BSH SMM S2 boards

2022-01-31 Thread Ariel D'Alessandro
Hi Tom, Any reason why this is still pending? Please let me know. Thanks in advance, Ariel On 1/26/22 08:08, Michael Nazzareno Trimarchi wrote: Hi Fabio On Sat, Jan 15, 2022 at 3:11 PM Fabio Estevam wrote: On Mon, Jan 3, 2022 at 6:11 PM Ariel D'Alessandro wrote: Gentle ping. Can we get

Please pull u-boot-dm

2022-01-31 Thread Simon Glass
Hi Tom, https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/10826 The following changes since commit e267665a7420bddbfd5833573fdfc9d0930ff515: Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-sunxi (2022-01-30 17:12:34 -0500) are available in the Git reposit

Re: [PATCH v6 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-01-31 Thread Stefano Babic
Hi Ariel, On 31.01.22 14:36, Ariel D'Alessandro wrote: Hi Tom, Any reason why this is still pending? Main reason is that I was (as IMX maintainer) on holiday, and I am just since today back - and of course, I have a lot of things from my job to do before. So checking / applying U-Boot's p

Re: [PATCH v6 0/1] imx8mn_var_som: Add support for Variscite VAR-SOM-MX8M-NANO board

2022-01-31 Thread Ariel D'Alessandro
Hi Stefano, On 1/31/22 10:46, Stefano Babic wrote: Hi Ariel, On 31.01.22 14:36, Ariel D'Alessandro wrote: Hi Tom, Any reason why this is still pending? Main reason is that I was (as IMX maintainer) on holiday, and I am just since today back - and of course, I have a lot of things from my j

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Andre Przywara
On Mon, 31 Jan 2022 14:07:54 +0100 Giulio Benetti wrote: Hi Giulio, > > Il giorno 31 gen 2022, alle ore 13:57, Andre Przywara > > ha scritto: > > > > On Mon, 31 Jan 2022 13:17:52 +0100 > > Giulio Benetti wrote: > > > >> Hi All, > >> > >> I've tried several times on both F1C100s and F1C2

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Giulio Benetti
Hi Andre, On 31/01/22 14:57, Andre Przywara wrote: On Mon, 31 Jan 2022 14:07:54 +0100 Giulio Benetti wrote: Hi Giulio, Il giorno 31 gen 2022, alle ore 13:57, Andre Przywara ha scritto: On Mon, 31 Jan 2022 13:17:52 +0100 Giulio Benetti wrote: Hi All, I've tried several times on bot

Re: [PATCH v2 1/2] Makefile: Create a file to indicate the config

2022-01-31 Thread Tom Rini
On Sun, Jan 30, 2022 at 08:52:24AM -0700, Simon Glass wrote: > At present it is not actually possible to discover the defconfig file that > was used to build U-Boot, so far as I can tell. Write this out to a file > in the build directory, so this is visible. > > Signed-off-by: Simon Glass I don

Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-31 Thread Tom Rini
On Sun, Jan 30, 2022 at 08:52:25AM -0700, Simon Glass wrote: > More than a year after this migration message appeared, we still have new > boards being added with this option. Add a check against this. > > Signed-off-by: Simon Glass Please just make this an error in checkpatch.pl instead. --

Re: Please test U-Boot Allwinner F1C100s support

2022-01-31 Thread Andre Przywara
On Mon, 31 Jan 2022 15:12:23 +0100 Giulio Benetti wrote: > Hi Andre, > > On 31/01/22 14:57, Andre Przywara wrote: > > On Mon, 31 Jan 2022 14:07:54 +0100 > > Giulio Benetti wrote: > > > > Hi Giulio, > > > >>> Il giorno 31 gen 2022, alle ore 13:57, Andre Przywara > >>> ha scritto: > >>> > >

[PATCH] [v3] add kaslr-seed generation to extlinux.conf

2022-01-31 Thread Zhang Ning
1, add kaslrseed key word to extlinux.conf 2, check kaslrseed in extlinux boot label 3, generate ramdon number from hw rng 4, add kaslr-seed to fdt chosen with this patch exlinux.conf boot item looks like label l0 menu testing linux /boot/vmlinuz-5.15.16-arm initrd /boot/i

Re: [PATCH] [v3] add kaslr-seed generation to extlinux.conf

2022-01-31 Thread Zhang Ning
Tested on Khadas VIM, with kernel 5.16.0-rc5-arm64, Debian 11 Here is kernel log near KALSR: Jul 14 01:29:24 VIM kernel: devtmpfs: initialized Jul 14 01:29:24 VIM kernel: Registered cp15_barrier emulation handler Jul 14 01:29:24 VIM kernel: Registered setend emulation handler Jul 14 01:29:24 VIM

[PATCH 1/8] sata: Drop Silicon Image SIL3114 SATA driver

2022-01-31 Thread Simon Glass
This is not used in U-Boot and has not been converted to driver model. Drop it. Signed-off-by: Simon Glass --- drivers/ata/Kconfig| 6 - drivers/ata/Makefile | 1 - drivers/ata/sata_sil3114.c | 838 - drivers/ata/sata_sil3114.h | 133 --

[PATCH 2/8] sata: Only support BLK

2022-01-31 Thread Simon Glass
No boards currently use SATA without BLK: ./tools/moveconfig.py -f SATA ~BLK 0 matches Make SATA depend on BLK to avoid any future confusion. Drop the dead code. Signed-off-by: Simon Glass --- drivers/ata/Kconfig | 4 +--- drivers/ata/sata.c | 27 --- 2 files c

[PATCH 3/8] sata: Rearrange Kconfig for SATA

2022-01-31 Thread Simon Glass
Move the SATA options inside an 'if SATA' part, so they are grouped. Fix the 'Complient' typo while we are here. Signed-off-by: Simon Glass --- drivers/ata/Kconfig | 71 +++-- 1 file changed, 37 insertions(+), 34 deletions(-) diff --git a/drivers/ata/Kc

[PATCH 4/8] sata: sata_sil: Only support BLK

2022-01-31 Thread Simon Glass
No boards use this driver without CONFIG_BLK, so clean up the dead code. Signed-off-by: Simon Glass --- drivers/ata/sata_sil.c | 118 ++--- 1 file changed, 3 insertions(+), 115 deletions(-) diff --git a/drivers/ata/sata_sil.c b/drivers/ata/sata_sil.c index d

[PATCH 5/8] ahci: Make ahci drivers depend on AHCI

2022-01-31 Thread Simon Glass
At present all ahci drivers depend on AHCI except for DWC_AHCI. But no boards enable that without also enabling AHCI: /tools/moveconfig.py -f ~AHCI DWC_AHCI 0 matches Group them together and sort them in order by Kconfig name (except for AHCI_MVEBU which uses a different naming convention).

[PATCH 6/8] scsi: Drop CONFIG_SYS_SCSI_MAX_DEVICE

2022-01-31 Thread Simon Glass
This is defined based on two other CONFIGs for all boards except sandbox and durian. For sandbox the value does not matter. For durian the value seems excessive. Drop the option completely, to simplify configuration and reduce the number of things we need to convert to Kconfig. Signed-off-by: Si

[PATCH 8/8] dm: scsi: Add a migration deadline for scsi

2022-01-31 Thread Simon Glass
Very few boards remain to be migrated: am57xx_hs_evm_usb controlcenterdc highbank ls1021atsn_qspi ls1021atsn_sdcard ls1021atwr_sdcard_ifc_SECURE_BOOT ls1046ardb_sdcard_SECURE_BOOT ls1088ardb_sdcard_qspi_SECURE_BOOT omap5_uevm pg_wcom_expu1 pg_wcom_seli8 sandbox

[PATCH 0/8] scsi: Convert some options to Kconfig

2022-01-31 Thread Simon Glass
This series converts the AHCI and SCSI options used by sandbox to Kconfig. It also tidies up some dead code and sets a migration deadline for SCSI. Simon Glass (8): sata: Drop Silicon Image SIL3114 SATA driver sata: Only support BLK sata: Rearrange Kconfig for SATA sata: sata_sil: Only su

[PATCH 7/8] Convert CONFIG_SCSI_AHCI_PLAT et al to Kconfig

2022-01-31 Thread Simon Glass
This converts the following to Kconfig: CONFIG_SCSI_AHCI_PLAT CONFIG_SYS_SCSI_MAX_SCSI_ID CONFIG_SYS_SCSI_MAX_LUN CONFIG_SYS_SATA_MAX_DEVICE Drop CONFIG_SCSI for everything except the sandbox build. We only need one build for tests. Signed-off-by: Simon Glass --- README

Re: [PATCH] [v3] add kaslr-seed generation to extlinux.conf

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 10:41:05PM +0800, Zhang Ning wrote: > 1, add kaslrseed key word to extlinux.conf > 2, check kaslrseed in extlinux boot label > 3, generate ramdon number from hw rng > 4, add kaslr-seed to fdt chosen > > with this patch exlinux.conf boot item looks like > > label l0 >

[PATCH v4 01/18] arch: sandbox: add an config SANDBOX_BINMAN

2022-01-31 Thread Philippe Reynes
Add an config SANDBOX_BINMAN to enable binman on sandbox. It is useful for test. Signed-off-by: Philippe Reynes --- arch/sandbox/Kconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/sandbox/Kconfig b/arch/sandbox/Kconfig index 477c51960d..6d1f36a0e1 100644 --- a/arch/sandbox/K

[PATCH v4 00/18] image: add a stage pre-load

2022-01-31 Thread Philippe Reynes
This serie adds a stage pre-load before launching an image. This stage is used to read a header before the image and this header contains the signature of the full image. So u-boot may check the full image before using any data of the image. The support of this header is added to binman, and a com

[PATCH v4 02/18] arch: sandbox: dts: sandbox.dts: add empty binman node

2022-01-31 Thread Philippe Reynes
Add an empty node /binman on sandbox to avoid an error on u-boot when binman is enabled. Signed-off-by: Philippe Reynes --- arch/sandbox/dts/sandbox.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/sandbox/dts/sandbox.dts b/arch/sandbox/dts/sandbox.dts index 127f168f02..e6f50f5e9b

[PATCH v4 04/18] lib: Kconfig: enhance help for ASN1

2022-01-31 Thread Philippe Reynes
Enhance the help for configs ASN1_COMPILER and ASN1_decoder. Signed-off-by: Philippe Reynes --- lib/Kconfig | 14 +- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lib/Kconfig b/lib/Kconfig index 3c6fa99b1a..b0e5d60b3d 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -791

[PATCH v4 03/18] configs: sandbox_defconfig: enable SANDBOX_BINMAN

2022-01-31 Thread Philippe Reynes
Enable binman on sandbox. It will be used on test unit. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 19cde87397..749b0f0155 100644 --- a/configs/sandbox_defconfig +++

[PATCH v4 05/18] lib: Kconfig: enhance the help of OID_REGISTRY

2022-01-31 Thread Philippe Reynes
Enhance the help for the config OID_REGISTRY. Signed-off-by: Philippe Reynes --- lib/Kconfig | 4 1 file changed, 4 insertions(+) diff --git a/lib/Kconfig b/lib/Kconfig index b0e5d60b3d..e749826f22 100644 --- a/lib/Kconfig +++ b/lib/Kconfig @@ -812,6 +812,10 @@ config ASN1_DECODER config

[PATCH v4 06/18] lib: allow to build asn1 decoder and oid registry in SPL

2022-01-31 Thread Philippe Reynes
This commit adds the options: - SPL_ASN1_DECODER - SPL_OID_REGISTRY Signed-off-by: Philippe Reynes --- lib/Kconfig | 19 +++ lib/Makefile | 7 +-- 2 files changed, 24 insertions(+), 2 deletions(-) diff --git a/lib/Kconfig b/lib/Kconfig index e749826f22..effe735365 100644 -

[PATCH v4 10/18] cmd: bootm: add a stage pre-load

2022-01-31 Thread Philippe Reynes
Add a stage pre-load to the command bootm. Right now, this stage may be used to read a header and check the signature of the full image. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- boot/bootm.c| 33 + cmd/Kconfig | 10 ++ cmd/bootm

[PATCH v4 12/18] mkimage: add public key for image pre-load stage

2022-01-31 Thread Philippe Reynes
This commit enhances mkimage to update the node /image/pre-load/sig with the public key. Signed-off-by: Philippe Reynes --- include/image.h| 15 ++ tools/fit_image.c | 3 ++ tools/image-host.c | 114 + 3 files changed, 132 insertions(+) di

[PATCH v4 07/18] lib: crypto: allow to build crypyo in SPL

2022-01-31 Thread Philippe Reynes
This commit adds the options: - SPL_ASYMMETRIC_KEY_TYPE - SPL_ASYMMETRIC_PUBLIC_KEY_SUBTYPE - SPL_RSA_PUBLIC_KEY_PARSER Signed-off-by: Philippe Reynes --- lib/Makefile| 3 ++- lib/crypto/Kconfig | 29 + lib/crypto/Makefile | 19 +-- 3 files c

[PATCH v4 08/18] lib: rsa: allow rsa verify with pkey in SPL

2022-01-31 Thread Philippe Reynes
This commit adds the option SPL_RSA_VERIFY_WITH_PKEY. Signed-off-by: Philippe Reynes --- lib/rsa/Kconfig | 19 +++ 1 file changed, 19 insertions(+) diff --git a/lib/rsa/Kconfig b/lib/rsa/Kconfig index be9775bcce..b773f17c26 100644 --- a/lib/rsa/Kconfig +++ b/lib/rsa/Kconfig @@ -

[PATCH v4 11/18] common: spl: fit_ram: allow to use image pre load

2022-01-31 Thread Philippe Reynes
Add the support of image pre load in spl or tpl when loading an image from ram. Reviewed-by: Simon Glass Signed-off-by: Philippe Reynes --- common/spl/spl_ram.c | 21 - 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/common/spl/spl_ram.c b/common/spl/spl_ram.c

[PATCH v4 09/18] boot: image: add a stage pre-load

2022-01-31 Thread Philippe Reynes
Add a stage pre-load that could check or modify an image. For the moment, only a header with a signature is supported. This header has the following format: - magic : 4 bytes - version : 4 bytes - header size : 4 bytes - image size : 4 bytes - offset image signature : 4 bytes - flags : 4 bytes - r

[PATCH v4 13/18] Makefile: provide sah-key to binman

2022-01-31 Thread Philippe Reynes
Set the variable key-path with the shell variable KEY_PATH that contain the keys path (used for signature). This variable key-path is provided to binman. Signed-off-by: Philippe Reynes --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 10879f1f9c..85220419

[PATCH v4 14/18] tools: binman: add support for pre-load header

2022-01-31 Thread Philippe Reynes
Adds the support of the pre-load header with the image signature to binman. Signed-off-by: Philippe Reynes --- tools/binman/etype/pre_load.py | 156 + 1 file changed, 156 insertions(+) create mode 100644 tools/binman/etype/pre_load.py diff --git a/tools/binman/e

[PATCH v4 15/18] configs: sandbox_defconfig: enable stage pre-load in bootm

2022-01-31 Thread Philippe Reynes
Enable the support of stage pre-load in bootm. For the moment, this stage allow to verify the signature of the full image with a header. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox

[PATCH v4 16/18] test: py: vboot: add test for global image signature

2022-01-31 Thread Philippe Reynes
Adds test units for the pre-load header signature. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 119 -- test/py/tests/vboot/sandbox-binman-pss.dts| 25 test/py/tests/vboot/sandbox-binman.dts| 24 .../tests/vboot/sandbo

[PATCH v4 17/18] cmd: verify: initial import

2022-01-31 Thread Philippe Reynes
Add the command verify that check the signature of an image with the pre-load header. If the check succeed, the u-boot env variable 'loadaddr_verified' is set to the address of the image (without the header). It allows to run such commands: tftp script.img && verify $loadaddr && source $loadaddr_v

[PATCH v4 18/18] configs: sandbox_defconfig: enable config CMD_VERIFY

2022-01-31 Thread Philippe Reynes
Enable the command verify on sandbox. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 95fa37869f..fa7c552b66 100644 --- a/configs/sandbox_defconfig +++ b/configs/sandbox_d

[PATCH] arm: dts: stm32mp15: alignment with v5.17

2022-01-31 Thread Patrick Delaunay
Device tree alignment with Linux kernel v5.17-rc1 - ARM: dts: stm32: add pull-up to USART3 and UART7 RX pins on STM32MP15 DKx boards - ARM: dts: stm32: clean uart4_idle_pins_a node for stm32mp15 - ARM: dts: stm32: tune the HS USB PHYs on stm32mp15xx-dkx - ARM: dts: stm32: tune the HS USB PHYs on

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-01-31 Thread Tom Rini
On Mon, Jan 17, 2022 at 07:58:00PM -0500, Nathan Barrett-Morrison wrote: > Hi All, > > While trying to bring up Falcon Mode boot on an ARM64 board, I discovered > that there is no path which allows you to use an uncompressed kernel image > (booti). I've added this path and attached the relevant p

Re: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-01-31 Thread Tom Rini
On Mon, Jan 17, 2022 at 08:02:58PM -0500, Nathan Barrett-Morrison wrote: > Hi All, > > While trying to bring up Falcon Mode boot on an ARM64 board, I've > discovered that the SPL+SPI(spl_spi.c) driver does not allow us to load a > raw kernel image and subsequently call the bootz_setup() function

Re: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-01-31 Thread Nathan Barrett-Morrison
Hi Tom, Yes -- I believe this section of code should not be checking for IH_MAGIC at all, as parse_image_header does it as well. Would you like me to resubmit this patch with the offending lines deleted? Sincerely, Nathan On Mon, Jan 31, 2022 at 10:14 AM Tom Rini wrote: > On Mon, Jan 17, 2022

[PATCH] clk: update clk_clean_rate_cache to use private clk struct

2022-01-31 Thread Patrick Delaunay
In clk_clean_rate_cache, clk->rate should update the private clock struct, in particular when CCF is activated, to save the cached rate value. When clk_get_parent_rate is called, the cached information is read from pclk->rate, with pclk = clk_get_parent(clk). As the cached is read from private cl

Re: Please pull u-boot-marvell/master

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 12:37:05PM +0100, Stefan Roese wrote: > Hi Tom, > > please pull the next batch of mostly Marvell MVEBU related patches: > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] pylint: Adjust how the output is produced

2022-01-31 Thread Tom Rini
On Fri, Jan 28, 2022 at 09:31:07PM -0700, Simon Glass wrote: > The current Makefile rule requires there to be a 'Module' line in the > pylint output, like this: > >* Module binman.fip_util > > This line only appears if pylint has some comments about the module. We > cannot rely o

Re: Please pull u-boot-dm

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 06:41:38AM -0700, Simon Glass wrote: > Hi Tom, > > https://source.denx.de/u-boot/custodians/u-boot-dm/-/pipelines/10826 > > The following changes since commit e267665a7420bddbfd5833573fdfc9d0930ff515: > > Merge branch 'master' of > https://source.denx.de/u-boot/custodi

Re: [PATCH v3] mkimage: fix segfault on MacOS arm64

2022-01-31 Thread Tom Rini
On Tue, Jan 25, 2022 at 02:29:44AM +0300, Sergey V. Lobanov wrote: > mkimage segfaults due to the ASLR mechanism on MacOS arm64 > > It is required to use _dyld_get_image_vmaddr_slide() > to prevent segfault on MacOS arm64 > > This patch is based on the discussion > https://github.com/u-boot/u-bo

Re: Raw Kernel Image Support for Falcon Mode Boot Via SPI Devices

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 10:16:08AM -0500, Nathan Barrett-Morrison wrote: > Hi Tom, > > Yes -- I believe this section of code should not be checking for IH_MAGIC > at all, as parse_image_header does it as well. > > Would you like me to resubmit this patch with the offending lines deleted? Well,

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-01-31 Thread Nathan Barrett-Morrison
Hi Tom, Yea, I'm not sure if uncompressed ARM32 would work, but I don't believe it was ever working to begin with... as bootz_setup is being called right now ( @ https://source.denx.de/u-boot/u-boot/-/blob/master/common/spl/spl.c#L366 ) My intent was for SPL_OS_BOOT_UNCOMPRESSED to only be used f

Re: [PATCH 00/10] board: sl28: add sl28cpld support and board cleanups

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 08:51:39AM +0100, Michael Walle wrote: > Am 2021-11-15 23:45, schrieb Michael Walle: > > Add support for the sl28cpld management controller found on this board. > > This is especially useful, because of the integrated watchdog in this > > controller. It is used to supervise

[PATCH] ram: stm32mp1: Unconditionally enable ASR

2022-01-31 Thread Marek Vasut
Enable DRAM ASR, auto self-refresh, unconditionally. This saves non-trivial amount of power both at runtime and in suspend (on 2x W632GU6NB-15 ~150mW). Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- drivers/ram/stm32mp1/stm32mp1_ddr.c | 26

Re: Falcon Mode Support For Uncompressed Kernel Images

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 10:23:58AM -0500, Nathan Barrett-Morrison wrote: > Hi Tom, > > Yea, I'm not sure if uncompressed ARM32 would work, but I don't believe it > was ever working to begin with... as bootz_setup is being called right now > ( @ https://source.denx.de/u-boot/u-boot/-/blob/master/c

Re: [PATCH 6/8] scsi: Drop CONFIG_SYS_SCSI_MAX_DEVICE

2022-01-31 Thread Heinrich Schuchardt
On 1/31/22 15:49, Simon Glass wrote: This is defined based on two other CONFIGs for all boards except sandbox and durian. For sandbox the value does not matter. For durian the value seems excessive. Drop the option completely, to simplify configuration and reduce the number of things we need to

Re: [PATCH 6/8] scsi: Drop CONFIG_SYS_SCSI_MAX_DEVICE

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 04:58:46PM +0100, Heinrich Schuchardt wrote: > On 1/31/22 15:49, Simon Glass wrote: > > This is defined based on two other CONFIGs for all boards except sandbox > > and durian. > > > > For sandbox the value does not matter. For durian the value seems > > excessive. > > > >

Re: [PATCH] gpio: Add gpio_request_by_line_name()

2022-01-31 Thread Fabio Estevam
On Mon, Jan 31, 2022 at 9:55 AM Andrew Jeffery wrote: > > Add support for the upstream gpio-line-names property already described > in the common GPIO binding document[1]. The ability to search for a line > name allows boards to lift the implementation of common GPIO behaviours > away from specifi

Re: Early debug UART not working on AM33XX SoC

2022-01-31 Thread Simon Glass
Hi Felix, On Mon, 31 Jan 2022 at 02:43, Felix Brack wrote: > > Hello Simon > > On 27.01.22 18:33, Simon Glass wrote: > > Hi Felix, > > > > On Thu, 27 Jan 2022 at 09:27, Felix Brack wrote: > >> > >> Hello Simon, > >> > >> On 27.01.22 16:05, Simon Glass wrote: > >>> Hi Felix, > >>> > >>> On Wed, 2

Re: [PATCH 1/1] lib: allow printing RISC-V EFI Boot Protocol GUID

2022-01-31 Thread Simon Glass
Hi Heinrich, On Sun, 30 Jan 2022 at 23:18, Heinrich Schuchardt wrote: > > > > On 1/31/22 00:14, Simon Glass wrote: > > Hi Heinrich, > > > > On Sat, 29 Jan 2022 at 14:40, Heinrich Schuchardt > > wrote: > >> > >> > >> > >> On 1/29/22 22:09, Simon Glass wrote: > >>> Hi Heinrich, > >>> > >>> On Fri,

Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-31 Thread Simon Glass
Hi Tom, On Mon, 31 Jan 2022 at 07:24, Tom Rini wrote: > > On Sun, Jan 30, 2022 at 08:52:25AM -0700, Simon Glass wrote: > > > More than a year after this migration message appeared, we still have new > > boards being added with this option. Add a check against this. > > > > Signed-off-by: Simon Gl

Re: [PATCH v2 1/2] Makefile: Create a file to indicate the config

2022-01-31 Thread Simon Glass
Hi Tom, On Mon, 31 Jan 2022 at 07:24, Tom Rini wrote: > > On Sun, Jan 30, 2022 at 08:52:24AM -0700, Simon Glass wrote: > > > At present it is not actually possible to discover the defconfig file that > > was used to build U-Boot, so far as I can tell. Write this out to a file > > in the build dir

Re: [PATCH v3 03/31] str: Fix a few bugs in trailing_strtoln()

2022-01-31 Thread Simon Glass
Hi Rasmus, On Mon, 31 Jan 2022 at 02:44, Rasmus Villemoes wrote: > > On 19/01/2022 02.42, Simon Glass wrote: > > At present this has a minor bug in that it reads the byte before the > > start of the string. > > Only for an empty string, AFAICS. Which is a bug, of course, but mostly > the caller i

Re: [PATCH 6/8] scsi: Drop CONFIG_SYS_SCSI_MAX_DEVICE

2022-01-31 Thread Simon Glass
Hi, On Mon, 31 Jan 2022 at 09:04, Tom Rini wrote: > > On Mon, Jan 31, 2022 at 04:58:46PM +0100, Heinrich Schuchardt wrote: > > On 1/31/22 15:49, Simon Glass wrote: > > > This is defined based on two other CONFIGs for all boards except sandbox > > > and durian. > > > > > > For sandbox the value do

Re: [PATCH 0/2] lib: fix snprintf() for UTF-16 strings

2022-01-31 Thread Simon Glass
Hi Heinrich, On Sat, 29 Jan 2022 at 10:40, Heinrich Schuchardt wrote: > > Up to now printing UTF-16 strings with snprintf() resulted in correct > truncation of printed strings. But the returned required buffer length > was incorrect. > > * fix function string16() > * provide a unit test > > Heinr

Re: [PATCH] spi: Add spi_get_bus_and_cs() new use_dt param

2022-01-31 Thread Patrice CHOTARD
Hi Simon On 1/21/22 16:20, Simon Glass wrote: > Hi Patrice, > > On Wed, 12 Jan 2022 at 03:59, Patrice Chotard > wrote: >> >> Add spi_flash_probe_bus_cs() and spi_get_bus_and_cs() new "use_dt" >> param which allows to select SPI speed and mode from DT or from >> default value passed in parameters

Re: [PATCH v2 2/2] Makefile: Don't allow new boards with SPL_FIT_GENERATOR

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 09:13:02AM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 31 Jan 2022 at 07:24, Tom Rini wrote: > > > > On Sun, Jan 30, 2022 at 08:52:25AM -0700, Simon Glass wrote: > > > > > More than a year after this migration message appeared, we still have new > > > boards being adde

Re: [PATCH v2 1/2] Makefile: Create a file to indicate the config

2022-01-31 Thread Tom Rini
On Mon, Jan 31, 2022 at 09:13:07AM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 31 Jan 2022 at 07:24, Tom Rini wrote: > > > > On Sun, Jan 30, 2022 at 08:52:24AM -0700, Simon Glass wrote: > > > > > At present it is not actually possible to discover the defconfig file that > > > was used to buil

  1   2   >