<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>Am 30.11.2012 um 15:05 schrieb Dr. H. Nikolaus Schaller:</div><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><font class="Apple-style-span" color="#000000"><br></font></div><div>So we have these rules (to some extent dictated by the limited programmability of u-boot and hardware):</div><div><br></div><div>1. if AUX is pressed -> u-boot.bin from SD</div><div>    if AUX not pressed -> u-boot.flash from NAND</div><div><br></div><div>This is done by BootROM & MLO/X-Loader.</div><div><br></div><div>2. Boot.scr comes from SD if available, NAND else.</div><div><br></div><div>3. Boot.scr flashes if the version in NAND is different.</div><div><br></div><div>4. u-boot.bin (on SD) is hard-coded to erase the environment</div><div>    so that it will flash because no version in NAND is known.</div></div></div></blockquote><br></div><div>This also means that if you have an SD card with *no* boot.scr</div><div>on it, you can boot any other u-boot.bin by pressing the AUX button.</div><div>And it will not flash.</div><br><div>So if you compile your own u-boot just take the u-boot.bin and</div><div>place it on a SD and boot with AUX pressed.</div><div><br></div><div>The special flashing code (rule 4) must be enabled explicitly</div><div>when compiling.</div><div><br></div><div>BR,</div><div>Nikolaus</div><div><br></div></body></html>