Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateOptions ¶
type CreateOptions struct {
HeaderFlagByte bool
}
type Env ¶
type Env struct {
// contains filtered or unexported fields
}
Env contains the data of the uboot environment
func Create ¶
func Create(fname string, size int, opts CreateOptions) (*Env, error)
Create a new empty uboot env file with the given size
func OpenWithFlags ¶
OpenWithFlags opens a existing uboot env file, passing additional flags.
func (*Env) HeaderFlagByte ¶
func (*Env) Import ¶
Import is a helper that imports a given text file that contains "key=value" paris into the uboot env. Lines starting with ^# are ignored (like the input file on mkenvimage)
Click to show internal directories.
Click to hide internal directories.