r/coreboot • • May 12 '20

Announcing coreboot 4.12

https://blogs.coreboot.org/blog/2020/05/12/announcing-coreboot-4-12/
37 Upvotes

14 comments sorted by

4

u/[deleted] May 13 '20
  1. What's SMM?

  2. Are there "new" hardware updates? (Cus I don't see em)

Always waiting for coreboot updates:))) By the way, the developers number increase is due to lockdown... No surprise, but still it's good news.

3

u/[deleted] May 13 '20

Re 1. SMM is the "System Management Mode". Some people call it "Ring -2" because it's more privileged than ring 0 (where the OS resides, while applications are at ring 3) or the informally called "ring -1" of virtualization extensions.

It exists since some 80386 variant and serves for "system management" (as the name implies). Originally providing power management control on laptops that only runs DOS (which had no idea about power management or even about doing stuff when not asked to) it now handles stuff like controlling access to the storage for UEFI variables (that needs to be secure because of Secure Boot requirements).

This is where SMMSTORE comes in (which is probably how you got to the question?): SMMSTORE is an optional service provided in SMM (loaded by coreboot, available for the entire runtime of the computer) that provides a data store that the OS (or UEFI payload) can use to put data in with Secure Boot-friendly (although not 100% identical) semantics.

Re 2., what hardware updates are you thinking of, new chipsets and the like? We have a couple new boards, some of them with code for new chipsets as well, sometimes so new that they're not even on the market. Due to some shuffling sorting these out became too tedious so I stuck with the numbers.

But I think 4.12 is really more notable in that it provides new features to existing devices, most notably an A/B boot scheme on devices that aren't Chromebooks (which have it for years and where the code originally came from), and measured boot (if a TPM is installed) that allows making some assurances about the firmware and later software.

Compared to that, the hardware enablement was rather tame this time around.

3

u/whizz_inf May 13 '20

u/p_georgi Does vboot and measured boot now work with all Lenovo machines? I would be interested to know if it works with the t440p. I just built a fresh rom without both features enabled and wouldn't mind re-building one if it's supported.

4

u/[deleted] May 13 '20

https://doc.coreboot.org/security/vboot/list_vboot.html has a list of supported devices generated from the Kconfig flags in the code (so it should be accurate) and 440p is mentioned. So, yes? (I don't have any of the Lenovos, so I can only go by such data.)

3

u/Rich_Juice May 14 '20

Hey, can you check if ACPI now works correctly on t440p? I currently don't have access to my spi flasher in case something would go south after flashing the new coreboot version so I'd appreciate if you could test and let us know if this was fixed now, thanks in advance!

2

u/whizz_inf May 14 '20

What do you mean works correctly? Forcing thinkpad_acpi to load seems to fix the issue as of 4.11, I had suspend, resume, sensors and fan control working. I only saw an EC unknown error and the following:

[ 28.321680] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND

[ 28.333497] thinkpad_acpi: acpi_evalf(BCTG, dd, ...) failed: AE_NOT_FOUND

I flashed the latest release yesterday and the error is still the same.

3

u/Rich_Juice May 14 '20

Certain thing relying on ACPI do not work like battery charging thersholds, I had issues with the docking station and few minor things that were not critical and apparently not important to remember them ^

2

u/whizz_inf May 14 '20

I figured out what's causing this acpi error, I'm also running TLP which is the culprit, every time I run tlp-stat two additional lines [same as above] show up in the logs. So it's not coreboot which is directly responsible but you're probably right about ACPI as none of the methods work [NATACPI/TPACPI/TPSMAPI] but on the other T440p which is running the stock bios it works :(

3

u/Rich_Juice May 14 '20

Yeah unfortunately, I guess that there's something missing for ACPI tables that was not ported to coreboot and causes both the errors in dmesg and battery threshold to not work. Also as I said when I was on X (running Wayland now) docking station and switching screens was not working at all as it was not detecting the switch to dock..

4

u/whizz_inf May 16 '20

Just wanted to let you know that u/MrchromeBox has helped me add the missing information and the acpi errors are gone and battery thresholds are working :)

https://www.reddit.com/r/coreboot/comments/etdee6/t440p_acpi_errors/

2

u/Rich_Juice May 16 '20

Thanks a lot, for the info! Now if only I could build and test.. But will do it once I am again able to.. Thanks again for remembering :)

0

u/[deleted] May 13 '20

[deleted]

1

u/[deleted] May 13 '20

'59B is a subkey, but https://keys.openpgp.org/search?q=EB51718A2D22AB1DA92C74B11F991B62CCC9259B finds the related key id of D861AB74FB933260193399696B249D77269C04E1. You should be able to fetch that on most key servers (at least I pushed it to a couple and they do have some synchronization)

0

u/[deleted] May 14 '20

[deleted]

3

u/[deleted] May 14 '20

Oops, I hadn't pushed to that server yet (but did now). Could you refresh and try again? If that still fails, I guess I'll need to re-sign the release.

0

u/[deleted] May 14 '20

[deleted]

2

u/[deleted] May 14 '20

Note that master is broken on many boards right now. 4.12 is good, but some important but troublesome changes were committed right after that.

For boards that landed just after it may be easiest to take 4.12 and apply individual commits that you need.