How erlla/sony-a7m4-custom-firmware works
This repository combines A7M4 firmware modification, two installation/maintenance routes, and a computer-side LUT training workflow. The principal user path is choosing either the ordinary-USB installer or Fastboot maintenance, then preparing, validating, applying, and verifying a firmware change; LUT training is a separate path producing camera-importable filter data. The graph includes documented feature families even where their implementation was not sampled. Edges are limited to excerpt/index references or README statements; unsampled feature internals are represented at their supported directory paths.
Main entry points: install_controller.py Install controller · user_provider.py USB provider · run.py Training workflow · integrity_backend.py Integrity workflow
Components 23
USB Installer
- Installer interface
no-fastboot-install/software/app/ui - Install controller
no-fastboot-install/software/app/workflow/install_controller.py - Custom install controller
no-fastboot-install/software/app/workflow/install_controller_custom.py - USB provider
no-fastboot-install/software/app/workflow/user_provider.py - Integrity workflow
no-fastboot-install/software/app/workflow/integrity_backend.py - Stock receiver
no-fastboot-install/software/app/receiver_stock/orchestrator.py - Release verification
no-fastboot-install/software/app/product_integrity.py - Operation state
no-fastboot-install/software/app/state_io.py - Patch engine
a7m4/engine.py
Fastboot Maintenance
- Fastboot payload
fastboot/source/payload/src/main.c - Payload I/O
fastboot/source/payload/include/io.h - Maintenance CLI
a7m4/cli.py
Firmware Features
- Firmware patch families
a7m4 - Custom sound runtime
native/custom-sounds - Persistent cache
native/persistent-cache - Aspect preview
native/aspect-autoreview/ap/preview.c
LUT Training
- Training workflow
training/run.py - LUT fitting
training/source/fit_grid.py - Fit evaluation
training/source/evaluation.py - Camera LUT JSON
Other components
- Camera owner
- AI agent
- A7M4 camera
Connections 27
- Camera owner → Installer interface: starts install
- AI agent → Install controller: guides workflow
- Installer interface → Install controller: submits install
- Install controller → USB provider: uses provider
no-fastboot-install/software/app/workflow/install_controller.py - Custom install controller → USB provider: uses provider
no-fastboot-install/software/app/workflow/install_controller_custom.py - Install controller → Integrity workflow: runs integrity workflow
no-fastboot-install/software/app/workflow/install_controller.py - Custom install controller → Integrity workflow: runs integrity workflow
no-fastboot-install/software/app/workflow/install_controller_custom.py - Install controller → Release verification: checks release
no-fastboot-install/software/app/workflow/install_controller.py - Install controller → Operation state: persists state
- USB provider → Release verification: validates files
no-fastboot-install/software/app/workflow/user_provider.py - USB provider → Patch engine: invokes engine
no-fastboot-install/software/app/workflow/user_provider.py - Integrity workflow → USB provider: creates provider
no-fastboot-install/software/app/workflow/integrity_backend.py - Integrity workflow → Stock receiver: loads receiver
no-fastboot-install/software/app/workflow/integrity_backend.py - Stock receiver → Operation state: uses state I/O
no-fastboot-install/software/app/receiver_stock/orchestrator.py - Camera owner → Maintenance CLI: starts maintenance
- Maintenance CLI → Patch engine: runs operations
- A7M4 camera → Fastboot payload: boots payload
- Fastboot payload → Payload I/O: uses I/O
fastboot/source/payload/src/main.c - Patch engine → Firmware patch families: applies patch
a7m4/engine.py - Camera owner → Firmware patch families: selects features
- Camera owner → Custom sound runtime: imports sound files
- Custom sound runtime → Persistent cache: uses cache
native/persistent-cache/sound_cache.c - Camera owner → Training workflow: starts training
- Training workflow → LUT fitting: fits LUT
training/run.py - Training workflow → Fit evaluation: evaluates fit
training/run.py - Training workflow → Camera LUT JSON: produces JSON
- Camera owner → Aspect preview: views preview