fel
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • FelHelpers

Index

Methods

Static calculateBootImageSize

  • calculateBootImageSize(bootImage: Buffer): number
  • Parameters

    • bootImage: Buffer

    Returns number

Static memboot

  • Loads the specified boot image into memory and boots it.

    throws

    {BootImageSizeError | FelError}

    Parameters

    Returns Promise<void>

Static padToSectorBoundary

  • padToSectorBoundary(input: Buffer): Buffer
  • Pads input buffer to the sector boundary.

    Parameters

    • input: Buffer

      The buffer to pad

    Returns Buffer

Static readBootImage

  • Reads the boot image from NAND

    throws

    {BootImageSizeError}

    Parameters

    Returns Promise<Buffer>

Static readUboot

  • Reads the uboot from NAND

    Parameters

    Returns Promise<Buffer>

Static writeBootImage

  • writeBootImage(device: FelDevice, bootImage: Buffer, verifyWrite?: boolean, progressCallback?: ProgressCallback): Promise<void>
  • Writes the specified boot image to NAND

    throws

    {FelError | FelWriteVerifyError}

    Parameters

    • device: FelDevice

      The fel device

    • bootImage: Buffer

      The boot image buffer

    • Default value verifyWrite: boolean = false

      Whether to verify that the write was successful

    • Optional progressCallback: ProgressCallback

    Returns Promise<void>

Static writeUboot

  • Writes the specified uboot to NAND

    throws

    {FelError | FelWriteVerifyError}

    Parameters

    • device: FelDevice

      The fel device

    • uboot: Buffer

      The uboot

    • Default value verifyWrite: boolean = false

      Whether to verify that the write was successful

    • Optional progressCallback: ProgressCallback

    Returns Promise<void>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc