linuxboot / heads

A minimal Linux that runs as a coreboot or LinuxBoot ROM payload to provide a secure, flexible boot environment for laptops, workstations and servers.
https://osresearch.net/
GNU General Public License v2.0
1.41k stars 185 forks source link

Bring dasharo+heads MSI boards from downstream Dasharo/heads to upstream #1753

Open tlaurion opened 1 month ago

tlaurion commented 1 month ago

NOTES:


DISCLAIMER: UNTESTED Sorry, not gonna cherry-pick commits from dahsharo/heads here, way too messy.


after merge, WILL superseed https://github.com/linuxboot/heads/pull/1489 abandonned effort.


TODO:


OLD ~DO NOT FLASH YET IF NO EXTERNAL PROGRAMMER. THIS VERSION BUMP FLASHROM SO FLASHING MASTER FROM THIS IS NEEDED~ Edit: fixed with #1755 commit cherry-picked.

tlaurion commented 4 weeks ago

WP is a huge topic, what do you need specifically?

Raw braindump. As of today, only thing used in the wild (known to be used) is for d16: ...

That's the topic that would need the aforementioned CLI update. Patches are written for flashprog, but only been rebased in the past 18 months. I'll give them a look and a little testing later.

Still working fine 😄 Added a few bits for the chips I had at hand. More testing welcome!

@i-c-o-n I see you worked on this yersterday!!!! Busy bee! Issue to be tracked would be #1546

tlaurion commented 4 weeks ago

@macpijan @SergiiDmytruk @i-c-o-n : What would be missing from flashrom today to be a direct replacement of flashrom? Please detail under #1546. Not sure flashrom deserves the energy needed to be fixed at this point, but you know way better then I do so please continue under #1546 tagging where/if needed.

We need

tlaurion commented 3 weeks ago

1251 resolves the issue.

@macpijan opinions?

tlaurion commented 3 weeks ago

Can be tested under #1773. Worked great on x230 and nv41

tlaurion commented 2 weeks ago

1251 resolves the issue.

@macpijan opinions?

https://github.com/linuxboot/heads/pull/1769 (flashprog) is way better fit. Would dasharo consider switching to flashprog?

tlaurion commented 2 weeks ago

Rebased on master, needs cleanup (come commits unrelevant as of now) but will wait for decision on flashrom/flashprog and letting it bitrot until then.