imx8qxp Linux 4.14版本 systemd添加自启动应用,printf不能输出到debug串口

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx8qxp Linux 4.14版本 systemd添加自启动应用,printf不能输出到debug串口

2,523 Views
475143463
Contributor III

在yocto编译系统并测试完毕后。systemd添加自启动应用服务,服务启动一个测试程序,开机,可以启动服务,但是测试程序的日志不能输出到debug串口。

服务文件内容如下:

pastedImage_1.png

测试程序内容为:

pastedImage_2.png

开机后,测试程序进程的TTY属性为“?”。但是在命令行./XXX启动,TTY显示为TTYLP0,就可以输出日志到debug串口。

请教下,为啥在service中加入自启动,却不能自动大约日志到debug串口,且TTY显示为“?”呢?

0 Kudos
3 Replies

2,433 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Can you send me your service scripts?

0 Kudos

2,433 Views
jimmychan
NXP TechSupport
NXP TechSupport

Could you send me the boot up log?

0 Kudos

2,433 Views
475143463
Contributor III

感谢您的回复。开机log已经上传,启动后的进程名为printftest

0 Kudos