Building dtc from git causes the version number to start with a 'v'
(e.g. v1.7.0). printf then fails to parse 'v1' as a decimal value, and
prints '000700' instead of '010700'. Subsequently, the build fails,
because '000700' is less than the
tools: env: Add support for direct read/write UBI volumes")
Signed-off-by: Martin Hundebøll
---
tools/env/fw_env.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index 66cb9d2a25..2a61a5d6f0 100644
--- a/tools/env/fw_env.c
+++
Hi,
I chose to implement boot count / selection functionality as a command instead:
https://patchwork.ozlabs.org/patch/943549/
I do plan to extend it a bit in the coming weeks though:
* move the env-get and -set to weak functions, so that board files can put the
info wherever.
* add support for
External projects wanting to embed the static library needs it to be
position independent.
Signed-off-by: Martin Hundebøll
---
tools/env/Makefile | 1 +
1 file changed, 1 insertion(+)
diff --git a/tools/env/Makefile b/tools/env/Makefile
index b627796e94..2444269de7 100644
--- a/tools/env
The header isn't used. Including it breaks compilation for external
users of the static library.
Signed-off-by: Martin Hundebøll
---
tools/env/fw_env.h | 1 -
1 file changed, 1 deletion(-)
diff --git a/tools/env/fw_env.h b/tools/env/fw_env.h
index b60fbfc8f8..78c803c944 100644
--- a/tool
partially written
volume. The CRC checking will decide which environment to use anyways.
Signed-off-by: Martin Hundebøll
---
tools/env/fw_env.c | 8 +++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/tools/env/fw_env.c b/tools/env/fw_env.c
index cfada0ee11..f7904ae036 100644
Hi,
On 2018-07-16 08:05, Sean Nyekjær wrote:
Hi,
On 2018-07-13 14:34, Martin Hundebøll wrote:
The existing bootcount feature is targeted systems with a primary, and a
rescue boot setup, where the number of boot tries to the primary boot is
tracked. If the number exceeds the limit, the
using "fw_setenv":
> fw_setenv bootcount_a 3
When the non-booted slot is updated, the order is updated by setting the
bootslots variable with "fw_setenv":
> fw_setenv bootslots=b a
Signed-off-by: Martin Hundebøll
---
cmd/Kconfig| 42 +
cmd/Makefile |
The quick fix here is to align the global 'tmpbuf' variable using
DEFINE_CACHE_ALIGN_BUFFER. A real fix would be to change part_iso.c to
use function local buffers defined with ALLOC_CACHE_ALIGN_BUFFER.
Signed-off-by: Martin Hundebøll
---
disk/part_iso.c | 3 ++-
1 file changed
9 matches
Mail list logo