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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,270件の閲覧回数
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 件の賞賛
返信
5 返答(返信)

1,198件の閲覧回数
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 件の賞賛
返信

1,222件の閲覧回数
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 件の賞賛
返信

1,213件の閲覧回数
sdx111
Contributor II
BSP35.0
0 件の賞賛
返信

1,252件の閲覧回数
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 件の賞賛
返信

1,234件の閲覧回数
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 件の賞賛
返信