API0.1.1
    Preparing search index...

    Class Fastboot

    Index
    • Parameters

      • t: BulkTransport

      Returns Fastboot

    log: (line: string) => void
    • fastboot boot: runs an image from RAM, nothing is written.

      Parameters

      • blob: Blob
      • OptionalonProgress: FlashProgressCallback

      Returns Promise<void>

    • Returns Promise<void>

    • limit: the bootloader's buffer. Our U-Boot's by default; flashBlob passes max-download-size.

      Parameters

      • data: Uint8Array
      • OptionalonProgress: (done: number, total: number) => void
      • Optionallimit: number

      Returns Promise<void>

    • Raw image only (no sparse); it must not be larger than the partition.

      Parameters

      • name: string
      • data: Uint8Array
      • OptionalonProgress: (done: number, total: number) => void

      Returns Promise<void>

    • Flashes a Blob (a File stays on disk) of any image format the bootloader takes. A raw image larger than max-download-size becomes sparse, and a sparse image is split into pieces that each fit, as AOSP fastboot does. Each piece is read from the Blob only when it is sent. No read-back: verify some other way (on our U-Boot, use flashVerified).

      Parameters

      • partition: string
      • blob: Blob
      • OptionalonProgress: FlashProgressCallback

      Returns Promise<void>

    • Flash, read back, compare: what fel-install.sh does for every write. Needs our U-Boot's 'upload'.

      Parameters

      • name: string
      • data: Uint8Array
      • OptionalonProgress: (phase: "write" | "verify", done: number, total: number) => void

      Returns Promise<void>

    • Some bootloaders (Qualcomm LK) pad values with whitespace, so the value is trimmed.

      Parameters

      • name: string

      Returns Promise<string>

    • 'oem run:': runs one U-Boot shell command (CONFIG_FASTBOOT_OEM_RUN).

      Parameters

      • cmd: string

      Returns Promise<void>

    • Parameters

      • name: string

      Returns Promise<number>

    • Reads a whole eMMC partition: fb-read-partition.sh (mmc read into the fastboot buffer, then 'upload'). Read-only. Short env names because each command must fit in 64 bytes.

      Parameters

      • name: string
      • OptionalonProgress: (done: number, total: number) => void

      Returns Promise<Uint8Array<ArrayBufferLike>>

    • U-Boot resets the panel as soon as it gets reboot, and the USB link often drops before its OKAY can be read ("The device was disconnected"). Once the command is out, the reboot is happening: a missing or failed reply is not an error.

      Returns Promise<void>

    • Parameters

      • d: USBDevice

      Returns Promise<Fastboot>

    • Already-permitted fastboot devices (no prompt).

      Parameters

      • Optionalfilters: USBDeviceFilter[]

      Returns Promise<USBDevice[]>

    • filters: the frame's fastboot device; our U-Boot's by default.

      Parameters

      • Optionalfilters: USBDeviceFilter[]

      Returns Promise<Fastboot>