Re: [PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-29 Thread Vasileios Amoiridis
On Mon, 2024-05-27 at 09:34 +0200, Michal Simek wrote: > > > On 5/22/24 19:47, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Currently, if the environment is not in the current boot media, the > > env_get_location() is returning ENVL_UNKNOWN

[PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-31 Thread Vasileios Amoiridis
the same priority as of now. Signed-off-by: Vasileios Amoiridis --- board/xilinx/versal-net/board.c | 47 ++-- board/xilinx/versal/board.c | 47 ++-- board/xilinx/zynq/board.c | 49 +++-- board/xilinx/zynqmp/zynqmp.c

[PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-04 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Changes in v2: - Remove duplication of custom hardcoded env_locations[] code. - Add implementation with general arch_env_get_location(op, prio) v1: https://lore.kernel.org/u-boot/20240522174738.73522-1-vassilisa...@gmail.com/ Vasileios Amoiridis (1

[PATCH v2 1/1] xilinx: Add option to load environment from outside of boot media

2024-06-04 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Currently, if the environment is not in the current boot media, the env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which is not true (i.e booting from FLASH with environment in eMMC). This commit adds an extra check to find the environment in the other

[RFC PATCH 0/1] drivers: bootcount: Add support for FAT filesystem

2024-06-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis This patch adds support to save the bootcount variable in a file located in FAT filesystem. Up to now, there was support only for EXT filesystem. The reason I put this as RFC is because the file "bootcount_ext.c" will no longer represent the implementation f

[RFC PATCH] drivers: bootcount: Add support for FAT filesystem

2024-06-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Add support to save boot count variable in a file in a FAT filesystem. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 drivers/bootcount/Kconfig | 49 +++ drivers/bootcount/Makefile

Re: [RFC PATCH] drivers: bootcount: Add support for FAT filesystem

2024-06-06 Thread Vasileios Amoiridis
On Thu, Jun 06, 2024 at 09:58:36AM +0200, Philip Oberfichtner wrote: > Hi, > > On Wed, Jun 05, 2024 at 08:10:41PM +0200, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add support to save boot count variable in a file in a FAT filesystem. > &

Re: [RFC PATCH] drivers: bootcount: Add support for FAT filesystem

2024-06-06 Thread Vasileios Amoiridis
On Thu, Jun 06, 2024 at 05:34:55PM +0200, Quentin Schulz wrote: > Hi Vasileios, > > On 6/5/24 8:10 PM, Vasileios Amoiridis wrote: > > [You don't often get email from vassilisa...@gmail.com. Learn why this is > > important at https://aka.ms/LearnAboutSenderIden

[PATCH v2 0/1]: drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
istent? Cheers, Vasilis P.S: Documentation has not been modified yet, I will submit in the v2 (if any). Vasileios Amoiridis (1): drivers: bootcount: Add support for FAT filesystem doc/README.bootcount | 12 ++--- drivers/bootcount/Kconfig

[PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
Add support to save boot count variable in a file in a FAT filesystem. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 ++--- drivers/bootcount/Kconfig | 53 +-- drivers/bootcount/Makefile| 2

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-10 Thread Vasileios Amoiridis
On Mon, Jun 10, 2024 at 01:37:47PM -0600, Tom Rini wrote: > On Mon, Jun 10, 2024 at 08:51:16PM +0200, Vasileios Amoiridis wrote: > > > Add support to save boot count variable in a file in a FAT filesystem. > > > > Signed-off-by: Vasileios Amoiridis > > Thanks fo

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-11 Thread Vasileios Amoiridis
On Tue, Jun 11, 2024 at 11:33:12AM +0200, Quentin Schulz wrote: > Hi Vasileios, > > On 6/10/24 8:51 PM, Vasileios Amoiridis wrote: > > Add support to save boot count variable in a file in a FAT filesystem. > > > > Signed-off-by: Vasileios Amoiridis > &g

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-11 Thread Vasileios Amoiridis
On Tue, Jun 11, 2024 at 05:41:19PM +0200, Quentin Schulz wrote: > Hi Vasileios, > > On 6/11/24 5:27 PM, Vasileios Amoiridis wrote: > > On Tue, Jun 11, 2024 at 11:33:12AM +0200, Quentin Schulz wrote: > > > Hi Vasileios, > > > > > > On 6/10/24 8:51

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-11 Thread Vasileios Amoiridis
On Tue, Jun 11, 2024 at 10:06:59AM -0600, Tom Rini wrote: > On Tue, Jun 11, 2024 at 05:41:19PM +0200, Quentin Schulz wrote: > > Hi Vasileios, > > > > On 6/11/24 5:27 PM, Vasileios Amoiridis wrote: > > > On Tue, Jun 11, 2024 at 11:33:12AM +0200, Quentin Schu

Re: [PATCH v2 1/1] drivers: bootcount: Add support for FAT filesystem

2024-06-11 Thread Vasileios Amoiridis
On Tue, Jun 11, 2024 at 06:29:34PM +0200, Quentin Schulz wrote: > Hi Vasileios, > > On 6/11/24 6:20 PM, Vasileios Amoiridis wrote: > > On Tue, Jun 11, 2024 at 10:06:59AM -0600, Tom Rini wrote: > > > On Tue, Jun 11, 2024 at 05:41:19PM +0200, Quentin Schulz wro

Re: [PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-12 Thread Vasileios Amoiridis
On Wed, 2024-06-12 at 15:42 +0200, Michal Simek wrote: > Hi Vasileios, > > út 4. 6. 2024 v 15:21 odesílatel Vasileios Amoiridis > napsal: > > > > From: Vasileios Amoiridis > > > > Changes in v2: > >     - Remove duplication of custom hardcoded e

Re: [PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-12 Thread Vasileios Amoiridis
On Wed, 2024-06-12 at 16:47 +0200, Michal Simek wrote: > > > On 6/12/24 15:57, Vasileios Amoiridis wrote: > > On Wed, 2024-06-12 at 15:42 +0200, Michal Simek wrote: > > > Hi Vasileios, > > > > > > út 4. 6. 2024 v 15:21 odesílatel Vasileios Amoi

Re: [PATCH v2 0/1] xilinx: Add option to load environment from outside of

2024-06-12 Thread Vasileios Amoiridis
On Wed, 2024-06-12 at 17:32 +0200, Michal Simek wrote: > > > On 6/12/24 17:11, Vasileios Amoiridis wrote: > > On Wed, 2024-06-12 at 16:47 +0200, Michal Simek wrote: > > > > > > > > > On 6/12/24 15:57, Vasileios Amoiridis wrote: > > > >

[PATCH v3 0/2] drivers: bootcount: Add support for ANY filesystem

2024-06-13 Thread Vasileios Amoiridis
istent? Cheers, Vasilis Vasileios Amoiridis (2): drivers: bootcount: Add support for ANY filesystem doc: api: bootcount: Convert to rST documentation doc/README.bootcount | 53 - doc/api/bootcount.rst | 58 +++ dr

[PATCH v3 1/2] drivers: bootcount: Add support for ANY filesystem

2024-06-13 Thread Vasileios Amoiridis
Add support to save boot count variable in ANY filesystem. Tested with FAT and EXT. Reviewed-by: Tom Rini Reviewed-by: Heiko Schocher Reviewed-by: Philip Oberfichtner Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 +++ drivers/bootcount/Kconfig

[PATCH v3 2/2] doc: api: bootcount: Convert to rST documentation

2024-06-13 Thread Vasileios Amoiridis
Move to the new documentation style with rST formatting. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 53 --- doc/api/bootcount.rst | 58 +++ 2 files changed, 58 insertions(+), 53 deletions(-) delete

Re: [PATCH v3 2/2] doc: api: bootcount: Convert to rST documentation

2024-06-16 Thread Vasileios Amoiridis
On Fri, Jun 14, 2024 at 10:43:09AM +0200, Quentin Schulz wrote: > Hi Vasileios, > > On 6/14/24 12:02 AM, Vasileios Amoiridis wrote: > > Move to the new documentation style with rST formatting. > > > > Signed-off-by: Vasileios Amoiridis > > ---

[PATCH v4 0/3] drivers: bootcount: Add support for ANY filesystem

2024-06-28 Thread Vasileios Amoiridis
filesystem, but also for the FAT filesystem. Should it be renamed? If not, wouldn't it be inconsistent? Cheers, Vasilis Vasileios Amoiridis (3): drivers: bootcount: Add support for ANY filesystem doc: api: bootcount: Convert to rST documentation drivers: bootcount: Fix typo in docu

[PATCH v4 1/3] drivers: bootcount: Add support for ANY filesystem

2024-06-28 Thread Vasileios Amoiridis
Add support to save boot count variable in ANY filesystem. Tested with FAT and EXT. Reviewed-by: Tom Rini Reviewed-by: Heiko Schocher Reviewed-by: Philip Oberfichtner Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 12 +++ drivers/bootcount/Kconfig

[PATCH v4 2/3] doc: api: bootcount: Convert to rST documentation

2024-06-28 Thread Vasileios Amoiridis
Move to the new documentation style with rST formatting. Signed-off-by: Vasileios Amoiridis --- doc/README.bootcount | 53 --- doc/api/bootcount.rst | 58 +++ doc/api/index.rst | 1 + 3 files changed, 59

[PATCH v4 3/3] drivers: bootcount: Fix typo in documentation

2024-06-28 Thread Vasileios Amoiridis
The bootcount documentation was using "unattended" while it probably intending to say "unintended" Signed-off-by: Vasileios Amoiridis --- doc/api/bootcount.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/bootcount.rst b/doc/api/bootcount.

[PATCH] xilinx: Add option to load environment from outside of boot media

2024-05-22 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Currently, if the environment is not in the current boot media, the env_get_location() is returning ENVL_UNKNOWN or ENVL_NOWHERE which is not true (i.e booting from FLASH with environment in eMMC). This commit adds an extra check to find the environment in the other

[PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-29 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Add native support of the bootcount mechanism in the ZynqMP by utilising internal PMU registers. The Persistent Global Storage Registers of the Platform Management Unit can keep their value during reboot cycles unless there is a POR reset, making them appropriate for

[PATCH v1 0/1] bootcount: zynqmp: Add bootcount API

2024-10-29 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Add support for the bootcount API by utilizing the internal Persistent Global General Registers of the PMU. These registers get reset whenever there is a Power-On-Reset so it makes them suitable for the API. Questions towards reviewers: 1) Is the licensing of

[PATCH v2 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-11-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Add native support of the bootcount mechanism in the ZynqMP by utilising internal PMU registers. The Persistent Global Storage Registers of the Platform Management Unit can keep their value during reboot cycles unless there is a POR reset, making them appropriate for

Re: [PATCH v2 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-11-05 Thread Vasileios Amoiridis
On Tue, Nov 05, 2024 at 09:36:45AM +0100, Heiko Schocher wrote: > Hello Amoiridis, > > On 05.11.24 08:49, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add native support of the bootcount mechanism in the ZynqMP by > > utilising internal PMU

[PATCH v2 0/1]: bootcount: zynqmp: Add bootcount API

2024-11-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Changes in v2: 1) Move to DM infrastructure 2) Appropriate initialization of *val pointer 3) Updated help message 4) Added config to the end of the Makefile 5) Updated the appropriate values in struct pmu_regs --- v1: https

[PATCH v3 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-11-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Add native support of the bootcount mechanism in the ZynqMP by utilising internal PMU registers. The Persistent Global Storage Registers of the Platform Management Unit can keep their value during reboot cycles unless there is a POR reset, making them appropriate for

[PATCH v3 0/1]: bootcount: zynqmp: Add bootcount API

2024-11-05 Thread Vasileios Amoiridis
From: Vasileios Amoiridis Changes in v3: 1) Organize correctly headers 2) Remove redundant "mio" and change "write" to "read" 3) Add "depends on ARCH_ZYNQMP" v2: https://lore.kernel.org/u-boot/20241105074917.546887-1-vassilisa..

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 02:13:43PM +0100, Michal Simek wrote: > > > On 10/29/24 19:58, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add native support of the bootcount mechanism in the ZynqMP by utilising > > internal > > PMU r

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 06:26:08AM +0100, Heiko Schocher wrote: > Hello Vasileios, > > On 29.10.24 19:58, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add native support of the bootcount mechanism in the ZynqMP by utilising > > internal

Re: [PATCH v1 0/1] bootcount: zynqmp: Add bootcount API

2024-10-30 Thread Vasileios Amoiridis
On Tue, Oct 29, 2024 at 01:12:30PM -0600, Tom Rini wrote: > On Tue, Oct 29, 2024 at 07:58:13PM +0100, Vasileios Amoiridis wrote: > > From: Vasileios Amoiridis > > > > Add support for the bootcount API by utilizing the internal Persistent > > Global General Registers

Re: [PATCH v1 1/1] drivers: bootcount: Add ZynqMP specific bootcount support

2024-10-30 Thread Vasileios Amoiridis
On Wed, Oct 30, 2024 at 04:49:10PM +0100, Michal Simek wrote: > > > On 10/30/24 15:38, Vasileios Amoiridis wrote: > > On Wed, Oct 30, 2024 at 02:13:43PM +0100, Michal Simek wrote: > > > > > > > > > On 10/29/24 19:58, Vasileios Amoiridi