M.2 UPS PMH CUSTOMER PACKAGE V8F
Pi Modules Technologies L.P. | www.pimodules.com

START HERE
This distribution contains the PDF manual, ready-to-run Python utilities,
Linux installer and payload, compiled V88 firmware, updater and register map.
It excludes firmware C/H sources, compiler projects, build scripts, tests,
editable Word documents and development artwork.
Python .py files are executable customer tools required on Raspberry Pi;
they are intentionally included. No compilation is required.

1. EXTRACT ON RASPBERRY PI
Copy M2_UPS_PMH_Customer_V8F.zip to your home directory and run:
cd ~
unzip M2_UPS_PMH_Customer_V8F.zip
cd ~/M2_UPS_PMH_Manual_V8F

The inner directory retains the manual's name so its command paths work.
Where the PDF names M2_UPS_PMH_Manual_V8F.zip, use the Customer ZIP above.

2. INSTALL LINUX SUPPORT
Keep cable power connected. Internet access is required for apt packages.
cd ~/M2_UPS_PMH_Manual_V8F/installer
sudo python3 install_M2_UPS_PMH.py

If successful installation requests a reboot:
sudo reboot

Reconnect SSH, then:
cd ~/M2_UPS_PMH_Manual_V8F/installer
sudo python3 install_M2_UPS_PMH.py --check

Installer V01 configures Linux. It does not program MCU firmware or select
battery chemistry. Follow the manual to match the installed backup source.

3. STATUS AND CONFIGURATION
cd ~/M2_UPS_PMH_Manual_V8F
sudo python3 optional_monitor/M2_PMH_status_06.py
sudo python3 configuration/M2_PMH_config_01.py

Read-only configuration report:
sudo python3 configuration/M2_PMH_config_01.py --show

The installer retains its tested bundled monitor at
/opt/M2_UPS_PMH/M2_PMH_status.py. Use the commands above for status package 06.
The PDF also explains optional installation of the new versioned scripts
under /opt/M2_UPS_PMH. Keep the heartbeat/shutdown daemon running.

4. FIRMWARE UPDATE AND SERVICE
Normal setup of a factory-programmed board does not require firmware flashing.
firmware/M2_PMH.hex is the V88 combined image. The supplied serial updater
filters protected regions and writes only the application.
See the PDF and installation/BOOTLOADER_AND_UPDATE.txt before any update.
bootloader/BL_M2_PMHA.hex is for qualified ICSP service only, not a complete
application and not a normal customer installation step. Prefer the combined
image when following the documented ICSP recovery procedure.
The PDF's development/source-build references concern the engineering package;
source files and compiler projects are not part of this customer distribution.

5. INTEGRITY
From ~/M2_UPS_PMH_Manual_V8F run:
sha256sum -c SHA256SUMS.txt

CONTENTS
M2_UPS_PMH_Manual_V8F.pdf     User guide (PDF only)
installer/                   Automatic Linux setup and required payload
optional_monitor/            Status monitor package 06, v2.1
configuration/               Configuration tool 01 (hexadecimal revisions)
installation/                Manual setup alternative and service files
firmware/                    Compiled application/combined V88 image
updater/                     Serial firmware updater BL01D
bootloader/                  Compiled bootloader for ICSP service
reference/                   V88 register map

Support: support@pimodules.com
