dutinfo

package
v0.0.0-...-e560ebb Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Overview

Package dutinfo provides help function to work with DUT info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDut

func ConvertDut(data *ufspb.ChromeOSDeviceData) (dut *tlw.Dut, err error)

ConvertDut converts USF data to local representation of Dut instance.

func GenerateServodParams

func GenerateServodParams(data *ufspb.ChromeOSDeviceData, o *tlw.ServodOptions) (cmd []string, err error)

GenerateServodParams generates servod command based on device info. Expected output parameters for servod:

"BOARD=${VALUE}" - name of DUT board.
"MODEL=${VALUE}" - name of DUT model.
"PORT=${VALUE}" - port specified to run servod on servo-host.
"SERIAL=${VALUE}" - serial number of root servo.
"CONFIG=cr50.xml" - special parameter, for extra ability of CR50.
"REC_MODE=1" - start servod in recovery-mode, if root device found then servod will start event not all components detected.

Types

This section is empty.

Jump to

Keyboard shortcuts

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