Raspberry Pi 3 model b+ run on boot problem

Dear all
I get this error when I activate run on boot option in Simulink for Raspberry Pi 3 model b+ and I can't find anything related to this error on Google:
Cannot identify C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\realtime\targets\raspi\src\mwrunonboot.service. No such file or directory.
I don't find 'mwrunonboot.service' on my computer.

댓글 수: 3

Kiyo Akabori
Kiyo Akabori 2019년 11월 10일
I got the same error on Raspbery Pi 3 model b when I activated run on boot for both Simulink and MATLAB support packages. As a workaround, I ended up modifying the /etc/rc.local file to run my code on boot. I hope someone else can anwser this question.
Adam Cook
Adam Cook 2019년 12월 2일
how did you edit your rc.loacl file to run on boot?
Kohei Sagawa
Kohei Sagawa 2019년 12월 6일
I got a same ploblem on raspberry pi 3.

댓글을 달려면 로그인하십시오.

 채택된 답변

fangfines
fangfines 2020년 1월 14일

0 개 추천

according to my experience, looks like the new version matlab pi support pack lost some critical files

댓글 수: 4

fangfines
fangfines 2020년 1월 14일
I tried copy the last version (2019a) pi support pack to the new version, problem looks like solved
fangfines
fangfines 2020년 1월 15일
i copied "+pil" folder and "mwrunonboot.service" under pi supportpackages from 2019a to 2019b, seemed worked.
Sean O'Connell
Sean O'Connell 2020년 1월 17일
편집: Sean O'Connell 2020년 1월 17일
I'm getting the same error, very frustrating. I have tried to install 2019a to get the mwrunonboot.service in the support packages folder (/home/USERNAME/Documents/MATLAB/SupportPackages/R2019a/toolbox/realtime/targets/raspi/src/) No file called mwrunonboot.service is to be found. I do see the rc.local
Can someone please share with me that 'mwrunonboot.service' file? If not, can you at least give me a hint as to the function or the contents of such file so I could try to emulate it?
Thanks in advance,
sean
fangfines
fangfines 2020년 1월 20일
편집: fangfines 2020년 1월 20일
i also tried a lot with several times...
maybe i mistaked it, if i was right, i remember i tried both 2018b and 2019a, maybe i copied "mwrunonboot.service" from 2018b (which is my first try to solve the problem), and "+pil" folder from 2019a (then all worked).
and i suggust you check you also install the RPi support pack for all the matlab versions, before you try to find "mwrunonboot.service" and "+pil".
now i have:
mwrunonboot.service @
C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\target\supportpackages\raspberrypi\src
+pil (a folder with files)@
C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\target\supportpackages\raspberrypi\+codertarget\+raspi
C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\realtime\targets\raspi\+codertarget\+raspi
btw, i use EVERYTHING to locate and compare the difference of files between different matlab versions', which i find quite handy

댓글을 달려면 로그인하십시오.

추가 답변 (2개)

doe
doe 2020년 4월 2일

0 개 추천

Copying the file worked for me.
This is the content of mwrunonboot.service:
[Unit]
Description=Simulink Run on boot
After=multi-user.target
[Service]
Type=idle
RemainAfterExit=yes
ExecStart=/usr/local/bin/MW_runSimulinkModel
[Install]
WantedBy=multi-user.target

댓글 수: 1

Thanks a lot! I will give this a try once I go back to work after coronavirus blows over.
Luckily now Matlab 2020a supports the RPi4, so I will probably give that a try for my application as well. Hopefully they remembered to include this mwrunonboot.service file this time around haha

댓글을 달려면 로그인하십시오.

Christoph Linden
Christoph Linden 2020년 5월 1일

0 개 추천

Hello,
I had same problem. In my case the file mwrunonboot.service was missing in directory: C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\realtime\targets\raspi\src, so I add it there.
I took the lines from answer above just in a text file and named this than: mwrunonboot.service
und hier noch mal auf deutsch:
hatte das gleiche Problem. Also habe ich mir eine Datei mit dem Inhalt aus vorheriger Antwort erstellt:
[Unit]
Description=Simulink Run on boot
After=multi-user.target
[Service]
Type=idle
RemainAfterExit=yes
ExecStart=/usr/local/bin/MW_runSimulinkModel
[Install]
WantedBy=multi-user.target
wie gesagt die Zeilen einfach in Textdatei kopieren und unter dem Namen mwrunonboot.service abspeichern und in den Pfad:
C:\ProgramData\MATLAB\SupportPackages\R2019b\toolbox\realtime\targets\raspi\src speichern.
Hier noch ein link wie man das Simulinkmodell einstellen muss, damit überhaupt eine ausführbare Datei erzeugt wird.
https://de.mathworks.com/matlabcentral/answers/271795-how-to-start-simulink-model-on-raspberry-pi-automatically-on-startup
In meiner Anwendung hat das so funktioniert. Viel Erfolg

카테고리

도움말 센터File Exchange에서 Raspberry Pi Hardware에 대해 자세히 알아보기

제품

질문:

2019년 10월 22일

답변:

2020년 5월 1일

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by