[PATCH] scripts: dtc-version: support git version strings too

2023-05-03 Thread Martin Hundebøll
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

[PATCH] tools: env: return error if ubi_update_start() fails

2020-11-30 Thread Martin Hundebøll
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 +++

Re: [PATCH] RFC: nvedit: support doing one (extra) expansion of the value in "env set"

2020-02-14 Thread Martin Hundebøll
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

[PATCH] tools: env: enable PIC for static library

2020-02-06 Thread Martin Hundebøll
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

[PATCH] tools: env: remove include of env.h

2020-02-06 Thread Martin Hundebøll
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

[U-Boot] [PATCH] tools: env: handle corrupted ubi volumes during sanity check

2019-11-12 Thread Martin Hundebøll
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

Re: [U-Boot] [RFC] cmd: add bootslot command to select/boot slot based on boot counts

2018-07-30 Thread Martin Hundebøll
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

[U-Boot] [RFC] cmd: add bootslot command to select/boot slot based on boot counts

2018-07-13 Thread Martin Hundebøll
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 |

[U-Boot] [PATCH] part_iso: Cache align read buffer

2017-03-22 Thread Martin Hundebøll
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