← 全部文章

prplOS 官方 profiles(1):26 个 profile 的分层与选型

在练习中成长

不用等读完,先测一下

一句话:官方 profiles 不是“板子清单”,而是“功能包 + target/board”的组合。 看懂分层,才知道自己该从哪个 profile 开始改。

先看 profiles/ 是什么

prplOS 的构建入口:

profiles/*.yml → scripts/gen_config.py → .config → make

一个 profile 可以包含:

字段作用
target / subtargetOpenWrt 目标,如 x86/64、mediatek/filogic
profiles设备名,如 generic、bananapi_bpi-r3
include复用其他 profile(可递归)
packages加包
additional_packages从指定 feed 加包
packages_remove去包
feeds额外 feed(带固定 revision)
diffconfig直接写 .config 的配置项

所以 profile 既能描述“板子”,也能描述“要哪些 prpl 功能”。

26 个官方 profile 分三层

当前 profiles/ 有 26 个官方 profile(qemu_armsr 是我们自己加的,不算)。

第一层:功能/产品包(没有 target)

这些是“加特性”的,不绑定具体板子:

  • prpl_core:prpl 最小核心包 + feeds
  • prpl:prpl_core + lcm + mgmt
  • lcm:Life-Cycle Management
  • mgmt:管理面
  • security:安全特性
  • debug:调试工具/日志
  • thread:Thread
  • cellular:蜂窝
  • secure_boot_emmc:eMMC 安全启动
  • extender_minimal:prpl_core 的 extender 最小集
  • extender_full:prpl_core + lcm + mgmt
  • mxl_wlan*(4 个):MaxLinear WLAN 功能包

第二层:target/board

这些才对应具体目标/设备:

Profiletarget/subtarget设备
x86_64x86/64generic
ipq40xxipq40xx/genericGL-B1300
ipq807xqualcommax/ipq807xprpl_haze
qca_ipq95xxipq95xx/genericprpl_freedom
mtk_filogicmediatek/filogicArcadyan Mozart
mvebumvebu/cortexa9WRT3200ACM / WRT32X / Turris Omnia
airoha_an7581airoha/an7581Nokia Valyrian
mxl_x86intel_x86/lgmLGM_PRPL
mxl_x86_secintel_x86/lgmLGM_PRPL(安全)
mxl_x86_osp_tb341intel_x86/lgmPRPL_OSP_TB341
mxl_x86_osp_tb341_v2intel_x86/lgmPRPL_OSP_TB341_v2

第三层:组合关系

几个关键 include:

prpl
  └─ prpl_core
  └─ lcm
  └─ mgmt

extender_full
  └─ lcm
  └─ mgmt
  └─ prpl_core

extender_minimal
  └─ prpl_core

prpl_core 还会拉三个 feed:

feed_amx
feed_prplmesh
feed_prplos

mxl_x86_osp_tb341_v2 和 qca_ipq95xx 还会 include secure_boot_emmc。

为什么没有 armsr

官方 profiles 是厂商/产品导向的:

  • x86、ipq、mtk、mvebu、airoha、MaxLinear;
  • 没有 QEMU 的 armsr。

所以想用 QEMU ARM SystemReady,必须自己写:

# profiles/qemu_armsr.yml
profiles: [generic]
target: armsr
subtarget: armv8

然后 ./scripts/gen_config.py qemu_armsr。这一步的细节在下一篇。

怎么选

  • 只想在 PC 上跑:x86_64 + prpl/debug,最快。
  • 想跑 ARM 虚拟目标:自定义 qemu_armsr(没有官方 profile)。
  • 有板子:选对应 target/subtarget/device,再叠加 prpl_core/prpl。
  • MXL/IPQ 厂商板:通常还需要厂商 feed/SDK,不是“有 profile 就能编”。

验证状态(本站宗旨)

  • ✅ 数量/内容:profiles/*.yml 共 26 个官方 profile(排除自建 qemu_armsr),target/subtarget/include/feeds 已逐项核对;
  • ✅ 组合关系:prpl、prpl_core、extender_*、secure_boot_emmc 的 include 已核对;
  • ⚠️ 未逐个构建:尤其 mxl_*/ipq* 依赖厂商 feed/SDK,本文只做 profile 结构分析;
  • ❓ 版本差异:profile 列表随 prplOS 分支变化,以你 checkout 的 profiles/ 为准。

一句话

官方 profiles = 功能包(prpl/lcm/mgmt)+ target/board(x86/ipq/mtk/mvebu/mxl/airoha)。 没有 armsr,所以 QEMU 移植的第一步是“自己写 profile”,不是“找一个官方 profile”。


源码:prplOS profiles(840cf16) 下一篇:prplOS 移植(2):GEN_CONFIG——以 QEMU armsr/armv8 为目标 相关:prplOS vs OpenWrt 系列:prplOS 与 AMX。

本页练习

觉得有用?

我持续记录 AI Agent × 嵌入式 / 边缘 AI 的实践。订阅更新,或来邮件交流一个具体问题。

去留言板 →订阅 RSS赞助

评论 0

还没有评论,来抢沙发~

无需登录即可评论;昵称可选。