[PATCH 1/2] arm: dts: Enable OSPI for AM62-SK

2022-10-18 Thread Dhruva Gole
The AM62x-SK EVM has an on-board OSPI Flash chip (Cypress S28HS512T). Add the nodes in DT required to load the appropriate drivers to start using the OSPI Flash on this board. Signed-off-by: Dhruva Gole --- arch/arm/dts/k3-am625-r5-sk.dts | 5 ++ arch/arm/dts/k3-am625-sk-u-boot.dtsi | 24 +

[PATCH 2/2] configs: enable OSPI related configs in AM62x

2022-10-18 Thread Dhruva Gole
Add am62x_evm_r5_defconfig for OSPI Flash support in R5 SPL and am62x_evm_a53_defconfig for A53 SPL and U-Boot support. These configs enable OSPI Flash boot functionality in the board as well as the usage of OSPI Flash from U-Boot. Signed-off-by: Dhruva Gole --- configs/am62x_evm_a53_defconfig |

[PATCH 0/2] Enable OSPI Flash in AM62x SK EVM

2022-10-18 Thread Dhruva Gole
The AM62x SK EVM uses an OSPI Flash chip by cypress. We use OSPI DTR mode read / writes to this chip which helps us support high speed ops. The driver support is already present in upstream u-boot and this series just aims to enable that support for AM62x SK EVM. 1. Now the board can completely boo

Re: [EXTERNAL] Re: [PATCH 1/2] arm: dts: k3-am625-sk: Add OSPI support

2022-10-18 Thread Dhruva Gole
Hi Tom, On 06/10/22 21:08, Tom Rini wrote: On Tue, Sep 27, 2022 at 10:59:17AM +0530, Dhruva Gole wrote: Add DT nodes to enable S28HS512T OSPI flash on the SK board. Signed-off-by: Dhruva Gole --- arch/arm/dts/k3-am625-sk-u-boot.dtsi | 24 + arch/arm/dts/k3-am625-sk.dts | 7

Re: Please drop the sandbox.h stuff

2022-10-18 Thread Sughosh Ganu
hi Simon, On Tue, 18 Oct 2022 at 20:18, Simon Glass wrote: > > Hi Sughosh, > > I just noticed some GUIDs added to the include/configs/sandbox.h file. > These files are being removed so we should not be adding to them. > > Please can you send a patch to drop this or move it elsewhere? Will take t

Re: [PATCH] thermal: sandbox: Don't build sandbox thermal driver for sandbox64

2022-10-18 Thread Sughosh Ganu
hi Simon, On Tue, 18 Oct 2022 at 13:34, Sughosh Ganu wrote: > > The sandbox64 defconfig does not enable the thermal uclass, but builds > the thermal sandbox driver. This breaks booting the sandbox64 variant > with the test device tree. Do not build the driver for the sandbox64 > variant. > > Sign

Re: [PATCH v3 6/6] test: add test for eficonfig secure boot key management

2022-10-18 Thread Masahisa Kojima
Hi Heinrich, Ilias, Simon, On Mon, 17 Oct 2022 at 13:49, Masahisa Kojima wrote: > > Hi Heinrich, > > On Sat, 15 Oct 2022 at 13:48, Heinrich Schuchardt wrote: > > > > On 10/15/22 03:10, Simon Glass wrote: > > > Hi Ilias, > > > > > > On Fri, 14 Oct 2022 at 09:59, Ilias Apalodimas > > > wrote: > >

Re: [PATCH v14 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-18 Thread Sughosh Ganu
hi Ilias, On Tue, 18 Oct 2022 at 20:38, Ilias Apalodimas wrote: > > Hi Sughosh, > > [...] > > > +}; > > + > > +static int gpt_get_mdata_partitions(struct blk_desc *desc, > > + uint mdata_parts[2]) > > +{ > > + int i, ret; > > + u32 nparts; > > + efi_gui

Re: [PATCH v14 12/15] test: dm: Add test cases for FWU Metadata uclass

2022-10-18 Thread Sughosh Ganu
On Tue, 18 Oct 2022 at 22:29, Simon Glass wrote: > > Hi, > > On Tue, 18 Oct 2022 at 05:44, Sughosh Ganu wrote: > > > > Add test cases for accessing the FWU Metadata on the sandbox > > platform. The sandbox platform also uses the metadata access driver > > for GPT partitioned block devices. > > >

Re: [PATCH 4/6] sunxi: f1c100: add UART1 support

2022-10-18 Thread Jernej Škrabec
Dne torek, 18. oktober 2022 ob 11:23:41 CEST je Andre Przywara napisal(a): > On 12/10/2022 22:42, Jernej Škrabec wrote: > > Hi Jernej, > > many thanks for the review of this series, that's much appreciated! > > > Dne sreda, 12. oktober 2022 ob 18:34:56 CEST je Andre Przywara napisal(a): > >> Som

Re: [PATCH v4 0/4] net: Enable NC-SI support

2022-10-18 Thread Joel Stanley
On Thu, 15 Sept 2022 at 01:11, Joel Stanley wrote: > > On Tue, 23 Aug 2022 at 04:54, Joel Stanley wrote: > > > > On Mon, 8 Aug 2022 at 12:16, Joel Stanley wrote: > > > > > > Back in 2019 Sam submitted NC-SI support. The NC-SI PHY driver was > > > merged (patches 1 and 2), but we never got around

Re: [PATCH v1] rockchip: phycore_rk3288: remove phycore_init() function

2022-10-18 Thread Johan Jonker
On 10/18/22 13:43, Wadim Egorov wrote: > Hi Johan, > > thanks for this Patch. You were faster with the patch. > > I hope the size reduction is enough to make it buildable with Kevers patch. This patch only reduces the SPL size a few hundred bytes. U-boot tend to grow over time. To be future p

Re: [PATCH] Nokia RX-51: Fix compilation with non-zero CONFIG_SYS_TEXT_BASE

2022-10-18 Thread Tom Rini
On Sun, Oct 09, 2022 at 09:37:13PM +0200, Pali Rohár wrote: > For some unknown reason GNU assembler version 2.31.1 (arm-linux-gnueabi-as > from Debian Buster) cannot compile following code from located in file > board/nokia/rx51/lowlevel_init.S: > > kernoffs: > .word KERNEL_OFFSET - (. - C

Re: [PATCH] arm: mach-k3: Move hardware handling to common files

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 02:22:05PM -0500, Andrew Davis wrote: > These hardware register definitions are common for all K3, remove > duplicate data them by moving them to hardware.h. > > While here do some minor whitespace cleanup + grouping. > > Signed-off-by: Andrew Davis Applied to u-boot/ma

Re: [PATCH] watchdog: omap_wdt: Switch required include for watchdog defines

2022-10-18 Thread Tom Rini
On Mon, Oct 10, 2022 at 04:29:17PM -0400, Tom Rini wrote: > All of the required values for using the omap_wdt.c driver are found in > and this is what is indirectly pulled in via > when it exists. > > Signed-off-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Descripti

Re: [PATCH] arm: mach-k3: security: Use dma-mapping for cache ops

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 12:12:29PM -0500, Andrew Davis wrote: > This matches how this would be done in Linux and these functions > do the alignment for us which makes the code look cleaner. > > Signed-off-by: Andrew Davis Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [PATCH 3/3] dma: Transfer dma_ops should use DMA address types

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 12:11:13PM -0500, Andrew Davis wrote: > DMA operations should function on DMA addresses, not virtual addresses. > Although these are usually the same in U-Boot, it is more correct > to be explicit with our types here. > > Signed-off-by: Andrew Davis Applied to u-boot/mas

Re: [PATCH 2/3] dma: ti-edma3: Add DMA map operations before and after transfers

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 12:11:12PM -0500, Andrew Davis wrote: > We should clean the caches before any DMA operation and clean+invalidate > after. This matches what the DMA framework does for us already but adds > it to the two functions here in this driver that don't yet go through the > new DMA f

Re: [PATCH 1/3] dma: Use dma-mapping for cache ops and sync after write

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 12:11:11PM -0500, Andrew Davis wrote: > The DMA'd memory area needs cleaned and invalidated after the DMA > write so that any stale cache lines do not mask new data. > > Signed-off-by: Andrew Davis Applied to u-boot/master, thanks! -- Tom signature.asc Description: P

Re: [PATCH] arm: mach-k3: common: Set boot_fit on non-GP devices

2022-10-18 Thread Tom Rini
On Fri, Oct 07, 2022 at 11:27:46AM -0500, Andrew Davis wrote: > This matches what we did for pre-K3 devices. This allows us to build > boot commands that can check for our device type at runtime. > > Signed-off-by: Andrew Davis Applied to u-boot/master, thanks! -- Tom signature.asc Descript

Re: [PATCH] phy: ti: j721e-wiz: add j784s4-wiz-10g module support

2022-10-18 Thread Tom Rini
On Wed, Oct 05, 2022 at 01:51:30PM -0700, Matt Ranostay wrote: > Add support for j784s4-wiz-10g device which has two core reference > clocks (e.g core_ref_clk, core_ref1_clk) which requires an additional > mux selection option. > > Signed-off-by: Matt Ranostay Applied to u-boot/master, thanks!

Re: [PATCH 2/2] arm: dts: k3-am64-evm: EMIF tool update to v0.08.40 for 1600MT/s DDR4

2022-10-18 Thread Tom Rini
On Thu, Sep 29, 2022 at 12:35:49PM -0500, Anand Gadiyar wrote: > From: Dave Gerlach > > Move to latest DDR4 1600MT/s for k3-am64-evm based on EMIF tool > v0.08.40. > > Signed-off-by: Dave Gerlach > Signed-off-by: Anand Gadiyar Applied to u-boot/master, thanks! -- Tom signature.asc Descri

Re: [PATCH 1/2] arm: dts: k3-am64-sk: EMIF tool update to v0.08.40 and move to 1600MT/s LPDDR4

2022-10-18 Thread Tom Rini
On Thu, Sep 29, 2022 at 12:35:48PM -0500, Anand Gadiyar wrote: > From: Dave Gerlach > > Move k3-am64-sk to use 1600MT/s LPDDR4 configuration and update to latest EMIF > tool v0.08.40. > > Signed-off-by: Dave Gerlach > Signed-off-by: Anand Gadiyar Applied to u-boot/master, thanks! -- Tom

Re: question about uboot mt7620 RAM_VERSION

2022-10-18 Thread Kang-sen Lu
Hi, Stefan: Thanks for your reply. The uboot in the zbtlink mt7620 router has the signatures follows: U-Boot 1.1.3 (Nov 9 2016 - 15:34:50) SoC:MediaTek MT7620 DRAM: Memory Testing..131072K OK. is 128 MB relocate_code Pointer at: 87fb enable ephy clock...done. rf reg 29 = 5 SSC disabled. s

Re: [PATCH 3/6] net: (actually/better) deal with CVE-2022-{30790, 30552}

2022-10-18 Thread Artur Łącki
I found this problem while porting a security patch to my uboot. I've created a PoC exploit which can hang uboot during ping command (even with commit b85d130ea0cac152c21ec38ac9417b31d41b5552). In my case changing: if (ip->ip_len < IP_MIN_FRAG_DATAGRAM_SIZE) to: if (ntohs(ip->ip_len) < IP_MIN_FR

Re: [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions

2022-10-18 Thread Conor Dooley
On Tue, Oct 18, 2022 at 05:55:14PM +0200, Rafał Miłecki wrote: > On 18.10.2022 17:50, Conor Dooley wrote: > > On Tue, Oct 18, 2022 at 05:42:01PM +0200, Rafał Miłecki wrote: > > > From: Rafał Miłecki > > > > > > U-Boot partition may contain subpartitions. For example Broadcom > > > includes enviro

Re: [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions

2022-10-18 Thread Conor Dooley
On Tue, Oct 18, 2022 at 05:42:01PM +0200, Rafał Miłecki wrote: > From: Rafał Miłecki > > U-Boot partition may contain subpartitions. For example Broadcom > includes environment data block in the middle of its U-Boot partition. > > This allows describing Broadcom's U-Boot env data and will allow

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Tom Rini
On Tue, Oct 18, 2022 at 08:19:23PM +0200, Pali Rohár wrote: > On Tuesday 18 October 2022 14:17:23 Tom Rini wrote: > > On Tue, Oct 18, 2022 at 08:06:27PM +0200, Pali Rohár wrote: > > > On Tuesday 18 October 2022 14:04:46 Tom Rini wrote: > > > > On Tue, Oct 18, 2022 at 08:03:31PM +0200, Pali Rohár wr

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Pali Rohár
On Tuesday 18 October 2022 14:17:23 Tom Rini wrote: > On Tue, Oct 18, 2022 at 08:06:27PM +0200, Pali Rohár wrote: > > On Tuesday 18 October 2022 14:04:46 Tom Rini wrote: > > > On Tue, Oct 18, 2022 at 08:03:31PM +0200, Pali Rohár wrote: > > > > On Tuesday 18 October 2022 19:48:27 Max Krummenacher wr

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Tom Rini
On Tue, Oct 18, 2022 at 08:06:27PM +0200, Pali Rohár wrote: > On Tuesday 18 October 2022 14:04:46 Tom Rini wrote: > > On Tue, Oct 18, 2022 at 08:03:31PM +0200, Pali Rohár wrote: > > > On Tuesday 18 October 2022 19:48:27 Max Krummenacher wrote: > > > > From: Max Krummenacher > > > > > > > > With L

Re: [PATCH] freescale: Remove Rajesh Bhagat MAINTAINERS

2022-10-18 Thread Sean Anderson
When sending out this email, I noticed that Ashish's (LS1088 board maintainer) email also bounces. --Sean On 10/18/22 2:12 PM, Sean Anderson wrote: > Rajesh's email bounces. Remove his email from all boards he maintains. > Fortunately, he has co-maintainers on most boards. I have taken the > libe

[PATCH] freescale: Remove Rajesh Bhagat MAINTAINERS

2022-10-18 Thread Sean Anderson
Rajesh's email bounces. Remove his email from all boards he maintains. Fortunately, he has co-maintainers on most boards. I have taken the liberty of volunteering Pramod to maintain the LS1012AFRDM, since he also maintains the LS1012AFRWY. Let me know if the board should be orphaned instead. Signe

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Pali Rohár
On Tuesday 18 October 2022 14:04:46 Tom Rini wrote: > On Tue, Oct 18, 2022 at 08:03:31PM +0200, Pali Rohár wrote: > > On Tuesday 18 October 2022 19:48:27 Max Krummenacher wrote: > > > From: Max Krummenacher > > > > > > With LTO enabled the U-Boot initial environment is no longer stored > > > in a

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Tom Rini
On Tue, Oct 18, 2022 at 08:03:31PM +0200, Pali Rohár wrote: > On Tuesday 18 October 2022 19:48:27 Max Krummenacher wrote: > > From: Max Krummenacher > > > > With LTO enabled the U-Boot initial environment is no longer stored > > in an easy accessible section in env/common.o. I.e. the section name

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Pali Rohár
On Tuesday 18 October 2022 19:48:27 Max Krummenacher wrote: > From: Max Krummenacher > > With LTO enabled the U-Boot initial environment is no longer stored > in an easy accessible section in env/common.o. I.e. the section name > changes from build to build, its content maybe compressed and it is

Re: [PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Tom Rini
On Tue, Oct 18, 2022 at 07:48:27PM +0200, Max Krummenacher wrote: > From: Max Krummenacher > > With LTO enabled the U-Boot initial environment is no longer stored > in an easy accessible section in env/common.o. I.e. the section name > changes from build to build, its content maybe compressed and

[PATCH] Makefile: fix u-boot-initial-env target if lto is enabled

2022-10-18 Thread Max Krummenacher
From: Max Krummenacher With LTO enabled the U-Boot initial environment is no longer stored in an easy accessible section in env/common.o. I.e. the section name changes from build to build, its content maybe compressed and it is annotated with additional data. For GCC adding the option '-ffat-lto

Re: [u-boot][PATCH v2 2/4] scripts: Makefile.spl: Enable memory drivers to be built for SPL

2022-10-18 Thread Tom Rini
On Thu, Oct 06, 2022 at 04:23:58PM +0300, Roger Quadros wrote: > We will need ti-gpmc driver for SPL. Allow memory drivers > do be built for SPL. > > Signed-off-by: Roger Quadros > --- > scripts/Makefile.spl | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/scripts/Makefile.spl b/scripts

Re: [PATCH 2/2] buildman: Add --allow-missing-binaries flag to build with BINMAN_ALLOW_MISSING=1

2022-10-18 Thread Simon Glass
Hi Tom, On Fri, 14 Oct 2022 at 10:44, Tom Rini wrote: > > On Fri, Oct 14, 2022 at 09:56:40AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Wed, 12 Oct 2022 at 08:52, Tom Rini wrote: > > > > > > On Wed, Oct 12, 2022 at 06:59:35AM -0600, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue

Re: [PATCH v2] blk: fix a couple of trivial documentation typos

2022-10-18 Thread Simon Glass
On Mon, 17 Oct 2022 at 01:35, Mattijs Korpershoek wrote: > > In some cases, the param variable is wrong, and in other cases we have > undocumented arguments. > > Fix the docs. > > Signed-off-by: Mattijs Korpershoek > --- > Changes in v2: > > * Don't edit blk_foreach_probe() comment as it's just r

Re: [PATCH v2 2/2] splash: get devpart from environment variable

2022-10-18 Thread Simon Glass
On Mon, 17 Oct 2022 at 02:33, Julien Masson wrote: > > By default several types of splash locations are supported and the > user can select one of them through environment var (splashsource). > > However the devpart is still hardcoded and we cannot change it from > the environment. > > This patch

Re: [PATCH v17 1/2] net: Add TCP protocol

2022-10-18 Thread Simon Glass
Hi PaulLiu, On Mon, 17 Oct 2022 at 01:03, PaulLiu wrote: > > Hi Simon, > > I think it is a bit hard for me to test it right now. It seems that we need > to setup a fake HTTP server? > It can be easily done by some python scripts but I'm not sure how to start. > Is there some example on testing t

Re: [PATCH v2 1/2] splash: support raw image from MMC

2022-10-18 Thread Simon Glass
On Mon, 17 Oct 2022 at 02:33, Julien Masson wrote: > > The user has now the choice to specify the splash location in the MMC > as a raw storage. > > Signed-off-by: Julien Masson > --- > > Changes in v2: > - splash_mmc_read_raw: return -EIO in case of errors > - splash_mmc_read_raw: use IS_ENABLED

Re: [PATCH] thermal: sandbox: Enable thermal uclass for sandbox64 variant

2022-10-18 Thread Simon Glass
On Tue, 18 Oct 2022 at 02:47, Sughosh Ganu wrote: > > The sandbox64 variant is currently building the sandbox thermal driver > but not the corresponding uclass driver. This results in the sandbox64 > variant not booting with the test device tree. Enable building the > thermal uclass for the sandbo

Re: [PATCH v14 12/15] test: dm: Add test cases for FWU Metadata uclass

2022-10-18 Thread Simon Glass
Hi, On Tue, 18 Oct 2022 at 05:44, Sughosh Ganu wrote: > > Add test cases for accessing the FWU Metadata on the sandbox > platform. The sandbox platform also uses the metadata access driver > for GPT partitioned block devices. > > The FWU feature will be tested on the sandbox64 variant with a raw

Re: [PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions

2022-10-18 Thread Rafał Miłecki
On 18.10.2022 17:50, Conor Dooley wrote: On Tue, Oct 18, 2022 at 05:42:01PM +0200, Rafał Miłecki wrote: From: Rafał Miłecki U-Boot partition may contain subpartitions. For example Broadcom includes environment data block in the middle of its U-Boot partition. This allows describing Broadcom's

[PATCH V3 2/2] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding

2022-10-18 Thread Rafał Miłecki
From: Rafał Miłecki Broadcom uses U-Boot for a lot of their bcmbca familiy chipsets. U-Boot stores its configuration in an environment data block. Such blocks are usually stored on flash as a separated partition at hardcoded address. Broadcom however decided to: 1. Store env data block inside U-

[PATCH V3 1/2] dt-bindings: mtd: partitions: u-boot: allow dynamic subpartitions

2022-10-18 Thread Rafał Miłecki
From: Rafał Miłecki U-Boot partition may contain subpartitions. For example Broadcom includes environment data block in the middle of its U-Boot partition. This allows describing Broadcom's U-Boot env data and will allow referencing its NVMEM cell in the future. Reg: 118f3fbe517f4 ("dt-bindings

Re: [PATCH v14 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-18 Thread Ilias Apalodimas
Hi Sughosh, [...] > +}; > + > +static int gpt_get_mdata_partitions(struct blk_desc *desc, > + uint mdata_parts[2]) > +{ > + int i, ret; > + u32 nparts; > + efi_guid_t part_type_guid; > + struct disk_partition info; > + const efi_guid_t fwu_mdat

Re: [PATCH V2] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding

2022-10-18 Thread Rob Herring
On Tue, Oct 18, 2022 at 9:10 AM Conor Dooley wrote: > > On Tue, Oct 18, 2022 at 03:58:38PM +0200, Rafał Miłecki wrote: > > On 18.10.2022 12:19, Conor Dooley wrote: > > > On Fri, Oct 14, 2022 at 04:09:40PM -0500, Rob Herring wrote: > > > > On Fri, 30 Sep 2022 18:36:31 +0200, Rafał Miłecki wrote: >

Please drop the sandbox.h stuff

2022-10-18 Thread Simon Glass
Hi Sughosh, I just noticed some GUIDs added to the include/configs/sandbox.h file. These files are being removed so we should not be adding to them. Please can you send a patch to drop this or move it elsewhere? Regards, Simon

Re: [PATCH v14 15/15] FWU: doc: Add documentation for the FWU feature

2022-10-18 Thread Ilias Apalodimas
On Tue, Oct 18, 2022 at 05:13:37PM +0530, Sughosh Ganu wrote: > Add documentation for the FWU Multi Bank Update feature. The document > describes the steps needed for setting up the platform for the > feature, as well as steps for enabling the feature on the platform. > > Signed-off-by: Sughosh Ga

Re: [PATCH V2] dt-bindings: nvmem: u-boot,env: add Broadcom's variant binding

2022-10-18 Thread Conor Dooley
On Tue, Oct 18, 2022 at 03:58:38PM +0200, Rafał Miłecki wrote: > On 18.10.2022 12:19, Conor Dooley wrote: > > On Fri, Oct 14, 2022 at 04:09:40PM -0500, Rob Herring wrote: > > > On Fri, 30 Sep 2022 18:36:31 +0200, Rafał Miłecki wrote: > > > > From: Rafał Miłecki > > > > > > > > Broadcom uses U-Boo

Re: [PATCH 6/6] sunxi: add CherryPi-F1C200s support

2022-10-18 Thread Andre Przywara
On Fri, 14 Oct 2022 01:04:18 -0400 Jesse Taube wrote: Hi Jesse, Giulio, thanks for having a look and for the testing! > On 10/13/22 05:53, Andre Przywara wrote: > > On 13/10/2022 09:33, Clément Péron wrote: > > > > Hi Clément, > > > >> On Wed, 12 Oct 2022 at 18:35, Andre Przywara > >> wro

Re: [PATCH V2] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding

2022-10-18 Thread Rafał Miłecki
On 18.10.2022 12:19, Conor Dooley wrote: On Fri, Oct 14, 2022 at 04:09:40PM -0500, Rob Herring wrote: On Fri, 30 Sep 2022 18:36:31 +0200, Rafał Miłecki wrote: From: Rafał Miłecki Broadcom uses U-Boot for a lot of their bcmbca familiy chipsets. U-Boot stores its configuration in an environment

Re: [PATCH V2] dt-bindings: nvmem: u-boot, env: add Broadcom's variant binding

2022-10-18 Thread Rob Herring
On Tue, Oct 18, 2022 at 5:19 AM Conor Dooley wrote: > > On Fri, Oct 14, 2022 at 04:09:40PM -0500, Rob Herring wrote: > > On Fri, 30 Sep 2022 18:36:31 +0200, Rafał Miłecki wrote: > > > From: Rafał Miłecki > > > > > > Broadcom uses U-Boot for a lot of their bcmbca familiy chipsets. U-Boot > > > sto

Re: Please pull u-boot-dm

2022-10-18 Thread Tom Rini
On Tue, Oct 18, 2022 at 05:34:28AM -0600, Simon Glass wrote: > Hi Tom, > > The following changes since commit 17196e446b6ea11220c3e08cebff839f999e0185: > > CI: Update to jammy-20221003-17Oct2022 tag (2022-10-17 11:10:32 -0400) > > are available in the Git repository at: > > git://git.denx.

Re: [PULL] Pull request for u-boot master / v2023.01-rc1 = u-boot-stm32-20221018

2022-10-18 Thread Tom Rini
lowing changes since commit 0e49f5c26caf9972137a474065afd4bdfe5ec062: > > Merge branch '2022-10-12-additional-fixes' (2022-10-12 15:12:42 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-stm.git > tags

Re: [PATCH v14 12/15] test: dm: Add test cases for FWU Metadata uclass

2022-10-18 Thread Ilias Apalodimas
On Tue, Oct 18, 2022 at 05:13:34PM +0530, Sughosh Ganu wrote: > Add test cases for accessing the FWU Metadata on the sandbox > platform. The sandbox platform also uses the metadata access driver > for GPT partitioned block devices. > > The FWU feature will be tested on the sandbox64 variant with a

Re: question about uboot mt7620 RAM_VERSION

2022-10-18 Thread Stefan Roese
Hi Kang-sen, (added Weijie Gao to Cc) On 17.10.22 14:11, Kang-sen Lu wrote: I am building uboot.bin for mt7620 router. I used start menu option 8, a hidden one choice, to load uboot.bin through tftp. The tftp transfer is OK. But when the new uboot starts, it hang. So which mainline U-Boot

[PATCH v14 15/15] FWU: doc: Add documentation for the FWU feature

2022-10-18 Thread Sughosh Ganu
Add documentation for the FWU Multi Bank Update feature. The document describes the steps needed for setting up the platform for the feature, as well as steps for enabling the feature on the platform. Signed-off-by: Sughosh Ganu --- Changes since V13: None doc/develop/uefi/fwu_updates.rst | 184

[PATCH v14 14/15] mkeficapsule: Add support for setting OEM flags in capsule header

2022-10-18 Thread Sughosh Ganu
Add support for setting OEM flags in the capsule header. As per the UEFI specification, bits 0-15 of the flags member of the capsule header can be defined per capsule GUID. The oemflags will be used for the FWU Multi Bank update feature, as specified by the Dependable Boot specification[1]. Bit 15

[PATCH v14 10/15] FWU: Add support for the FWU Multi Bank Update feature

2022-10-18 Thread Sughosh Ganu
The FWU Multi Bank Update feature supports updation of firmware images to one of multiple sets(also called banks) of images. The firmware images are clubbed together in banks, with the system booting images from the active bank. Information on the images such as which bank they belong to is stored

[PATCH v14 11/15] FWU: cmd: Add a command to read FWU metadata

2022-10-18 Thread Sughosh Ganu
Add a command to read the metadata as specified in the FWU specification and print the fields of the metadata. Signed-off-by: Sughosh Ganu Reviewed-by: Ilias Apalodimas Reviewed-by: Etienne Carriere --- Changes since V13: * Call fwu_check_mdata_validity() instead of fwu_mdata_check() cmd/Kcon

[PATCH v14 12/15] test: dm: Add test cases for FWU Metadata uclass

2022-10-18 Thread Sughosh Ganu
Add test cases for accessing the FWU Metadata on the sandbox platform. The sandbox platform also uses the metadata access driver for GPT partitioned block devices. The FWU feature will be tested on the sandbox64 variant with a raw capsule. Remove the FIT capsule testing from sandbox64 defconfig --

[PATCH v14 13/15] mkeficapsule: Add support for generating empty capsules

2022-10-18 Thread Sughosh Ganu
The Dependable Boot specification[1] describes the structure of the firmware accept and revert capsules. These are empty capsules which are used for signalling the acceptance or rejection of the updated firmware by the OS. Add support for generating these empty capsules. [1] - https://git.codelin

[PATCH v14 09/15] FWU: Add boot time checks as highlighted by the FWU specification

2022-10-18 Thread Sughosh Ganu
The FWU Multi Bank Update specification requires the Update Agent to carry out certain checks at the time of platform boot. The Update Agent is the component which is responsible for updating the firmware components and maintaining and keeping the metadata in sync. The spec requires that the Updat

[PATCH v14 07/15] FWU: STM32MP1: Add support to read boot index from backup register

2022-10-18 Thread Sughosh Ganu
The FWU Multi Bank Update feature allows the platform to boot the firmware images from one of the partitions(banks). The first stage bootloader(fsbl) passes the value of the boot index, i.e. the bank from which the firmware images were booted from to U-Boot. On the STM32MP157C-DK2 board, this value

[PATCH v14 06/15] FWU: Add helper functions for accessing FWU metadata

2022-10-18 Thread Sughosh Ganu
Add weak functions for getting the update index value and dfu alternate number needed for FWU Multi Bank update functionality. The current implementation for getting the update index value is for platforms with 2 banks. If a platform supports more than 2 banks, it can implement it's own function.

[PATCH v14 08/15] event: Add an event for main_loop

2022-10-18 Thread Sughosh Ganu
Add an event type EVT_MAIN_LOOP that can be used for registering events that need to be run after the platform has been initialised and before the main_loop function is called. Signed-off-by: Sughosh Ganu Reviewed-by: Simon Glass Reviewed-by: Ilias Apalodimas --- Changes since V13: None commo

[PATCH v14 02/15] FWU: Add FWU metadata structure and driver for accessing metadata

2022-10-18 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, which is stored on a dedicated partition. Add the metadata structure, and a driver model uclass which provides functions to access the metadata. These are generic API's, and implement

[PATCH v14 05/15] stm32mp1: Add image information for capsule updates

2022-10-18 Thread Sughosh Ganu
Enabling capsule update functionality on the platform requires populating information on the images that are to be updated using the functionality. Do so for the DK2 board. Signed-off-by: Sughosh Ganu Reviewed-by: Patrick Delaunay Reviewed-by: Ilias Apalodimas Reviewed-by: Etienne Carriere ---

[PATCH v14 03/15] FWU: Add FWU metadata access driver for GPT partitioned block devices

2022-10-18 Thread Sughosh Ganu
In the FWU Multi Bank Update feature, the information about the updatable images is stored as part of the metadata, on a separate partition. Add a driver for reading from and writing to the metadata when the updatable images and the metadata are stored on a block device which is formatted with GPT

[PATCH v14 04/15] stm32mp1: Add a node for the FWU metadata device

2022-10-18 Thread Sughosh Ganu
The FWU metadata structure is accessed through the driver model interface. On the stm32mp157c dk2 and ev1 boards, the FWU metadata is stored on the uSD card. Add the fwu-mdata node on the u-boot specifc dtsi file for accessing the metadata structure. Signed-off-by: Sughosh Ganu Reviewed-by: Patri

[PATCH v14 01/15] dt/bindings: Add bindings for GPT based FWU Metadata storage device

2022-10-18 Thread Sughosh Ganu
Add bindings needed for accessing the FWU metadata partitions. These include the compatible string which point to the access method and the actual device which stores the FWU metadata. The current patch adds basic bindings needed for accessing the metadata structure on GPT partitioned block device

[PATCH v14 00/15] FWU: Add FWU Multi Bank Update feature support

2022-10-18 Thread Sughosh Ganu
The patchset adds support for the FWU Multi Bank Update[1] feature. Certain aspects of the Dependable Boot[2] specification have also been implemented. The FWU multi bank update feature is used for supporting multiple sets(also called banks) of firmware image(s), allowing the platform to boot fr

Re: [PATCH v1] rockchip: phycore_rk3288: remove phycore_init() function

2022-10-18 Thread Wadim Egorov
Hi Johan, thanks for this Patch. You were faster with the patch. I hope the size reduction is enough to make it buildable with Kevers patch. Am 18.10.22 um 13:25 schrieb Johan Jonker: > The phycore_rk3288 board has a SPL size problem, > so remove phycore_init() function to stay within the limit

Please pull u-boot-dm

2022-10-18 Thread Simon Glass
Hi Tom, The following changes since commit 17196e446b6ea11220c3e08cebff839f999e0185: CI: Update to jammy-20221003-17Oct2022 tag (2022-10-17 11:10:32 -0400) are available in the Git repository at: git://git.denx.de/u-boot-dm.git tags/dm-pull-18oct22 for you to fetch changes up to ae0bf2214b

[PULL] Pull request for u-boot master / v2023.01-rc1 = u-boot-stm32-20221018

2022-10-18 Thread Patrice CHOTARD
2:42 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-stm.git tags/u-boot-stm32-20221018 for you to fetch changes up to c37a6684818d41051c54f814863429536aa972be: stm32mp: fix compilation issue with DEBUG_UART (2022-10-18 08:4

Re: [PATCH] dm: regmap: Disable range checks in SPL

2022-10-18 Thread Simon Glass
On Sat, 15 Oct 2022 at 12:40, Simon Glass wrote: > > Hi, > > On Sat, 15 Oct 2022 at 08:39, Simon Glass wrote: > > > > A recent change to regmap breaks building of phycore-rk3288 for me. The > > difference is only a few bytes. Somehow CI seems to pass, even though it > > fails when I run docker lo

[PATCH v1] rockchip: phycore_rk3288: remove phycore_init() function

2022-10-18 Thread Johan Jonker
The phycore_rk3288 board has a SPL size problem, so remove phycore_init() function to stay within the limits. Signed-off-by: Johan Jonker --- arch/arm/mach-rockchip/rk3288/Kconfig| 1 - board/phytec/phycore_rk3288/phycore-rk3288.c | 46 2 files changed, 47 deletions

question about uboot mt7620 RAM_VERSION

2022-10-18 Thread Kang-sen Lu
I am building uboot.bin for mt7620 router. I used start menu option 8, a hidden one choice, to load uboot.bin through tftp. The tftp transfer is OK. But when the new uboot starts, it hang. I am wondering if the RAM_VERSION for mt7620 still works. Thanks. Kang-sen

Re: [PATCH v2 3/3] arm: dts: rockchip: rk3288: partial sync from Linux

2022-10-18 Thread Johan Jonker
Hi Kever, In the past Wadim in a private messege replied: " FYI: The SPL code phycore_init() from phycore-rk3288.c can be removed. This should reduce the SPL size. Feel free to remove it if you run into SPL size limits. " Removal reduzes size from 32,720 to 32,492. Is that enough? What optio

Re: [PATCH V2] dt-bindings: nvmem: u-boot,env: add Broadcom's variant binding

2022-10-18 Thread Conor Dooley
On Fri, Oct 14, 2022 at 04:09:40PM -0500, Rob Herring wrote: > On Fri, 30 Sep 2022 18:36:31 +0200, Rafał Miłecki wrote: > > From: Rafał Miłecki > > > > Broadcom uses U-Boot for a lot of their bcmbca familiy chipsets. U-Boot > > stores its configuration in an environment data block. > > > > Such

Re: [PATCH 4/6] sunxi: f1c100: add UART1 support

2022-10-18 Thread Andre Przywara
On 12/10/2022 22:42, Jernej Škrabec wrote: Hi Jernej, many thanks for the review of this series, that's much appreciated! Dne sreda, 12. oktober 2022 ob 18:34:56 CEST je Andre Przywara napisal(a): Some boards use UART1 for its debug UART, so define the pins for the SPL and the pinmux name and

[PATCH] thermal: sandbox: Enable thermal uclass for sandbox64 variant

2022-10-18 Thread Sughosh Ganu
The sandbox64 variant is currently building the sandbox thermal driver but not the corresponding uclass driver. This results in the sandbox64 variant not booting with the test device tree. Enable building the thermal uclass for the sandbox64 variant as well. Also enable the temperature command to

Re: [PATCH] thermal: sandbox: Don't build sandbox thermal driver for sandbox64

2022-10-18 Thread Sughosh Ganu
hi, On Tue, 18 Oct 2022 at 13:47, Robert Marko wrote: > > > > On Tue, Oct 18, 2022 at 10:04 AM Sughosh Ganu wrote: >> >> The sandbox64 defconfig does not enable the thermal uclass, but builds >> the thermal sandbox driver. This breaks booting the sandbox64 variant >> with the test device tree. D

Re: Unable to boot sandbox64 with test dtb

2022-10-18 Thread Robert Marko
On Tue, Oct 18, 2022 at 9:40 AM Sughosh Ganu wrote: > hi, > Since "1fad2cb852 thermal: add sandbox driver", sandbox64 does not > boot with the test device tree. Trying to boot with the -T option > results in a crash. > > Creating new bloblist size 400 at c000 > Error binding driver 'thermal-sandb

Re: [PATCH] thermal: sandbox: Don't build sandbox thermal driver for sandbox64

2022-10-18 Thread Robert Marko
On Tue, Oct 18, 2022 at 10:04 AM Sughosh Ganu wrote: > The sandbox64 defconfig does not enable the thermal uclass, but builds > the thermal sandbox driver. This breaks booting the sandbox64 variant > with the test device tree. Do not build the driver for the sandbox64 > variant. > Hi, It would

[PATCH] thermal: sandbox: Don't build sandbox thermal driver for sandbox64

2022-10-18 Thread Sughosh Ganu
The sandbox64 defconfig does not enable the thermal uclass, but builds the thermal sandbox driver. This breaks booting the sandbox64 variant with the test device tree. Do not build the driver for the sandbox64 variant. Signed-off-by: Sughosh Ganu --- drivers/thermal/Makefile | 2 ++ 1 file chang

Unable to boot sandbox64 with test dtb

2022-10-18 Thread Sughosh Ganu
hi, Since "1fad2cb852 thermal: add sandbox driver", sandbox64 does not boot with the test device tree. Trying to boot with the -T option results in a crash. Creating new bloblist size 400 at c000 Error binding driver 'thermal-sandbox': -96 Some drivers failed to bind initcall sequence 55d97913