orangepi-xunlong / openwrt

For Orange Pi R1 Plus/R1 Plus LTS
Other
110 stars 85 forks source link

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

Open XiaoMiku01 opened 5 months ago

XiaoMiku01 commented 5 months ago

按照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 commented 5 months ago

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

darkyzhou commented 1 month ago

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

XiaoMiku01 commented 1 month ago

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

darkyzhou commented 1 month ago

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

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

XiaoMiku01 commented 1 month ago

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