<div class="gmail_quote">On Mon, Feb 28, 2011 at 4:02 PM, Carl-Daniel Hailfinger <span dir="ltr"><<a href="mailto:c-d.hailfinger.devel.2006@gmx.net">c-d.hailfinger.devel.2006@gmx.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Auf 01.02.2011 00:54, David Hendricks schrieb:<br>
<div class="im">> On Mon, Jan 31, 2011 at 3:53 PM, David Hendricks <<a href="mailto:dhendrix@google.com">dhendrix@google.com</a>>wrote:<br>
><br>
>> A few months ago, ITE open sourced the initial IT8500 EC patch on this<br>
</div>>> mailing list [...] updated since then.<br>
<div class="im">>><br>
>> The attached patch basically does the same thing and has been deployed and<br>
>> tested to work on the Cr-48. There are a few caveats, though:<br>
>> - The boot BIOS straps register must be modified to select LPC. This can be<br>
>> done with the attached "select_bbs.sh" script (Install iotools (<br>
>> <a href="http://code.google.com/p/iotools/" target="_blank">http://code.google.com/p/iotools/</a>) before using select_bbs). We worked<br>
>> around this in the Chromium OS branch by adding a bus argument to the<br>
>> programmer option, ie "flashrom -p internal:bus=lpc".<br>
>><br>
<br>
</div>That's something I don't understand. If the BBS are SPI, the flash<br>
behind the EC should be invisible anyway. If the BBS are LPC, the flash<br>
behind the EC should be visible and no BBS changes would be needed.<br>
Could you clarify this?<br></blockquote><div><br></div><div>That's correct. However, the correct BBS value might not be set by default.</div><div><br></div><div>For example, on the Cr-48 we have two SPI flash parts; the BIOS ROM which is connected directly to the southbridge's SPI controller and the EC firmware ROM connected to the EC (which is connected to the southbridge via LPC). When the machine comes up, the BBS setting is set for SPI. To flash the EC firmware, you need to set it to LPC.</div>

<div><br></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>On Mon, Feb 28, 2011 at 4:02 PM, Carl-Daniel Hailfinger <span dir="ltr"><<a href="mailto:c-d.hailfinger.devel.2006@gmx.net">c-d.hailfinger.devel.2006@gmx.net</a>></span> wrote: </div>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">
>> - It is very important to disable power management daemons before running<br>
>> Flashrom on this EC. I commented out the brute force method we use in the<br>
>> Chromium OS branch that disables powerd, since IIRC Carl-Daniel has a better<br>
>> approach in the works.<br>
>><br>
<br>
</div>While I advocate stopping powerd and related services, I have other<br>
reasons for doing so: powerd may mess with the timing of flashrom, and<br>
that may cause failures on some hardware.<br>
The comments in your code indicate that you didn't manage to isolate the<br>
reason for the powerd related failures back then. Any progress on that<br>
issue?<br></blockquote><div><br></div><div>Yes -- On the Cr-48 the ambient light sensor is attached to I2C via the EC. Polling the light sensor interrupts the EC and can cause very bad things to happen during firmware updates.</div>

<div><br></div><div>Also, the EC has a debugging mechanism which logs port80h traffic if enabled. This is helpful, but unfortunate if your kernel uses port80h as an IO delay mechanism (CONFIG_IO_DELAY_TYPE_0X80). I recommend that anyone using a laptop select one of the alternative IO delay mechanisms (port 0xED or udelay) to avoid issues.</div>

</div><br>-- <br>David Hendricks (dhendrix)<br>Systems Software Engineer, Google Inc.<br>