I have upgraded the OS with apt-get as you said. When I test proposed sequence I get the following output:
root@beaglebone:/home/machinekit# realtime restart
/usr/libexec/linuxcnc/rtapi_msgd: FATAL - will not run as root
rtapi_msgd startup failed - aborting
rtapi_app startup failed - aborting
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28-dad21114744a): rtapi_rpc(): reply timeout
halcmd: the rtapi:0 RT demon is not running - please investigate /var/log/linuxcnc.log
halcmd: the msgd:0 logger demon is not running - please investigate /var/log/linuxcnc.log
root@beaglebone:/home/machinekit# halcmd loadrt debounce
halcmd: cant connect to rtapi_app: -1 (uri= uuid=a42c8c6b-4025-4f83-ba28-dad21114744a): rtapi_rpc(): reply timeout
halcmd: the rtapi:0 RT demon is not running - please investigate /var/log/linuxcnc.log
halcmd: the msgd:0 logger demon is not running - please investigate /var/log/linuxcnc.log
root@beaglebone:/home/machinekit#
linuxcnc.log printout:
Mar 21 20:17:16 beaglebone msgd:0: startup pid=1695 flavor=xenomai rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 4.9.2 version=unknown
Mar 21 20:17:16 beaglebone msgd:0: ØMQ=4.0.5 czmq=2.2.0 protobuf=2.4.1 atomics=gcc intrinsics libwebsockets=<no version symbol>
Mar 21 20:17:16 beaglebone msgd:0: configured: sha=32e5e60
Mar 21 20:17:16 beaglebone msgd:0: built: Mar 20 2017 18:27:02 sha=32e5e60
Mar 21 20:17:16 beaglebone msgd:0: register_stuff: actual hostname as announced by avahi='beaglebone.local'
Mar 21 20:17:16 beaglebone msgd:0: zeroconf: registering: 'Log service on beaglebone.local pid 1695'
Mar 21 20:17:17 beaglebone msgd:0: zeroconf: registered 'Log service on beaglebone.local pid 1695' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=ff04a766-0e6a-11e7-bfee-1cba8cd967d9" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'trivkins' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'tp' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'xhc_hb04_util' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'threads' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'pwmgen' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'motmod' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'limit1' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'hal_pru_generic' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'hal_bb_gpio' not loaded
Mar 21 20:17:52 beaglebone rtapi:0: unload: 'abs' not loaded
Mar 21 20:17:52 beaglebone msgd:0: rtapi_app exit detected - scheduled shutdown
Mar 21 20:17:54 beaglebone msgd:0: msgd shutting down
Mar 21 20:17:54 beaglebone msgd:0: zeroconf: unregistering 'Log service on beaglebone.local pid 1695'
Mar 21 20:17:54 beaglebone msgd:0: log buffer hwm: 0% (0 msgs, 0 bytes out of 524288)
Mar 21 20:17:54 beaglebone msgd:0: normal shutdown - global segment detached
Mar 21 20:18:52 beaglebone msgd:0: startup pid=2897 flavor=xenomai rtlevel=1 usrlevel=1 halsize=524288 shm=Posix cc=gcc 4.9.2 version=unknown
Mar 21 20:18:52 beaglebone msgd:0: ØMQ=4.0.5 czmq=2.2.0 protobuf=2.4.1 atomics=gcc intrinsics libwebsockets=<no version symbol>
Mar 21 20:18:52 beaglebone msgd:0: configured: sha=32e5e60
Mar 21 20:18:52 beaglebone msgd:0: built: Mar 20 2017 18:27:02 sha=32e5e60
Mar 21 20:18:52 beaglebone msgd:0: register_stuff: actual hostname as announced by avahi='beaglebone.local'
Mar 21 20:18:52 beaglebone msgd:0: zeroconf: registering: 'Log service on beaglebone.local pid 2897'
Mar 21 20:18:53 beaglebone msgd:0: zeroconf: registered 'Log service on beaglebone.local pid 2897' _machinekit._tcp 0 TXT "uuid=a42c8c6b-4025-4f83-ba28-dad21114744a" "instance=3801c576-0e6b-11e7-a045-1cba8cd967d9" "service=log" "dsn=ipc:///tmp/0.log.a42c8c6b-4025-4f83-ba28-dad21114744a"
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'trivkins' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'tp' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'xhc_hb04_util' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'threads' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'pwmgen' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'motmod' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'limit1' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'hal_pru_generic' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'hal_bb_gpio' not loaded
Mar 21 20:19:05 beaglebone rtapi:0: unload: 'abs' not loaded
Mar 21 20:19:05 beaglebone msgd:0: rtapi_app exit detected - scheduled shutdown
Mar 21 20:19:07 beaglebone msgd:0: msgd shutting down
Mar 21 20:19:07 beaglebone msgd:0: zeroconf: unregistering 'Log service on beaglebone.local pid 2897'
Mar 21 20:19:08 beaglebone msgd:0: log buffer hwm: 0% (0 msgs, 0 bytes out of 524288)
Mar 21 20:19:08 beaglebone msgd:0: normal shutdown - global segment detached
Mar 21 20:22:16 beaglebone rtapi:0: rtapi_app:0: ERROR: cannot attach global segment key=0x154711 No such file or directory
Mar 21 20:22:16 beaglebone rtapi:0: rtapi:0: FATAL - failed to attach to global segment
Mar 21 20:23:03 beaglebone rtapi:0: rtapi_app:0: ERROR: cannot attach global segment key=0x154711 No such file or directory
Mar 21 20:23:03 beaglebone rtapi:0: rtapi:0: FATAL - failed to attach to global segment
Mar 21 20:26:37 beaglebone rtapi:0: rtapi_app:0: ERROR: cannot attach global segment key=0x154711 No such file or directory
Mar 21 20:26:37 beaglebone rtapi:0: rtapi:0: FATAL - failed to attach to global segment
When I start machinekit I get the following printout:
Starting Machinekit...
Starting Machinekit server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting Machinekit IO program: io
io started
halcmd loadusr io started
Loading panther overlay
Loading cape-bone-iio overlay
Shutting down and cleaning up Machinekit...
Killing task linuxcncsvr, PID=1545
xhc-hb04: waiting for XHC-HB04 device
xhc-hb04: found XHC-HB04 device
xhc-hb04: connection lost, cleaning up
[timestamp] [threadID] facility level [function call] <message>
--------------------------------------------------------------------------------
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments
Cleanup done
Debug file information:
PASSED: show pexists xhc-hb04.button-goto-zero, returned Exists
FAILED: show pexists halui.mdi-command-00, returned Imaginary
xhc-hb04.tcl: !!! <halui.mdi-command-00> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-half, returned Exists
FAILED: show pexists halui.spindle.stop, returned Imaginary
xhc-hb04.tcl: !!! <halui.spindle.stop> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-home, returned Exists
FAILED: show pexists halui.home-all, returned Imaginary
xhc-hb04.tcl: !!! <halui.home-all> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-macro-1, returned Exists
FAILED: show pexists halui.mdi-command-01, returned Imaginary
xhc-hb04.tcl: !!! <halui.mdi-command-01> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-macro-2, returned Exists
FAILED: show pexists halui.mdi-command-02, returned Imaginary
xhc-hb04.tcl: !!! <halui.mdi-command-02> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-macro-3, returned Exists
FAILED: show pexists halui.mdi-command-03, returned Imaginary
xhc-hb04.tcl: !!! <halui.mdi-command-03> target pin does not exist, continuing
PASSED: show pexists xhc-hb04.button-macro-6, returned Exists
FAILED: show pexists halui.mdi-command-06, returned Imaginary
What to do next to bring this pendant to work on my BBB?