<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Build and test mtd0 Uboot from SDRAM</title>
        <description> Is seems only Jeff&amp;#039;s &amp;quot;uboot.mtd0.kwb&amp;quot; and &amp;quot;uboot-original-mtd0.kwb&amp;quot; can be tested by using:

tftpboot 0x800000 uboot.mtd0.kwb
go 0x800200

Several people have followed http://jeff.doozan.com/debian/uboot/build_uboot.htm but were not able to boot from SDRAM.

I was able to boot mtd3 uboot from SDRAM,  but mtd0 uboot always hang after &amp;quot;go 0x800200&amp;quot;.

Does anyone have a hint why Jeff&amp;#039;s mtd0 uboots can boot from SDRAM but others can&amp;#039;t?</description>
        <link>https://forum.doozan.com/read.php?3,1593,1593#msg-1593</link>
        <lastBuildDate>Sun, 08 Mar 2026 05:59:14 -0500</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,7074#msg-7074</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,7074#msg-7074</link>
            <description><![CDATA[ OK, some fine-tuning now on when it seems that testing in SDRAM works...<br />
Same source code (ie.  same version, eg 2011.12), minor changes only (ie.  only minor edits to the include/configs/&lt;machine&gt;.h.]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 Feb 2012 22:06:53 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,7063#msg-7063</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,7063#msg-7063</link>
            <description><![CDATA[ Sorry, It was a mistake! I can confirm that there are some changes in kwbimage.kwb from jeff&#039;s patch to ecc&#039;s patch, but forget about diferences in sizes, my fault ;)]]></description>
            <dc:creator>pazos</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 Feb 2012 14:29:55 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,7061#msg-7061</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,7061#msg-7061</link>
            <description><![CDATA[ @ pazos: can you find the commit of the new header size?]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 Feb 2012 13:08:05 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,7057#msg-7057</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,7057#msg-7057</link>
            <description><![CDATA[ It is weird cause new headers size = 516 bytes (204 in hexadecimal).<br />
<br />
@davygravy: could you test &#039;go 0x800204&#039; in uboot&#039;s prompt]]></description>
            <dc:creator>pazos</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 Feb 2012 12:47:55 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,7051#msg-7051</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,7051#msg-7051</link>
            <description><![CDATA[ DockstarPBX Wrote:<br />
-------------------------------------------------------<br />
&gt; Is seems only Jeff&#039;s &quot;uboot.mtd0.kwb&quot; and<br />
&gt; &quot;uboot-original-mtd0.kwb&quot; can be tested by using:<br />
&gt; <br />
&gt; <br />
&gt; Several people have followed<br />
&gt; <a href="http://jeff.doozan.com/debian/uboot/build_uboot.ht"  rel="nofollow">http://jeff.doozan.com/debian/uboot/build_uboot.ht</a><br />
&gt; m but were not able to boot from SDRAM.<br />
&gt; <br />
&gt; I was able to boot mtd3 uboot from SDRAM,  but<br />
&gt; mtd0 uboot always hang after &quot;go 0x800200&quot;.<br />
&gt; <br />
<br />
<br />
<br />
<b>It works</b>, but one condition is that it seems you should minimize the changes between your actual in-NAND bootloader, and the version you are loading into SDRAM to execute.<br />
<br />
I built a u-boot.kwb  yesterday - and flashed it - after several days of trying to get it to load (and having the same results as PBX above).   Since I knew that an acquaintance had flashed his to NAND and it was OK, I made the leap of faith and went ahead and flashed it... all was well.<br />
<br />
But after discovering that <br />
<pre class="bbcode">
#define CONFIG_ENV_ADDR			0xc0000</pre>
had been changed to <br />
<pre class="bbcode">
#define CONFIG_ENV_ADDR			0x60000</pre>
when support for Dockstar had been added to mainline u-boot, I tried changin ENV_ADDR back and recompiled it... also changed the prompt...  and it does load and execute:<br />
<br />
<pre class="bbcode">
Filename &#039;uboot.mtd0.kwb-marvell02192012-doozanvars-fs-origenv&#039;.
Load address: 0x800000
Loading: ####################################
done
Bytes transferred = 524288 (80000 hex)
DockStar&gt; go 0x800200 
## Starting application at 0x00800200 ...


U-Boot 2011.12-06918-gf33b06f-dirty (Feb 11 2012 - 01:50:51)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
DRAM:  WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
u-boot&gt;&gt;</pre>
<br />
I do not know what the &quot;threshhold&quot; or tolerance is exactly.  But after experimenting for an hour or so (building uboot on my quad core takes less than 60 seconds), I can say for sure that it is replicable - it wasn&#039;t a one-time fluke.]]></description>
            <dc:creator>davygravy</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 Feb 2012 08:15:27 -0600</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,1696#msg-1696</guid>
            <title>Re: Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,1696#msg-1696</link>
            <description><![CDATA[ After changing &quot;mkDockstar.mtd0&quot;<br />
from &quot;sed -i &#039;s/^TEXT_BASE = 0x00.00000/TEXT_BASE = 0x00600000/&#039; board/Marvell/sheevaplug/config.mk&quot;<br />
to &quot;sed -i &#039;s/^TEXT_BASE = 0x00.00000/TEXT_BASE = 0x00c00000/&#039; board/Marvell/sheevaplug/config.mk&quot;<br />
<br />
I was able to build mtd0 uboot, tested it on SDRAM and flashed it to NAND.<br />
<br />
I&#039;m not sure why Jeff set TEXT_BASE to 0x00600000 in his patches and mkDockstar.mtd0.]]></description>
            <dc:creator>DockstarPBX</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 15 Oct 2010 18:42:43 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?3,1593,1593#msg-1593</guid>
            <title>Build and test mtd0 Uboot from SDRAM</title>
            <link>https://forum.doozan.com/read.php?3,1593,1593#msg-1593</link>
            <description><![CDATA[ Is seems only Jeff&#039;s &quot;uboot.mtd0.kwb&quot; and &quot;uboot-original-mtd0.kwb&quot; can be tested by using:<br />
<br />
tftpboot 0x800000 uboot.mtd0.kwb<br />
go 0x800200<br />
<br />
Several people have followed <a href="http://jeff.doozan.com/debian/uboot/build_uboot.htm"  rel="nofollow">http://jeff.doozan.com/debian/uboot/build_uboot.htm</a> but were not able to boot from SDRAM.<br />
<br />
I was able to boot mtd3 uboot from SDRAM,  but mtd0 uboot always hang after &quot;go 0x800200&quot;.<br />
<br />
Does anyone have a hint why Jeff&#039;s mtd0 uboots can boot from SDRAM but others can&#039;t?]]></description>
            <dc:creator>DockstarPBX</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 09 Oct 2010 16:10:05 -0500</pubDate>
        </item>
    </channel>
</rss>
