Other Parts Discussed in Thread: AM4376, TMDSEVM437X
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:AM4376 主题中讨论的其他器件:TMDSEVM437X、
您好!
我想在 SDK 中添加我的 python 脚本、然后 在其加电时在 TI AM4376 EVM 板上运行它。
我怎么能做到这一点?
此致、
Dhara
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.
Other Parts Discussed in Thread: AM4376, TMDSEVM437X
您好!
我想在 SDK 中添加我的 python 脚本、然后 在其加电时在 TI AM4376 EVM 板上运行它。
我怎么能做到这一点?
此致、
Dhara
将其粘贴到您的终端上、然后检查其功能:
Cat << EOM >/lib/systemd/system/dhara.service
[装置]
描述= Dhara
Before = serial-getty@ttyO2.servICE
[服务]
ExecStart=/usr/bin/python /home/root/dhara.py
StandardOutput=journal+console
[安装]
WantedBy=multi-user.target
EOM
cat << EOM >/home/root/dhara.py
print ("Hello World!")
EOM
chmod 644 /lib/systemd/system/dhara.service
chmod 755 /home/root/dhara.py
systemctl 启用 dhara.service
systemctl daemon-reload
ls