dutlink_board

package
v0.0.0-...-d16b440 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BASE_UDEVPATH = "/sys/bus/usb/devices/"
	USB_VID       = "2b23"
	USB_PID       = "1012"
)
View Source
const BASE_DISKSBYID = "/dev/disk/by-id/"
View Source
const BLOCK_SIZE = 32 * 1024 * 1024
View Source
const ESCAPE_SEQUENCE = "\x02\x02\x02\x02\x02" // CTRL+B 5 times to exit from console to prompt (just in case)
View Source
const PROMPT = "#> "
View Source
const WAIT_TIME_USB_STORAGE = 12 * time.Second
View Source
const WAIT_TIME_USB_STORAGE_DISCONNECT = 6 * time.Second
View Source
const WAIT_TIME_USB_STORAGE_OFF = 2 * time.Second

Variables

This section is empty.

Functions

This section is empty.

Types

type DUTLinkDriver

type DUTLinkDriver struct{}

func (*DUTLinkDriver) Description

func (d *DUTLinkDriver) Description() string

func (*DUTLinkDriver) FindDevices

func (d *DUTLinkDriver) FindDevices() ([]harness.Device, error)

func (*DUTLinkDriver) Name

func (d *DUTLinkDriver) Name() string

type JumpstarterConsoleWrapper

type JumpstarterConsoleWrapper struct {
	// contains filtered or unexported fields
}

func (*JumpstarterConsoleWrapper) Close

func (c *JumpstarterConsoleWrapper) Close() error

func (*JumpstarterConsoleWrapper) Read

func (c *JumpstarterConsoleWrapper) Read(p []byte) (n int, err error)

func (*JumpstarterConsoleWrapper) SetReadTimeout

func (c *JumpstarterConsoleWrapper) SetReadTimeout(t time.Duration) error

func (*JumpstarterConsoleWrapper) Write

func (c *JumpstarterConsoleWrapper) Write(p []byte) (n int, err error)

type JumpstarterDevice

type JumpstarterDevice struct {
	// contains filtered or unexported fields
}

func (*JumpstarterDevice) AttachStorage

func (d *JumpstarterDevice) AttachStorage(connected bool) error

func (*JumpstarterDevice) Console

func (*JumpstarterDevice) Device

func (d *JumpstarterDevice) Device() (string, error)

func (*JumpstarterDevice) Driver

func (*JumpstarterDevice) GetConfig

func (d *JumpstarterDevice) GetConfig() (map[string]string, error)

func (*JumpstarterDevice) IsBusy

func (d *JumpstarterDevice) IsBusy() (bool, error)

func (*JumpstarterDevice) Lock

func (d *JumpstarterDevice) Lock() error

func (*JumpstarterDevice) Name

func (d *JumpstarterDevice) Name() string

func (*JumpstarterDevice) Power

func (d *JumpstarterDevice) Power(action string) error

func (*JumpstarterDevice) Serial

func (d *JumpstarterDevice) Serial() (string, error)

func (*JumpstarterDevice) SetConfig

func (d *JumpstarterDevice) SetConfig(k, v string) error

func (*JumpstarterDevice) SetConsoleSpeed

func (d *JumpstarterDevice) SetConsoleSpeed(bps int) error

func (*JumpstarterDevice) SetControl

func (d *JumpstarterDevice) SetControl(signal string, value string) error

func (*JumpstarterDevice) SetDiskImage

func (d *JumpstarterDevice) SetDiskImage(path string, offset uint64) error

func (*JumpstarterDevice) SetName

func (d *JumpstarterDevice) SetName(name string) error

func (*JumpstarterDevice) SetTags

func (d *JumpstarterDevice) SetTags(tags []string) error

func (*JumpstarterDevice) SetUsbConsole

func (d *JumpstarterDevice) SetUsbConsole(console_substring string) error

func (*JumpstarterDevice) Tags

func (d *JumpstarterDevice) Tags() []string

func (*JumpstarterDevice) Unlock

func (d *JumpstarterDevice) Unlock() error

func (*JumpstarterDevice) Version

func (d *JumpstarterDevice) Version() (string, error)

type StorageTarget

type StorageTarget int
const (
	HOST StorageTarget = iota
	DUT
	OFF
)

Jump to

Keyboard shortcuts

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