Firmware Update

You can check and update the firmware of your device using the XCENA CLI.

Before changing firmware on a device used by independent SDK containers, stop all its tenants and follow device-cold maintenance, including its firmware step: xcena_cli cannot open the devices while /etc/pxl-coordinator/enabled exists. Updating a live shared device is not a tenant-local operation.

Check Firmware Information

  • The CLI tool displays CXL firmware/device information for the specified device.
    It reads the device’s PCI configuration space, so run it and fw-update below as root.

Syntax

sudo xcena_cli fw-info <device_id>

Example

$ sudo xcena_cli fw-info 0

Device Information for 0000:11:00.0:
  Firmware Revision: xcena-1.0.0
  Total Capacity: 4,294,967,296 bytes
  FW Slots Supported: 4
  Active Slot: 1
  Staged Slot: 0
  Online Activation: No
  Slot Revisions:
    SLOT1: 1.0
    SLOT2: 1.1
    SLOT3: 1.2
    SLOT4: 1.3

Update Firmware

  • The CLI tool updates CXL firmware for the specified device via the CXL CCI mailbox interface. Arguments are positional: <device_id> <slot_id> <firmware_path>.

    Note

    • Make sure that no applications are accessing the device during the firmware update.
    • A system reboot is required for the new firmware to take effect.
    • To keep your device stable and up-to-date, always use the firmware version distributed with the corresponding SDK release.

Syntax

$ sudo xcena_cli fw-update <device_id> <slot_id> <firmware_path> [--timeout SECONDS]

slot_id must not be the active slot; writing to the active slot is refused.

Example

$ sudo xcena_cli fw-update 0 2 fw.bin

Transfer progress: 21% (100/456)
Transfer progress: 43% (200/456)
Transfer progress: 65% (300/456)
Transfer progress: 87% (400/456)
Firmware update completed successfully!
Slot 2 is staged for the next cold reset.