Skip to content

RFC bootconfig: Use hexadecimal ASCII string for size and checksum

Masami Hiramatsu linux-doc lkml 1 version In review

Get series with b4
b4 am 160579629161.503380.9118263439060046721.stgit@devnote2

Versions newest first

  1. v1 RFC Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bootconfig: Use hexadecimal ASCII string for size and checksuminit/main.c+15 -50 replies
2/3tools/bootconfig: Use hexadecimal ASCII string for size and checksumtools/bootconfig/main.c tools/bootconfig/test-bootconfig.sh+28 -170 replies
3/3docs: bootconfig: Use hexadecimal ASCII string for size and checksumDocumentation/admin-guide/bootconfig.rst+5 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/3] bootconfig: Use hexadecimal ASCII string for size and checksum

Hello,

Here is a seires of patches to change the bootconfig footer format to use 8-bytes hexadecimal ASCII string for size and checksum instead of u32.

In the previous thread for alignment series[1], Steve pointed that the current footer format makes it hard to apply the bootconfig for cross-build initrd if the target endianness is different from the host machine.

So, this changes the size and checksum format to 8-bytes hexadecimal ASCII string as same as cpio. Since that is a string, we don't need to care of the difference of the endianness anymore.

Thank you,

[1] https://lore.kernel.org/lkml/[email protected]/

---

Masami Hiramatsu (3):
bootconfig: Use hexadecimal ASCII string for size and checksum tools/bootconfig: Use hexadecimal ASCII string for size and checksum
docs: bootconfig: Use hexadecimal ASCII string for size and checksum

 Documentation/admin-guide/bootconfig.rst |    6 +++-
 init/main.c                              |   20 ++++++++++----
 tools/bootconfig/main.c                  |   43 +++++++++++++++++++-----------
 tools/bootconfig/test-bootconfig.sh      |    2 +
 4 files changed, 48 insertions(+), 23 deletions(-)

--
Masami Hiramatsu (Linaro) <[email protected]>