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