fit

package module
v0.0.0-...-33362d9 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2016 License: MIT 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   []*ImageLoad
	BaseAddr    uint64
	NextAddr    uint64
}

type Fit

type Fit struct {
	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) (err error)

type Image

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

type ImageLoad

type ImageLoad struct {
	Image    *Image
	LoadAddr uint64
	LoadSize uint64
}

Jump to

Keyboard shortcuts

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