I know nothing about the BBB images generally and this one in particular.
I don't know if the script you ran, even looks in the right place for the new kernel.

I think you need to actually test Robert's new image, not hope you can update your old one.

What I do know, is that the most common cause of this error, is running a posix kernel with only rt-preempt packages installed.

The 'rtapi_app_posix not setuid' in this case means it tested if it was setuid and that failed,
but that was because it did not exist at all, as per the later error.

If you have /usr/libexec/linuxcnc/rtapi_app_rt-preempt on your system and were running what was recognised as a
rt-preempt kernel, it would try to use that.


On 13/02/19 16:26, Condit Alan wrote:
Schooner,

That was running an image from Robert C Nelson to test out the fixes in a new kernel.
I have an image that has been running OK except for horrendous boot times. I updated the kernel with
4.19.19-bone-rt-r21 and now I get this:
machinekit@beaglebone:~$ machinekit
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.Xylotex'
Machine configuration file is 'Xylotex.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=a42c8c6b-4025-4f83-ba28-dad21114744a): rtapi_rpc(): reply timeout

So can you tell did I choose the wrong kernel???

I used this from elinux:
4.19.x All BeagleBone Variants + RT
sudo /opt/scripts/tools/update_kernel.sh --bone-rt-kernel --lts-4_19

Alan

On Feb 12, 2019, at 11:11 PM, [email protected] wrote:

Check what is installed.

The error re not setuuid is misleading, the main question is why are you trying to use rtapi_app_posix, it should be rt-preempt

On 2/13/2019 12:19 AM, Condit Alan wrote:
Robert,

I tried updating the kernel first on my other image, but when I tried to start machinekit I got a message unable to setuid need sudo makesetuid. So I am trying the image that you gave me the link to.

I can invoke "ssh -Y [email protected]” but when I try to start machinekit I see this:
machinekit@beaglebone:~$ machinekit
MACHINEKIT - 0.1
application-specific

                        initialization failed: no display name and no
                        $DISPLAY environment variable
Error in startup script: invalid command name "image"
    while executing
"image create photo -file $f/$i.gif"
    invoked from within
"if [file exists $f/$i.gif] {
            return [image create photo -file $f/$i.gif]
        }"
    (procedure "linuxcnc::image_search" line 7)
    invoked from within
"linuxcnc::image_search machinekit-wizard"
    invoked from within
"set logo [linuxcnc::image_search machinekit-wizard]"
    (file "/usr/lib/tcltk/linuxcnc/bin/pickconfig.tcl" line 31)

So I did "sudo apt-get install xorg openbox”, and reboot.
Now I get:
machinekit@beaglebone:~$ machinekit
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.Xylotex'
Machine configuration file is 'Xylotex.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: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
io started
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd loadusr io started
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
Shutting down and cleaning up Machinekit...
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
halcmd: no service UUID (-R <uuid> or MACHINEKIT_INI [GLOBAL]MKUUID) present
Warning - /usr/libexec/linuxcnc/rtapi_app_posix not setuid
'sudo make setuid' missing?
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/


Alan

On Feb 12, 2019, at 6:57 AM, Robert Nelson <[email protected]> wrote:

On Mon, Feb 11, 2019 at 4:39 PM mugginsac <[email protected]> wrote:

So, does that mean there will be a new Stretch-Machinekit image, or is it just the new kernel for the moment?

Please give this a shot:

https://rcn-ee.net/rootfs/bb.org/testing/2019-02-11/stretch-machinekit/

ps, let me know what else you want installed in it by default.

Regards,

--
Robert Nelson
https://rcn-ee.com/

--
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.

--
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/sOWj5I7fVpo/unsubscribe.
To unsubscribe from this group and all its topics, 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.


--
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