LinuxCNC (EMC2) on Puppy

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

LinuxCNC (EMC2) on Puppy

#1 Post by vtpup »

It's been a long time away from the forum for me, though Puppy is in use every day here by me and my family for everything. I once put together a puplet called MediPup, long since surpassed by the efforts of others!

Anyway what brings me back is a recent attempt to run a CNC mill with LinuxCNC (formerly EMC). This program is available as a LiveCD with either Ubuntu or Debian.

Unfortunately the computer I have regularly used for running the mill in the past is an ancient 1998 Thinkpad 600E with a Pentium 3 (hacked in). It was running TurboCNC running in old MSDOS. It happily dual booted into Puppy 412, and later 431, and ran at good speed. Win 98SE is also aborad, though seldom booted.

This computer works fine with older software. In tests it has surprisingly low latency, and it has a parallel port -- both good characteristics for a CNC control computer.

So anyway I download a slightly older version of LinuxCNC on Ubuntu 8.04LTC, and I'm back to my Linux beginnings years ago before switching to Puppy -- struggling with Ubuntu's bloat and slow speed and hiding of essential user controls, tendency to want to rewrite partitions if installed, etc. etc. The OS and CNC app take up the entire LiveCD and the whole thing just takes forever to come up.

I start thinking about Puppy, and how I wish it was the background OS instead of Ubuntu. I install Ubuntu/LinuxCNC to HD hoping the speed issues will be improved. They are somewhat, but not enough. Opening a directory or file takes forever -- everything seems sluggish. The LinuxCNC program runs fine, and I am actually able to run my mill and cut some test parts with it. But the program is surrounded by the brown sludge of this OS. I hate it. And know it doesn't have to be that way -- hell Puppy 431 on this computer runs rings around it. Even Win 98 does!

Later versions of LinuxCNC are packaged on Debian -- but are so bloated that the LiveCD is now 1.1 gigs -- it's got to be a DVD not a CD, or boot from a thumb drive (not an option with the old Thinkpad's BIOS).

Even the Ububtu 8.04 LinuxCNC LiveCD has the entire OpenOffice Suite bundled in it, as well as GIMP, Firefox, and a bunch of other unecessary stuff. Heck this is just supposed to be a CNC controller, not an all purpose desktop.

Just seems to me that Puppy would be an ideal match for LinuxCNC -- especially because it runs on older computers. LinuxCNC NEEDS older computers, because it requires a real parallel port, and multiprocessor technology tends to hurt latency -- which is more important than processing speed.

So I've been looking here and on the LinuxCNC website to try to see if it's been done, and if not how could it be made to work.

There are several threads on this forum with tantalizing bits, but I haven't yet found a working puppy, not a simulator, running EMC or LinuxCNC.

Some piecemeal facts I've found so far:

LinuxCNC needs an RTAI real time kernel.

There is an Ubuntu script for installing LinuxCNC on a working 8.04 or 10.04 system.

I believe there is one for Debian also.

There is, or was an ARCH LinuxCNC distribution.

There was a puplet with RTAI kernel called Studio Puppy -- but it seems to be unavailable.

There was a puppy version of EMC without the real time kernel that worked in simulation mode only.

Okay, can we do this thing?


UPDATE 11-05-14: :P :P :P :P :P :P :P :P :P :P :P

In response, forum user saintless created puppy-like stripped down versions of Ubuntu and Debian with LinuxCNC aboard, much smaller than the official LinuxCNC versions, which will fit comfortably on Live CDs (instead of a DVD). Linked here:
http://murga-linux.com/puppy/viewtopic. ... 024#800024
and here:
http://www.murga-linux.com/puppy/viewto ... 383#799383

These both seem to run better for me and faster on older hardware than the official LinuxCNC releases. A great thank you to saintless for putting a lot of hard work into developing these!

We still don't have a true Puppy version of LinuxCNC, and I still hold out hope that some day I'll be cutting parts in my mill with one. But in the meantime, these 2 LiveCD distros should solve a lot of problems for a lot of people looking for a simpler, faster and less resource intensive LinuxCNC -- with many features familiar to Puppy users..
Last edited by vtpup on Thu 06 Nov 2014, 18:47, edited 3 times in total.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#2 Post by vtpup »

Here's the Thinkpad running CNCLinux in Ubuntu 8.04:

Image
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#3 Post by vtpup »

And here is the mill cutting parts via LinuxCNC using this 1998 era computer on Ubuntu..

I wanna see Puppy do this!

Image
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#4 Post by vtpup »

Found this thread on changing kernels in an existing Puppy:

http://www.murga-linux.com/puppy/viewtopic.php?t=60180

Does anyone have a copy of Studio Puppy with the RTAI kernel?
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
mister_electronico
Posts: 969
Joined: Sun 20 Jan 2008, 20:20
Location: Asturias_ España
Contact:

Hi vtpup

#5 Post by mister_electronico »

Hi vtpup, very interesting your CNC machine, is it commercial? The problem that I see is that you have an old computer and it is difficult to upgrade the operating system.

You considered the possibility of a parallel port to USB converter, see the link:

http://www.tinydeal.com/es/USB-Male-to- ... AlC28P8HAQ

This could give you the chance to work with a more powerful computer and a more updated operating system.

Sometimes the problem is not so much the computer and the operating system if you do not have enough RAM.

Hope that helps you, good luck


______________________________________________________________________
My blog

https://misterelectronicoes.wordpress.com/
Last edited by mister_electronico on Sun 08 Feb 2015, 18:54, edited 1 time in total.


User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#7 Post by vtpup »

Hi mister electronico.

I have a commercial mill and a home built 4 axis hot wire foam cutter.

USB to parallel adapters don't work for this kind of thing.

Thanks for the helpful suggestions, but...I'm fine with older versions of Puppy -- 431 isn't that old, and I'm pretty sure much newer versions would run well on the thinkpad.

The age of the operating system isn't the problem. Or a problem.

I don't want to buy newer hardware for this. LinuxCNC itself runs fine on the Thinkpad as is -- I just want Puppy as the OS instead of Ubuntu (or a 1.1 gig Debian). I think others with older equipment would appreciate this capability too, if it can be done. But thank you for replying!
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#8 Post by vtpup »

Muggins Thank You!!!

I did miss that thread -- very interesting. Looks like they got close but had problems with trying fresh with the RTAI kernel in Puppy. But maybe since Studio Puppy managed to combine the two I can graft the kernel from it.

Downloading now....
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#9 Post by vtpup »

Okay, Puppy Studio is downloaded and installed on the Thinkpad and I'm typing this on it now.

Kernel is 2.6.33.5 -rt25 (686)

Just exploring ....
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#10 Post by vtpup »

I've now also downloaded and run Coolcnc on the Thinkpad 600E. Interesting but not really useful. It's a Puppy 1 version, and the LinuxCNC is from 1999 -- quite primitive by current standards.

Puppy Studio was really big -- over 300 megs, and really altered -- lots of eye candy, non JWM, Wbar, etc. and it was sluggish to run in. I don't know if that sluggishness is a result of all of the added stuff, or the result of the real time kernel -- could be, which would be unfortunate, and would mean puppy linux won't help make things faster if i do get LinuxCNC running.

Anyway, I also downloaded and installed Lupu 528, and that ran REALLY well. A nice distro for this old computer. Its kernel is 2.6.33.2 (686) -- pretty close to the 2.6.33.5 -rt25 (686) real time kernel in Puppy Studio.

It also is built on Ubuntu Lucid components and uses its repositories. Since LinuxCNC also has a build for Lucid, I'm thinking that the way to go might be to graft the Studio Puppy kernel to Lupu 528, and then concentrate on trying to install LinuxCNC on that.

So we'll give it a try.....
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
Revolverve
Posts: 255
Joined: Sat 08 Nov 2008, 21:01
Location: 45°17'28.8"N 72°16'08.8"W_avatar/ mira.ca

#11 Post by Revolverve »

Would like to see that too..an uptodate Linuxcnc puppy. Not sure if rt kernel(10wt3ch-Studio ones) is the same as rtai or RT needed ,did tried to understand the difference but I lack the knowledge there...Return digging in a bit.. http://wiki.linuxcnc.org/cgi-bin/wiki.pl?RealTime
Does look like it could do the job,rtai or rt patched kernel.
10wt3ch he is the rt/puppy guy! Do not know of anyone else who recently got a "puppy"style"" interest/success in that field.Pm him for hints and ask linuxcnc forum .
Src for 10wt3ch studio kernel all seems there:http://puppylinuxstuff.meownplanet.net/10wt3ch/
Jump in! oh you did! there are newer kernel then 2.6.33.5
scr from its studio 13.37 v2 are there too!

We use Mach3/M$ at work...running our low budget build to our need getting old but still hard working 3 axes steppers CnC ,tried but never been able to configure Emc2 for it,missing time&know-how...

A puppyrtlinuxcnc would certainly be the excuse to take the time, give it a go and retry .

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#12 Post by vtpup »

Success! -- I was able to create a Lupu 528 puppy running on the RTAI Kernel from Puppy Studio.

I installed it on the Thinkpad 600E and it is running much faster than Puppy Studio -- seems as fast as native Lupu on the TP. Total ISO size is 135 megabytes. Looking good so far!

The next step will be trying to load LinuxCNC. Fingers crossed for tomorrow....
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#13 Post by sunburnt »

I requested LinuxCNC to be made as a SFS file awhile back.
I hope that it`s made for Puppy-5.7 Precise ( up-to-date ).

vtpup; Your mill looks like a CNC router, but it`s hard to tell.
Could you post a "big view" pic so we all can see it?

I`m not clear on the capabilities of LinuxCNC.
I think it runs the machine`s motor driver transistors directly,
so the PC does the arc, hole, offset, etc. calculations.

Also does LinucCNC have a G-M code CAD app.?
Or is a CNC CAD program needed to generate the code?
.

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#14 Post by vtpup »

Sunburnt, thanks for your comment. I'm doing this for older machines and as a standalone controller, so settling on an "up to date" distro is not a priority.

More important is will it run on most machines built in the last 15 years or so, having parallel ports and low latency. The latest and greatest multiprocessor machines are sometimes worse in latency than older machines. Also computers are ending up in landfills that could do useful work in Puppy and LinuxCNC. The goal is to try to reconcile waste and inefficiency with smarts.

Also since we are using Ubuntu repos here, I'm making things somewhat easier to construct by using one of the 2 available supported versions of LinuxCNC: 8.04 (hardy) and 10.04 (lucid). Precise isn't one of them, or I'd naturally have used a precise Puppy.

Yes LinuxCNC drives a parallel port CNC controller. LinuxCNC is not a CAD program or a CAM program. Please have a look at the CNCLinux website and read about it to understand what the capabilities and requirements of LinuxCNC are.

Yes I am using an actual router as a spindle, I think of it as a mill, since I'm using it to mill aluminum, and will soon build a non-router machine spindle for it to mill harder materials.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#15 Post by vtpup »

Running into a few minor issues -- the new pup isn't recognizing the name of it's own savefile -- since it's Frankensteined out of 2 different puppies, Studio and Lupu 528. Should have that fixed shortly....
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#16 Post by sunburnt »

I think that info is kept in /etc/rc.d/PUPSTATE

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#17 Post by vtpup »

Already solved, but thanks!

Right now working on getting the LinuxCNC program itself, since Puppy doesn't use apt get,
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

Les Kerf
Posts: 317
Joined: Sun 24 Jun 2012, 13:30

#18 Post by Les Kerf »

Subscribing to thread.

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#19 Post by vtpup »

I was able to download a CNCLinux 2.54 .deb, and try it out, but I'm afraid things are not going to work this way.. The binaries require a specific kernel -- they abort with a message after testing the kernel. The 2.5.4 linuxcnc version wants kernel 2.6.32 - 122-rtai to run.

This Lupu 528 has 2.6.33.5-rt25.

And I also don't know the difference between rt and rtai as mentioned by Revolverve earlier -- sorry I missed that post Revolverve -- i must have been typing at the same time.

Compiling the program is probably the only way unfortunately, I really doubt any of the binaries exactly match the particular kernel I have in the modified Lupu 528,
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

User avatar
vtpup
Posts: 1420
Joined: Thu 16 Oct 2008, 01:42
Location: Republic of Vermont
Contact:

#20 Post by vtpup »

Do I recall reading somewhere here about someone changing the name of a kernel?

I dunno maybe that's getting too kludgy. I would like to find that reference,though.
[color=darkblue]Acer Aspire 5349-2635 laptop Tahrpup.[/color]
[color=blue]Acer R11 and C720 Chromebks Bionicpup64[/color]
[color=olive]Acer Iconia A1-830 tablet no pup[/color]
[color=orange]www.sredmond.com[/color]

Post Reply