Auto start linux application

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

Auto start linux application

926件の閲覧回数
garimella
Contributor I

I was successfully able to port kernel, rootfs to my board (mpc8309 -custom made) and run my application on target. Currently I am using tftp to fetch application from host to target. My questions are

1) How to store my application in target permanently without fetching from host every time?

2) How to execute this application at start up? ( I try editing /etc/init.d but it is found empty)

0 件の賞賛
返信
2 返答(返信)

757件の閲覧回数
alexander_yakov
NXP Employee
NXP Employee

1. To store your custom application in target flash, you have to add it to rootfs filesystem

2. Assuming you are using LTIB build system, please look the follwing entry in LTIB faq:

LTIB : LtibFaq 


Have a great day,
Alexander

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

757件の閲覧回数
garimella
Contributor I

Hi Alexander

The link provided by you is not very clear. On googling I found the following steps followed by other users

1. store the executable in /usr/bin directory

2. add script in init.d giving full path of application 

3. create symlink for the script and edit rc.local to add <symlink> &

4. execute ./ltib

I did not try the above method. please confirm if I could follow this procedure. alternatively please enlighten if simple procedure do exist in LTIB

0 件の賞賛
返信