Re: [PATCH v4 2/2] firmware: google: Expose coreboot tables over sysfs

From: Samuel Holland
Date: Sun Apr 19 2020 - 20:07:49 EST


On 4/7/20 3:29 AM, patrick.rudolph@xxxxxxxxxxxxx wrote:
> From: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>
>
> Make all coreboot table entries available to userland. This is useful for
> tools that are currently using /dev/mem.
>
> Besides the tag and size also expose the raw table data itself.
>
> Update the ABI documentation to explain the new sysfs interface.
>
> Tools can easily scan for the right coreboot table by reading
> /sys/bus/coreboot/devices/coreboot*/attributes/id
> The binary table data can then be read from
> /sys/bus/coreboot/devices/coreboot*/attributes/data
>
> Signed-off-by: Patrick Rudolph <patrick.rudolph@xxxxxxxxxxxxx>

Reviewed-by: Samuel Holland <samuel@xxxxxxxxxxxx>
Tested-by: Samuel Holland <samuel@xxxxxxxxxxxx>

Cheers,
Samuel