Skip to content

Instantly share code, notes, and snippets.

View zultron's full-sized avatar

John Morris zultron

View GitHub Profile
flee=quux
@zultron
zultron / linuxcnc-halui-jogging-fail.txt
Created November 22, 2013 16:42
Output from manual run of LinuxCNC halui-jogging test wit debugging turned on.
bash-4.1$ export MSGD_OPTS=-s
bash-4.1$ export DEBUG=5
bash-4.1$ linuxcnc -r tests/halui-jogging/halui.ini
Machine configuration file is 'halui.ini'
Starting LinuxCNC...
msgd:0: startup instance=inst0 pid=12056 flavor=posix rtlevel=5 usrlevel=5 halsize=512000 shm=Posix gcc=4.4.7 20120313 (Red Hat 4.4.7-3) git=v~~
msgd:0: rtapi_app:12058:user master:0 started pid=12058 gcc=4.4.7 20120313 (Red Hat 4.4.7-3) git=v~~
io started
msgd:0: rtapi_app:12058:user rtapi_app: handle:0 retrieved posix v~~
msgd:0: rtapi:-1:rt RTAPI:0 posix v~~ init
@zultron
zultron / gist:39701dadfbbfc444eec6
Created May 13, 2014 18:30
rtai-config diff for 3.5.0-1mk-rtai-amd64 kernel
--- rtai-config~ 2014-05-12 03:50:41.000000000 -0500
+++ rtai-config 2014-05-12 16:03:19.099926978 -0500
@@ -15,11 +15,11 @@
RTAI_TARGET_ARCH="x86"
RTAI_TARGET_SUBARCH="64"
RTAI_CONFIG="${staging}${pkgdatadir}/config-rtai-${RTAI_VERSION}"
-RTAI_LINUX_DIR="/tmp/buildd/rtai-4.0.0/debian/linux"
-RTAI_LINUX_VERSION="2.6.23"
+RTAI_LINUX_DIR="/usr/src/linux-headers-3.5.0-1mk-rtai-amd64"
+RTAI_LINUX_VERSION="3.5.0-1mk-rtai-amd64"
@zultron
zultron / gist:c92a7e446c95de0b7b69
Created May 13, 2014 18:48
SSE register error
CC [M] /tmp/linuxcnc-2.6.0/src/objects/rtai-kernel/3.5.0-1mk-rtai-amd64/emc/kinematics/5axiskins.o
make[2]: Leaving directory `/usr/src/linux-headers-3.5.0-1mk-rtai-amd64'
/tmp/linuxcnc-2.6.0/src/objects/rtai-kernel/3.5.0-1mk-rtai-amd64/emc/kinematics/5axiskins.c: In function ‘s2r’:
/tmp/linuxcnc-2.6.0/src/objects/rtai-kernel/3.5.0-1mk-rtai-amd64/emc/kinematics/5axiskins.c:32:18: error: SSE register return with SSE disabled
make[5]: *** [/tmp/linuxcnc-2.6.0/src/objects/rtai-kernel/3.5.0-1mk-rtai-amd64/emc/kinematics/5axiskins.o] Error 1
@zultron
zultron / mealy-coroutine.py
Last active October 2, 2016 12:58
Mealy FSM implemented with Python coroutines in a ZMQ IOLoop
#!/usr/bin/python
'''
Copyright (c) 2014 John Morris <john@zultron.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
@zultron
zultron / gist:d8230d1ce18e7d3df44d
Last active August 29, 2015 14:14
arm-linux-gnueabihf-gcc-4.8 cross-build

Trusty x86_64, building Machinekit armhf as foreign arch, in Docker container.

Doesn't complete ./configure yet, and the package list might be hard to reproduce.

root@3f6f68866cb6:/usr/src/machinekit/src# ./autogen.sh && CC=arm-linux-gnueabihf-gcc-4.8 CXX=arm-linux-gnueabihf-g++-4.8 ./configure --with-platform-beaglebone --host=arm-linux-gnueabihf --with-xenomai --disable-gtk --without-libusb-1.0
 --host=arm-linux-gnueabihf --with-xenomai --disable-gtk --without-libusb-1.0
checking if cython is usable... checking for cython... no
@zultron
zultron / Machinekit_DA_repo_update_tests_0_intro.md
Last active December 13, 2015 05:06
@zultron's Dovetail Automata repo update tests

Machinekit: Simulate and test new DA package repo upgrades

This procedure simulates the Machinekit package upgrade flow when the deb.dovetail-automata.com APT repository is switched from the old to the new. The goal is a smooth upgrade with no changes to existing APT configurations.

See below for step-by-step instructions:

  • [x86][1]
  • [Beaglebone][2]
#!/usr/bin/python
import hal, time
h = hal.component("tr1openclose")
h.newpin("open_close", hal.HAL_BIT, hal.HAL_IN)
h.newpin("rev_prox", hal.HAL_BIT, hal.HAL_IN)
h.newpin("fwd_prox", hal.HAL_BIT, hal.HAL_IN)
h.newpin("ev_fwd", hal.HAL_BIT, hal.HAL_OUT)
h.newpin("ev_rev", hal.HAL_BIT, hal.HAL_OUT)
h.ready()
try:
@zultron
zultron / ipa-server-configure-first.log
Created July 24, 2017 17:50
freeipa logs: fail at `[29/44]: setting up initial replication`; 2017-07-24
Configuring client side components
Warning: skipping DNS resolution of host h11.example.com
Warning: skipping DNS resolution of host h01.example.com
Configuring directory server (dirsrv). Estimated time: 1 minute
[1/44]: creating directory server user
[2/44]: creating directory server instance
[3/44]: updating configuration in dse.ldif
[4/44]: restarting directory server
@zultron
zultron / ipareplica-install.log
Created July 24, 2017 21:13
freeipa logs: hang at `[29/44]: setting up initial replication`; 2017-07-24 #2
2017-07-24T21:06:31Z DEBUG Logging to /var/log/ipareplica-install.log
2017-07-24T21:06:31Z DEBUG ipa-replica-install was invoked with arguments [] and options: {'no_dns_sshfp': None, 'skip_schema_check': None, 'setup_kra': None, 'ip_addresses': None, 'mkhomedir': None, 'http_cert_files': None, 'ssh_trust_dns': None, 'reverse_zones': None, 'no_forwarders': True, 'keytab': None, 'no_ntp': True, 'domain_name': 'example.com', 'http_cert_name': None, 'dirsrv_cert_files': None, 'no_dnssec_validation': None, 'no_reverse': None, 'unattended': True, 'auto_reverse': True, 'auto_forwarders': None, 'no_host_dns': True, 'no_sshd': None, 'no_ui_redirect': True, 'dirsrv_config_file': None, 'forwarders': None, 'verbose': False, 'setup_ca': True, 'realm_name': 'EXAMPLE.COM', 'skip_conncheck': True, 'no_ssh': None, 'forward_policy': None, 'dirsrv_cert_name': None, 'quiet': False, 'server': 'h01.example.com', 'setup_dns': True, 'host_name': 'h11.example.com', 'log_file': None, 'allow_zone_overlap': True}
2017-07-24T21:06:31Z DE