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
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
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
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
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 +-
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
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
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
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
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
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
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
12 matches
Mail list logo