Hi Stefan,

  I applied the patches pointed by you
  http://patchwork.coreboot.org/patch/3486/ and now i can write 8MB image file.

  Even with this patch why do we need to give argument to -w image (16MB in mycase). Is this image
   used for verification ?. From the log , i see this is not used and only file which follows -i is being  used (-i image <:file> )

  In flashrom.c -> verify_flash

  I have to change
  unsigned int len = l->end - l->start + 1; (this is introduced as part of the patch above)
 to
   unsigned int len = l->end - l->start ;

I changed ich_descriptors.c line 822
to
 if(nr > 5) {

 With these changes i am attaching the log.



On Tue, Mar 27, 2012 at 6:08 AM, Stefan Tauner <stefan.tauner@student.tuwien.ac.at> wrote:
On Tue, 27 Mar 2012 05:16:45 +0530
narayanan best <narayananbest@gmail.com> wrote:

>  Thanks for pointing out layout option. But it still accepts 16MB image as
> argument.

true, but it will only "use" the part that is needed to fill the
address range defined by the layout file. so this should be already
sufficient for you?

>   Is there a way where i can select the second chip and give only 8MB image
> file ?.

not without patches. there is a patch to specify a file per layout
image: http://patchwork.coreboot.org/patch/3486/

>
> Just curious:
>
>   How to select the SPI flash chip using CS on ICH9 ? ICH9 doc states that
> CS can used to select the chip but
>   didn't have enough information on how to program CS.
>
>   Is hwseq only solution for accessing multiple chips ?.

afaik hwseq is the only option because there is no (publicly
documented?) access to any register that allows to toggle CS by the
host software. we have studied all public and some non-public intel
documents to no avail.
--
Kind regards/Mit freundlichen Grüßen, Stefan Tauner