Re: [u-boot PATCH 3/3] k3-am642-evm-u-boot: Use binman to generate u-boot.img and tispl.bin

2022-05-30 Thread Roger Quadros
Hi, On 27/05/2022 20:50, Alper Nebi Yasak wrote: > On 26/05/2022 17:15, Tom Rini wrote: >> On Thu, May 26, 2022 at 10:28:45AM +0300, Roger Quadros wrote: >>> Any thoughts on how to get the new ti-secure etype work with atf-bl31 and >>> tee-os etypes so that it can take the data output of those ent

Re: [PATCH 3/3] ARM: dts: at91: sam9x60ek: fix eeprom compatible

2022-05-30 Thread Heiko Schocher
Hello Eugen, On 26.05.22 16:04, Eugen Hristev wrote: > The memory on this board is microchip 24aa025e48 which is compatible with > at24c02 with a page size of 16. > Fix the compatible accordingly. > > Reported-by: Sergiu Moga > Signed-off-by: Eugen Hristev > Tested-by: Sergiu Moga > --- > Hi,

Re: [PATCH 2/3] misc: i2c_eeprom: remove 24aa02e48

2022-05-30 Thread Heiko Schocher
Hello Eugen, On 26.05.22 16:04, Eugen Hristev wrote: > This compatible does not exist in the bindings. > All occurences in DT have been replaced by at24c02 which is equivalent. > > Fixes: 7264066707 ("misc: i2c_eeprom: Add compatible for 24AA02E48") > Signed-off-by: Eugen Hristev > --- > driver

Re: [PATCH 1/3] ARM: dts: at91: replace microchip,24aa02e48 with atmel,at24c02

2022-05-30 Thread Heiko Schocher
Hello Eugen, On 26.05.22 16:18, eugen.hris...@microchip.com wrote: > On 5/26/22 5:11 PM, Michael Walle wrote: > > [snip] > >>> @@ -92,7 +92,7 @@ >>>   status = "okay"; >>> >>>   i2c_eeprom: i2c_eeprom@50 { >> >> Nit: that one should actuall

Re: [PATCH v2 2/2] rockchip: Add option to prevent booting on power plug-in

2022-05-30 Thread Jaehoon Chung
On 5/28/22 03:18, Chris Morgan wrote: > From: Chris Morgan > > For Rockchip boards with the all rk8xx series PMICs (excluding the > rk808), it is sometimes desirable to not boot whenever the device is > plugged in. An example would be for the Odroid Go Advance. > > This provides a configurable o

Re: [PATCH v2] board: gateworks: venice: add GW7903 PMIC

2022-05-30 Thread Jaehoon Chung
On 5/28/22 02:22, Tim Harvey wrote: > The GW7903 has a BD71847 PMIC on I2C1. Adjust the model compare strings > to add it. > > Signed-off-by: Tim Harvey > Reviewed-by: Fabio Estevam Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > v2: fixed typo in commit log and added Fabio's

[PATCH 07/10] board: sl28: implement additional bootsources

2022-05-30 Thread Michael Walle
The board is able to boot from the following source: - user-updateble SPI flash - write-protected part of the same SPI flash - eMMC - SD card Implement the needed function hooks to support all of these boot sources. Signed-off-by: Michael Walle --- board/kontron/sl28/common.c| 22 ++

[PATCH 10/10] board: sl28: remove COUNTER_FREQUENCY_REAL

2022-05-30 Thread Michael Walle
The frequency of the system counter is static which is given by the COUNTER_FREQUENCY option. Remove COUNTER_FREQUENCY_REAL. Signed-off-by: Michael Walle --- include/configs/kontron_sl28.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/configs/kontron_sl28.h b/include/configs/kontr

[PATCH 08/10] board: sl28: add user friendly names for the boot sources

2022-05-30 Thread Michael Walle
During startup the SPL will print where the u-boot proper is read from. Instead of using the default names, provide more user friendly names. Signed-off-by: Michael Walle --- board/kontron/sl28/spl.c | 16 1 file changed, 16 insertions(+) diff --git a/board/kontron/sl28/spl.c b

[PATCH 09/10] board: sl28: support dynamic prompts

2022-05-30 Thread Michael Walle
Depending on the boot source, set different CLI prompts. This will help the user to figure out in which mode the bootloader was started. There are two special modes: failsafe and SDHC boot. Signed-off-by: Michael Walle --- board/kontron/sl28/sl28.c | 20 configs/kontron

[PATCH 03/10] board: sl28: set CPO value

2022-05-30 Thread Michael Walle
With a 8GiB memory board, it seems that the "very unlikely event" of a DDR initialization with non-optimal values are not really that unlikely. It happens in about every other reboot. As described in erratum A-009942, preset the DEBUG_28 register with an optimal value. The value iself depends on th

[PATCH 06/10] board: sl28: rename include guard macro

2022-05-30 Thread Michael Walle
Avoid name clashes with an include file on board level. Signed-off-by: Michael Walle --- include/configs/kontron_sl28.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/kontron_sl28.h b/include/configs/kontron_sl28.h index c47b5940fb..0cc543716a 100644 --

[PATCH 05/10] board: sl28: support 8 GiB memory

2022-05-30 Thread Michael Walle
The board supports up to 8 GiB memory. The memory is soldered on the board but the configuration is equivalent to a dual chip select, dual rank DIMM module. Signed-off-by: Michael Walle --- board/kontron/sl28/ddr.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/board/

[PATCH 04/10] board: sl28: remove unneeded ddr config parameter

2022-05-30 Thread Michael Walle
config_2 doesn't need to be set to zero because that is already the default value. Signed-off-by: Michael Walle --- board/kontron/sl28/ddr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/board/kontron/sl28/ddr.c b/board/kontron/sl28/ddr.c index d75b23e54c..ed799c6e34 100644 --- a/board/kont

[PATCH 02/10] armv8: layerscape: spl: mark OCRAM as non-secure

2022-05-30 Thread Michael Walle
By default the OCRAM is marked as secure. While the SPL runs in EL3 and thus can access it, DMA devices cannot. Mark the whole OCRAM as non-secure. This will fix MMC and SD card boot on LS1028A when using SPL instead of TF-A. Signed-off-by: Michael Walle --- arch/arm/cpu/armv8/fsl-layerscape/spl

[PATCH 01/10] armv8: layerscape: add missing RCW source defines

2022-05-30 Thread Michael Walle
A board might need to get the source of the RCW word, which is also the boot source in most cases. These defines are taken from the LS1028A and I expect they are the same across the SoCs with the same chassis, after all, there was already a reset source for NOR flash. Signed-off-by: Michael Walle

[PATCH 00/10] board: sl28: various updates

2022-05-30 Thread Michael Walle
This is an update for the sl28 board which adds support for - 8 GiB memory variant - different boot sources, like eMMC, SD-card - dynamic prompts - various cleanups Michael Walle (10): armv8: layerscape: add missing RCW source defines armv8: layerscape: spl: mark OCRAM as non-secure boar

[PATCH v3 0/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-05-30 Thread Angus Ainslie
Changes since v2: Add a second patch to deal with CI failures due to the new options. Changes since v1: Updated Kconfig depends Angus Ainslie (2): usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC configs/am43xx

[PATCH v3 2/2] configs: get rid of build warnings due to SPL_USB_DWC3_GENERIC

2022-05-30 Thread Angus Ainslie
Adding the SPL_USB_DWC3_GENERIC symbol broke some ti builds. This should fix the builds but untested on HW. Signed-off-by: Angus Ainslie --- configs/am43xx_evm_defconfig | 2 ++ configs/am43xx_evm_usbhost_boot_defconfig | 2 ++ configs/am43xx_hs_evm_defconfig | 2 ++ confi

[PATCH v3 1/2] usb: dwc3: add a SPL_USB_DWC3_GENERIC option for the dwc3 driver

2022-05-30 Thread Angus Ainslie
Suppress warnings when building the SPL without USB_DWC3_GENERIC Signed-off-by: Angus Ainslie --- drivers/usb/dwc3/Kconfig | 7 +++ drivers/usb/dwc3/Makefile | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/usb/dwc3/Kconfig b/drivers/usb/dwc3/Kconfig index 62aa6

Re: [PATCH] ubifs: Fix lockup/crash when reading files

2022-05-30 Thread Tom Rini
On Mon, May 30, 2022 at 08:11:26AM +0200, Stefan Roese wrote: > Added Tom to Cc... > > On 23.05.22 11:25, Pali Rohár wrote: > > On Thursday 19 May 2022 10:04:31 Pali Rohár wrote: > > > On Thursday 19 May 2022 07:01:19 Stefan Roese wrote: > > > > On 17.05.22 22:45, Pali Rohár wrote: > > > > > Commi

Re: [PULL] u-boot-riscv/master

2022-05-30 Thread Tom Rini
On Sat, May 28, 2022 at 09:02:09AM +, Leo Liang wrote: > On Fri, May 27, 2022 at 09:30:49AM -0400, Tom Rini wrote: > > On Fri, May 27, 2022 at 02:36:29AM +, Leo Liang wrote: > > > > > Hi Tom, > > > > > > The following changes since commit > > > 7e0edcadb09d55d5319fdc862041fd1b874476f5:

Re: Serial Download Boot on i.MX8MN EVK Board

2022-05-30 Thread Fabio Estevam
Hi Thomas, On Mon, May 30, 2022 at 9:50 AM Thomas Schaefer wrote: > But anyway, the patch above is the missing piece, now the DDR3L EVK boots > fine over USB. Ok, great. > >I am using the NXP lf_v2.4 branch instead. > > We are using NXP imx_5.4.47_2.2.0 branch because it is documented this wa

AW: Serial Download Boot on i.MX8MN EVK Board

2022-05-30 Thread Thomas Schaefer
Hi Fabio, >Hi Thomas, >On Mon, May 30, 2022 at 9:01 AM Thomas Schaefer >wrote: >> >> Hi all, >> >> We are trying to boot our i.MX8MNano UltraLite DDR3L EVK via USB using >> Serial Download Mode. We are using u-boot v2022.04-rc3 with patches to >> support DDR3L memory on this eval system. > >D

Re: Serial Download Boot on i.MX8MN EVK Board

2022-05-30 Thread Fabio Estevam
Hi Thomas, On Mon, May 30, 2022 at 9:01 AM Thomas Schaefer wrote: > > Hi all, > > We are trying to boot our i.MX8MNano UltraLite DDR3L EVK via USB using Serial > Download Mode. We are using u-boot v2022.04-rc3 with patches to support DDR3L > memory on this eval system. Do you mean 2022.04-rc3

Serial Download Boot on i.MX8MN EVK Board

2022-05-30 Thread Thomas Schaefer
Hi all, We are trying to boot our i.MX8MNano UltraLite DDR3L EVK via USB using Serial Download Mode. We are using u-boot v2022.04-rc3 with patches to support DDR3L memory on this eval system. ATF firmware used is built using imx_5.4.47_2.2.0 branch of imx-atf firmware. In addition we are using

[PATCH] xilinx: fru: Replace spaces with \0 in detected revision

2022-05-30 Thread Michal Simek
Also fix board revision field where spaces are used instead of \0. The same change was done for board name by commit 530560b6f8eb ("xilinx: fru: Replace spaces with \0 in detected name"). Signed-off-by: Michal Simek --- board/xilinx/common/board.c | 4 1 file changed, 4 insertions(+) diff

[PATCH v3 04/13] linker_lists: Rename sections to remove . prefix

2022-05-30 Thread Andrew Scull
Rename the sections used to implement linker lists so they begin with '__u_boot_list' rather than '.u_boot_list'. The double underscore at the start is still distinct from the single underscore used by the symbol names. Having a '.' in the section names conflicts with clang's ASAN instrumentation

[PATCH v3 00/13] Fuzzing and ASAN for sandbox

2022-05-30 Thread Andrew Scull
This series introduces ASAN and a basic fuzzing infrastructure that works with sandbox. The example fuzz test towards the end of the series will find something pretty quickly. That something is fixed by the series "virtio: Harden and test vring" that needs to be applied for the final patch in this

Re: [PATCH] tlv_eeprom: Add missing CRC32 dependency

2022-05-30 Thread Stefan Roese
On 30.05.22 10:42, Pali Rohár wrote: tlv_eeprom uses crc32() function, so add dependency into Kconfig. Signed-off-by: Pali Rohár Reviewed-by: Stefan Roese Thanks, Stefan --- cmd/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 69c1814d24af.

RE: [RFC] Data structure for information handoff between firmware boot stages

2022-05-30 Thread Jose Marinho
Good morning Simon, Thank you for reviewing the FW handoff ALP0 spec proposal, and for your comments. We have integrated your comments and iterated the spec proposal to ALP1. The ALP1 document can be obtained here: https://developer.arm.com/documentation/den0135/a A quick summary of the commen

Re: [PATCH] tlv_eeprom: Add missing CRC32 dependency

2022-05-30 Thread Baruch Siach
Hi Pali, On Mon, May 30 2022, Pali Rohár wrote: > tlv_eeprom uses crc32() function, so add dependency into Kconfig. > > Signed-off-by: Pali Rohár Reviewed-by: Baruch Siach Thanks, baruch > --- > cmd/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/cmd/Kconfig b/cmd/Kconfig

[PATCH v2] ubifs: Fix reference count leak in ubifsumount

2022-05-30 Thread Pali Rohár
Original ubifs code was designed that after ubifs_umount() call it is required to also call ubi_close_volume() which closes underlying UBI volume. But U-Boot ubifs modification have not implemented it properly which caused that ubifsumount command contains resource leak. It can be observed by calli

Re: Pull request for efi-2022-07-rc4-2

2022-05-30 Thread Pali Rohár
On Monday 30 May 2022 09:32:53 Masahisa Kojima wrote: > Hi Heinrich, > > On Mon, 30 May 2022 at 01:16, Heinrich Schuchardt wrote: > > > > Dear Tom, > > > > this replaces pull request for efi-2022-07-rc4. > > > > The following changes since commit 4fe629d2e8bbda5f265e870d771b92be26e885f6: > > > >

Re: [PATCH] arch: mvebu: Disable by default unused peripherals in SPL

2022-05-30 Thread Pali Rohár
On Monday 30 May 2022 10:26:37 Stefan Roese wrote: > On 30.05.22 08:31, Stefan Roese wrote: > > On 24.05.22 10:58, Pali Rohár wrote: > > > SPL on mvebu loads proper U-Boot from custom Marvell kwbimage format and > > > therefore support for other binary formats is not required to be > > > present in

[PATCH] tlv_eeprom: Add missing CRC32 dependency

2022-05-30 Thread Pali Rohár
tlv_eeprom uses crc32() function, so add dependency into Kconfig. Signed-off-by: Pali Rohár --- cmd/Kconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/Kconfig b/cmd/Kconfig index 69c1814d24af..d513d808aa3d 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -167,6 +167,7 @@ config CMD_R

Re: [PATCH] arch: mvebu: Disable by default unused peripherals in SPL

2022-05-30 Thread Stefan Roese
On 30.05.22 08:31, Stefan Roese wrote: On 24.05.22 10:58, Pali Rohár wrote: SPL on mvebu loads proper U-Boot from custom Marvell kwbimage format and therefore support for other binary formats is not required to be present in SPL. Boot source of proper U-Boot is defined by compile time options

Re: [PATCH v2 09/11] socfpga: arria10: Improve bitstream loading speed

2022-05-30 Thread Paweł Anikiel
On Fri, May 27, 2022 at 5:55 PM Simon Glass wrote: > > On Thu, 26 May 2022 at 07:38, Paweł Anikiel wrote: > > > > Apply some optimizations to speed up bitstream loading > > (both for full and split periph/core bitstreams): > > > > * Change the size of the first fs read, so that all the subsequen