BBB + Xylotex BareBpnesCNC + bone-debian-9.12-machinekit-armhf-2020-06-01-4gb.img

63 views
Skip to first unread message

Anoop S

unread,
May 8, 2023, 1:56:56 AM5/8/23
to Machinekit
Hi,
As stated in the subjectline, these are the combination fo hardware and software I have setup:
BeagleBone Black Rev C
Xylotex BareBonesCNC

I have copied the following files from Xylotex's website and put them in the right folder and changed permission of the *.sh file.
BareBones.hal
BareBones.ini
BareBones_setup.sh

However, upon starting machinekit, the configuration selector window popus up, then comes the "machinekit" splash screen but then no progress. Terminal reports the following:

machinekit@beaglebone:~$ machinekit
MACHINEKIT - 0.1
Machine configuration directory is '/home/machinekit/machinekit/configs/ARM.BeagleBone.Xylotex'
Machine configuration file is 'BareBones.ini'
Starting Machinekit...
rtapi_msgd command:  /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1 --usrmsglevel=1 --debug=1 --halsize=524288
rtapi_app command:  /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0 --debug=1
io started
emc/iotask/ioControl.cc 859: can't load tool table.
halcmd loadusr io started
grep: /sys/devices/bone_capemgr.*/slots: No such file or directory
Loading cape-universal overlay
bash: /sys/devices/bone_capemgr.*/slots: No such file or directory
Error loading device tree overlay file: cape-universal
BareBones.hal:6: program './BareBones_setup.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


Wha have I done wrong ? Is it because I am using a different machinekit image than what is mentioned at Xylotex's web page ?

Anoop

Charles Steinkuehler

unread,
May 11, 2023, 9:47:19 PM5/11/23
to Anoop S, Machinekit
The Debian Stretch image is pretty old, but I don't think anyone is
really maintaining newer image builds right now. Your issue is you need
the "universal" cape overlay to be loaded, which allows user-space
control of GPIO multiplexing without having to craft a custom
device-tree overlay file for your specific application.

You should be able to manually go through the commands executed by the
BareBones_setup.sh script and figure out why things aren't working. It
looks like there is something preventing the cape-universal overlay from
loading, which is causing the BareBones_setup.sh script to fail. Check
your dmesg output which will sometimes have helpful error messages (but
a lot of the errors for device-tree overlay stuff are either nonexistent
or not generally useful).

On 5/8/2023 12:56 AM, Anoop S wrote:
> Hi,
> As stated in the subjectline, these are the combination fo hardware and
> software I have setup:
> BeagleBone Black Rev C
> Xylotex BareBonesCNC
> Machine kit image
> -> https://rcn-ee.com/rootfs/bb.org/testing/2020-06-01/stretch-machinekit/bone-debian-9.12-machinekit-armhf-2020-06-01-4gb.img.xz
>
> I have copied the following files from Xylotex's website and put them in
> the right folder and changed permission of the *.sh file.
> BareBones.hal
> BareBones.ini
> BareBones_setup.sh
>
> However, upon starting machinekit, the configuration selector window popus
> up, then comes the "machinekit" splash screen but then no progress.
> Terminal reports the following:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *machinekit@beaglebone:~$ machinekitMACHINEKIT - 0.1Machine configuration
> directory is
> '/home/machinekit/machinekit/configs/ARM.BeagleBone.Xylotex'Machine
> configuration file is 'BareBones.ini'Starting Machinekit...rtapi_msgd
> command: /usr/libexec/linuxcnc/rtapi_msgd --instance=0 --rtmsglevel=1
> --usrmsglevel=1 --debug=1 --halsize=524288rtapi_app command:
> /usr/libexec/linuxcnc/rtapi_app_rt-preempt --instance=0 --debug=1io
> startedemc/iotask/ioControl.cc 859: can't load tool table.halcmd loadusr io
> startedgrep: /sys/devices/bone_capemgr.*/slots: No such file or
> directoryLoading cape-universal overlaybash:
> /sys/devices/bone_capemgr.*/slots: No such file or directoryError loading
> device tree overlay file: cape-universalBareBones.hal:6: program
> './BareBones_setup.sh' failed, returned 1Shutting down and cleaning up
> Machinekit...Cleanup doneMachinekit terminated with an error. For simple
> cases more informationcan be found in the following files:
> /home/machinekit/linuxcnc_debug.txt
> /home/machinekit/linuxcnc_print.txtFor other cases get more meaningfull
> information by restarting after export DEBUG=5and look at the output
> of: /var/log/linuxcnc.log dmesgWhen looking for errors, specifically
> look for libraries that fail to loadby 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*
>
> Wha have I done wrong ? Is it because I am using a different machinekit
> image than what is mentioned at Xylotex's web page ?
>
> Anoop
>

--
Charles Steinkuehler
cha...@steinkuehler.net
Reply all
Reply to author
Forward
0 new messages