Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-08 Thread Ilias Apalodimas
Hi Etienne, [...] > > > > + > > > > + /* And now the replica */ > > > > + ret = gpt_write_metadata_partition(desc, metadata, > > > secondary_mpart); > > > > + if (ret < 0) { > > > > + log_err("Updating secondary metadata partition failed\n"); > > > > + return

Re: [PATCH v1 1/1] support rsa3072

2021-12-08 Thread Jamin Lin
The 12/08/2021 14:48, Tom Rini wrote: > On Wed, Dec 08, 2021 at 06:36:21PM +0800, Jamin Lin wrote: > > > This patch set support rsa3072. > > > > Signed-off-by: Jamin Lin > > --- > > common/image-sig.c | 7 +++ > > include/u-boot/rsa.h | 1 + > > 2 files changed, 8 insertions(+) > > > >

[PATCH v2] rsa: adds rsa3072 algorithm

2021-12-08 Thread Jamin Lin
Add to support rsa 30272 bits algorithm in tools for image sign at host side and adds rsa 3027 bits verification in the image binary. Signed-off-by: Jamin Lin wq --- include/u-boot/rsa.h | 1 + lib/rsa/rsa-verify.c | 6 ++ tools/image-sig-host.c | 7 +++ 3 files changed, 14

[PATCH v2 0/1] rsa: adds rsa3072 algorithm

2021-12-08 Thread Jamin Lin
Add to support rsa 30272 bits algorithm in tools for make-image signing at host side and add rsa 3027 bits verification in the image binary. v2: - update to send a single patch *** BLURB HERE *** Jamin Lin (1): rsa: adds rsa3072 algorithm include/u-boot/rsa.h | 1 + lib/rsa/rsa-verify.c

Re: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Javad Rahimi
On Wed, Dec 8, 2021 at 9:13 PM Andre Przywara wrote: > > On Wed, 8 Dec 2021 20:48:54 +0330 > Javad Rahimi wrote: > > > On Wed, Dec 8, 2021 at 8:33 PM Andre Przywara > > wrote: > > > > > > On Wed, 8 Dec 2021 19:14:22 +0330 > > > Javad Rahimi wrote: > > > > > > > On Wed, Dec 8, 2021 at 6:05 PM

[PATCH] dm: fix an 'undefined' error in some macros

2021-12-08 Thread AKASHI Takahiro
Due to a non-existing parameter name in macro's, use of those macro's will cause a compiler error of "undefined reference". Unfortunately, dm test doesn't fail because a wrong name ("", hence it is accidentally a valid name in the context of a caller site) is passed on. Signed-off-by: AKASHI

Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-08 Thread Simon Glass
Hi Etienne, On Wed, 8 Dec 2021 at 07:18, Etienne Carriere wrote: > > Hi Sughosh, Ilias (and all), > > On Thu, 2 Dec 2021 at 08:43, Sughosh Ganu wrote: > > > > hi Ilias, > > > > On Wed, 1 Dec 2021 at 17:56, Ilias Apalodimas > > wrote: > > > > > Hi Sughosh, > > > > > > On Thu, Nov 25, 2021 at

Re: [RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-08 Thread Simon Glass
Hi Sughosh, On Thu, 25 Nov 2021 at 00:03, Sughosh Ganu wrote: > > 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 functions for reading from and writing to the metadata > when the updatable

Re: [PATCH 1/4] rockchip: gru: Set up SoC IO domain registers

2021-12-08 Thread Simon Glass
Hi Alper, On Tue, 7 Dec 2021 at 13:31, Alper Nebi Yasak wrote: > > On 03/12/2021 06:31, Simon Glass wrote: > > On Thu, 25 Nov 2021 at 10:40, Alper Nebi Yasak > > wrote: > >> The RK3399 SoC needs to know the voltage value provided by some > >> regulators, which is done by setting relevant

[next 5/5] clk: ast2600: Revise MII interface delay

2021-12-08 Thread Dylan Hung
The clock delay of the RMII/RGMII interface is controlled by SCU340~35C. These values are obtained by measurement and experiments so we simply use macro to define them. Signed-off-by: Dylan Hung --- drivers/clk/aspeed/clk_ast2600.c | 10 +- 1 file changed, 5 insertions(+), 5

[next 3/5] ARM: dts: ast2600: Add MDIO devices

2021-12-08 Thread Dylan Hung
There are 4 MDIO bus controllers in AST2600 SOC. Each of them can connect to one or more PHY chips and is flexible to work with the 4 MAC devices in AST2600. On AST2600 EVB, MDIO 0,1,2,3 connect to the PHY chips used by MAC 0,1,2,3 respectively. Signed-off-by: Dylan Hung ---

[next 4/5] configs: ast2600: enable DM_MDIO and MDIO driver

2021-12-08 Thread Dylan Hung
Enable DM_MDIO and Aspeed MDIO driver for AST2600 EVB. Signed-off-by: Dylan Hung --- configs/evb-ast2600_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/evb-ast2600_defconfig b/configs/evb-ast2600_defconfig index 5f00d6a944a6..21af905a047a 100644 ---

[next 2/5] net: ftgmac100: Add Aspeed AST2600 support

2021-12-08 Thread Dylan Hung
Add support of the MAC controller of Aspeed AST2600 SOC. The MAC controller is the same with AST2500, except it has stand-alone MDIO hardware block. Signed-off-by: Dylan Hung --- drivers/net/ftgmac100.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ftgmac100.c

[next 1/5] net: ftgmac100: Add DM_MDIO support

2021-12-08 Thread Dylan Hung
Add support for DM_MDIO to connect to PHY. For the systems that have a stand-alone MDIO hardware block, enable CONFIG_DM_MDIO to use driver model for MDIO devices. Signed-off-by: Dylan Hung --- drivers/net/ftgmac100.c | 20 +++- 1 file changed, 15 insertions(+), 5 deletions(-)

[next 0/5] Add support of Ethernet for Aspeed AST2600 SoC

2021-12-08 Thread Dylan Hung
This patch series adds support of Ethernet for Aspeed AST2600 SoC. There are 4 MAC controllers (ftgmac100) in AST2600 that can support 10/100/1000T Ethernet. 4 MDIO controllers are used to connect to PHY chips. The MDIO controller has stand-alone hardware block so we introduce DM_MDIO so that we

Re: [RFC PATCH 01/10] GPT: Add function to get gpt header and partition entries

2021-12-08 Thread AKASHI Takahiro
On Wed, Dec 08, 2021 at 01:10:51PM +0530, Sughosh Ganu wrote: > hi Patrick, > > On Tue, 7 Dec 2021 at 21:05, Patrick DELAUNAY > wrote: > > > Hi Sugosh > > > > On 11/25/21 8:01 AM, Sughosh Ganu wrote: > > > > Add function to get the gpt header and partition entries filled. These > > > > would be

Re: [PATCH 1/5] net: ravb: Support multiple clocks

2021-12-08 Thread Ramon Fried
On Mon, Dec 6, 2021 at 6:29 PM Adam Ford wrote: > > The RZ/G2 series uses an external clock as a reference to the AVB. > If this clock is controlled by an external programmable clock, > it must be requested by the consumer or it will not turn on. > In order to do this, update the driver to use

Re: [PATCH v2] net: zynq: Add support for GEM reset

2021-12-08 Thread Ramon Fried
On Mon, Dec 6, 2021 at 5:25 PM Michal Simek wrote: > > Perform reset before core initialization. > Standard flow which close to 99% users are using getting all IPs out of > reset that there is no need to reset IP again. This is because of all low > level initialization is done in previous

Pull request: u-boot-sunxi/master fixes for 2022.01

2021-12-08 Thread Andre Przywara
Hi Tom, please pull those two fixes from the sunxi tree. This fixes two regressions: eMMC operation on boards with WiFi (so using three MMC devices), and a repeated wrong error message in USB gadget mode (fastboot, ums). Thanks, Andre === The following changes since

Re: [PATCH] sunxi: dts: Fix typoed eMMC check

2021-12-08 Thread Icenowy Zheng
在 2021-12-06星期一的 01:54 +,Andre Przywara写道: > Commit 03510bf62149 ("sunxi: only include alias for eMMC when mmc2 > used") protected the eMMC alias in U-Boot's DT stub the with the > associated Kconfig symbol, but was actually using the wrong name. > > Fix the name of the symbol to match what's

Re: [RFC PATCH v3 8/8] tools: gen_pre_load_header.sh: initial import

2021-12-08 Thread Philippe REYNES
Hi Rasmus, First, thanks for the feedback. Le 06/12/2021 à 09:23, Rasmus Villemoes a écrit : On 17/11/2021 18.52, Philippe Reynes wrote: This commit adds a script gen_pre_load_header.sh that generate the header used by the image pre-load stage. Signed-off-by: Philippe Reynes ---

Re: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Andre Przywara
On Wed, 8 Dec 2021 20:48:54 +0330 Javad Rahimi wrote: > On Wed, Dec 8, 2021 at 8:33 PM Andre Przywara wrote: > > > > On Wed, 8 Dec 2021 19:14:22 +0330 > > Javad Rahimi wrote: > > > > > On Wed, Dec 8, 2021 at 6:05 PM Andre Przywara > > > wrote: > > > > > > > > On Wed, 8 Dec 2021 15:25:54

Re: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Javad Rahimi
On Wed, Dec 8, 2021 at 8:33 PM Andre Przywara wrote: > > On Wed, 8 Dec 2021 19:14:22 +0330 > Javad Rahimi wrote: > > > On Wed, Dec 8, 2021 at 6:05 PM Andre Przywara > > wrote: > > > > > > On Wed, 8 Dec 2021 15:25:54 +0100 > > > Frank Wunderlich wrote: > > > > > > Hi, > > > > > > > you should

Re: [PATCH v7 08/31] arm: vexpress: Add a devicetree files for juno

2021-12-08 Thread Tom Rini
On Wed, Dec 08, 2021 at 04:59:14PM +, Andre Przywara wrote: > On Mon, 6 Dec 2021 17:11:46 -0700 > Simon Glass wrote: > > Hi, > > > Sync these file, obtained from Linux v5.15. > > So just for the records: > Here you have the same problem as with the other platforms: There are > three

Re: [PATCH v7 08/31] arm: vexpress: Add a devicetree files for juno

2021-12-08 Thread Andre Przywara
On Mon, 6 Dec 2021 17:11:46 -0700 Simon Glass wrote: Hi, > Sync these file, obtained from Linux v5.15. So just for the records: Here you have the same problem as with the other platforms: There are three different revisions of the board, all out in the wild and heavily used. The platform

[PATCH 2/2] fdtgrep: Handle an empty output tree

2021-12-08 Thread Simon Glass
In strange cases it is possible for fdtgrep to find nothing to output. Typically this means that the resulting SPL device tree is not going to allow anything to boot, but at present the tree is actually invalid, since it only has an END tag in the struct region. The FDT spec requires at least a

[PATCH 1/2] fdtgrep: Correct alignment of struct section

2021-12-08 Thread Simon Glass
When outputting a devicetree we should not align the struct section to a 16-byte boundary. The normal position is fine, which is 8-byte aligned. This avoids leaving adding 8 extra zero bytes in the output tree in the case where the reserved section is empty (i.e has 16 zero bytes).

Re: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Javad Rahimi
On Wed, Dec 8, 2021 at 6:05 PM Andre Przywara wrote: > > On Wed, 8 Dec 2021 15:25:54 +0100 > Frank Wunderlich wrote: > > Hi, > > > you should add maintainer email for your patch > > > > $ scripts/get_maintainer.pl board/sunxi/board.c > > Jagan Teki (maintainer:ARM SUNXI) > > Andre Przywara

Re: [PATCH v1 1/1] support rsa3072

2021-12-08 Thread Tom Rini
On Wed, Dec 08, 2021 at 06:36:21PM +0800, Jamin Lin wrote: > This patch set support rsa3072. > > Signed-off-by: Jamin Lin > --- > common/image-sig.c | 7 +++ > include/u-boot/rsa.h | 1 + > 2 files changed, 8 insertions(+) > > diff --git a/common/image-sig.c b/common/image-sig.c > index

[PATCH v3] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Javad Rahimi
This feature makes it possible to assign one of LED1(PH20) and LED2(PH21) to BOOT process LED. User should activates the "Enable status LED API" in "Device Drivers -> LED Support" Signed-off-by: Javad Rahimi --- This is my first contributation in open source world. I'm sorry if I have mistakes

Re: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Andre Przywara
On Wed, 8 Dec 2021 15:25:54 +0100 Frank Wunderlich wrote: Hi, > you should add maintainer email for your patch > > $ scripts/get_maintainer.pl board/sunxi/board.c > Jagan Teki (maintainer:ARM SUNXI) > Andre Przywara (maintainer:ARM SUNXI) > u-boot@lists.denx.de (open list) Thanks Frank! >

[PATCH] fw_setenv: Unbreak fw_setenv caused by buggy MEMISLOCKED use

2021-12-08 Thread Joakim Tjernlund
Commit "fw_setenv: lock the flash only if it was locked before" checks for Locked status with uninitialized erase data. Address by moving the test for MEMISLOCKED. Fixes: 8a726b852502 ("fw_setenv: lock the flash only if it was locked before") Signed-off-by: Joakim Tjernlund ---

Aw: [PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Frank Wunderlich
Hi, you should add maintainer email for your patch $ scripts/get_maintainer.pl board/sunxi/board.c Jagan Teki (maintainer:ARM SUNXI) Andre Przywara (maintainer:ARM SUNXI) u-boot@lists.denx.de (open list) regards Frank > Gesendet: Mittwoch, 08. Dezember 2021 um 15:22 Uhr > Von: "Javad

[PATCH v2] Cubieboard2:SUN7I:Add LED BOOT support

2021-12-08 Thread Javad Rahimi
This feature makes it possible to assign one of LED1(PH20) and LED2(PH21) to BOOT process LED. User should activates the "Enable status LED API" in "Device Drivers -> LED Support" Signed-off-by: Javad Rahimi --- This is my first contributation in open source world. I'm sorry if I have mistakes

Re: [RESEND RFC PATCH 04/10] FWU: Add metadata access functions for GPT partitioned block devices

2021-12-08 Thread Etienne Carriere
Hi Sughosh, Ilias (and all), On Thu, 2 Dec 2021 at 08:43, Sughosh Ganu wrote: > > hi Ilias, > > On Wed, 1 Dec 2021 at 17:56, Ilias Apalodimas > wrote: > > > Hi Sughosh, > > > > On Thu, Nov 25, 2021 at 12:42:56PM +0530, Sughosh Ganu wrote: > > > In the FWU Multi Bank Update feature, the

Re: [RFC PATCH 03/10] FWU: Add metadata structure and functions for accessing metadata

2021-12-08 Thread Etienne Carriere
Hi Sughosh, On Thu, 25 Nov 2021 at 08:03, Sughosh Ganu wrote: > > 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 functions to > access the metadata.

Re: [RFC PATCH 02/10] stm32mp: dfu: Move the ram partitions to the end of the dfu_alt_info variable

2021-12-08 Thread Etienne Carriere
On Thu, 25 Nov 2021 at 08:03, Sughosh Ganu wrote: > > With the FWU multi bank update feature enabled, the dfu alt no that is > used to identify the partition to be updated is derived at runtime and > should match the partition number on the storage media. Achieve this > by moving the ram

[PATCH v1 1/1] support rsa3072

2021-12-08 Thread Jamin Lin
This patch support rsa3072. Signed-off-by: Jamin Lin --- include/u-boot/rsa.h | 1 + lib/rsa/rsa-verify.c | 6 ++ tools/image-sig-host.c | 7 +++ 3 files changed, 14 insertions(+) diff --git a/include/u-boot/rsa.h b/include/u-boot/rsa.h index 7556aa5b4b..bb56c2243c 100644 ---

[PATCH v1 0/1] support rsa3072

2021-12-08 Thread Jamin Lin
This patch set supports rsa3072. Jamin Lin (1): support rsa3072 include/u-boot/rsa.h | 1 + lib/rsa/rsa-verify.c | 6 ++ tools/image-sig-host.c | 7 +++ 3 files changed, 14 insertions(+) -- 2.17.1

[PATCH v1 1/1] support rsa3072

2021-12-08 Thread Jamin Lin
This patch set support rsa3072. Signed-off-by: Jamin Lin --- common/image-sig.c | 7 +++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+) diff --git a/common/image-sig.c b/common/image-sig.c index e4bbac55c1..c94854ef8b 100644 --- a/common/image-sig.c +++ b/common/image-sig.c

[PATCH v1 0/1] support rsa3072

2021-12-08 Thread Jamin Lin
support rsa3072 Jamin Lin (1): support rsa3072 common/image-sig.c | 7 +++ include/u-boot/rsa.h | 1 + 2 files changed, 8 insertions(+) -- 2.17.1

Aw: Re: debugging crash for arm64

2021-12-08 Thread Frank Wunderlich
Hi, thanks for answer, but it seems it is there arch/arm/mach-rockchip/rk3568/rk3568.c:50: .attrs = PTE_BLOCK_MEMTYPE(MT_NORMAL) | arch/arm/mach-rockchip/rk3568/rk3568.c:56: .attrs = PTE_BLOCK_MEMTYPE(MT_DEVICE_NGNRNE) | arch/arm/mach-rockchip/rk3568/rk3568.c:63:

Re: debugging crash for arm64

2021-12-08 Thread Joakim Tjernlund
Just had the same and you are probably missing to map that mem area to the MMU. grep for PTE_BLOCK_MEMTYPE in board and you will see how to. That said, I think the error msg in u-boot can be a bit better, some SEGV msg perhaps. Jocke From: U-Boot on

debugging crash for arm64

2021-12-08 Thread Frank Wunderlich
Hi, i got a crash on uboot while running reset-command in rk3568 board (bananapi-r2 pro, currently not in upstream). maybe a callback is missing (e.g. reset_cpu())?? i tried to analyse it using the documentation: https://u-boot.readthedocs.io/en/latest/develop/crash_dumps.html Resetting CPU

Re: [RFC PATCH 05/10] FWU: stm32mp1: Add helper functions for accessing metadata

2021-12-08 Thread Sughosh Ganu
hi Patrick, On Tue, 7 Dec 2021 at 20:03, Patrick DELAUNAY wrote: > Hi Sanghosh > > On 11/25/21 8:01 AM, Sughosh Ganu wrote: > > Add helper functions needed for accessing the metadata which contains > > information on the updatable images. These functions have been added > > for the

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

2021-12-08 Thread ZHIZHIKIN Andrey
Hello Sahil, > -Original Message- > From: Sahil Malhotra (OSS) > Sent: Wednesday, December 8, 2021 7:12 AM > To: Michael Walle ; Sahil Malhotra (OSS) > > Cc: Clément Faure ; Gaurav Jain ; > Pankaj Gupta ; Priyanka Jain ; u- > b...@lists.denx.de; Varun Sethi ; Ye Li ; > ZHIZHIKIN Andrey

When is the console connected during spl run?

2021-12-08 Thread Chan Kim
Hello experts, I was following u-boot-spl program on our board hoping somewhere serial port will be initialized and also the console using the serial port. In our FPGA board, there is a small 8 BM on-chip memory in place of DDR and I can use two 51kB sram on-chip. The spl program is loaded on

Re: [PATCH 0/4] rockchip: Improve support for Bob chromebook and add support for Kevin

2021-12-08 Thread Peter Robinson
On Fri, Dec 3, 2021 at 8:13 PM Simon Glass wrote: > > Hi Peter, > > On Fri, 3 Dec 2021 at 05:20, Peter Robinson wrote: > > > > On Fri, Dec 3, 2021 at 3:32 AM Simon Glass wrote: > > > > > > Hi Peter, > > > > > > On Wed, 1 Dec 2021 at 07:23, Peter Robinson wrote: > > > > > > > > On Thu, Nov 25,