您尚未登录。

楼主 #1 2018-12-29 18:28:50

BMN李
会员
注册时间: 2018-03-22
已发帖子: 69
积分: 64

V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

V3S怎么关闭uboot的启动信息?

离线

#2 2018-12-29 19:42:58

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

#define CONFIG_DISABLE_CONSOLE 1
#define CONFIG_SILENT_CONSOLE 1
#define CONFIG_SYS_DEVICE_NULLDEV 1
#define CONFIG_BOARD_EARLY_INIT_F 1


参考: https://blog.csdn.net/gujintong1110/article/details/48683501





离线

楼主 #3 2018-12-29 19:51:24

BMN李
会员
注册时间: 2018-03-22
已发帖子: 69
积分: 64

Re: V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

晕哥 说:

#define CONFIG_DISABLE_CONSOLE 1
#define CONFIG_SILENT_CONSOLE 1
#define CONFIG_SYS_DEVICE_NULLDEV 1
#define CONFIG_BOARD_EARLY_INIT_F 1


参考: https://blog.csdn.net/gujintong1110/article/details/48683501

你好。这个我添加进去编译不过额。错误信息:

common/built-in.o:(.data.init_sequence_f+0x24):对‘board_early_init_f’未定义的引用

这个是什么原因呢?

离线

#4 2018-12-29 19:56:31

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

https://devtalk.nvidia.com/default/topic/1032698/jetson-tx2/disable-serial-console-of-u-boot-on-tx2/


and in u-boot/arch/arm/mach-tegra/board186.c I added:
int board_early_init_f(void)
{
+gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE);
return 0;
}

看下能不能参考上面的解决方案





离线

楼主 #5 2018-12-29 20:40:35

BMN李
会员
注册时间: 2018-03-22
已发帖子: 69
积分: 64

Re: V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

晕哥 说:

https://devtalk.nvidia.com/default/topic/1032698/jetson-tx2/disable-serial-console-of-u-boot-on-tx2/


and in u-boot/arch/arm/mach-tegra/board186.c I added:
int board_early_init_f(void)
{
+gd->flags |= (GD_FLG_SILENT | GD_FLG_DISABLE_CONSOLE);
return 0;
}

看下能不能参考上面的解决方案

谢谢哦。解决了。

#define CONFIG_EXTRA_ENV_SETTINGS \
    "silent=1\0"
#define CONFIG_SILENT_CONSOLE 1
#define CONFIG_SYS_DEVICE_NULLDEV 1
#define CONFIG_SILENT_CONSOLE_UPDATE_ON_SET 1
#define CONFIG_SILENT_U_BOOT_ONLY 1
#define CONFIG_SILENT_CONSOLE_UPDATE_ON_RELOC 1

参考:https://stackoverflow.com/questions/34356844/how-to-disable-serial-consolenon-kernel-in-u-boot?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa

最近编辑记录 BMN李 (2018-12-29 20:41:46)

离线

#6 2018-12-29 20:41:29

晕哥
管理员
所在地: 微信 whycan_cn
注册时间: 2017-09-06
已发帖子: 9,223
积分: 9197

Re: V3S怎么关闭uboot的启动信息?怎么禁止串口输入?

感谢分享!





离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn