Skip to content

Commit 63cd90e

Browse files
committed
hw: hikey: sd multimedia card interface
Signed-off-by: Luc Ma <luc@sietium.com>
1 parent ae2b517 commit 63cd90e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

source/_posts/hw/hikey970.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,14 @@ See 'systemctl status systemd-random-seed.service' for details.
295295

296296
crng init 花这么长时间的原因是系统 entropy sources 不足,内核一直在填充 entropy pool, 这种情况只发生在刷写系统后第一次启动,之后 entropy pool 应该固化在 UFS 存储里了,启动时间就正常了。但因为需要频繁刷写系统,所以还是得解决这个问题。尝试了 rng-tools5 和 haveged 后,发现 haveged 可以解决这个问题。理论上 rng-tools5/rng-tools 也可以借助 `/dev/hwrng` 解决这个问题,但不知为何 rngd 服务始终[不能正常工作](https://gist.githubusercontent.com/lucmann/bfabaac6a2c904877629dd3ce97229eb/raw/ceb01cbe992a09d8e1c20a944ea272c8145c7a67/rngd.log),怀疑可能是 Hi3670 SoC 的 TRNG 驱动有问题。
297297

298+
### SD 卡不识别
299+
300+
现象:系统启动后 `lsblk` 看不到 `/dev/mmcblk0`
301+
302+
使用原来的 [hikey970-ubuntu-image (@mengzhuo)](https://github.com/mengzhuo/hikey970-ubuntu-image) 镜像,SD 卡是正常识别的,这就说明电源和卡本身没有问题(之前因为使用 12V 的电源, fastboot flash 总是失败的教训很深刻🐶)。
303+
304+
将下来主要排查设备树和内核配置的问题,在这里和 ChatGPT/DeepSeek 交流了很多,总体感觉 ChatGPT 在这方面比 DeepSeek 靠谱一点。了解到了 HI3670 SoC 的 MMC 控制器使用的是 Synopsis DesignWare MMC, 它是一种不遵循 SD Host Controller Interface 规范的厂家自定义接口。
305+
298306
# 参考
299307

300308
- [HiKey970 官方文档](https://www.96boards.org/documentation/consumer/hikey/hikey970/installation/board-recovery.md.html)

0 commit comments

Comments
 (0)