This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM3358: Autostart script

Part Number: AM3358


Hi. TI


The software versions I currently use are:
ti-processor-sdk-linux-am335x-evm-06.01.00.08


I want to run the script automatically after the device boots up.

The example is created as follows.

1. make service file
targetNFS/lib/systemd/system/test.service
==========================================
[Unit]
Description=test

[Service]
Type=simple
ExecStart=/home/root/test.sh

[Install]
WantedBy=multi-user.target
==========================================

2. make script file
/targetNFS/home/root/test.sh
==========================================
#!/bin/sh

echo "*****************"
echo "* run test.sh *"
echo "*****************"
==========================================

3. Check execution rights.
==========================================
chmod 777 targetNFS/lib/systemd/system/test.service
chmod 777 targetNFS/home/root/test.sh
==========================================

4. Run make all and flash to SD card.

5. Insert the sd card into evmsk and boot up.

6. Observe the log

7. However, the expected log is not coming out.


Q1. What did I do wrong?

Q2. Do I have to log in as root?


Thank you in advance.


Regards.
Simon.

  • Hi Simon,

    The process is not any different for the SDK than any systemD init process. So, any documentation from systemD or examples you can find should apply. You might find better help in that community than here as we simply provide systedD in the SDK as an example.

    Doese your script exist on the target and if you execute it there from a prompt does it execute correctly?

    Thanks.