嵌入和边缘图像评估
x86_64 KVM 构建可以验证小型 Linux 用户空间,但无法验证嵌入式主板的启动固件、内核、存储、电源、无线电或外设行为。将第一个工件视为虚拟参考,除非所选构建器明确支持目标设备。
提示
Create a minimal Debian Trixie headless image for an x86_64 edge gateway.
Include SSH, NetworkManager, Avahi, watchdog, curl, and CA certificates.
Create a locked-password service account named app with a no-login shell and
no supplementary groups. Do not remove documentation or locales unless the
generated plan shows the exact package and filesystem effects. Add boot,
service, account, repeated-boot, and interrupted-first-boot tests.配方形状
{
"name": "edge-gateway-evaluation",
"base_image": "debian-trixie",
"hardware": {
"platform": "pc",
"architecture": "x86_64",
"min_cpu_cores": 2,
"min_memory_gb": 2,
"min_storage_gb": 16,
"nic_count": 1
},
"os": {
"features": ["headless", "ssh"],
"packages": [
"network-manager",
"avahi-daemon",
"watchdog",
"curl",
"ca-certificates"
],
"users": [
{
"username": "app",
"groups": [],
"shell": "/usr/sbin/nologin"
}
]
}
}硬件块声明要求;它不会将 PC 映像更改为特定于板的映像。仅当当前构建器接受确切目标并记录其限制时,才使用 platform: raspberry_pi 或电话/设备字段。
验证
在虚拟访客中,验证:
- 所需的软件包和启用的服务;
- 服务帐户的 shell、锁定状态、组和文件所有权;
- 第一次和第二次启动后联网;
- 看门狗配置,无需刻意重置共享基础设施;
- 任何 tmpfs 或易失性日志请求的读/写行为;和
- 当注册依赖项不可用时,干净的失败。
KVM 的启动时间和空闲内存测量是有用的回归基线,而不是目标硬件承诺。
设备资质
在将映像写入物理介质之前,请在确切的电路板版本上进行测试:
- 引导加载程序和固件兼容性;
- 内核、设备树、驱动程序和专有固件;
- 存储磨损、断电和文件系统恢复;
- 以太网、Wi-Fi、蓝牙、调制解调器、GNSS 和无线电(如果适用);
- 串行、I2C、SPI、GPIO、摄像头和加速器 I/O;
- 热限制、暂停/恢复、看门狗重置和功率预算;和
- 安全注册、密钥保管、更新、回滚和退役。
不要告诉操作员“刷新 ISO”,除非该设备特别支持工件格式和写入过程。