summaryrefslogtreecommitdiffstats
path: root/Documentation/ifdtool
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.com>2020-03-20 02:57:00 +0300
committerPatrick Georgi <pgeorgi@google.com>2021-02-09 07:47:41 +0000
commitd2b3961fdc951f2dbbec22c7dce68fc0337112cc (patch)
tree4a849a94f9975806b361dfc3b7b7e3596159b212 /Documentation/ifdtool
parent7ac6ae95ca50335152fb2d979ca97f799fb07d4d (diff)
downloadcoreboot-d2b3961fdc951f2dbbec22c7dce68fc0337112cc.tar.gz
coreboot-d2b3961fdc951f2dbbec22c7dce68fc0337112cc.tar.bz2
coreboot-d2b3961fdc951f2dbbec22c7dce68fc0337112cc.zip
Documentation: Use correct KiB/MiB units instead of KB/MB
Fix a common mistake of using KB/MB where KiB/MiB is what actually is meant. 1 MB = (10^3)^2 = 1000000 1 MiB = (2^10)^2 = 1048576 Change-Id: I78327652b6c6526318071a9d4bafd7ec279ea614 Signed-off-by: Evgeny Zinoviev <me@ch1p.io> Reviewed-on: https://review.coreboot.org/c/coreboot/+/39685 Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'Documentation/ifdtool')
-rw-r--r--Documentation/ifdtool/layout.md10
1 files changed, 5 insertions, 5 deletions
diff --git a/Documentation/ifdtool/layout.md b/Documentation/ifdtool/layout.md
index 2513929db9c3..77319b840ed6 100644
--- a/Documentation/ifdtool/layout.md
+++ b/Documentation/ifdtool/layout.md
@@ -19,7 +19,7 @@ way to categorize anything required by the SoC but not provided by coreboot.
| IFD Region | IFD Region name | FMAP Name | Notes |
| index | | | |
+============+==================+===========+===========================================+
-| 0 | Flash Descriptor | SI_DESC | Always the top 4KB of flash |
+| 0 | Flash Descriptor | SI_DESC | Always the top 4 KiB of flash |
+------------+------------------+-----------+-------------------------------------------+
| 1 | BIOS | SI_BIOS | This is the region that contains coreboot |
+------------+------------------+-----------+-------------------------------------------+
@@ -40,9 +40,9 @@ way to categorize anything required by the SoC but not provided by coreboot.
The ifdtool can be used to manipulate a firmware image with a IFD. This tool
will not take into account the FMAP while modifying the image which can lead to
unexpected and hard to debug issues with the firmware image. For example if the
-ME region is defined at 6 MB in the IFD but the FMAP only allocates 4 MB for the
-ME, then when the ME is added by the ifdtool 6 MB will be written which could
-overwrite 2 MB of the BIOS.
+ME region is defined at 6 MiB in the IFD but the FMAP only allocates 4 MiB for
+the ME, then when the ME is added by the ifdtool 6 MiB will be written which
+could overwrite 2 MiB of the BIOS.
In order to validate that the FMAP and the IFD are compatible the ifdtool
provides --validate (-t) option. `ifdtool -t` will read both the IFD and the
@@ -75,4 +75,4 @@ Region mismatch between pd and SI_PDR
FMAP area SI_PDR:
offset: 0x007fc000
length: 0x00004000
-``` \ No newline at end of file
+```