Skip to content

build(dlcvcam): boot.img 一键打包与 sidecar 校验 - #15

Closed
ymxc152 wants to merge 3 commits into
rk3576from
feat/dlcvcam-recovery-golden-boot
Closed

build(dlcvcam): boot.img 一键打包与 sidecar 校验#15
ymxc152 wants to merge 3 commits into
rk3576from
feat/dlcvcam-recovery-golden-boot

Conversation

@ymxc152

@ymxc152 ymxc152 commented Jul 31, 2026

Copy link
Copy Markdown

背景

RK3576 DLCVCAM 日常需要可重复的 boot.img(FIT) 出包流程,并在上传/烧录前做 hash 完整性检查(无签名)。

本 PR 提供内核树内的编包与校验工具 + 手册。
防砖启动逻辑不在本仓:

能力 位置
FIT 坏 / boot-try → recovery u-boot#1 fit.c
confirm 脚本协议副本 u-boot tools/dlcvcam/
seed recovery、安装 confirm/WDT、sync 金镜像 CamOS Admin

改动

路径 说明
build_bootimg.sh defconfig/增量编译 → FIT boot.img → 命名交付镜像;自动 bump DLCVCAM_BUILD_VERSION
scripts/dlcvcam_verify_bootimg.py gen-sidecar / verify(整包 SHA + FIT 内嵌 hash)
DLCVCAM内核编译与更新操作手册.md §4 编包与校验;防砖外链
.gitignore /bad_packages/*.img.sha256、legacy *.img.dlcvcam.json/boot-rk3576-*.img

交付物

镜像 + 整包 hash(不再生成 .dlcvcam.json):

boot-rk3576-6.1.99-YYYYMMDDNN-<gitsha>.img
*.img.sha256
检查 依据 作用
整包 SHA-256 <img>.sha256 截断 / 拷贝损坏 / 传错成另一份合法旧包
FIT 内嵌 hash boot.img 内 fdt/kernel/resource payload 损坏;不依赖 sidecar 也能查

用法

./build_bootimg.sh
python3 scripts/dlcvcam_verify_bootimg.py verify boot-rk3576-*.img --require-sidecar
# 无 python 时:sha256sum -c boot-rk3576-*.img.sha256

明确不包含(已迁出)

  • dlcvcam_boot_try.py / confirm systemd → u-boot tools/dlcvcam/ + Admin 安装
  • dlcvcam_sync_boot_to_recovery.shCamOS Admin
  • 无内核 .c/DTS/Kconfig 改动
  • .dlcvcam.json 清单(已去掉,避免与 FIT 内嵌 hash 重复)

相关

Checklist

  • 一键打包 + 版本 bump
  • .sha256 sidecar + verify(整包 + FIT)
  • 手册与防砖职责边界清晰
  • 无 boot-try/sync 用户态脚本残留本仓

- build_bootimg.sh:配置/编译/打包命名镜像 + 自动 bump
- scripts/dlcvcam_verify_bootimg.py:整包 SHA 与 FIT 内嵌 hash
- 手册:编包与烧录前校验;防砖改外链 u-boot / CamOS Admin
- gitignore:本地 bad_packages 与镜像 sidecar

boot-try 用户态与 recovery sync 不在本仓(见 u-boot tools/dlcvcam、Admin)。

Co-Authored-By: Claude <noreply@anthropic.com>
@ymxc152
ymxc152 force-pushed the feat/dlcvcam-recovery-golden-boot branch from 4f7ee08 to 834ee25 Compare August 4, 2026 02:02
@ymxc152 ymxc152 changed the title feat(dlcvcam): recovery 金镜像工具与 boot-try 用户态 confirm build(dlcvcam): boot.img 一键打包与 sidecar 校验 Aug 4, 2026
OKayJH and others added 2 commits August 4, 2026 10:39
Co-Authored-By: Claude <noreply@anthropic.com>
交付物收敛为 boot.img / boot-rk3576-*.img 与整包 .sha256。
FIT 内嵌 hash 仍由 verify 检查;JSON 清单不再生成。
ymxc152 pushed a commit that referenced this pull request Aug 7, 2026
以 feat/dlcvcam-recovery-golden-boot 为编包/校验权威口径:
仅交付 boot.img + .sha256,去掉 .dlcvcam.json;补齐 .gitignore 与手册 §4。
冲突文件 build_bootimg.sh、scripts/dlcvcam_verify_bootimg.py 采用 #15 版本。
@ymxc152

ymxc152 commented Aug 7, 2026

Copy link
Copy Markdown
Author

已并入 #14fix/imx296-fast-trigger-n1-pwm-period)。

  • merge commit: f4910f395263
  • 编包/校验口径以本 PR(build(dlcvcam): boot.img 一键打包与 sidecar 校验 #15)为准:仅 boot.img + .sha256,无 .dlcvcam.json
  • 冲突文件 build_bootimg.shscripts/dlcvcam_verify_bootimg.py 在合并时采用本分支版本
  • 合入后已对现有 boot-rk3576-*.img 做过 verify / gen-sidecar 冒烟

请继续在 #14 评审与合并,本 PR 关闭以免重复合入。

@ymxc152 ymxc152 closed this Aug 7, 2026
ymxc152 added a commit that referenced this pull request Aug 10, 2026
以 feat/dlcvcam-recovery-golden-boot 为编包/校验权威口径:
仅交付 boot.img + .sha256,去掉 .dlcvcam.json;补齐 .gitignore 与手册 §4。
冲突文件 build_bootimg.sh、scripts/dlcvcam_verify_bootimg.py 采用 #15 版本。
@ymxc152
ymxc152 deleted the feat/dlcvcam-recovery-golden-boot branch August 28, 2026 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants