Linux Mint with RTAI

More
19 Nov 2015 23:16 - 19 Nov 2015 23:18 #65541 by jtc
Replied by jtc on topic Linux Mint with RTAI
Tested in a virtual machine, after following the tutorial and when try to run a sim configuration I got the same error:

Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-3.4-9-rtai-686-pae/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/share/linuxcnc/tcl/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.5
LINUXCNC - 2.7.2-26-gdbf34f6
Machine configuration directory is '/home/jtc/linuxcnc/configs/sim.axis'
Machine configuration file is 'axis_9axis.ini'
INIFILE=/home/jtc/linuxcnc/configs/sim.axis/axis_9axis.ini
PARAMETER_FILE=sim-9axis.var
TASK=milltask
HALUI=halui
DISPLAY=axis
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
Starting HAL User Interface program: halui
Found file(lib): /usr/share/linuxcnc/hallib/core_sim9.hal
Found file(lib): /usr/share/linuxcnc/hallib/sim_spindle_encoder.hal
Found file(lib): /usr/share/linuxcnc/hallib/axis_manualtoolchange.hal
Found file(lib): /usr/share/linuxcnc/hallib/simulated_home.hal
Found file(lib): /usr/share/linuxcnc/hallib/locking_indexer.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Unexpected realtime delay: check dmesg for details.
Shutting down and cleaning up LinuxCNC...
Killing task linuxcncsvr, PID=2889
Killing task milltask, PID=2956
task: 513 cycles, min=0.000018, max=0.008041, avg=0.002026, 0 latency excursions (> 10x expected cycle time of 0.001000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
.
.
Traceback (most recent call last):
  File "/usr/bin/axis", line 3133, in <module>
    o = MyOpengl(widgets.preview_frame, width=400, height=300, double=1, depth=1)
  File "/usr/bin/axis", line 352, in __init__
    Opengl.__init__(self, *args, **kw)
  File "/usr/lib/pymodules/python2.7/rs274/OpenGLTk.py", line 164, in __init__
    apply(RawOpengl.__init__, (self, master, cnf), kw)
  File "/usr/lib/pymodules/python2.7/rs274/OpenGLTk.py", line 112, in __init__
    Togl.__init__(self, master, cnf, **kw)
  File "/usr/lib/pymodules/python2.7/rs274/OpenGLTk.py", line 38, in __init__
    Widget.__init__(self, master, 'togl', cnf, kw)
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 2058, in __init__
    (widgetName, self._w) + extra + self._options(cnf))
_tkinter.TclError: NULL main window
2889
  PID TTY      STAT   TIME COMMAND
2956
  PID TTY      STAT   TIME COMMAND
Stopping realtime threads
Unloading hal components
Last edit: 19 Nov 2015 23:18 by jtc.

Please Log in or Create an account to join the conversation.

More
19 Nov 2015 23:30 #65542 by tjmarch

Please Log in or Create an account to join the conversation.

More
19 Nov 2015 23:42 #65543 by BigJohnT
Replied by BigJohnT on topic Linux Mint with RTAI
It will run any GUI except Axis... I think it is a tkinter issue.

JT
The following user(s) said Thank You: tjmarch

Please Log in or Create an account to join the conversation.

More
20 Nov 2015 00:00 #65548 by Roguish
Replied by Roguish on topic Linux Mint with RTAI
tjmarch. thanks.
my errors (once I get into Mint) are the same as JT's.

i did not modify any boot/grub parameters. I have looked at them, but made no changes.

the error in booting is the main problem I would like to solve first.

I may try your method, though.

Please Log in or Create an account to join the conversation.

More
20 Nov 2015 19:18 #65580 by tommylight
Replied by tommylight on topic Linux Mint with RTAI
used the SySsetup.sh last night and it installed a lot of things ( did not follow what since i was watching NCIS ), after it finished (with some errors) just opened synaptic and added the 2.7rt repo, updated, installed Linuxcnc and dev and docs without a hitch ( the actual rt kernel was installed by this, not by the script i think), did a reboot chose the rt version and it started perfectly and ...............no luck with Axis, gmoccapy works like a charm.
This was on a mint 17.2 rafaella.
Regards,
Tom
P.S.
this is an actual install on a 32GB usb stick, not just a bootable usb.

Please Log in or Create an account to join the conversation.

More
20 Nov 2015 20:25 #65584 by tjmarch
Replied by tjmarch on topic Linux Mint with RTAI
tommylight

If you want it to work follow the directions in readme file download from here

forum.linuxcnc.org/forum/18-computer/299...mint-with-rtai#65402

Tim

Please Log in or Create an account to join the conversation.

More
20 Nov 2015 21:16 #65586 by jtc
Replied by jtc on topic Linux Mint with RTAI

jtc
Try this method

forum.linuxcnc.org/forum/18-computer/299...i?limitstart=0#65402

Tim March


very well documented "Readme". I will.

Please Log in or Create an account to join the conversation.

More
21 Nov 2015 20:41 #65622 by BigJohnT
Replied by BigJohnT on topic Linux Mint with RTAI
Ok, I finally understand more about what I don't know about it.

Do a git checkout of your favorite branch.
Build a RIP.
Run Axis.

Now to figure out how to build a deb from the rip.

JT
The following user(s) said Thank You: jtc

Please Log in or Create an account to join the conversation.

More
22 Nov 2015 00:27 #65633 by BigJohnT
Replied by BigJohnT on topic Linux Mint with RTAI
Ok I have the rtai kernel and LinuxCNC 2.7 installed and everyone is happy. I've attached my notes.

JT
Attachments:

Please Log in or Create an account to join the conversation.

More
22 Nov 2015 21:18 - 22 Nov 2015 21:39 #65672 by jtc
Replied by jtc on topic Linux Mint with RTAI
just installed a new RIP version ans compiled it.

looks like everything is running ok.


My next step is try to install a Preempt-RT kernel (if exists? ), compile again and see if works.

If everything is ok, I will install it in a real machine a use with mesa Ethernet cards. (and try to forget Debian wheezy :whistle: )


João
Last edit: 22 Nov 2015 21:39 by jtc.

Please Log in or Create an account to join the conversation.

Time to create page: 0.300 seconds
Powered by Kunena Forum