On 20/12/17 09:44, [email protected] wrote:
Hello, everyone,
  My OS is lubuntu 17.10. My board is a x86_64 platform with ATOM CPU. I installed xenomai 3.0.6 with linux 4.1.18. Xenomai latency test is ok.

The main question is why Xenomai and why that version?

Xenomai is not good enough for software stepping on x86 and 3.0.6 is quite old, the BBB uses 3.18

I build machinekit from source:
cd src
./autogen.sh
./configure --with-xenomai --with-xeno-config=/usr/xenomai/bin/xeno-config
from the "configure" output, I can figure out that xenomai user space is used. but when I run "sudo make setuid" "source ./scripts/rip-environment" "machinekit"
I just can't start it normally.

The output info is below. Can anyone help? Thanks!
I did not change anything else.

robot@ubuntu:/Downloads/machinekit-master/src$ sudo chmod 777 /var/log/linuxcnc.log
robot@ubuntu:/Downloads/machinekit-master/src$ sudo make setuid
../scripts/check-build-vs-configure-sha: line 11: in: command not found

WARNING: configure was last run at Wed Dec 20 09:01:15 CST 2017 at git version
WARNING: now the git version is: not in a git repo
WARNING: consider executing 'make clean; sh autogen.sh; ./configure ' before running make

This is a non fatal warning that the original SHA from autogens creation of configure and the repo built differ.
Normally because something changed between running autogen.sh and make


make: Entering directory '/home/robot/Downloads/machinekit-master/src'
test -f ../libexec/pci_read && chown root ../libexec/pci_read && chmod 4750 ../libexec/pci_read || true test -f ../libexec/pci_write && chown root ../libexec/pci_write && chmod 4750 ../libexec/pci_write || true test -f ../libexec/rtapi_app_xenomai && chown root ../libexec/rtapi_app_xenomai && chmod 4750 ../libexec/rtapi_app_xenomai || true;
make: Leaving directory '/home/robot/Downloads/machinekit-master/src'

robot@ubuntu:/Downloads/machinekit-master$ . ./scripts/rip-environment
robot@ubuntu:/Downloads/machinekit-master$ machinekit
MACHINEKIT - 0.1
Machine configuration directory is '/home/robot/Downloads/machinekit-master/configs/sim'
Machine configuration file is 'emcweb.ini'
Starting Machinekit...
Warning - /home/robot/Downloads/machinekit-master/libexec/rtapi_app_posix not setuid
'sudo make setuid' missing?
/home/robot/Downloads/machinekit-master/scripts/realtime: line 192: /home/robot/Downloads/machinekit-master/libexec/rtapi_app_posix: No such file or directory
rtapi_app startup failed - aborting

This is telling you that rtapi_hal_posix does not exist

Given that you are supposed to be running a xenomai kernel, then something is screwed up.

The most obvious cause, could be that whilst you built a xenomai kernel, you have not booted into it and are still running a posix kernel, for which you did not build
because you specified the kernel to build for as xenomai


0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted
io started
0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted
halcmd loadusr io started
0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted
Shutting down and cleaning up Machinekit...
0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted 0"000.000| BUG in low_init(): [main] binding failed: Operation not permitted Warning - /home/robot/Downloads/machinekit-master/libexec/rtapi_app_posix not setuid
'sudo make setuid' missing?
Cleanup done
Machinekit terminated with an error. You can find more information in the log:
/home/robot/linuxcnc_debug.txt
and
/home/robot/linuxcnc_print.txt
as well as in the output of the shell command 'dmesg' and in the terminal
--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: https://github.com/machinekit
---
You received this message because you are subscribed to the Google Groups "Machinekit" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

--
website: http://www.machinekit.io blog: http://blog.machinekit.io github: 
https://github.com/machinekit
--- You received this message because you are subscribed to the Google Groups "Machinekit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Reply via email to