Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread AKASHI Takahiro
Heinrich, On Wed, Nov 25, 2020 at 07:42:31AM +0100, Heinrich Schuchardt wrote: > Am 25. November 2020 02:05:06 MEZ schrieb AKASHI Takahiro > : > >Heinrich, > > > >On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > >> On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > >> > This is a

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread AKASHI Takahiro
On Wed, Nov 25, 2020 at 12:01:11PM +0530, Sughosh Ganu wrote: > Takahiro, > > On Wed, 25 Nov 2020 at 10:47, AKASHI Takahiro > wrote: > > > Sughosh, > > > > On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > > > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > > > This is a uti

Re: [PATCH v2] ARM: stm32: Use firmware property instead of loadables

2020-11-24 Thread Michal Simek
On 24. 11. 20 23:34, Marek Vasut wrote: > On 11/23/20 9:18 AM, Michal Simek wrote: >> Hi Marek, > > Hi, > >> st 21. 10. 2020 v 14:31 odesílatel Marek Vasut napsal: >>> >>> On 10/21/20 2:05 PM, Patrice CHOTARD wrote: Hi Patrick On 10/5/20 11:37 AM, Michal Simek wrote: > Ther

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread Heinrich Schuchardt
Am 25. November 2020 02:05:06 MEZ schrieb AKASHI Takahiro : >Heinrich, > >On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: >> On 11/17/20 1:28 AM, AKASHI Takahiro wrote: >> > This is a utility mainly for test purpose. >> >mkeficapsule -f: create a test capsule file for FIT

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread Sughosh Ganu
Takahiro, On Wed, 25 Nov 2020 at 10:47, AKASHI Takahiro wrote: > Sughosh, > > On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > > This is a utility mainly for test purpose. > > >mkeficapsule -f: create a test capsule file

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread AKASHI Takahiro
Sughosh, On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > This is a utility mainly for test purpose. > >mkeficapsule -f: create a test capsule file for FIT image firmware > > > > Having said that, you will be able to custom

[PATCH] watchdog: sbsa: timeout should be in "millisecond"

2020-11-24 Thread Qiang Zhao
From: Zhao Qiang timeout should be in "millisecond" instead of second, so divided it by 1000 when calculate the load value. Signed-off-by: Zhao Qiang --- drivers/watchdog/sbsa_gwdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/sbsa_gwdt.c b/drivers/watc

[PATCH 1/1] sandbox: Make tracing totally depends on Kconfig

2020-11-24 Thread Leo Liang
With this patch, 'make sandbox_defconfig', choose tracing support option then 'make', would be enough when trying tracing feature with sandbox. No need to add FTRACE=1 Signed-off-by: Leo Yu-Chi Liang --- config.mk | 2 +- include/configs/sandbox.h | 7 --- lib/Kco

Re: [PATCH v9 00/11] efi_loader: add capsule update support

2020-11-24 Thread Tom Rini
On Wed, Nov 25, 2020 at 03:07:08AM +0100, Heinrich Schuchardt wrote: > On 11/25/20 12:32 AM, Tom Rini wrote: > > On Tue, Nov 24, 2020 at 10:37:10PM +0100, Heinrich Schuchardt wrote: > > > On 11/17/20 1:27 AM, AKASHI Takahiro wrote: > > > > Summary > > > > === > > > > 'UpdateCapsule' is one of r

Re: [PATCH v9 04/11] efi_loader: capsule: support firmware update

2020-11-24 Thread AKASHI Takahiro
Heinrich, On Wed, Nov 25, 2020 at 02:00:22AM +0100, Heinrich Schuchardt wrote: > On 11/17/20 1:27 AM, AKASHI Takahiro wrote: > > A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID, > > is handled as a firmware update object. > > What efi_update_capsule() basically does is to l

Re: [PATCH v9 00/11] efi_loader: add capsule update support

2020-11-24 Thread Heinrich Schuchardt
On 11/25/20 12:32 AM, Tom Rini wrote: On Tue, Nov 24, 2020 at 10:37:10PM +0100, Heinrich Schuchardt wrote: On 11/17/20 1:27 AM, AKASHI Takahiro wrote: Summary === 'UpdateCapsule' is one of runtime services defined in UEFI specification and its aim is to allow a caller (OS) to pass informati

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread AKASHI Takahiro
On Wed, Nov 25, 2020 at 10:05:06AM +0900, AKASHI Takahiro wrote: > Heinrich, > > On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > > This is a utility mainly for test purpose. > > >mkeficapsule -f: create a test capsule fil

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread AKASHI Takahiro
Heinrich, On Tue, Nov 24, 2020 at 09:23:50PM +0100, Heinrich Schuchardt wrote: > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > This is a utility mainly for test purpose. > >mkeficapsule -f: create a test capsule file for FIT image firmware > > > > Having said that, you will be able to custo

Re: [PATCH v9 04/11] efi_loader: capsule: support firmware update

2020-11-24 Thread Heinrich Schuchardt
On 11/17/20 1:27 AM, AKASHI Takahiro wrote: A capsule tagged with the guid, EFI_FIRMWARE_MANAGEMENT_CAPSULE_ID_GUID, is handled as a firmware update object. What efi_update_capsule() basically does is to load any firmware management protocol (or fmp) drivers contained in a capsule, find out an ap

Re: [PATCH v9 11/11] sandbox: enable capsule update for testing

2020-11-24 Thread AKASHI Takahiro
Heinrich, On Tue, Nov 24, 2020 at 08:05:45PM +0100, Heinrich Schuchardt wrote: > On 11/17/20 1:28 AM, AKASHI Takahiro wrote: > > Add more configuration options to allow for efi capsule update > > on sandbox. > > > > Signed-off-by: AKASHI Takahiro > > This patch leads to a build failure: > > ht

Re: early stage debugging on a real product

2020-11-24 Thread Simon Glass
Hi Andy, On Tue, 24 Nov 2020 at 12:46, Andy Shevchenko wrote: > > On Tue, Nov 24, 2020 at 6:54 PM Simon Glass wrote: > > On Tue, 24 Nov 2020 at 06:57, Andy Shevchenko > > wrote: > > > On Mon, Nov 23, 2020 at 9:08 PM Simon Glass wrote: > > > > On Mon, 23 Nov 2020 at 07:04, Andy Shevchenko > >

Re: [PATCH 3/3] patman: fix project-defaults not propagating into parsers

2020-11-24 Thread Simon Glass
Hi Philipp, On Tue, 24 Nov 2020 at 10:15, Philipp Tomsich wrote: > > Project defaults (e.g. for linux and gcc) do not propagate into the > subparsers. As both the processing of tags (e.g. in the defaults > for the linux project) and supressing the signoff (in the defaults > for the gcc project)

Re: [PATCH 2/3] patman: Add project-default for 'gcc'

2020-11-24 Thread Simon Glass
On Tue, 24 Nov 2020 at 10:15, Philipp Tomsich wrote: > > Add defaults for FSF/GNU projects, such as gcc, that provide sensible > settings for those projects. > > Signed-off-by: Philipp Tomsich > --- > > tools/patman/settings.py | 7 ++- > 1 file changed, 6 insertions(+), 1 deletion(-) Revie

Re: [PATCH 1/3] patman: Add --no-signoff to suppress adding signoffs

2020-11-24 Thread Simon Glass
On Tue, 24 Nov 2020 at 10:15, Philipp Tomsich wrote: > > To enable use of patman with FSF/GNU projects, such as GCC or > Binutils, no Signed-off-by may be added. This adds a command > line flag '--no-signoff' to suppress adding signoffs in patman > when processing commits. > > Signed-off-by: Phil

Re: [PATCH v9 00/11] efi_loader: add capsule update support

2020-11-24 Thread Tom Rini
On Tue, Nov 24, 2020 at 10:37:10PM +0100, Heinrich Schuchardt wrote: > On 11/17/20 1:27 AM, AKASHI Takahiro wrote: > > Summary > > === > > 'UpdateCapsule' is one of runtime services defined in UEFI specification > > and its aim is to allow a caller (OS) to pass information to the firmware, > >

Re: [PATCH v2] ARM: stm32: Use firmware property instead of loadables

2020-11-24 Thread Marek Vasut
On 11/23/20 9:18 AM, Michal Simek wrote: Hi Marek, Hi, st 21. 10. 2020 v 14:31 odesílatel Marek Vasut napsal: On 10/21/20 2:05 PM, Patrice CHOTARD wrote: Hi Patrick On 10/5/20 11:37 AM, Michal Simek wrote: There shouldn't be a need to use loadables propertyn because u-boot can be pointe

Re: [PATCH v9 00/11] efi_loader: add capsule update support

2020-11-24 Thread Heinrich Schuchardt
On 11/17/20 1:27 AM, AKASHI Takahiro wrote: Summary === 'UpdateCapsule' is one of runtime services defined in UEFI specification and its aim is to allow a caller (OS) to pass information to the firmware, i.e. U-Boot. This is mostly used to update firmware binary on devices by instructions fro

Re: [PATCH v9 08/11] tools: add mkeficapsule command for UEFI capsule update

2020-11-24 Thread Heinrich Schuchardt
On 11/17/20 1:28 AM, AKASHI Takahiro wrote: This is a utility mainly for test purpose. mkeficapsule -f: create a test capsule file for FIT image firmware Having said that, you will be able to customize the code to fit your specific requirements for your platform. Signed-off-by: AKASHI Takahi

[PATCH 2/3] patman: Add project-default for 'gcc'

2020-11-24 Thread Philipp Tomsich
Add defaults for FSF/GNU projects, such as gcc, that provide sensible settings for those projects. Signed-off-by: Philipp Tomsich --- tools/patman/settings.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/patman/settings.py b/tools/patman/settings.py index 8c10

[PATCH 1/3] patman: Add --no-signoff to suppress adding signoffs

2020-11-24 Thread Philipp Tomsich
To enable use of patman with FSF/GNU projects, such as GCC or Binutils, no Signed-off-by may be added. This adds a command line flag '--no-signoff' to suppress adding signoffs in patman when processing commits. Signed-off-by: Philipp Tomsich --- tools/patman/control.py | 6 +++--- tools/patman

[PATCH 3/3] patman: fix project-defaults not propagating into parsers

2020-11-24 Thread Philipp Tomsich
Project defaults (e.g. for linux and gcc) do not propagate into the subparsers. As both the processing of tags (e.g. in the defaults for the linux project) and supressing the signoff (in the defaults for the gcc project) are settings from subparsers, these would still require an explicit commandli

Re: early stage debugging on a real product

2020-11-24 Thread Andy Shevchenko
On Tue, Nov 24, 2020 at 6:54 PM Simon Glass wrote: > On Tue, 24 Nov 2020 at 06:57, Andy Shevchenko > wrote: > > On Mon, Nov 23, 2020 at 9:08 PM Simon Glass wrote: > > > On Mon, 23 Nov 2020 at 07:04, Andy Shevchenko > > > wrote: ... > > > Make sure that start.S puts the top of memory in a se

Re: [PATCH v9 11/11] sandbox: enable capsule update for testing

2020-11-24 Thread Heinrich Schuchardt
On 11/17/20 1:28 AM, AKASHI Takahiro wrote: Add more configuration options to allow for efi capsule update on sandbox. Signed-off-by: AKASHI Takahiro This patch leads to a build failure: https://gitlab.denx.de/u-boot/custodians/u-boot-efi/-/jobs/181984 Building current source for 1 boards (

[PATCH] fs/squashfs: sqfs_close/sqfs_read_sblk: set ctxt.sblk to NULL after free

2020-11-24 Thread Richard Genoud
This will prevent a double free error if sqfs_close() is called twice. Signed-off-by: Richard Genoud --- fs/squashfs/sqfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c index 15208b4dab0..4e6b6058f97 100644 --- a/fs/squashfs/sqfs.

Re: [PATCH] cmd: Add a pwm command

2020-11-24 Thread Simon Glass
Hi, On Tue, 24 Nov 2020 at 06:23, Tom Rini wrote: > > On Tue, Nov 24, 2020 at 12:41:34PM +, Pragnesh Patel wrote: > > > > > > >-Original Message- > > >From: Tom Rini > > >Sent: 23 November 2020 21:22 > > >To: Pragnesh Patel > > >Cc: u-boot@lists.denx.de; atish.pa...@wdc.com; palmerd

Re: [PATCH v3 01/18] common: Kconfig: Introduce CONFIG_CONSOLE_RECORD_INIT_F

2020-11-24 Thread Simon Glass
On Mon, 23 Nov 2020 at 06:17, Ovidiu Panait wrote: > > Currently, the following #ifdef construct is used to check whether to run > console_record_init() during pre-relocation init: > defined(CONFIG_CONSOLE_RECORD) && CONFIG_VAL(SYS_MALLOC_F_LEN) > > Introduce CONFIG_CONSOLE_RECORD_INIT_F Kconfig

Re: early stage debugging on a real product

2020-11-24 Thread Simon Glass
Hi Andy, On Tue, 24 Nov 2020 at 06:57, Andy Shevchenko wrote: > > On Mon, Nov 23, 2020 at 9:08 PM Simon Glass wrote: > > On Mon, 23 Nov 2020 at 07:04, Andy Shevchenko > > wrote: > > > > I have been debugging U-Boot on a product (Android-based) device (*) > > > which is not yet supported by U-B

Re: [PATCH v3 07/18] common: board_r: Drop initr_secondary_cpu wrapper

2020-11-24 Thread Simon Glass
On Mon, 23 Nov 2020 at 06:17, Ovidiu Panait wrote: > > Add a return value to cpu_secondary_init_r and use it directly in the > post-relocation init sequence, rather than using a wrapper stub. > > Signed-off-by: Ovidiu Panait > --- > v3 updates: > -none > > v2 updates: > - add function comment > >

Re: [PATCH] binman: Remove additional backslash

2020-11-24 Thread Simon Glass
On Mon, 23 Nov 2020 at 01:08, Michal Simek wrote: > > The origin patch didn't have this change and it was caused by manual > resolution where additional backslash was added. > > Fixes: 6723b4c6ca7b ("binman: Call helper function binman_set_rom_offset() to > fill offset") > Signed-off-by: Michal S

Re: [PATCH v3 02/18] common: board_f: Drop initf_console_record wrapper

2020-11-24 Thread Simon Glass
On Mon, 23 Nov 2020 at 06:17, Ovidiu Panait wrote: > > Drop initf_console_record wrapper and call console_record_init directly. > > Signed-off-by: Ovidiu Panait > --- > v3 updates: > - none > > v2 updates: > - check defined(CONFIG_CONSOLE_RECORD_INIT_F) in ifdef condition > > common/board_f.c |

Re: [PATCH v2] tools: zynqmp: Fix regex expression around XPm_ConfigObject.

2020-11-24 Thread Luca Ceresoli
Hi, On 24/11/20 16:13, Adrian Fiergolski wrote: > The XPm_ConfigObject array definition generated by Vitis 2020.1 differs from > previous Vivado versions (before 2019.2). > > -const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) > = { > +const u32 XPm_ConfigObject[] __at

Re: [PATCH] added check for ignored CONFIG_ENV_EXT4_DEVICE_AND_PART definition

2020-11-24 Thread Michael Opdenacker
Hi Manuel, Thanks for this fix. Indeed, without it, I don't manage to get U-Boot to use the EXT4 partition for the environment on stm32mp1 with the below configuration: CONFIG_ENV_IS_IN_EXT4=y CONFIG_ENV_EXT4_INTERFACE="mmc" CONFIG_ENV_EXT4_DEVICE_AND_PART="0:4" On 11/22/20 4:19 PM, Manuel Reis

[PATCH] common: spl: spl_fit.c: report an error on hash check fail

2020-11-24 Thread Philippe Reynes
When the hash check fails on a loadable image, the SPL/TPL simply jump to the next one. This commit changes this behaviour, when the hash check fails on a loadable image, the function spl_load_simple_fit stops and report an error. Signed-off-by: Philippe Reynes --- common/spl/spl_fit.c | 7 +

[PATCH v2] tools: zynqmp: Fix regex expression around XPm_ConfigObject.

2020-11-24 Thread Adrian Fiergolski
The XPm_ConfigObject array definition generated by Vitis 2020.1 differs from previous Vivado versions (before 2019.2). -const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) = { +const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) = +#elif defined

Re: early stage debugging on a real product

2020-11-24 Thread Andy Shevchenko
On Mon, Nov 23, 2020 at 9:08 PM Simon Glass wrote: > On Mon, 23 Nov 2020 at 07:04, Andy Shevchenko > wrote: > > I have been debugging U-Boot on a product (Android-based) device (*) > > which is not yet supported by U-Boot. It's x86 based. > > > > I have stumbled over the couple of things: > > 1

[PATCH] tools: The XPm_ConfigObject array definition generated by Vitis 2020.1 differs from previous Vivado versions (before 2019.2).

2020-11-24 Thread Adrian Fiergolski
-const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) = { +const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) = +#elif defined (__ICCARM__) +#pragma location = ".sys_cfg_data" +__root const u32 XPm_ConfigObject[] = +#endif +{ Change the matching r

[PATCH 1/2] tools: image-host: clean function fit_config_get_hash_list

2020-11-24 Thread Philippe Reynes
This commit creates a function fit_config_add_hash that will be used in the next commit to support several 'sub-images'. Signed-off-by: Philippe Reynes --- tools/image-host.c | 132 ++--- 1 file changed, 76 insertions(+), 56 deletions(-) diff --git a/tool

[PATCH 2/2] tools: image-host: add support for several sub-images

2020-11-24 Thread Philippe Reynes
The propoerty sign-images points to images in the configuration node. But thoses images may references severals "sub-images" (for example for images loadable). This commit adds the support of severals sub-images. Signed-off-by: Philippe Reynes --- tools/image-host.c | 36 +---

Re: [PATCH] cmd: Add a pwm command

2020-11-24 Thread Tom Rini
On Tue, Nov 24, 2020 at 12:41:34PM +, Pragnesh Patel wrote: > > > >-Original Message- > >From: Tom Rini > >Sent: 23 November 2020 21:22 > >To: Pragnesh Patel > >Cc: u-boot@lists.denx.de; atish.pa...@wdc.com; palmerdabb...@google.com; > >bmeng...@gmail.com; Paul Walmsley ( Sifive) ;

Re: [PATCH] tools: The XPm_ConfigObject array definition generated by Vitis 2020.1 differs from previous Vivado versions (before 2019.2).

2020-11-24 Thread Michal Simek
Hi Adrian, please fix your subject. tools: zynqmp: Fix regex expression around XPm_ConfigObject And commit message is what you have in subject now. On 24. 11. 20 13:48, Adrian Fiergolski wrote: > -const u32 XPm_ConfigObject[] __attribute__((used, section(".sys_cfg_data"))) > = { > +const u32 X

RE: [PATCH] cmd: Add a pwm command

2020-11-24 Thread Pragnesh Patel
>-Original Message- >From: Tom Rini >Sent: 23 November 2020 21:22 >To: Pragnesh Patel >Cc: u-boot@lists.denx.de; atish.pa...@wdc.com; palmerdabb...@google.com; >bmeng...@gmail.com; Paul Walmsley ( Sifive) ; >anup.pa...@wdc.com; Sagar Kadam ; >r...@andestech.com; Simon Glass ; Heinrich

[PATCH] configs: am65x_evm: Define the maximum file size for DFU

2020-11-24 Thread Aswath Govindraju
In include/dfu.h, if CONFIG_SYS_DFU_MAX_FILE_SIZE is not defined then it is defined as CONFIG_SYS_DFU_DATA_BUF_SIZE. This is 128 KiB for a53 core and 20 KiB for r5 core. If a larger file is transferred using dfu then it fails. CONFIG_SYS_DFU_DATA_BUF_SIZE can not be increased as there is not enoug

Re: [PATCH v9 04/11] efi_loader: capsule: support firmware update

2020-11-24 Thread AKASHI Takahiro
Sughosh, On Tue, Nov 24, 2020 at 01:07:53PM +0530, Sughosh Ganu wrote: > Takahiro, > > On Tue, 24 Nov 2020 at 11:21, AKASHI Takahiro > wrote: > > > Sughosh, > > > > On Sat, Nov 21, 2020 at 11:32:43PM +0530, Sughosh Ganu wrote: > > > hi Takahiro, > > > > > > On Tue, 17 Nov 2020 at 05:58, AKASHI