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

如何实现软件层面或者Linux命令行重启至U盘升级模式 #81

Open
mcpanl opened this issue Nov 28, 2024 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@mcpanl
Copy link
Contributor

mcpanl commented Nov 28, 2024

如何实现软件层面或者Linux命令行重启至U盘升级模式,以及烧录成功后如何通过串口或者其他操作将其正重启至正常开机状态,这样就可以实现无人值守编译、烧录和调试系统了。

@Neutree Neutree added the enhancement New feature or request label Nov 29, 2024
@Neutree
Copy link
Member

Neutree commented Nov 29, 2024

应该可以做,改uboot,有点麻烦,官方应该不会做了,有需求可以自己尝试改。
思路:

  • uboot会根据boot/user 按键是否按下选择进入升级模式还是正常启动,找到对应的代码。
  • 修改代码读取一个文件来判断是否进入升级模式,比如 /boot/upgrade ,这样需要进入升级模式就创建一个这个文件,然后重启,uboot读取到这个文件或者boot/user按钮按下就进入升级模式
  • 烧录过程中如果要接收来自串口的信息就在升级模式加载的内核中运行通信程序

欢迎 PR

@mcpanl
Copy link
Contributor Author

mcpanl commented Nov 29, 2024

收到,我尝试一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants