sep

package
v0.0.0-prerelease Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Offset     uint64
	VMAddress  uint32
	Size       uint32
	EntryPoint uint32
	PageSize   uint32
	VMBase     uint32
	Unknown1   uint32

	Unknown2      uint32
	Magic         uint64
	Name          [12]byte
	UUID          types.UUID
	SourceVersion types.SrcVersion
}

type Header64

type Header64 struct {
	KernelUUID       types.UUID
	Unknown0         uint64
	KernelTextOffset uint64
	KernelDataOffset uint64
	StartOfText      uint64
	StartOfData      uint64
	SepFwSize        uint64 // size of SEP firmware image
	Unknown1         uint64
	Unknown2         uint64
	Unknown3         uint64
	Unknown4         uint64
	// contains filtered or unexported fields
}

func (Header64) String

func (h Header64) String() string

type KernBootArgs

type KernBootArgs struct {
	Revision         uint16
	Version          uint16
	VirtBase         uint32
	PhysBase         uint32
	MemSize          uint32
	TopOfKernelData  uint32
	ShmBase          uint64
	SmhSize          uint32
	Reserved         [3]uint32
	SeposCRC32       uint32
	SepromArgsOffset uint32
	SepromPhysOffset uint32
	Entropy          [2]uint64
	NumApps          uint32
	NumShlibs        uint32
	// contains filtered or unexported fields
}

type LegionHeader32

type LegionHeader32 struct {
	Subversion uint32 //0x1
	Offset     uint32 //0x800
	Legion     [16]byte
}

type LegionHeader64v1

type LegionHeader64v1 struct {
	Subversion uint32 //0x3
	Legion     [16]byte
	Offset     uint16
	Reserved   [2]uint8
}

type LegionHeader64v2

type LegionHeader64v2 struct {
	Magic         uint64
	UUIDLabel     [4]byte
	UnknownOffset uint64

	UUID types.UUID

	Subversion uint32 //0x4
	Legion     [16]byte
	Offset     uint32
	// contains filtered or unexported fields
}

type MonitorBootArgs

type MonitorBootArgs struct {
	//monitor related
	Version  uint32
	VirtBase uint32
	PhysBase uint32
	MemSize  uint32
	//kernel related
	KernBootArgsOffset uint32
	Entry              uint32
	UUID               types.UUID
}

type RootHeader

type RootHeader struct {
	TextOffset uint64
	TextVaddr  uint64
	VMSize     uint64
	Entry      uint64
	IsZero3    uint64
	IsZero4    uint64
	Unknown5   uint64
	Unknown6   uint64

	Unknown7      uint64
	Unknown8      uint64
	Name          [16]byte // SEPOS
	UUID          types.UUID
	SourceVersion types.SrcVersion
	CRC32         uint32
	Unknown9      uint32
	Pad           [256]byte
	AppCount      uint32
	LibCount      uint32
	// contains filtered or unexported fields
}

type Sep

type Sep struct {
	Legion LegionHeader64v2
	Hdr    Header64
	SepOS  RootHeader
	Apps   []application64v2
	Libs   []application64v2
	// contains filtered or unexported fields
}

func Parse

func Parse(in string) (*Sep, error)

Parse parses a SEP firmware image

func (Sep) String

func (s Sep) String() string

Jump to

Keyboard shortcuts

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