On 12/16/21 17:37, Richard Hughes wrote:
> On Thu, 16 Dec 2021 at 15:04, Michał Kopeć<
michal...@3mdeb.com> wrote:
>> I think we could try reading the FMAP first and if it fails then try the IFD instead, but i think we'd have to be careful not to break things for existing users of the plugin.
> All, do we need to know if fmap is required on plugin startup? I
> assumed we only needed to know at write time.
|||I guess we don't need to know the the FMAP before write time,
indeed.| ||
>> On ChromeOS there's an utility that reads this information from the CMOS, but it doesn't work on non ChromeOS devices. I think it needs the chromeos_acpi driver to work.
> If the functionality is designed for ChromeOS devices then I've got no
> problem reading out values the same way.
|On Chromebooks Vboot parameters are exposed via ACPI. This table is
exposed by the Linux chromeos_acpi driver and parsed by the updater
(including currently active slot). For proper A / B updates we would
need to know which slot is active to be able to flash the other one. |
||
|There is a driver on coreboot's side that places the the necessary
information in ACPI tables but it is highly Chromebook-specific and we
can't use it on non-ChromeOS devices.|
||
|||The ChromeOS firmware updater additionally checks if we could boot
from that slot after a reboot, and if so, flashes the other slot
automatically.| ||
> Richard
--
Pozdrawiam, / Regards,
Michał Kopeć
Junior Firmware Developer
https://3mdeb.com/