Thanks for pointing out layout option. But it still accepts 16MB image as argument.<br>  Is there a way where i can select the second chip and give only 8MB image file ?.<br><br>Just curious:<br><br>  How to select the SPI flash chip using CS on ICH9 ? ICH9 doc states that CS can used to select the chip but<br>
  didn't have enough information on how to program CS.<br><br>  Is hwseq only solution for accessing multiple chips ?.<br><br><div class="gmail_quote">On Tue, Mar 27, 2012 at 4:04 AM, Stefan Tauner <span dir="ltr"><<a href="mailto:stefan.tauner@student.tuwien.ac.at">stefan.tauner@student.tuwien.ac.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 27 Mar 2012 01:40:30 +0530<br>
narayanan best <<a href="mailto:narayananbest@gmail.com">narayananbest@gmail.com</a>> wrote:<br>
<br>
> > > I believe the cause is due to hardware sequencing write does not disable<br>
> > > SRPL (sector protection register lock). I used -p<br>
> > > internal:ich_spi_force=yes option which didn't help.<br>
> > ><br>
> > > This was confirmed when i gave ich_spi_mode=swseq (read or write) as<br>
> > > parameter, it disables the SRPL and next write of 16MB with hardware<br>
> > > sequencing succeeded.<br>
<br>
</div>you are right with your diagnosis afaics. when i implemented hwseq i<br>
was not thinking about setups like yours. hwseq abstracts away so many<br>
aspects of the write process that it did not make a lot of sense to<br>
think about chip-specific write protections. but in the case hwseq is<br>
only used to be able to access two flash chips, it is (apparently) a<br>
viable use case for some.<br>
<br>
are you involved in the design of that specific machine and are you<br>
able to change the firmware? in that case i wonder why you made the<br>
design choice to use chip-specific write protections instead of the<br>
ones provided by the chipset.<br>
<br>
if you bought it completely i would like to know which board that is.<br>
<br>
in any case, changing flashrom to unlock the first flash chip with sw<br>
sequencing and then doing the rest of the process with hwseq would be a<br>
major effort. a possible workaround is to use swseq to access the first<br>
chip and hwseq for the other half. this could be done with layout<br>
files, see manpage for details please (layout files do only work for<br>
writing at the moment. patches exist for the other operation modes too,<br>
but they are not committed yet. this does not really affect you,<br>
because you only need a workaround for writing anyway).<br>
<br>
i also spotted a bug in ich_descriptors.c that showed up in your log.<br>
line 822 should be<br>
"       if (nr > 5) {"<br>
instead of<br>
"       if (nr >= 5) {"<br>
<br></blockquote><div><br>   I will get back on this in my next mail.<br> </div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
would be nice if you could recompile with that change and post another<br>
log.<br>
<div class="HOEnZb"><div class="h5">--<br>
Kind regards/Mit freundlichen Grüßen, Stefan Tauner<br>
</div></div></blockquote></div><br>