Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

瑞芯微开发工具加载固件失败 #1562

Closed
TheRainstorm opened this issue Jul 22, 2023 · 8 comments
Closed

瑞芯微开发工具加载固件失败 #1562

TheRainstorm opened this issue Jul 22, 2023 · 8 comments

Comments

@TheRainstorm
Copy link

Device Information | 设备信息

  • SOC: rk3399
  • Model: king3399/容品rk3399

Armbian Version | 系统版本

  • Release: 试了2023.07的lunar和jammy都不行

Describe the bug | 问题描述
可能是一个基础的问题,但是确实搜索了很久都没有找到解答。板子为king3399,使用瑞芯微开发工具(windows客户端,应用程序为AndroidTool.exe)尝试将本项目的镜像写入eMMC。在第一步选择armbian镜像时就会报错(还没有点击升级),而使用原厂的debian, ubuntu镜像不会出现这个问题,截图如下。也尝试过先擦除,仍然不行。
加载armbian报错
image
成功加载固件,显示了固件信息
image

查阅容品电子科技附带的手册,只看到以下说明:

2.1.1 固件加载失败
若是网盘下载的镜像要确保镜像没有损坏
自己编译的需要按我们提供的命令进行编译
防止打包失败可以重新编译打包

测试过了下载的镜像sha256校验和release里的一致,所以镜像应该没损坏。所以问题是打包的格式和官方工具的要求不一致导致的?**是不是本项目不支持这种方式安装镜像?**如果是我哪里理解有误,还请见谅。

我看到文档里8. Install Armbian to eMMC章节介绍了几种Rockchip的开发板刷Armbian进入eMMC的方式。几种均提到了使用RKDevTool直接根据地址空间写入eMMC。但是教程中给的例子除了armbian镜像均放在0x00000000相同外,Radxa-Rock5B额外需要rk3588_spl_loader_v1.08.111.bin文件,并且放在0x0,而FastRhino R68S, Beikeyun, Chainedbox-L1-Pro则是需要将MiniLoaderAll.bin放在0xCCCCCCCC。我想问一下:

  • 上面为什么还需要额外指定loader,作用是什么?以我的简单理解,armbian.img应该是包含uboot的?
  • king3399可不可以将armbian.img映射到地址0x0,然后直接刷入eMMC?
    我尝试了一下是不行的,刷的过程中会提示测试设备失败。是不是也像其它Rockchip板子需要指定额外的loader文件?那么地址应该填多少呢?
    image
    这是尝试使用原厂镜像解包出来的MiniLoaderAll.bin,两个地址均失败
    image
    image

因为我没有tf卡,看项目的文档,意思好像是先将armbian写入tf卡,启动系统后再通过armbian-install安装到其它存储设备中。但是能不能使用RKDevTool直接写入镜像呢,希望有大佬能解答我以上的疑惑,十分感谢。

@ophub
Copy link
Owner

ophub commented Jul 22, 2023

SD/TF可以用balenaEtcher把armbian.img直接写入SD/TF即可使用。从SD/TF启动后,上传armbian.img到tf,可以dd写入emmc。

使用RKDevTool时需要loader,这个文件在同系列里通用,几个不同小版本的可以换个别的试试。比如使用仓库里u-boot/king3399里提供的

armbian-install是amlogic/allwinner用的,rockchip用不了

@TheRainstorm
Copy link
Author

SD/TF可以用balenaEtcher把armbian.img直接写入SD/TF即可使用。从SD/TF启动后,上传armbian.img到tf,可以dd写入emmc。

使用RKDevTool时需要loader

armbian-install是amlogic/allwinner用的,rockchip用不了

是的!我从一篇别人的博客中找到了一个rk3399_loader_v1.24.126.bin文件,然后按照以下的地址确实成功写入armbian了。
image
image

感谢,我才发现u-boot/king3399下提供了该文件 :)
不过我好奇这个文件的作用是对应这里的蓝色的idbloader.img吗?不过为什么地址是0xCCCCCCCC呢,图中不是0x40吗?
image

@ophub
Copy link
Owner

ophub commented Jul 22, 2023

不是

@ophub ophub closed this as completed Jul 24, 2023
@Manssizz
Copy link

SD/TF can use balenaEtcher to write armbian.img directly to SD/TF for use. After booting from SD/TF, upload armbian.img to tf, and you can dd write it to emmc.
Loader is required when using RKDevTool
armbian-install is used by amlogic/allwinner, not rockchip.

Yes! I found a rk3399_loader_v1.24.126.bin file from someone else's blog, and then successfully wrote it to armbian according to the following address. image image

Thanks, I just discovered that this file is provided under u-boot/king3399:) But I'm curious. Does this file correspond to the blue idbloader.img here? But why is the address 0xCCCCCCCC? Isn’t it 0x40 in the picture? image

hello. do you have image copy of armbian? because i've try installing king with ophub repo, but can't installing on emmc.

@TheRainstorm
Copy link
Author

hello. do you have image copy of armbian? because i've try installing king with ophub repo, but can't installing on emmc.

No, I deleted it. I actually used 2023.07 release in this repo. So I think it's not the image problem?

@molodye
Copy link

molodye commented Nov 9, 2023

SD/TF可以用balenaEtcher把armbian.img直接写入SD/TF即可使用。从SD/TF启动后,上传armbian.img到tf,可以dd写入emmc。
使用RKDevTool时需要loader
armbian-install是amlogic/allwinner用的,rockchip用不了

是的!我从一篇别人的博客中找到了一个rk3399_loader_v1.24.126.bin文件,然后按照以下的地址确实成功写入armbian了。 image image

感谢,我才发现u-boot/king3399下提供了该文件 :) 不过我好奇这个文件的作用是对应这里的蓝色的idbloader.img吗?不过为什么地址是0xCCCCCCCC呢,图中不是0x40吗? image

u-boot/king3399下提供了该文件 u-boot/king3399在哪里找

@TheRainstorm
Copy link
Author

boot/king3399在哪里找
https://github.com/ophub/u-boot

@molodye
Copy link

molodye commented Nov 10, 2023

boot/king3399在哪里找
https://github.com/ophub/u-boot

我想问一下friendlyelec的nanopc T4的uboot这里面没有,可以拿官网的替代吗

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

No branches or pull requests

4 participants