One Time Programmable memory map incorrect

未关闭
#4,319 2 条评论 0 个 reaction 已指派 2 人 在 GitHub 查看

@timg236 已经在做这个了。

开始于 2026年8月25日。

评估

这个 Issue 还没有评估数据。

描述

white paper

Following the white paper for one-time programmable memory, the memory rows for RPi 5/ CM5 are listed as rows 74-84. The documentation page covering OTP in this repo lists rows 77-84 for BCM2712 devices. Recent testing confirms that for the CM5, the rows are 77-84. Additionally, the example in the white paper for programming (page 9) covers RPi4/ CM4 devices only with reference to rows 40-42. As the customer programmable memory rows start at 77 and not 74, the method for row determination is incorrect as described int he white paper.

Additionally, while trying to confirm the correct rows prior to writing to this region, I found a command in the vcio driver linux/drivers/char/broadcom/vcio.c on line 41
0x00030086, /* SET_CUSTOMER_OTP_LOCK */
which looks to be another possible lock command for OTP memory. I did not have the opportunity to test this command as I had already locked the region using the
0x00038021, /* SET_CUSTOMER_OTP */
command listed in the white paper and found it to work as expected. Still, might warrant investigation and clarity if this command has value.

Given that you only get one shot at writing to this region, it would be greatly appreciated if any documentation is highly specific and accurate.

主要语言
Python
星标
5.6k
派生
2.1k
PR 合并指标
30 天内没有已合并 PR

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

raspberrypi/documentation 的其他 Issue

查看 raspberrypi/documentation 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。