No console log of application

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

No console log of application

712 次查看
dskim2
Contributor IV

I set the following settings to automatically run my application on the imx8mp custom board, but the log of the application's printf function is not displayed in the console.

When I login as root in the terminal and force the application to run, the log is displayed normally on the console.

I build Yocto version 6.1.22_2.0.0, core-image-base


What should I do?

1. auto run script file

#!/bin/sh
/home/root/application name &

 

2. copy the script file to /etc/init.d folder.

3. update-rc.d auto run script file defaults

0 项奖励
回复
1 回复

660 次查看
dskim2
Contributor IV

I figured out that the application was running twice.
rc.local seems to run once, but why does Application run twice?

0 项奖励
回复