Re: [PATCH 0/8] Barebox-State on-disk partition support

2022-10-14 Thread Marco Felsch
On 22-10-14, Marco Felsch wrote: > Hi, > > this small series adds the support to store the barebox-state on a > on-disk partition like mbr/gpt. Note for testing you need a very recent > dt-utils package. I will send the patches soon as well and will add a > link to the patches here later. The req

[PATCH 0/8] Barebox-State on-disk partition support

2022-10-14 Thread Marco Felsch
Hi, this small series adds the support to store the barebox-state on a on-disk partition like mbr/gpt. Note for testing you need a very recent dt-utils package. I will send the patches soon as well and will add a link to the patches here later. Regards, Marco Marco Felsch (8): of: of_node_na

[PATCH 3/8] state: rename partition_node to backend_node

2022-10-14 Thread Marco Felsch
Rename the local variable in preparation of addding support for backends stored within a partition table. This also aligns the name with the name used by of_state_fixup(). No functional change. Signed-off-by: Marco Felsch --- common/state/state.c | 14 +++--- 1 file changed, 7 insertion

[PATCH 7/8] of: partition: add a helper to determin if a node is a of-partition

2022-10-14 Thread Marco Felsch
This helper checks if the given device_node is a of-partition. The check is based on the node name which should something like partition@xxx. If that fails the we try to check if the parent node contains a "fixed-partitions" compatible. Signed-off-by: Marco Felsch --- drivers/of/partition.c | 12

[PATCH 5/8] state: rename backend members

2022-10-14 Thread Marco Felsch
Rename backend members to drop the assumption that the backend always points to a partition. This is preperation work for the upcoming state partition table support which allows us to store the state within a MBR/GPT partition. Signed-off-by: Marco Felsch --- common/state/state.c | 17 +-

[PATCH 8/8] state: add support for new backend format

2022-10-14 Thread Marco Felsch
The backend can now be specified by either: backend = <&of_partition>; or by using the path binding: backend = &mmc2, "partname:2"; backend = &of_partition; This allows us to store the state within a partition table like GPT or MBR. So the days of magic offsets within the partitions tabl

[PATCH 2/8] state: select the STATE_DRV when STATE is selected

2022-10-14 Thread Marco Felsch
As written in the state.rst documentation, state will silently fail if the STATE_DRV is not selected. So enabling state without the state driver is useless. Fix this by selecting the STATE_DRV if STATE is selected. Signed-off-by: Marco Felsch --- common/Kconfig | 1 + 1 file changed, 1 insertion

[PATCH 6/8] state: factor out the backend property parsing

2022-10-14 Thread Marco Felsch
Move the backend parsing into a own subfunction. This is in preperation of addding support for a new format which differs from the old one. While on it introduce the state_of_find_path_by_node() wrapper define which handles the different compile options: barebox build vs. dt-utils build which make

[PATCH 4/8] state: cosmetic fix reverse christmas tree order

2022-10-14 Thread Marco Felsch
No functional change, just apply the common code standards. Signed-off-by: Marco Felsch --- common/state/state.c | 32 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/common/state/state.c b/common/state/state.c index d954f0d453..65e47524a3 100644

[PATCH 1/8] of: of_node_name_eq: correct alignment

2022-10-14 Thread Marco Felsch
Just a cleanup nothing special. Signed-off-by: Marco Felsch --- drivers/of/base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/base.c b/drivers/of/base.c index ea2a88764b..2eee1279a9 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -32,7 +32,7 @@ bool o

[PATCH] imx:boot: adapt boot device detection for imx8mp

2022-10-14 Thread Enrico Scholz
imx8mp uses sbmr2[27..24] for encoding the bootmode while existing code reads only sbmr2[25..24]. This can detect BOOTSOURCE_SERIAL for the wrong mode. Signed-off-by: Enrico Scholz --- arch/arm/mach-imx/boot.c | 34 +++--- 1 file changed, 31 insertions(+), 3 deletion

Re: [PATCH 0/9] tlsf: use 8-byte alignment for normal malloc allocations

2022-10-14 Thread Sascha Hauer
On Tue, Oct 04, 2022 at 05:53:58PM +0200, Ahmad Fatoum wrote: > TLSF currently uses only 4-byte alignment on 32-bit platforms, which isn't > enough for ldrd/strd on ARMv7. This series reworks TLSF a bit, so we always > have at least 8 byte alignment. dlmalloc already has 8 byte alignment > minimum