Indeed and as I said previously.
It looks like texas instrument based kernels have -rt in the kernel name
if the kernel is properly realtime,
but that is only as good as the person who names it and cannot be
totally relied upon.
On 4/15/2019 10:45 PM, justin White wrote:
I don't think that's an RT patched kernel. Looks like it was just
configured with preempt options?
unless there's another source for RT-preempt patches, there is no
patch set for 4.14.108. 4.14.109 has a patch. Take that with a grain
of salt since I've never dealt with a BBB, but with ARM boards it's
always a pain to find an RT-P patchable kernel since the board
manufacturer usually selects a random kernel and applies their own
patches and it never seems to have been a candidate for an official
RT-P patch. The BBB seems to be on mainline with additional patches
so it should be a bit easier.
Came across this with a link to a git repo with BBB patches. Appears
there are plenty newer RT(preempt?) kernel patches.
https://www.element14.com/community/community/designcenter/single-board-computers/next-gen_beaglebone/blog/2015/12/05/mainline-linux-kernel-on-beaglebone-black
On Monday, April 15, 2019 at 10:53:43 AM UTC-4, Sardar Vayghannezgad
wrote:
I am not by my BBB right now, but will take a look at the forum
results.
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
Sender notified by
Mailtrack
<https://mailtrack.io?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality5&>
04/15/19, 5:52:19 PM
On Mon, Apr 15, 2019 at 2:52 PM [email protected] <javascript:>
<[email protected] <javascript:>> wrote:
This has come up previously on this list.
If your kernel is not recognised as rt-preempt, flavour will
default to POSIX.
Then when machinekit tries to load the posix version of
rtapi_app, it fails because that does not exist.
The setuid warning is a red herring.
Your kernel |*4.14.108-ti-r104* #1 SMP *PREEMPT*|
may be the same one someone else tried to use with the same
result.
I would expect to see ' SMP RT PREEMPT' in the uname output if
it was a proper rt-preempt kernel.
Search the posts and you will find which kernel they went with
in the end.
|||
|||
||||
On 15/04/19 09:38, Sardar Vayghannezgad wrote:
Hi
I want to run the PocketNC config on my BBB, but it outputs
(lines looking important to my eyes are in colors or underlined):
|
machinekit@beaglebone:~$ machinekit
MACHINEKIT - 0.1
Machine configuration directory is
'/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC'
Machine configuration file is 'PocketNC.ini'
Starting Machinekit...
*Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid*
'sudo make setuid' missing?
rtapi_msgd command: /usr/libexec/linuxcnc/rtapi_msgd
--instance=0 --rtmsglevel=1 --usrmsglevel=1 --halsize=524288
rtapi_app command: /usr/libexec/linuxcnc/rtapi_app_posix
--instance=0
*/usr/bin/realtime: line 237:
/usr/libexec/linuxcnc/rtapi_app_posix: No such file or directory*
rtapi_app startup failed; aborting
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:22 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
io started
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:27 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
halcmd loadusr io started
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:33 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:38 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
Shutting down and cleaning up Machinekit...
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:46 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
E: 19-04-15 10:33:51 dangling 'DEALER' socket created at
hal/utils/halcmd_rtapiapp.cc:284
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
halcmd: cant connect to rtapi_app: -1 (uri=
uuid=cbc792ea-1cc7-4bda-a949-9dd1552ce3bc): rtapi_rpc():
reply timeout
halcmd: the rtapi:0 RT demon is not running - please
investigate /var/log/linuxcnc.log
Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid
'sudo make setuid' missing?
ERROR: msgd:0 failed to exit on its own; sending SIGTERM
Cleanup done
Machinekit terminated with an error. For simple cases more
information
can be found in the following files:
/home/machinekit/linuxcnc_debug.txt
/home/machinekit/linuxcnc_print.txt
For other cases get more meaningfull information by
restarting after
export DEBUG=5
_*and look at the output of:*_
_*/var/log/linuxcnc.log*_
_* dmesg*_
When looking for errors, specifically look for libraries that
fail to load
by looking for lines with 'insmod failed' as per example below.
*_insmod failed, returned -1:_*
*_do_load_cmd: dlopen: nonexistant-component.so: cannot open
shared object file:_*
*_No such file or directory_*
For getting help, please have a look here:
www.machinekit.io/docs/getting-help/
<http://www.machinekit.io/docs/getting-help/>
|
My system info. is:
|
Linux beaglebone *4.14.108-ti-r104* #1 SMP *PREEMPT* Tue Apr
9 18:16:29 UTC 2019 armv7l GNU/Linux
|
As for the *warning in red *In the error above, I browsed the
directory, and found it looks like:
|
machinekit@beaglebone:/usr/libexec/linuxcnc$ ls
flavorinivarpci_readpci_writertapi_app_rt-preemptrtapi_msgd
|
As obvious, *rtapi_app_posix *is missing.
As for the line in yellow,**line 237 of my *realtime* file goes:
|
local cmd=(${rtapi_app} --instance=$MK_INSTANCE $RTAPI_APP_OPTS)
if [ $DEBUG -gt 0 ] ; then
echo "rtapi_app command: ${cmd[@]}" >&2
*"${cmd[@]}"**|| (*
e=$?; echo "rtapi_app startup failed; aborting" >&2;
exit $e)
else
"${cmd[@]}" 2>&1 || (
e=$?; echo "rtapi_app startup failed; aborting" >&2;
exit $e)
fi
|
As for the closing errors, I have no idea what to do.
Opening the file /var/log/linuxcnc.log, pointed out in the error,
*_I have already done these to fix previous/this problem:_*
*_
_*
* Applied these instructions
<https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#U-Boot_Overlays>to
shift from tree overlays to U-boots.
* To overcome a *"permission denied"* error I used to get,
a friend of mine applied a *chmod 755 *command(or
something) and the error doesn't appear anymore apparently.
If you believe any of the steps I have already taken should
have fixed my problem, let me know please; as I might have
missed something somewhere, as someone new to Linux, M.K and BBB.
*/_It looks like I have ended up in a dead end on my task.
Please help me out with this, I feel like I have already gone
the extent to which I could go as a beginner._/*
*/_
_/*
--
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] <javascript:>.
Visit this group at
https://groups.google.com/group/machinekit
<https://groups.google.com/group/machinekit>.
For more options, visit https://groups.google.com/d/optout
<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 a
topic in the Google Groups "Machinekit" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/machinekit/82h11IE_VX0/unsubscribe
<https://groups.google.com/d/topic/machinekit/82h11IE_VX0/unsubscribe>.
To unsubscribe from this group and all its topics, send an
email to [email protected] <javascript:>.
Visit this group at https://groups.google.com/group/machinekit
<https://groups.google.com/group/machinekit>.
For more options, visit https://groups.google.com/d/optout
<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]
<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.