Class

FwupdPluginFdtImage

Description [src]

class FwupdPlugin.FdtImage : FwupdPlugin.Firmware {
  parent_instance: FuFirmware
}

A Flattened DeviceTree firmware image.

See also: FuFdtFirmware

Ancestors

Constructors

fu_fdt_image_new

Creates a new FuFirmware of sub type FDT image.

Available since: 1.8.2

Instance methods

fu_fdt_image_get_attr

Gets a attribute from the image.

Available since: 1.8.2

fu_fdt_image_get_attr_str

Gets a string attribute from the image. val is always NUL terminated.

Available since: 1.8.2

fu_fdt_image_get_attr_strlist

Gets a stringlist attribute from the image. val is always NUL terminated.

Available since: 1.8.2

fu_fdt_image_get_attr_u32

Gets a uint32 attribute from the image.

Available since: 1.8.2

fu_fdt_image_get_attr_u64

Gets a uint64 attribute from the image.

Available since: 1.8.2

fu_fdt_image_get_attrs

Gets all the attributes stored on the image.

Available since: 1.8.2

fu_fdt_image_set_attr

Sets a attribute for the image.

Available since: 1.8.2

fu_fdt_image_set_attr_str

Sets a string attribute for the image.

Available since: 1.8.2

fu_fdt_image_set_attr_strlist

Sets a stringlist attribute for the image.

Available since: 1.8.2

fu_fdt_image_set_attr_uint32

Sets a uint32 attribute for the image.

Available since: 1.8.2

fu_fdt_image_set_attr_uint64

Sets a uint64 attribute for the image.

Available since: 1.8.2

Methods inherited from FuFirmware (52)
fu_firmware_add_chunk

Adds a chunk to the image.

Available since: 1.6.0

fu_firmware_add_flag

Adds a specific firmware flag to the firmware.

Available since: 1.5.0

fu_firmware_add_image

Adds an image to the firmware.

Available since: 1.3.1

fu_firmware_add_patch

Adds a byte patch at a specific offset. If a patch already exists at the specified address then it is replaced.

Available since: 1.7.4

fu_firmware_build

Builds a firmware from an XML manifest. The manifest would typically have the following form:

Available since: 1.5.0

fu_firmware_build_from_xml

Builds a firmware from an XML manifest. The manifest would typically have the following form:

Available since: 1.6.0

fu_firmware_check_compatible

Check a new firmware is compatible with the existing firmware.

Available since: 1.8.4

fu_firmware_export

This allows us to build an XML object for the nested firmware.

Available since: 1.6.0

fu_firmware_export_to_xml

This allows us to build an XML object for the nested firmware.

Available since: 1.6.0

fu_firmware_get_addr

Gets the base address of the image.

Available since: 1.6.0

fu_firmware_get_alignment

Gets the alignment of the firmware.

Available since: 1.6.0

fu_firmware_get_bytes

Gets the firmware payload, which does not have any header or footer included.

Available since: 1.6.0

fu_firmware_get_bytes_with_patches

Gets the firmware payload, with any defined patches applied.

Available since: 1.7.4

fu_firmware_get_checksum

Returns a checksum of the payload data.

Available since: 1.6.0

fu_firmware_get_chunks

Gets the optional image chunks.

Available since: 1.6.0

fu_firmware_get_filename

Gets an optional filename that represents the image source or destination.

Available since: 1.6.0

fu_firmware_get_id

Gets the image ID, typically set at construction.

Available since: 1.6.0

fu_firmware_get_idx

Gets the index of the image which is used for ordering.

Available since: 1.6.0

fu_firmware_get_image_by_checksum

Gets the firmware image using the image checksum. The checksum type is guessed based on the length of the input string.

Available since: 1.5.5

fu_firmware_get_image_by_id

Gets the firmware image using the image ID.

Available since: 1.3.1

fu_firmware_get_image_by_id_bytes

Gets the firmware image bytes using the image ID.

Available since: 1.3.1

fu_firmware_get_image_by_idx

Gets the firmware image using the image index.

Available since: 1.3.1

fu_firmware_get_image_by_idx_bytes

Gets the firmware image bytes using the image index.

Available since: 1.3.1

Class structure

struct FwupdPluginFdtImageClass {
  FuFirmwareClass parent_class;
  
}
Class members
parent_class
FuFirmwareClass
  No description available.