<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><div>Nico,<br />Thanks very much for your help. After upgrading my yocto recipe to use flashrom version 0.9.9 everything looks good.<br />Regards,<br />Graham<br /><br /><div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:normal;"><br /><table cellpadding="0" cellspacing="0" border="0" style="background-color:#FFFFFF;border-collapse:collapse;font-size:0;line-height:16.88px;"><tr><td align="left" style="vertical-align:middle;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="left" style="border-top:none;border-right:solid 2px #01558A;border-bottom:none;border-left:none;padding:0 10px 0 0;vertical-align:middle;line-height:normal;"><a href="http://www.vocality.com" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image616000.png@942E4DDA.37298C49" width="255" height="127" border="0" title="Vocality | Cubic Mission Solutions" alt="Vocality | Cubic Mission Solutions" style="min-width:255px;font-size:12px;" /></a></td><td align="left" style="padding:10px 0 10px 10px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:13.5px;color:#606060;font-style:normal;font-weight:bold;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">Graham Perkins</td></tr><tr style="font-size:0;line-height:15px;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:12px;color:#808080;font-style:normal;font-weight:bold;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">Senior Software Engineer</td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;white-space:nowrap;">, </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">Vocality | Cubic Mission Solutions</td></tr></table></td></tr></table></td></tr><tr style="line-height:15px;white-space:nowrap;"><td align="left" style="padding:5px 0 10px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:12px;color:#01558A;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">T: </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="tel:+44%201483%20813%20120%20x154" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">+44 1483 813 120 x154</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:12px;color:#01558A;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">E: </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="mailto:graham.perkins@vocality.com" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">graham.perkins@vocality.com</strong></a></td><td align="left" style="vertical-align:top;text-align:left;color:#808080;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"> | </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">W: </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="http://www.vocality.com" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">www.vocality.com</strong></a></td></tr></table></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:12px;color:#01558A;font-style:normal;font-weight:normal;text-decoration:none;"><tr><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;">A: </td><td align="left" style="vertical-align:top;text-align:left;font-family:Arial,Helvetica Neue,Helvetica,sans-serif;"><a href="https://www.google.com/maps/place/Lydling+Farm,+Lydling+Barn,+Puttenham+Lane,+Shackleford,+Surrey,+GU8+6AP" target="_blank" id="LPlnk689713" style="color:#808080;text-decoration:none;"><strong style="font-weight:normal;">Lydling Barns, Lydling Farm,<br />Puttenham Lane, Shackleford,<br />Surrey, GU8 6AP</strong></a></td></tr></table></td></tr></table></td></tr><tr style="line-height:normal;"><td align="left" style="vertical-align:top;"><map id="map_13b16341-1705-411e-9a81-14487500eb2d" name="map_13b16341-1705-411e-9a81-14487500eb2d"><area shape="rect" coords="0,0,16,16" href="https://www.facebook.com/Vocality-132586853464768" alt="Facebook" title="Facebook" target="_blank" /><area shape="rect" coords="19,0,35,16" href="https://www.linkedin.com/company/vocality" alt="LinkedIn" title="LinkedIn" target="_blank" /><area shape="rect" coords="38,0,54,16" href="https://twitter.com/vocality" alt="Twitter" title="Twitter" target="_blank" /><area shape="rect" coords="57,0,73,16" href="https://vimeo.com/vocalityinternational" alt="Vimeo" title="Vimeo" target="_blank" /></map><img usemap="#map_13b16341-1705-411e-9a81-14487500eb2d" src="cid:image823001.png@12BDC717.F794224A" width="76" height="16" border="0" alt="" style="min-width:76px;font-size:0;" /></td></tr></table></td></tr></table></td></tr><tr style="line-height:normal;"><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="border-collapse:collapse;font-size:0;"><tr><td align="center" style="vertical-align:middle;"><a href="https://vimeo.com/209210326" target="_blank" id="LPlnk689713" style="text-decoration:none;"><img src="cid:image630002.png@FF198E9C.55C0AA45" width="432" height="114" border="0" alt="" style="min-width:432px;font-size:0;" /></a></td></tr></table></td></tr></table><br /></div>-----Original Message-----<br />From: Nico Huber [mailto:nico.h@gmx.de] <br />Sent: 13 July 2017 4:55 PM<br />To: Graham Perkins <graham.perkins@vocality.com>; coreboot@coreboot.org<br />Subject: Re: [coreboot] Using Intel e3800 pcu spi to program flash<br /><br />Hello Graham,<br /><br />the SPI controller for the boot firmware is usually treated as sepa- rated from the OS and therefore not advertised in ACPI. AFAIK, Linux also doesn't have a driver for it.<br /><br />We usually use flashrom [1] to access the firmware flash. It has a special programmer target called `internal` for that (see `man flashrom`).<br /><br />Hope that helps,<br />Nico<br /><br />[1] https://flashrom.org/<br /><br />On 13.07.2017 13:26, Graham Perkins wrote:<br />> Hi All,<br />> I feel I am going around in circles with this problem. The task at hand is to be able to upgrade coreboot/uefi image in a winbond W25Q64 flash chip from linux. This chip is connected to the PCU SPI interface on the Intel e3805 processor. I know coreboot is writing to this chip without problem from the log:<br />> <br />> SF: Got idcode: ef 60 17 00 00<br />> SF: Detected W25Q64DW with sector size 0x1000, total 0x800000 Need to <br />> erase the MRC cache region of 65536 bytes at ffd10000<br />> SF: erase 20 51  0  0 (511000)<br />> SPI: read 0080 from 0090<br />> SPI: wrote 000c to 0090<br />> SPI: wrote 06 to 0098<br />> <br />> However linux is not detecting the flash device or the PCH SPI controller. Disassembling the dsdt table I can see e3800 soc devices such as the HPET and PIC but no PCH SPI. The only SPI device is part of the SIO:<br />> <br />>                 Device (SPI1)<br />>                 {<br />>                     Name (_HID, "80860F0E" /* Intel SPI Controller */)  // _HID: Hardware ID<br />>                     Name (_UID, One)  // _UID: Unique ID<br />>                     Name (_DDN, "SPI Controller #2")  // _DDN: DOS <br />> Device Name<br />> <br />> My question is does coreboot need to include the PCU SPI controller in the acpi tables and if so how do I do that?<br />> <br />> The platform is a custom design but very similar to the Intel Minnow Turbot board.<br />> <br />> Many thanks,<br />> Graham Perkins.<br />> <br /></div></body></html>