openwrt icon indicating copy to clipboard operation
openwrt copied to clipboard

仓库编译的img刷入sd卡后无法启动

Open XiaoMiku01 opened this issue 1 year ago • 5 comments

按照OrangePi_3B_RK3566_用户手册用仓库源码编译的img刷入sd卡后无法启动 ,串口的日志:

out
U-Boot SPL board init
U-Boot SPL 2017.09-orangepi (Jan 02 2024 - 14:37:51)
unrecognized JEDEC id bytes: ff, ff, ff
Trying to boot from MMC1
Trying fit image at 0x4000 sector
## Verified-boot: 0
## Checking uboot 0x00a00000 ... sha256(d78e2c89d3...) + OK
## Checking fdt 0x00b43e48 ... sha256(eecf82f55a...) + OK
Total: 661.530 ms

Jumping to U-Boot(0x00a00000)

但是官网 Orange-Pi-3B 提供的openwrt镜像可以正常启动。

请问官网提供的镜像是哪个版本的? 如何编译的?

XiaoMiku01 avatar Jan 30 '24 07:01 XiaoMiku01

后续测试: 把官方镜像的boot部分替换到我编译的镜像里面就可以正常启动了。 推测可能是u-boot的问题

XiaoMiku01 avatar Jan 30 '24 09:01 XiaoMiku01

遇到相同问题,请问楼主是怎么解决的,「boot 部分」包括哪些文件呢

darkyzhou avatar Jun 06 '24 16:06 darkyzhou

有点记不清了 好像是把 官网镜像的 boot 整个分区 dd 到新编译的镜像的 boot 分区就可以了

XiaoMiku01 avatar Jun 06 '24 17:06 XiaoMiku01

boot 分区里不是会有 kernel.img 吗,这样会把内核也覆盖掉吧,我看 main 分支里的内核版本比官网镜像要新。

刚才试了一下只把里面的 boot.csr 和 dtb 替换,并没有什么用……

darkyzhou avatar Jun 06 '24 17:06 darkyzhou

好像确实如此 这个官方的仓库确实是用不了

XiaoMiku01 avatar Jun 07 '24 01:06 XiaoMiku01