<div dir="ltr">Hi Sandy,<div><br></div><div>Responses in-line.</div><div><br></div><div class="gmail_extra"><div class="gmail_quote">On Fri, Aug 11, 2017 at 1:38 AM, Sandy Zhang <span dir="ltr"><<a href="mailto:sanzhang@celestica.com" target="_blank">sanzhang@celestica.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi David,<div><br></div><div>     Sorry, I have a doubt about the range outside, from the binary map, we can find the Spare 3 Region size is 0x00FFFFFF - 0xFF0000 + 1 = 0x10000, and the binary size map to this range is also 0x10000, they are equal, why outside was happened? and can you tell me how to update the binary region's range defined in the flash description?</div><div><br></div><div><div>Start (hex)    End (hex)    Length (hex)    Area Name</div><div>-----------    ---------    ------------    ---------</div><div>...</div><div>...</div><div>....</div><div><font color="#0000ff">00FF0000       00FFFFFF     00010000        Spare 3 Region</font></div><div>01000000       01FFFFFF     01000000        BIOS Region</div></div></div></blockquote><div><br></div><div>The Flash Region registers (BIOS_FREGn) define the boundaries of each region. I don't see where 0xa36000-0xffffff is covered:</div><div>0x54: 0x00000000 FREG0: Flash Descriptor region (0x00000000-0x00000fff) is read-write.</div><div>0x58: 0x1fff1000 FREG1: BIOS region (0x01000000-0x01ffffff) is read-write.</div><div>0x5C: 0x0a250003 FREG2: Management Engine region (0x00003000-0x00a25fff) is read-write.</div><div>0x60: 0x00020001 FREG3: Gigabit Ethernet region (0x00001000-0x00002fff) is read-write.</div><div>0x64: 0x00007fff FREG4: Platform Data region is unused.</div><div>0x68: 0x0a350a26 FREG5: unknown region (0x00a26000-0x00a35fff) is read-write.</div><div>0x6C: 0x00007fff FREG6: unknown region is unused.</div><div>0x70: 0x00007fff FREG7: unknown region is unused.</div><div>0x74: 0x00007fff FREG8: unknown region is unused.</div><div>0x78: 0x00007fff FREG9: unknown region is unused.</div><div><br></div><div>You might also need to set permissions for the "BIOS" master (i.e. flashrom running on the CPU) via BRWA and BRRA in the FRACC register.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div> In addition, from flash log file(please see attachment "Lewisburg_W25Q256.log"), it shows:<br></div><div><font color="#0000ff">Found Programmer flash chip "Opaque flash chip" (32768 kB, Programmer-specific) mapped at physical address 0x0000000000000000.</font></div><div> but, my flash chip is "Winbond flash chip", what do you think about this? </div></div></blockquote><div><br></div><div>This is OK. Intel hardware sequencing is an "opaque" programmer interface since flashrom does not directly send NOR flash commands via a raw SPI interface. For hardware sequencing we use the FCYCLE field as our command interface to the SPI flash.</div><div><br></div></div></div></div>