intel-aero / meta-intel-aero

Yocto layer to support Intel Aero platform
https://github.com/intel-aero/meta-intel-aero
GNU General Public License v2.0
218 stars 119 forks source link

Mavlink-router service does not start #337

Closed ivanalexo closed 6 years ago

ivanalexo commented 6 years ago

Hi all,

I've installed Ubuntu on my RTF drone and followed the steps from the wiki, everything was working ok when I rebooted the system. I typed the command: sudo systemctl start mavlink-router then showed the next error: Job for mavlink-router.service failed because the control process exited with error code. See "systemctl status mavlink-router.service" and "journalctl -xe" for details.

avinash-palleti commented 6 years ago

Hi @ivanalexo ,

If you have followed the steps from wiki and installed "aero-system", mavlink-router service will start on its own on reboot. Can you provide systemctl logs use journalctl -u mavlink-router command.

ivanalexo commented 6 years ago

Thanks for your reply @avinash-palleti, The problem is with the error Job for mavlink-router.service failed because the control process exited with error code. See "systemctl status mavlink-router.service" and "journalctl -xe" for details. How can I correct that? As I mentioned everything was working ok until I rebooted the system and mavlink-router stoped.

ivanalexo commented 6 years ago

running journalctl -u mavlink-router the logs are: -- Logs begin at jue 2018-04-12 15:25:11 -04, end at jue 2018-04-12 15:40:57 -04. -- abr 12 15:25:13 intel-rtf-drone systemd[1]: Starting MAVLink Router... abr 12 15:25:13 intel-rtf-drone bash[753]: /bin/bash: /sys/class/tty/ttyS1/rx_trig_bytes: Permission denied abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Control process exited, code=exited status=1 abr 12 15:25:13 intel-rtf-drone systemd[1]: Failed to start MAVLink Router. abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Unit entered failed state. abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Failed with result 'exit-code'. abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Service hold-off time over, scheduling restart. abr 12 15:25:13 intel-rtf-drone systemd[1]: Stopped MAVLink Router. abr 12 15:25:13 intel-rtf-drone systemd[1]: Starting MAVLink Router... abr 12 15:25:13 intel-rtf-drone bash[835]: /bin/bash: /sys/class/tty/ttyS1/rx_trig_bytes: Permission denied abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Control process exited, code=exited status=1 abr 12 15:25:13 intel-rtf-drone systemd[1]: Failed to start MAVLink Router. abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Unit entered failed state. abr 12 15:25:13 intel-rtf-drone systemd[1]: mavlink-router.service: Failed with result 'exit-code'. abr 12 15:25:14 intel-rtf-drone systemd[1]: mavlink-router.service: Service hold-off time over, scheduling restart. abr 12 15:25:14 intel-rtf-drone systemd[1]: Stopped MAVLink Router. abr 12 15:25:14 intel-rtf-drone systemd[1]: Starting MAVLink Router... abr 12 15:25:14 intel-rtf-drone bash[872]: /bin/bash: /sys/class/tty/ttyS1/rx_trig_bytes: Permission denied abr 12 15:25:14 intel-rtf-drone systemd[1]: mavlink-router.service: Control process exited, code=exited status=1 abr 12 15:25:14 intel-rtf-drone systemd[1]: Failed to start MAVLink Router. abr 12 15:25:14 intel-rtf-drone systemd[1]: mavlink-router.service: Unit entered failed state. abr 12 15:25:14 intel-rtf-drone systemd[1]: mavlink-router.service: Failed with result 'exit-code'. @avinash-palleti

zehortigoza commented 6 years ago

Check if you have booted with aero kernel. Are you running the line to start the mavlink-router with root, right?

avinash-palleti commented 6 years ago

If you have installed aero-system package, system will boot automatically with aero kernel. Can you provide output for the below command, dpkg -s aero-system