<p>Philipp Deppenwiese <strong>merged</strong> this change.</p><p><a href="https://review.coreboot.org/29319">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  build bot (Jenkins): Verified
  Philipp Deppenwiese: Looks good to me, approved
  Jonathan Neuschäfer: Looks good to me, approved

</div><pre style="font-family: monospace,monospace; white-space: pre-wrap;">Documentation: Improve payload fit<br><br>* Convert '' to `<br>* Add example how to use mkimage<br><br>Change-Id: Id83db3db51582cb0d6ded7f3152b5549fba1f2e7<br>Signed-off-by: Patrick Rudolph <siro@das-labor.org><br>Reviewed-on: https://review.coreboot.org/29319<br>Tested-by: build bot (Jenkins) <no-reply@coreboot.org><br>Reviewed-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net><br>Reviewed-by: Philipp Deppenwiese <zaolin.daisuki@gmail.com><br>---<br>M Documentation/lib/payloads/fit.md<br>1 file changed, 16 insertions(+), 5 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/Documentation/lib/payloads/fit.md b/Documentation/lib/payloads/fit.md</span><br><span>index ac7b3e6..53be92e 100644</span><br><span>--- a/Documentation/lib/payloads/fit.md</span><br><span>+++ b/Documentation/lib/payloads/fit.md</span><br><span>@@ -25,7 +25,7 @@</span><br><span> </span><br><span> The FIT parser needs architecure support.</span><br><span> ### aarch64</span><br><span style="color: hsl(0, 100%, 40%);">-The source code can be found in ''src/arch/arm64/fit.c''.</span><br><span style="color: hsl(120, 100%, 40%);">+The source code can be found in `src/arch/arm64/fit.c`.</span><br><span> </span><br><span> On aarch64 the kernel (a section named 'kernel') must be in **Image**</span><br><span> format and it needs a devicetree (a section named 'fdt') to boot.</span><br><span>@@ -83,7 +83,7 @@</span><br><span> </span><br><span> ## Building FIT image</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-The FIT image has to be built by calling ''mkimage''. You can use</span><br><span style="color: hsl(120, 100%, 40%);">+The FIT image has to be built by calling `mkimage`. You can use</span><br><span> the following example configuration:</span><br><span> </span><br><span> ```</span><br><span>@@ -148,9 +148,20 @@</span><br><span> };</span><br><span> ```</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-It includes a compressed initrd **initramfs.cpio.xz**, which will be</span><br><span style="color: hsl(0, 100%, 40%);">-decompressed by the Linux kernel, a compressed kernel **Image.lzma**, which will</span><br><span style="color: hsl(0, 100%, 40%);">-be decompressed by the FIT loader and an uncompressed devicetree blob.</span><br><span style="color: hsl(120, 100%, 40%);">+Save it as ITS file `config.its` along with the other files defined here:</span><br><span style="color: hsl(120, 100%, 40%);">+* target.dtb</span><br><span style="color: hsl(120, 100%, 40%);">+* initramfs.cpio.xz</span><br><span style="color: hsl(120, 100%, 40%);">+* Image.lzma</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+Generate the `uImage` that will be included into the CBFS by calling</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+```bash</span><br><span style="color: hsl(120, 100%, 40%);">+mkimage -f config.its uImage</span><br><span style="color: hsl(120, 100%, 40%);">+```</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+The generated file includes a compressed initrd **initramfs.cpio.xz**, which</span><br><span style="color: hsl(120, 100%, 40%);">+will be decompressed by the Linux kernel, a compressed kernel **Image.lzma**,</span><br><span style="color: hsl(120, 100%, 40%);">+which will be decompressed by the FIT loader and an uncompressed devicetree blob.</span><br><span> </span><br><span> [uImage.FIT]: https://raw.githubusercontent.com/u-boot/u-boot/master/doc/uImage.FIT/howto.txt</span><br><span> [U-Boot]: https://www.denx.de/wiki/U-Boot</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/29319">change 29319</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/29319"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: merged </div>
<div style="display:none"> Gerrit-Change-Id: Id83db3db51582cb0d6ded7f3152b5549fba1f2e7 </div>
<div style="display:none"> Gerrit-Change-Number: 29319 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: Patrick Rudolph <siro@das-labor.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jonathan Neuschäfer <j.neuschaefer@gmx.net> </div>
<div style="display:none"> Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki@gmail.com> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>