<div>Hi Stefan, </div>
<div>&nbsp;</div>
<div>Sure I will &nbsp;post it to mailing list and try your suggestions.</div>
<div>&nbsp;</div>
<div>Thanks and Regards</div>
<div>Srinath</div>
<div>&nbsp;</div>
<div><br>&nbsp;</div>
<div><span class="gmail_quote">On 12/10/07, <b class="gmail_sendername">Stefan Roese</b> &lt;<a href="mailto:sr@denx.de">sr@denx.de</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Srinath,<br><br>one note in front. Please send such questions to the mailing list. So a lot of<br>other talented people have to opportunity answer our questions.
<br><br>On Monday 10 December 2007, Srinath Iyengar wrote:<br>&gt; I have an arm based board which can have one of the following serial<br>&gt; flashes<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;8 MB flash with 64K sector size<br>&gt;<br>&gt; 16 MB flash with 64K sector size
<br>&gt; 16 MB flash with 265K sector size<br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;*My objective is to have a single u-boot binary (Image) which can handle<br>&gt; any of these flashes.*<br><br>Should be possible with the CFI driver.<br>
<br>&gt; Currently I have found the means to get it work with compile time option to<br>&gt; differentiate between 64KB and 256KB sector size of Flash.<br>&gt;<br>&gt; I am finding it difficult to fix the issues with CFG_FLASH_SECT_SIZE
<br>&gt; and CFG_ENV_SECT_SIZE<br>&gt; or CFG_ENV_SIZE values dynamically.<br><br>Correct. Currently this is not supported.<br><br>&gt; (There should be some means by which I can determine CFG_FLASH_SECT_SIZE,<br>&gt; eventually CFG_ENV_SECT_SIZE and CFG_ENV_SIZE
<br>&gt; after knowing the details about FLASH (probe).Even though we are filling<br>&gt; flash_info structure data after probing about flash we still have to live<br>&gt; with<br>&gt; compile time option for finding CFG_FLASH_SECT_SIZE, CFG_ENV_SECT_SIZE and
<br>&gt; dependent Macros)<br><br>Yes, a dynamic sector size configuration would be good.<br><br>&gt; Please let me know if my requirement is conflating with U-boot design<br>&gt; objectives in handling flash and any suggestions to fix this issue.
<br><br>An easy way to handle all your flash chips in one image (without this dynamic<br>sector size detection) would be, if you set the CFG_ENV_SECT_SIZE to the max<br>size you can have, that is 256k. You should set CFG_ENV_SIZE to a smaller
<br>size, something like 16k, so that saving the environment doesn&#39;t take too<br>long.<br><br>Best regards,<br>Stefan<br><br>=====================================================================<br>DENX Software Engineering GmbH,&nbsp;&nbsp;&nbsp;&nbsp; MD: Wolfgang Denk &amp; Detlev Zundel
<br>HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany<br>Phone: +49-8142-66989-0 Fax: +49-8142-66989-80&nbsp;&nbsp;Email: <a href="mailto:office@denx.de">office@denx.de</a><br>=====================================================================
<br></blockquote></div><br>