[Buildroot] [PATCH 7/7] board/kontron/smarc-sal28/genimage.cfg: fix option suffix
Edgar Bonet
bonet at grenoble.cnrs.fr
Tue Nov 9 08:26:46 UTC 2021
Hello!
Michael Walle wrote:
> There is no "K" prefix in si units. Stictly speaking there is no "KB";
> there is a "kB" or a "KiB".
Although not a de jure standard, quite a few Linux tools have adopted
the following convention:
1 KB = 1000 B (i.e. 1 kB)
1 K = 1024 B (i.e. 1 KiB)
Here is an excerpt from man losetup:
The size and offset arguments may be followed by the
multiplicative suffixes KiB (=1024), MiB (=1024*1024), and so on
for GiB, TiB, PiB, EiB, ZiB and YiB (the "iB" is optional,
e.g., "K" has the same meaning as "KiB") or the suffixes KB
(=1000), MB (=1000*1000), and so on for GB, TB, PB, EB, ZB
and YB.
Given that this is a common Linux convention, "offset = 4K" makes it
clearer that these are KiB ("offset = 4KiB" would be still clearer if
supported).
Regards,
Edgar.
More information about the buildroot
mailing list