fit

package
v1.19.1 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2021 License: GPL-2.0, GPL-2.0-or-later Imports: 10 Imported by: 0

README

fit

Flattened Image Tree binary file format in Golang

Documentation

Overview

Package fit parses Flattened Image Tree image tree blob files.

package fit is for parsing flattened image tree binaries

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Description string
	ImageList   []*Image
	BaseAddr    uint64
	NextAddr    uint64
}

type Fit

type Fit struct {
	Debug bool

	Description   string
	AddressCells  uint32
	TimeStamp     time.Time
	DefaultConfig string
	Images        map[string]*Image
	Configs       map[string]*Config
	// contains filtered or unexported fields
}

func Parse

func Parse(b []byte) (f *Fit)

func (*Fit) KexecLoadConfig

func (f *Fit) KexecLoadConfig(conf *Config, cmdline string) (err error)

type Image

type Image struct {
	Name        string
	Description string
	Type        string
	Arch        string
	Os          string
	Compression string
	LoadAddr    uint64
	Data        []byte
}

Jump to

Keyboard shortcuts

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