Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ELFImage ¶
type ELFImage struct { // Region is the memory area for image loading. Region *dma.Region // ELF is a bootable bare-metal ELF image. ELF []byte // contains filtered or unexported fields }
ELFImage represents a bootable bare-metal ELF image.
type LinuxImage ¶
type LinuxImage struct { // Region is the memory area for image loading. Region *dma.Region // Kernel is the Linux kernel image. Kernel []byte // KernelOffset is the Linux kernel offset from RAM start address. KernelOffset int // DeviceTreeBlob is the Linux kernel dtb file. DeviceTreeBlob []byte // DeviceTreeBlobOffset is the dtb offset from RAM start address. DeviceTreeBlobOffset int // InitialRamDisk is the Linux kernel initrd file. InitialRamDisk []byte // InitialRamDiskOffset is the initrd offset from RAM start address. InitialRamDiskOffset int // CmdLine is the Linux kernel command line arguments. CmdLine string // contains filtered or unexported fields }
LinuxImage represents a bootable Linux kernel image.
func (*LinuxImage) Boot ¶
func (image *LinuxImage) Boot(cleanup func()) (err error)
Boot calls a loaded Linux kernel image.
func (*LinuxImage) Entry ¶
func (image *LinuxImage) Entry() uint
Entry returns the image entry address.
func (*LinuxImage) Load ¶
func (image *LinuxImage) Load() (err error)
Load loads a Linux kernel image in memory.
Click to show internal directories.
Click to hide internal directories.