corna / me_cleaner

Tool for partial deblobbing of Intel ME/TXE firmware images
GNU General Public License v3.0
4.47k stars 278 forks source link

Help with Flashrom on a Raspberry Pi 4 #382

Closed LinuxDragon57 closed 2 years ago

LinuxDragon57 commented 2 years ago

Hey guys, so I've used ME Cleaner on my device before, a Lenovo ThinkPad T480. But I am having to use it again because Lenovo reset all my UEFI settings (and also disabled the HAP bit) despite me explicitly forbidding this in a service request I made awhile back. This time, however, I've run into a problem. When I try writing to the chip with flashrom, flash verification fails with the following error every time: Verifying flash... FAILED at 0x00058000! Expected=0x8a, Found=0xff, failed byte count from 0x00000000-0x00ffffff: 0xf37

This occurs whether I use an original image or the modified image. It is also clear that when I try to flash the original image the image that I pull off the chip is not the same. So I am lead to believe that it is a problem with my RPi setup or something. Perhaps I didn't enable a certain thing in the RPi kernel or maybe I am missing software. At any rate, I am using a different Pi this time than I did last time so it is a new image of Raspberry Pi OS and it is a Pi 4 instead of a Pi 3 (which hopefully shouldn't matter). If anyone is able to help that would be greatly appreciated.

LinuxDragon57 commented 2 years ago

I figured out the issue. I shortened the cables and lowered the SPI speed parameter. Plus I made sure they were on really good.