zynqmpboot

package
v0.0.0-...-759cef8 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FSBLImageAttribute

type FSBLImageAttribute uint32

func (FSBLImageAttribute) String

func (p FSBLImageAttribute) String() string

type File

type File struct {
	Header

	Registers  [256][2]uint32
	PUF        []byte
	ImageTable ImageHeaderTable
	Images     []*Image
	Partitions []*Partition
	// contains filtered or unexported fields
}

func NewFile

func NewFile(r io.ReaderAt) (*File, error)

func Open

func Open(name string) (*File, error)

func (*File) Close

func (f *File) Close() error
type Header struct {
	Vectors         [8]uint32
	Width           uint32
	Sig             [4]byte
	KeySource       uint32
	FSBLEntry       uint32
	SourceOffset    uint32
	PMUImageSize    uint32
	PMUTotalSize    uint32
	FSBLImageSize   uint32
	FSBLTotalSize   uint32
	FSBLImageFlags  uint32
	Checksum        uint32
	BlackKey        [32]byte
	ShutterValue    uint32
	UserDefined     [40]byte
	ImageOffset     uint32
	PartitionOffset uint32
	SecureIV        [12]byte
	BlackKeyIV      [12]byte
}

type Image

type Image struct {
	ImageHeader
	Name string
}

type ImageHeader

type ImageHeader struct {
	Next          uint32
	Partition     uint32
	Reserved      uint32
	NumPartitions uint32
}

type ImageHeaderTable

type ImageHeaderTable struct {
	Version             uint32
	NumImages           uint32
	PartitionOffset     uint32
	ImageOffset         uint32
	AuthOffset          uint32
	SecondaryBootDevice uint32
	Padding             [32]byte
	Checksum            uint32
}

type KeySource

type KeySource uint32

func (KeySource) String

func (p KeySource) String() string

type Partition

type Partition struct {
	PartitionHeader
	Offset int64
	// contains filtered or unexported fields
}

func (*Partition) Open

func (p *Partition) Open() io.Reader

type PartitionAttribute

type PartitionAttribute uint32

func (PartitionAttribute) String

func (p PartitionAttribute) String() string

type PartitionHeader

type PartitionHeader struct {
	EncryptedSize       uint32
	UnencryptedSize     uint32
	TotalSize           uint32
	Next                uint32
	ExecutableEntry     uint64
	LoadAddress         uint64
	DataOffset          uint32
	Attributes          uint32
	NumSections         uint32
	ChecksumTableOffset uint32
	ImageHeaderOffset   uint32
	ACOffset            uint32
	ID                  uint32
	Checksum            uint32
}

Jump to

Keyboard shortcuts

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