Skip to main content

Module layout

Module layout 

Source
Expand description

The fixed geometry of an MT19xx flash image.

Every MT1959 and MT1939 image is a flat 2 MiB SPI image with load address equal to file offset. The ranges below hold across the OEM corpus of both generations (LG, HP and ASUS builds).

Structs§

Range
A named byte range of the flash image.

Constants§

BANNER
The ASCII boot banner, e.g. MT1959 Boot BU5.
BD_REVOCATION
The BD host revocation list.
BOOT_AREA
The boot area: the 4 KiB flash sector holding BOOT_PAGE. The drive serves it remapped, so read-back verification skips it.
BOOT_MIRROR
The page a drive read returns in place of BOOT_PAGE.
BOOT_PAGE
The boot page. Flash stores it in a form that never reads back: READ BUFFER returns the page at BOOT_MIRROR here instead.
CALIBRATION
The per-unit calibration block.
CMAC_TABLE
The AES-CMAC integrity table (16 entries of 28 bytes).
DESCRIPTOR
The identity descriptor: vendor, model, revision, SKU and the MTEKMT19xx tag at +0x34, mirroring the drive’s INQUIRY.
DRIVE_WRITTEN
Regions the drive rewrites at runtime and an update never overwrites. A drive read differs from the flashed image here and at BOOT_PAGE only.
IMAGE_SIZE
Size of a complete firmware image (2 MiB).
SETTINGS
The drive’s settings page.
UHD_REVOCATION
The UHD host revocation list. Erased on builds without UHD support.

Functions§

is_erased
true when every byte of bytes is erased flash (0xFF).