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.