Pilot 是一个面向索尼相机固件的扩展框架,由常驻引导模块和按需加载的扩展模块组成。模块通过版本化 API 使用框架提供的能力。
- 引导模块精简,常驻部分只负责加载调度
- 挂载成功后按清单加载扩展模块
- 模块先复制到 tmpfs 再加载,不占用可移动介质挂载
- 卡上
disable标记可关闭扩展加载 PilotApiV1提供日志、时间和内存读写接口
| 路径 | 内容 |
|---|---|
patch/ |
核心源码、跳板代码、构建与部署工具 |
modules/ |
示例模块及其构建脚本 |
build/ |
构建产物 |
patch/tests/ |
测试脚本 |
模块导出 pilot_module_init,接口定义在 patch/pilot.h。
#include "pilot.h"
PilotStatus pilot_module_init(const PilotApiV1 *api)
{
if (!api || api->abi_version != PILOT_ABI_VERSION_1)
return PILOT_STATUS_UNSUPPORTED;
api->log_write("pilot module loaded", 19);
return PILOT_STATUS_OK;
}bash patch/build_pilot_dso.sh
bash patch/build_pilot.sh
bash modules/menu_ui_probe/build.sh通过 PILOT_SYSROOT、PILOT_CC 等环境变量指定 sysroot 与交叉编译器。
仅限在合法授权的设备上使用,本仓库仅供个人研究学习,避免复杂的Jiritsu注入。