How does an A-core application compiled with s32g274 automatically start and run on the board

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

How does an A-core application compiled with s32g274 automatically start and run on the board

1,263 Views
sdx111
Contributor II

How can the application program compiled with the A core of s32g274 be deployed to the board to start and run automatically? What methods are there?

0 Kudos
Reply
5 Replies

1,191 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @sdx111 

Thanks for your confirmation.

I have checked the BSP35, your automatically started application may be run with the assist of the following method

vi /etc/systemd/system/startup.service
Put the following contents into the file that created above.

[Unit]
Description=Startup
After=network.target
[Service]
Type=oneshot
ExecStart=$PATH_TO_YOUR_APP
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target

Saved and run the following command:
systemctl daemon-reload
systemctl enable mystartup.service
systemctl start mystartup.service

I have tested it on the BSP35, and the application could be correctly brought up, note it is only a reference sample, you may implement it according to different requirements.

I hope it will help.

 

BR

Chenyin

0 Kudos
Reply

1,215 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @sdx111 

Thank for your reply.

I feel glad that you application had been successfully cross-built, for running it automatically on the RFS, it is rather a Yocto question, and from my experience, it may depend on the BSP version used, may I know which version BSP is used in your test?

 

BR

Chenyin

 

0 Kudos
Reply

1,206 Views
sdx111
Contributor II
BSP35.0
0 Kudos
Reply

1,245 Views
chenyin_h
NXP Employee
NXP Employee

Hello, @sdx111 

Thank for your post,

May I know you are running BSP from the A53 side? would you mind providing some more details of your requirements? from my experience, your own application could be built directly on the board, or cross-compiled on the PC, then copy the executable image to the board to run it under Linux.

 

BR

Chenyin

 

0 Kudos
Reply

1,227 Views
sdx111
Contributor II
My own application could be cross-compiled on the PC, then copy the executable image to the board to run it under Linux.Next, how to enable my own application to start and run automatically when the board is powered on next time? Should it be placed in the rc.local file? Or how to handle it?
0 Kudos
Reply