tree: d0e3ecf351954a979427a19842eaad39abdd0d80 [path history] [tgz]
  1. atmel_tools.sh
  2. chromeos-atmel-touch-config-update-legacy.sh
  3. chromeos-atmel-touch-firmware-update-legacy.sh
  4. chromeos-cyapa-touch-firmware-update-legacy.sh
  5. chromeos-elan-hid-touch-firmware-update-legacy.sh
  6. chromeos-elan-touch-firmware-update-legacy.sh
  7. chromeos-emright-touch-firmware-update-legacy.sh
  8. chromeos-eps2pstiap-touch-firmware-update-legacy.sh
  9. chromeos-g2touch-touch-firmware-update-legacy.sh
  10. chromeos-goodix-touch-firmware-update-legacy.sh
  11. chromeos-google-touch-firmware-update-legacy.sh
  12. chromeos-melfas-hid-touch-firmware-update-legacy.sh
  13. chromeos-melfas-touch-firmware-update-legacy.sh
  14. chromeos-pixart-hid-touch-firmware-update-legacy.sh
  15. chromeos-raydium-touch-firmware-update-legacy.sh
  16. chromeos-sis-touch-firmware-update-legacy.sh
  17. chromeos-synaptics-touch-firmware-update-legacy.sh
  18. chromeos-touch-update-legacy.sh
  19. chromeos-touch-update.sh
  20. chromeos-wacom-touch-firmware-update-legacy.sh
  21. chromeos-weida-hid-touch-firmware-update-legacy.sh
  22. chromeos-weida-touch-config-update-legacy.sh
  23. chromeos-weida-touch-firmware-update-legacy.sh
  24. chromeos-zinitix-tp-firmware-update-legacy.sh
  25. melfas-usb-udev-trigger.sh
  26. README.md
scripts/README.md

Chromium OS Touch Firmware Updater

Overview

This directory contains source codes for touch firmware updates. For each touch device, we do the followings:

  • Loop through all vendor scripts to find the applicable one.
  • Determine current firmware status for the device.
  • Update the firmware(optional).
  • Display info.

Status

Structue

  • chromeos-touch-update.sh

    • Usage: ./chromeos-touch-update.sh [--info] [device ...]
  • chromeos-touch-common.sh

    • Shared utilities
  • chromeos-VENDOR_NAME-firmware-update.sh

    • Vendor scripts
    • Each should provide the following functions:
      • get_vendor_name()
        • Print the vendor name.
      • check_applicability(device)
        • Check if the script is applicable to the device.
      • get_active_fw_version(device)
        • Get the active firmware version of the device.
      • get_latest_fw_version(device)
        • Get the latest firmware version of the device.
      • compare_fw_versions(active, latest)
        • Determine current firmware status.
        • Returns one of:
          • UP_TO_DATE
          • OUTDATED
          • ROLLBACK
          • CORRUPTED
      • update(device)
        • Update the firmware for the device.
      • config(device)
        • Deprecated. For legacy use only.
    • Locally used helper functions must have prefix VENDOR_NAME