Machinekit on BBB; not all configurations load

85 views
Skip to first unread message

Sardar Vayghannezgad

unread,
Apr 3, 2019, 4:19:08 PM4/3/19
to Machinekit
Once I start machinekit on my element14 BBB, the configuration window pops up with an array of configurations. But it looks like my favorite one won't load. I get the following:


machinekit@beaglebone:~$ machinekit
MACHINEKIT
- 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1'
Machine configuration file is 'PocketNC.ini'
Starting Machinekit...
rtapi_msgd command
:  /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --halsize=524288
rtapi_app command
:  /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0
io started
halcmd loadusr io started
PocketNC.hal:10: execv(/home/machinekit/machinekit-dev/configs/ARM/BeagleBone/PocketNC/setup.bridge.sh): No such file or directory
E
: 19-04-03 19:38:58 dangling 'DEALER' socket created at hal/utils/halcmd_rtapiapp.cc:284
PocketNC.hal:10: program '/home/machinekit/machinekit-dev/configs/ARM/BeagleBone/PocketNC/setup.bridge.sh' failed, returned 1
Shutting down and cleaning up Machinekit...
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/

I have tried my best to figure this out using the tips in the message above, but couldn't do much. I ran this command suggested here by someone called cncbasher, but didn't help with my case. Likewise, I have taken a look here and there. On the latter, step 9 suggests editing something, but I have no inkling how to access that or nano what. This latter link seems something, can anyone please help me edit those lines?

Thanks.

Sardar Vayghannezgad

unread,
Apr 3, 2019, 4:59:21 PM4/3/19
to Machinekit
I just realized that I can find something on the very machinekit configurations window titled pru-examples (see the attached file please). Again I am not able to open that config. either, as I get the same error message I cited in the original post.
2019-04-03_23h53_36.png

Daren Schwenke

unread,
Apr 3, 2019, 11:25:27 PM4/3/19
to Machinekit
Looking at nothing else, these are not the same location.  It looks like the hal you picked is hard coded to use that path.

Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1'
PocketNC.hal:10: execv(/home/machinekit/machinekit-dev/configs/ARM/BeagleBone/PocketNC/setup.bridge.sh): No such file or directory

Sardar Vayghannezgad

unread,
Apr 4, 2019, 7:14:16 AM4/4/19
to Daren Schwenke, Machinekit
Thanks for responding Daren, but is there anything I can fix this?

Mailtrack Sender notified by
Mailtrack 04/04/19, 2:13:52 PM

--
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/n9Q9jJJdquU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.
Visit this group at https://groups.google.com/group/machinekit.
For more options, visit https://groups.google.com/d/optout.

Sardar Vayghannezgad

unread,
Apr 4, 2019, 9:24:34 AM4/4/19
to Machinekit
I read online that starting as ssh -Y us...@beaglebone.local may help. I am getting this if I start that way:
ln: cannot remove '/tmp/linuxcnc.print': Operation not permitted
ln: cannot remove '/tmp/linuxcnc.debug': Operation not permitted



On Wednesday, April 3, 2019 at 11:19:08 PM UTC+3, Sardar Vayghannezgad wrote:

Bas de Bruijn

unread,
Apr 4, 2019, 9:31:32 AM4/4/19
to Sardar Vayghannezgad, Machinekit
Have you changed the path to setup.bridge.sh as Daren pointed out?
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 machinekit+...@googlegroups.com.

Sardar Vayghannezgad

unread,
Apr 4, 2019, 9:48:33 AM4/4/19
to Bas de Bruijn, Machinekit
I don't like to come across as one not making the tiniest background attempt at all, but I just don't know how to change the path. :|

Mailtrack Sender notified by
Mailtrack 04/04/19, 4:43:54 PM

Daren Schwenke

unread,
Apr 4, 2019, 9:57:29 AM4/4/19
to Machinekit
It's ok, but starting where you are starting from may take you a while.  :)
The error tells you the file and line number in that file:  PocketNC.hal:10:
The log also tells you where it was starting from:  /home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1
From there find that file in a file browser, and then edit that file to point to where it actually is.


On Thursday, April 4, 2019 at 9:48:33 AM UTC-4, Sardar Vayghannezgad wrote:
I don't like to come across as one not making the tiniest background attempt at all, but I just don't know how to change the path. :|

Mailtrack Sender notified by
Mailtrack 04/04/19, 4:43:54 PM

On Thu, Apr 4, 2019 at 4:31 PM Bas de Bruijn <b...@basdebruijn.com> wrote:
Have you changed the path to setup.bridge.sh as Daren pointed out?
To unsubscribe from this group and stop receiving emails from it, send an email to machi...@googlegroups.com.

Daren Schwenke

unread,
Apr 4, 2019, 11:21:48 AM4/4/19
to Machinekit
You need to start a bit further up.

Sardar Vayghannezgad

unread,
Apr 4, 2019, 2:35:11 PM4/4/19
to Daren Schwenke, Machinekit
I feel terrible, man. You actually went out of your way to kind of "Google" that link for me!! Thanks a lot Daren

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/n9Q9jJJdquU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to machinekit+...@googlegroups.com.
Message has been deleted

Sardar Vayghannezgad

unread,
Apr 6, 2019, 4:55:52 AM4/6/19
to Machinekit
Hi .

So I got these two directories below different, and need to make them look the same:

Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1'
PocketNC.hal:10: execv(/home/machinekit/machinekit-dev/configs/ARM/BeagleBone/PocketNC/setup.bridge.sh): No such file or directory


Alright, I can find the PocketNC.hal file on BBB:

machinekit@beaglebone:~$ find /home/machinekit/ -name PocketNC.hal
/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1/PocketNC.hal
/home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC/PocketNC.hal
As clear from the directories listed above, there are actually two files under the name PocketNC.hal. Like you had pointed out from the error message in the original post, the line 10 is to be amended.

below are the 9th and 10th lines of both files.  

# Launch the setup script to make sure hardware setup looks good
loadusr 
-/home/machinekit/machinekit-dev/configs/ARM/BeagleBone/PocketNC/setup.bridge.sh
  
Might have been wrong, but just in case, I changed the 10th line of both files into the so-called Machine directory as following:

loadusr -w /home/machinekit/machinekit/configs/ARM.BeagleBone.PocketNC-1/setup.bridge.sh

But I get the same error. I reversed the line to its default form.

This way, I've found the file and can edit it but don't know what I'm doing wrong. It might be that the error arises from somewhere else. I also checked here and applied step 9 there but to no avail.

Reply all
Reply to author
Forward
Message has been deleted
0 new messages