Solutions to your doubts are just one click away. Just select the appropriate category and ask questions. You can also reply to the answers you are already aware.
had a script file in that i have commands for intialisation of can,wifi,etc..,How can i run that file automatically when the board is booted. I am doing booting using SD card so,where i need to place that script file?
if you want to run the "helloworld" binary as startup app in board.
copy the helloworld binary to "/home/root/" folder in the board.
$vi test.sh
add below lines in "test.sh" file and save it.
**********************************************
#!/bin/sh
/home/root/helloworld
$vi /etc/systemd/system/multi-user.target.wants/test.service
[Unit]
Description=Test application running
[Service]
Type=forking
ExecStart=/bin/sh /home/root/test.sh
[Install]
WantedBy=multi-user.target
$ln -s /etc/systemd/system/multi-user.target.wants/test.service /lib/systemd/system/multi-user.target.wants/
follow above once and update here
Yes.same process followed .Can you please once check with anydesk or something like that?
Please follow below text file to startup the app automatically
After putting my logic in above .txt file where i had to place this file?
in shell script test.sh file just run your application for example ./helloworld
and copy the helloworld binary in /home/root/
had a script file in that i have commands for intialisation of can,wifi,etc..,How can i run that file automatically when the board is booted. I am doing booting using SD card so,where i need to place that script file?
To run automatically... Already given the txt file to this ticket and. Where ever you copy your script file.. Just give that path in the service file
I added my scrip file in above test.sh and copied that file into rootfs/home/root .It is not working.
Have you followed text file
Please follow this text file, first try on the helloworld binary, if it works go for next step.
okay.Where i need to place this test.sh file?
/home/root/test.sh
I copied the test.sh and helloworld to root .How can i know that file is running automatically?
Check using ps command
I followed all the steps but i am unable to run automatically.can you provide some detailed document?
Share anydesk
628 896 424
It was offline