View Issue Details

IDProjectCategoryView StatusLast Update
0006005UBootU-Bootpublic2023-11-24 11:42
Reportergerbach Assigned To 
PrioritynormalSeverityminorReproducibilitysometimes
Status resolvedResolutionfixed 
Product Versionfsimx8mm-Y2023.10 
Target Versionfsimx8m-nextFixed in Versionfsimx8mm-2023.11 
Summary0006005: Addfsheader.sh: Check for crc32 and xxd before using them
DescriptionIf the crc32 command is not available on the system, addfsheader.sh
unintentionally uses an empty string and creates a bad CRC32 in type[12..15].
It also shifts the remaining part four bytes to the back, resulting in a bad
description with "\x\x" prepended.

So if CRC32 is requested, add a check for the crc32 command and fail if not
available. Also include this information in the usage text. On Fedora, crc32
is part of the perl-Archive-Zip package.

Command xxd is also not part of the regular command set as given by package
coreutils. On Fedora, it needs the additional package vim-common. Add a
check for xxd, too, and fail if not available.

While at it, also fix a comment, that still assumed the CRC32 value to be
somewhere else.
Forum Link

Activities

gerbach

2023-11-24 11:42

developer   ~0004647

Git commit: 101454c9c1bff5917d3f1f3f534cab9a06a9abb4