i.MX8M autostart application at boot

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

i.MX8M autostart application at boot

2,405 Views
angelos_konstan
Contributor I

Hello,

I have a DART-MX8M development kit based on the i.MX8M. In general I want to play on a loop a specific video, so when the dev kit is turned ON it redirects me to the cmd window where I type the command:

gplay-1.0  - -repeat 'name of video and file type' and it works fine. As an improvement to that, I would like to automatically play this video the moment I turn the dev kit ON (at boot) without having to type this command every time. I looked online for scripts that enable autostart of applications during boot, but they don't seem to work for GNU Linux. Would you be able to help?

Regards

0 Kudos
1 Reply

2,126 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Angelos,

The simplest way to do that is to add this command in /etc/rc.local script, so that it will be executed automatically during startup.

 

For example, you can add:

 

cd /usr/bin (where you put your application file)

./your_application

 

If you want it running in background, you can use ./your_application &

 

Cookbook:Appliance:Startup Scripts - Yocto Project 

Regards

0 Kudos