ISO install of LinuxCNC on Debian 8 & Mint LMDE 2

More
10 years 9 months ago #68907 by geoffs
I must admit, I just saw the prompt to login via Google and dismissed the page.
I'll download now and give a try.

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

More
10 years 9 months ago - 10 years 9 months ago #68952 by wycker
Just created an account to say thank you!!

note to newbies like myself: the kernels are included in the ISO.

I would also like to include a link to Dxf2Gcode on SourceForge and instructions on how I got it to work on my machine:
(Sorry for the simpleton instructions, but being a relative newbie, I thought detail might help somebody out there. Please point out any errors and make improvements)


sourceforge.net/projects/dxf2gcode/


go to home > downloads

extract dxf2gcode:
right-click on downloaded file and select 'extract here' (this makes a folder called 'source')

right-click ON 'home' folder and select 'open as root' (Menu>Files>File Systems)

move or copy 'source' folder to 'home' folder (Just drag from 'download' folder to 'home' folder)
close 'download' folder

open 'source' folder- just double-click
right-click IN 'source' folder(avoid content) and select 'open in terminal'

run clean script (in terminal):
mkdir clean
for var in $( ls dxf2gcode*.py );
do cat $var | tr -d "\r" > clean/$var;
done
mv clean/* ./
rmdir clean/

make symbolic link (in terminal):
sudo ln -s /home/<user>/source/dxf2gcode.py /usr/bin/dxf2gcode.py

note: replace <user> with your login id/name

make dxf2gcode.py executable (in terminal):
sudo chmod a+x /usr/bin/dxf2gcode.py

run dxf2gcode from terminal:
python dxf2gcode.py

close dxf2gcode

open the file 'postpro_config' in 'source' folder, and at the end of the document add:
[Export Parameters]
write_to_stdout = 1

*********************************************************************************
to complete integration in linuxcnc:
go to home> linuxcnc> configs> sim.axis

in the .INI file(s) add to the [FILTER] section(s) (please read note 1):
PROGRAM_EXTENSION =.dxf 2D ACad/QCad Drawing
PROGRAM_EXTENSION =.DXF 2D ACad/QCad Drawing
dxf = dxf2gcode.py
DXF = dxf2gcode.py
PROGRAM_FILTER = python
PROGRAM_EXTENSION = *.py Python Script


NOTES:
1. I don't have a CNC machine at the moment so i'm trying out the different configurations. You could just change the .ini file that matches your setup. I chose to edit ALL the .INI files- and there are quite a few. I'm hoping one of you python gurus can edit the [FILTER] section to remove CASE sensitivity. Seems redundant to check for both DXF and dxf
2. The author recommends adding 'EDITOR = gedit' to the [DISPLAY] section in the .INI file. I did not because it is already done.
3. When you open a dxf file in linuxcnc (file > open), dxf2Gcode opens in a new window. Export your dxf file to gcode (.ngc), close dxf2gcode ,and open your .ngc file in linuxcnc. *** I might be missing something here: integration only seems to save you a step (having to manually open dxf2Gcode). Any help here would be appreciated.


original instructions can be found at:
sourceforge.net/p/dxf2gcode/wiki/Installation/
Last edit: 10 years 9 months ago by wycker.

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

More
10 years 9 months ago #69056 by cncnoob1979
Tim,

I just finished my installation yesterday and it worked right out of the box! Thank you for taking the time to make this. Im going to give LMDE 2 a shot, I must admit that I like the standard installation of mint 17.3 better [NOT LMDE 2]!

It was not difficult at all, everything was clear and concise.

I removed all "fancy" effects from the display and I have fairly stable latency around 10~15. I am using mesa hardware and not so worried about latency issues, 10-15 is still excellent. I still have hyper-threading enabled and I am not isolating any of my CPU cores. I don't want my PC to crawl if I can help it otherwise.

Also watch out, if the screen saver comes up and locks the screen, you may not be prompted for a password to unlock it. This is a known issue but I forgot to turn off mine, and while updating the system ~ you guessed it, I was locked out. I waited a reasonable time and shut down the computer, hoping the updates were completed. I got lucky :)


Thanks,

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

More
10 years 9 months ago #69164 by Interzen
Thanks for creating this image. I was able to mostly follow your instructions with a couple changes and get it to install over a fresh jessie 64 installation with xfce but my latency went up to 170+. On the standard pre-bundled weezey 32 net install I was getting about 14.

I tried the 32 bit version with similar results. I have fiddled with bios settings to no effect. My linux knowledge is quite rusty so I don''t know where to turn next. Anyone have any suggestions.

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

More
10 years 9 months ago #69172 by BigJohnT
I think you need a 64 bit processor to use a 64 bit kernel. You might try using uspace. Look in getting started optional installs.

JT

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

More
10 years 9 months ago - 10 years 9 months ago #69182 by tjmarch
Interzen
There are a few things you can try for latency issues. What I describe here works for Intel processors 32-bit or 64-bit install, so if you are using a AMD this will not work.
First if you used ISO, grub-customizer was also installed which will make a few thing a little easier. Open grub-costomizer you will find it in Menu->Administration->Grub Costomizer.
The opening screen will be on the List Configuration Tab
right click on the kernel you are working with, make sure not to choose (systemd) or (recovery mode)
select Edit
new window will open select Source tab
Now look for the line that looks something like this example, Your kernel will have a different name that this "3.2.0-0.bpo.4-rt-amd64"

linux linux /vmlinuz-3.2.0-0.bpo.4-rt-amd64 root=/dev/mapper/mint--vg-root ro quiet splash $vt_handoff


You can add kernel boot options here, I suggest the following options

lapic noxsave -original paramters- intel_idle.max_cstate=0 processor.max_cstate=0 isolcpus=1


which would be added into the line after quiet splash and before $vt_handoff for this example as bellow shows.

linux linux /vmlinuz-3.2.0-0.bpo.4-rt-amd64 root=/dev/mapper/mint--vg-root ro quiet splash lapic noxsave -original paramters- intel_idle.max_cstate=0 processor.max_cstate=0 isolcpus=1 $vt_handoff


The above would be for a 2 core processor the option isolcpus=1 would be different for other multi core processors
isolcpus=2,3 <would be used for a 4 core processor
isolcpus=3,4,5 <would be used for a 6 core processor
isolcpus=4,5,6,7 <would be used for a 8 core processor

The idea behind this is to isolate realtime activity to the fist set of cores which improves latency.

NOW MAKE A NOTE: The above could all have been done on the General Settings tab which would change kernel parameters for all loaded kernels. But if any changes that were made caused boot failure, all kernel boot choices would fail at boot. Doing as I described above, only changes it for the kernel parameters for the kernel being edited. Which still leaves the option to boot into another kernel such as the default kernel that was loaded at OS install. This would allow to re-edit any bad parameter choices made previously in the kernel that was edited.


If you are using a dual core you can also follow the directions here which will gain a little more:

forum.linuxcnc.org/forum/18-computer/259...s?limitstart=0#27492



Now for one more thing turning off SMI but you have to be careful, please heed the warning at the following link:

forum.linuxcnc.org/forum/18-computer/259...s?limitstart=0#27492

I will tell you how to do this but you do at your own risk, open terminal

git clone git://git.kiszka.org/smictrl.git && cd smictrl
git clone git://github.com/zultron/smictrl-deb.git debian
sudo apt-get install libpci-dev
fakeroot dpkg-buildpackage -uc -us
sudo dpkg -i ../smictrl_*.deb

# To find out the details about your Intel chipset

sudo smictrl

# To make smictrl load at every boot

sudo gedit /etc/rc.local

# Edit add the following before the line exit 0

smictrl -s 0

# save

sudo reboot



This option needs to be monitored with psensor, ( watching CPU temp) and System Monitor,(set on System Load tab) making sure your system can handle this.
To install psensor open terminal

sudo apt-get install psensor


To install a System Monitor if not a Menu item:

sudo apt-get install ksysguard


With monitoring you will notice the effects of isolcpus CPU load will be high on first group of cores just make sure temp does not get to high

ANOTHER NOTE: Doing latency test I prefer to use latency-plot form terminal it show initial spike in system then settles and you maybe be able to isolate a hardware issue using latency-plot.
Also latency-histogram from terminal for a extended time latency test. If you are just interested in servo thread only invoke in terminal with latency-histogram --no base

If you carry out all of the above you will see a great latency improvement

Good Luck
Tim
Last edit: 10 years 9 months ago by tjmarch.

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

Time to create page: 0.095 seconds
Powered by Kunena Forum