firmware

package
v0.0.0-...-9474aff Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2022 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package firmware contains local functions to support firmware tests. Reviews for this package can be sent to tast-fw-library-reviewers@ (before tast-owners@ review).

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BootDeviceRemovable

func BootDeviceRemovable(ctx context.Context) (bool, error)

BootDeviceRemovable checks whether the current boot device is removable.

func CheckCrossystemValues

func CheckCrossystemValues(ctx context.Context, values map[string]string) bool

CheckCrossystemValues calls crossystem to check whether the specified key-value pairs are present. We use the following crossystem syntax, which returns an error code of 0 if (and only if) all key-value pairs match:

crossystem param1?value1 [param2?value2 [...]]

func InternalDevice

func InternalDevice(ctx context.Context) (string, error)

InternalDevice returns the internal disk based on the current disk.

func ReadFpUpdaterLogs

func ReadFpUpdaterLogs() (string, string, error)

ReadFpUpdaterLogs reads the latest and previous fingerprint firmware updater logs.

func RootDevice

func RootDevice(ctx context.Context) (string, error)

RootDevice finds the name of the root device, strips off the partition number, and returns it. Sample output: '/dev/mmcblk1' (having stripped the partition number from '/dev/mmcblk1p3')

Types

This section is empty.

Directories

Path Synopsis
Package bios contains local functions to support bios manipulation.
Package bios contains local functions to support bios manipulation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL