<p dir="ltr"><br>
On 27 Mar 2013 01:31, &quot;Graeme Russ&quot; &lt;<a href="mailto:graeme.russ@gmail.com">graeme.russ@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; Hi Brendan,<br>
&gt;<br>
&gt; On Wed, Mar 27, 2013 at 12:13 PM, Brendan Conoboy &lt;<a href="mailto:blc@redhat.com">blc@redhat.com</a>&gt; wrote:<br>
&gt; &gt; On 03/26/2013 06:09 PM, Graeme Russ wrote:<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; I&#39;ve had a quick glance at the U-Boot source and I think the newer<br>
&gt; &gt;&gt; &#39;FIT&#39; image may be a better path to follow. In common/image.c you will<br>
&gt; &gt;&gt; find fit_image_get_load() and in common/cmd_bootm.c you will find<br>
&gt; &gt;&gt; bootm_start() and bootm_load_os(). Teasing apart these functions, it<br>
&gt; &gt;&gt; looks like fit_image_get_load() looks for a &quot;load&quot; property<br>
&gt; &gt;&gt; (FIT_LOAD_PROP) in the FDT first, then in the FIT image (if the FDT<br>
&gt; &gt;&gt; returns a NULL load address).<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; Now you can set properties in the FDT in U-Boot (fdt set &lt;path&gt; &lt;prop&gt;<br>
&gt; &gt;&gt; [&lt;val&gt;])<br>
&gt; &gt;&gt;<br>
&gt; &gt;&gt; So have a common FIT image with a common FDT and use U-Boot to tweak<br>
&gt; &gt;&gt; the FDT properties such as the kernel load address<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; I&#39;d love to, but we don&#39;t ship uboot for a number of our boards.  We are<br>
&gt; &gt; limited to the functionality provided by the firmware provided.  FIT is not<br>
&gt; &gt; universal.<br>
&gt;<br>
&gt; Well at least you can have a common image for all U-Boot boards :)<br>
&gt;<br>
&gt; I suppose the 64-byte header per-board would work. Ugly, but not as<br>
&gt; ugly as some of the other options.<br>
&gt;<br>
&gt; You could also make a small mod to U-Boot to allow the load address of<br>
&gt; legacy images to be changed via a command to make the hack slightly<br>
&gt; less ugly</p>
<p dir="ltr">Not to the devices shipped with uboot in firmware. Some of the Marvell shipped uboots date back to early 2009.<br><br></p>
<p dir="ltr">&gt; Regards,<br>
&gt;<br>
&gt; Graeme<br>
&gt; _______________________________________________<br>
&gt; arm mailing list<br>
&gt; <a href="mailto:arm@lists.fedoraproject.org">arm@lists.fedoraproject.org</a><br>
&gt; <a href="https://admin.fedoraproject.org/mailman/listinfo/arm">https://admin.fedoraproject.org/mailman/listinfo/arm</a></p>