<div dir="auto">Note that OpenBMC's Yocto builds put the .its used by the build system in the deploy folder.</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 13, 2017 7:06 PM, "Joel Stanley" <<a href="mailto:joel@jms.id.au">joel@jms.id.au</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I've switched my kernel development workflow to use a FIT image<br>
containing the machine's dtb, initramfs and kenrel. By copying this<br>
over with tftp and booting it, I can test my changes with a real<br>
openbmc rootfs, but the changes go away once someone else reboots.<br>
<br>
This example uses witherspoon. Put the files in the root of your<br>
kernel object tree.<br>
<br>
1. Download obmc-phosphor-initramfs-<wbr>witherspoon.cpio.lzma[1]<br>
2. Download <a href="http://ozlabs.org/~joel/openbmc.its" rel="noreferrer" target="_blank">http://ozlabs.org/~joel/<wbr>openbmc.its</a><br>
3. Build your kernel with `make`<br>
4. Build your fit with `mkimgage -f openbmc.its myimage`<br>
<br>
You now have a FIT image called myimage. Copy it across to your tftp<br>
server and on a u-boot prompt as follows:<br>
<br>
ast > setenv serverip <tftp server><br>
ast > tftp 0x83000000 myimage<br>
ast > bootm 0x83000000<br>
<br>
And off it goes! The magic was mostly working out where to find the<br>
.its file. In the future we could include this in the kernel tree and<br>
have a makefile rule that does the FIT-ing for us.<br>
<br>
Cheers,<br>
<br>
Joel<br>
<br>
[1] <a href="https://openpower.xyz/job/openbmc-build/distro=ubuntu,target=witherspoon/lastSuccessfulBuild/artifact/images/witherspoon/" rel="noreferrer" target="_blank">https://openpower.xyz/job/<wbr>openbmc-build/distro=ubuntu,<wbr>target=witherspoon/<wbr>lastSuccessfulBuild/artifact/<wbr>images/witherspoon/</a><br>
</blockquote></div></div>