On 11.02.2019 18:00, Angel Pons wrote:
On Mon, Feb 11, 2019, 16:33 Richard Hughes <hughsient@gmail.com wrote:
I've been looking at updating the EC for the IT8587 and IT8987 SuperIO controllers from userspace.
Hmm, I have the ITE IT8585 and IT8987 chips here.
I see that there are it87spi and ite85spi modules in flashrom, but as I understand it they are using the ITE chip to write the system firmware over SPI (e.g. the 4MiB BIOS) rather than the 128KiB internal e-flash.
The it85spi driver is commented out in code, apparently because it relies on firmware-specific functions. AFAIK, there isn't much to read the internal flash on ECs, other than the ENE KB9012's via EDI.
Ah, these were the days... IIRC IT87* were SuperI/O chips, whereas IT85* were Embedded Controllers mostly for laptops. IT87 handling was easy and straightforward because all they did (regarding flash) was translating LPC flash accesses to SPI flash accesses in passthrough mode and offering a separate SPI-centric programming interface for full access. IT85 handling was way more complicated because it depended on multiple factors: The firmware running on the IT85 EC, the way the EC was wired in the laptop, and the exact model of the IT85 family. Probing for this was not completely reliable, so it was disabled by default, but IIRC it worked on a few models.
Whilst I now have a datasheet, I
For those chips? I'm interested in them: How did you obtain them?
don't want to implement code that someone else has already done. If anyone knows any pointers to any code or documentation I'd be very grateful. Thanks.
I don't think much has been done for the internal flash on these ICs on flashrom. For instance, I didn't know the IT8987 had an internal flash.
The ITE IT89* family is something I never worked with, so I would have to read up on that first.
Regards, Carl-Daniel