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

UBoot编译烧写后无法通讯的问题 #17

Open
810535323 opened this issue Jul 14, 2022 · 3 comments
Open

UBoot编译烧写后无法通讯的问题 #17

810535323 opened this issue Jul 14, 2022 · 3 comments

Comments

@810535323
Copy link

2.Bootloader)/download.txt中提供的UBoot

链接:https://pan.baidu.com/s/1JGpqt7slWXrPct-07vBxXg
提取码:1xba

问题原因:大佬在做UBoot的时候原来串口是Uart0的换成了Uart1导致编译后实际通讯的串口为Uart1,因此我们正接是无效的。
解决方法:
第一步:修改 ~/uboot-2020.07/arch/arm/dts/suniv-f1c100s-genric.dts 的 aliases 中的 &uart1 为 &uart0
image
第二步: 在 ~/uboot-2020.07/下 执行 make menuconfig
Device Drivers --->
Serial drivers --->
(1)UART used for console
image
第三步:按照流程编译就可以啦。

@xuemingp66
Copy link

请问是这样修改之后,再烧写Kernel以及Rootfs就可以正常使用了吗?

@810535323
Copy link
Author

请问是这样修改之后,再烧写Kernel以及Rootfs就可以正常使用了吗?

理论上配置好uboot的bootarg和bootcmd传递给内核就能启动了,是否还有问题我还没验证。

@jcao-ai
Copy link

jcao-ai commented Aug 29, 2022

请问是这样修改之后,再烧写Kernel以及Rootfs就可以正常使用了吗?

理论上配置好uboot的bootarg和bootcmd传递给内核就能启动了,是否还有问题我还没验证。

谢谢,意思是只是影响U-BOOT本身的console对吧?例如在U-BOOT的prompt模式时需要一些外部交互。启动Kernel后有linux的device tree了所以不受影响;

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

3 participants