Documentation ¶
Overview ¶
Package zimage contains a Parser for the arm zImage Linux format. It assumes little endian arm.
Index ¶
Constants ¶
View Source
const ( Magic = 0x016f2818 Endianess = 0x04030201 TableMagic = 0x45454545 )
Magic values used in the zImage header and table.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Magic uint32 Start uint32 End uint32 Endianess uint32 TableMagic uint32 TableAddr uint32 }
Header appears near the beginning of the zImage.
The layout is defined in Linux:
arch/arm/boot/compressed/head.S
type TableEntry ¶
TableEntry is an extension to Header. A zImage may have 0 or more entries.
The layout is defined in Linux:
arch/arm/boot/compressed/vmlinux.lds.S
type Tag ¶
type Tag uint32
Tag is used to identify a TableEntry.
const (
TagKernelSize Tag = 0x5a534c4b
)
Tags used by TableEntry (at the time of writting, there is only one tag).
type ZImage ¶
type ZImage struct { Header Header Table []TableEntry }
ZImage is one of the major formats used by Linux on ARM. This struct is only for storing the metadata.
Click to show internal directories.
Click to hide internal directories.