<div dir="ltr"><div dir="ltr">On Tue, Feb 19, 2019 at 9:13 AM Leon Woestenberg &lt;<a href="mailto:leon@sidebranch.com">leon@sidebranch.com</a>&gt; wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div dir="auto">Hello Mike,</div></div><div dir="auto"><br></div><div dir="auto">sounds familiar.</div><div dir="auto"><br></div><div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 19 Feb 2019 at 17:55, Mike Looijmans &lt;<a href="mailto:mike.looijmans@topic.nl" target="_blank">mike.looijmans@topic.nl</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Took me a while to figure out why my board took 90 seconds to boot suddenly.<br>
<br>
The issue turned out to be the ext4 partition created by wic.</blockquote><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><div dir="auto">I suspect it&#39;s not WIC&#39;s fault.</div><div dir="auto"><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
ZynqMP&gt; load mmc 0:2 0x100000 /lib/firmware/fpga.bin<br>
19311092 bytes read in 85529 ms (219.7 KiB/s)<br><br>
Now if I boot the board rename and copy that file onto itself, then it&#39;s <br>
suddenly normal again when I reboot the board:<br>
<br>
ZynqMP&gt; load mmc 0:2 0x10000<br>
I&#39;m not knowledgeable on ext4, so any ideas what&#39;s being passed onto the image <br>
creation tool that causes this?</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"></blockquote><div dir="auto"><br></div><div dir="auto">I suspect your version of U-Boot does not handle files spread across multiple filesystems (allocation) extends efficiently. </div><div dir="auto"><br></div><div dir="auto">Copying the file makes the copy being layed out in one extend probably.</div></div></div></blockquote><div><br></div><div>If WIC is generating filesystem images from scratch there&#39;s no excuse for files to be unnecessarily fragmented.<br></div><div><br></div><div>Even if some of all of the boot time can be recovered by a patch to u-boot that won&#39;t help systems which have already been deployed and don&#39;t have a way to update the bootloader.<br></div><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div class="gmail_quote"><div dir="auto">I am aware of two fixes for U-Boot. I will look them up, and reply again to this thread.</div><div dir="auto"><br></div><div dir="auto">Regards, Leon</div></div></div>-- <br><div dir="ltr" class="gmail-m_-8263487930586811828gmail_signature"><div dir="ltr"><div style="color:rgb(0,0,0);font-family:Helvetica">Leon Woestenberg</div><div style="color:rgb(0,0,0);font-family:Helvetica"><a href="mailto:leon@sidebranch.com" style="color:rgb(17,85,204)" target="_blank">leon@sidebranch.com</a></div><div style="color:rgb(0,0,0);font-family:Helvetica"><div>T: +31 40 711 42 76</div><div>M: +31 6 472 30 372</div></div><div style="color:rgb(0,0,0);font-family:Helvetica"><br></div><div style="color:rgb(0,0,0);font-family:Helvetica">Sidebranch</div><div style="color:rgb(0,0,0);font-family:Helvetica">Embedded Systems</div><div style="color:rgb(0,0,0);font-family:Helvetica">Eindhoven, The Netherlands</div><a href="http://www.sidebranch.com/" style="color:rgb(17,85,204);font-family:Helvetica" target="_blank">http://www.sidebranch.com</a><br>
</div></div></blockquote></div></div>