Skip to main content

Module stub_config

Module stub_config 

Source
Expand description

Stub/driver config block handling for AXF/ELF files.

This module focuses only on locating, reading, and overwriting the fixed-size T_EXT_DRIVER_CFG block inside a file. It does not handle encrypted ram_patch images (imgtool) or any CLI parsing concerns.

Structs§

FlashConfig
PinConfig
PmicConfig
Sd0Config
StubConfig

Enums§

FlashMedia
PinLevel
PinPort
PmicChannel
Sd0InitSequence
Sd0Pinmux

Constants§

DRIVER_CONFIG_SIZE

Functions§

clear_stub_config_in_bytes
Clear the config by writing an empty block (masks set to zero).
clear_stub_config_in_file
Clear the config block in a file by writing an empty block.
find_stub_config_offset
Scan for the first valid driver config block and return its offset.
read_stub_config_at
Parse a driver config block at the given offset.
read_stub_config_from_bytes
Locate and parse a driver config block from raw bytes.
read_stub_config_from_file
Read and parse a driver config block from a file.
write_stub_config_at
Overwrite a driver config block at the given offset.
write_stub_config_to_bytes
Locate and overwrite a driver config block inside a byte buffer.
write_stub_config_to_file
Overwrite a driver config block in a file.