LinuxCNC (EMC2) on Puppy

Mathematical tools, physics simulators, CAD, CNC, etc.
Post Reply
Message
Author
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]

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

#21 Post by vtpup »

This is about as far as I'm going to get at this point. I'm pretty sure there are solutions, but I'm not knowledgeable enough to get there from here.

Maybe someone else can take it further.
[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
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#22 Post by perdido »

kernel source 2.6.32-122-rtai
Located at
http://linuxcnc.org/dists/lucid/base/source/

Found that info at
http://sourceforge.net/p/emc/mailman/message/31174742/


edit: Seems all kernel sources here
http://linuxcnc.org/dists/

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

#23 Post by vtpup »

Okay perdido, thanks. Well guess I'll try to compile my first kernel then and see what happens.
[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.

#24 Post by sunburnt »

Suggestion; Try using DebianDog as it`s truly pure Debian and the .deb will work.
Saintless and Fredx have done an excellent job making it very Puppy like.
And it overcomes many of Puppys problems and will use Precise SFS files.

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#25 Post by Flash »

How about a link from where DebianDog can be downloaded?

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

#26 Post by vtpup »

Hi sunburnt -- would debian dog run well on an older computer with limited RAM resources and a P3 processor like the Thinkpad 600E?

And second would it run on that same computer with a version of LinuxCNC?

Remember, the reason for picking a puppy Lucid and not Precise is because no Linuxcnc binary was created for Precise, while it was for Lucid.

There is in existence a Debian LiveCD for LinuxCNC. But the Debian (latest) LiveCD ISO of LinuxCNC is 1.1 Gig.in size :shock:

Since it can't be installed via LiveCD (needs DVD) and many older bios's can't boot through USB, it is difficult to go the LiveCD method to test it out on an older machine, or install it. LinucCNC ISOs have more than doubled in size recntly since going to ver. 2.6 from ver 2.5 and changing from Ubuntu to Debian.

I was hoping we could go in the opposite direction and Puppy style, with a very low overhead, fast, small liveCD for a dedicated control machine using older hardware.
[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.

#27 Post by sunburnt »

vtpup; I understand your desire for a very small distro for older equipment.
I have an old Celeron box, perfect for a CNC controller, won`t do much else.

Here`s the forum thread for DebianDog, it`s the same size as most Puppies.
Talk to Saintless ( Toni ) and see if he has any suggestions.

http://www.murga-linux.com/puppy/viewto ... 003#799003
.

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

#28 Post by Les Kerf »

vtpup wrote: ...

Since it can't be installed via LiveCD (needs DVD) and many older bios's can't boot through USB, it is difficult to go the LiveCD method to test it out on an older machine, or install it...
The Plop bootloader may allow your older machine to boot from a USB stick.

Agreed that using Puppy would be preferable 8)
Les

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

#29 Post by vtpup »

Sunburnt thanks for the lnk, but it doesn't seem like it's likely built on the right kernel for LinuxCNC, which seems to be very exacting in its requirements. Unless I'm not uunderstanding something (very likely!)

Thanks Les Kerf I'll look into Plop, since thet would be handy to have.

But I don't think I will be using it for the 1.1 gig Debian LinuxCNC distribution, since the TP 600E has 290 megs of available memory at present.
[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:

#30 Post by vtpup »

The proper way to do this would be to compile the proper kernel to match the Ubuntu 8.04 or 10.04 LinuxCNC/Ubuntu binaries, and then build a puppy from the appropriate Ubuntu repositories on that kernel using Woof. I'm tempted to try, but I have never done either before, and I bet there are special problems integrating Puppy and LinCNC along the way as well.

I might try, but it would take me awhile to study everything and learn it. Not somethng that's going to appear here quickly, as I had hoped byt combining a RT kernel and Lupu. I hadn't realized how specific the kernel requirement had to be.
[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.

#31 Post by sunburnt »

Makes you wonder what the heck is so special about the kernel needs.?
All it does is read G/M code script and operate a parallel or usb port.
I don`t see that there`s any fancy drivers. Maybe a trig. module ( doubt it ).?

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

#32 Post by vtpup »

sunburnt, likewise I was wondering if there is a too simple filter/trap that just aborts to the wrong kernel error mesage before even trying to start the program.

This is one reason I was asking about just changing the name of the kernel, to fool it into thinking the kernel matched and then and see if it runs.

I don't know what is tested to determine a kernel's identity.

I could swear I once read here in the forums something about changing the name to get something to run, but haven't been able to find it.
[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
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#33 Post by saintless »

Just checking the control file with dependencies for linuxcnc package:

Code: Select all

Depends: libart-2.0-2 (>= 2.3.17), libatk1.0-0 (>= 1.12.4), libboost-python1.49.0 (>= 1.49.0-1), libc6 (>= 2.7),
libcairo2 (>= 1.2.4), libfontconfig1 (>= 2.9.0), libfreetype6 (>= 2.2.1), libgcc1 (>= 1:4.1.1), libgdk-pixbuf2.0-0 (>= 2.22.0),
libgl1-mesa-glx | libgl1, libglib2.0-0 (>= 2.12.0), libglu1-mesa | libglu1, libgnomecanvas2-0 (>= 2.11.1),
libgnomeprint2.2-0 (>= 2.17.0), libgnomeprintui2.2-0 (>= 2.17.0), libgtk2.0-0 (>= 2.8.0), libice6 (>= 1:1.0.0),
libmodbus5 (>= 3.0.2), libncurses5 (>= 5.0), libpango1.0-0 (>= 1.14.0), libpython2.7 (>= 2.7),
libreadline6 (>= 6.0), libsm6, libstdc++6 (>= 4.6), libtinfo5, libusb-1.0-0 (>= 2:1.0.8), libx11-6, libxaw7, libxext6,
libxft2 (>> 2.1.1), libxinerama1, libxml2 (>= 2.6.27), libxmu6, libxss1, libxt6, tk8.5 (>= 8.5.0), zlib1g (>= 1:1.1.4),
linux-image-3.4-9-rtai-686-pae, rtai-modules-3.4-9-rtai-686-pae, tcl8.5, bwidget (>= 1.7),
libtk-img (>= 1.13), python (>= 2.7), python (<< 2.8), python-support (>= 0.90.0), python2.7-tk, python2.7-gnome2 | python-gnome2,
python2.7-glade2 | python-glade2, python2.7-numpy | python-numpy, python2.7-imaging | python-imaging, python2.7-imaging-tk
 | python-imaging-tk, python-gtksourceview2, python-vte, python-gst0.10, python-xlib, python-gtkglext1, python-configobj, 
 tclreadline, bc, procps, psmisc, module-init-tools | kmod
Most of the dependencies will depend on other missing packages. Wish you luck fixing them manually in Puppy.

I don't think you can cheat the kernel name successful for linuxcnc. The important package for linuxcnc 2.5 and 2.6 is rtai-modules-3.4-9-rtai-686-pae. It seems to be a set of extra .ko modules loaded after starting linuxcnc depending of the program current settings. It is located in /usr directory and will work only with specific kernel. But I never tested linuxcnc so maybe I'm wrong.

Quick test shows normal gzip compressed module that works fast and well on 600Mhz processor and 128Mb RAM + SWAP partition including all linuxcnc dependencies is possible. The iso should be less than 230Mb. Sorry, it will be Debian - not Puppy.
If you can't make it work in Puppy feel free to write in the thread Sunburnt pointed.
The kernel 3.4-9-rtai-686-pae is not a big problem and seems to me you have enough experience to fix potential problems for linuxcnc package if there are any. Anyway it will be much easier to fix any problem in debian system.

BTW plop boot manager will work for you to boot 1.1Gb debian live cd from usb. You can make plop floppy disk or plop CD. I use plop a lot with very old P-II computers from floppy and usb boot works fine.

Toni

User avatar
saintless
Posts: 3862
Joined: Sat 11 Jun 2011, 13:43
Location: Bulgaria

#34 Post by saintless »

Edit: The first iso removed. Uploaded second version. Read here:
http://www.murga-linux.com/puppy/viewto ... 383#799383


Anyway I already have the test module. Just builded DebianDog-Jwm-3.4-9-rtai-686-pae.iso for testing. Maybe it will help you solve some problem in Puppy.
Temporary link (will be available for download few weeks):
http://smokey01.com/saintless/Fredx181/ ... 86-pae.iso
md5sum f056544a9662e05a5f769364a74416b3
Start the program by typing linuxcnc in terminal. Starts successful only in parport diagnostic settings for me. I have no idea how to test it.
Do not use remasterdog and remastercow scripts because they will zerosize all files in /usr/share/doc but linuxcnc configuration files are there. This small conflict between keeping the smallest possible size while remstering the system and linuxcnc configuration files location is easy to fix. The important thing for the moment is to know if linuxcnc is fully functional.
I do not plan to work further on this iso. If you find it useful and works for you I will try help you fixing any problems and make it smaller and faster.
More information how to use save file/directory here:
http://murga-linux.com/puppy/viewtopic. ... b9a#774456
And the main thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=93225

Edit: The iso reuploaded. I forgot to remove something from initrd1.xz. It was 7,5Mb bigger than we need. The previous iso works the same way. It just was 7,5 Mb bigger because the unneeded files.
Last edited by saintless on Mon 15 Sep 2014, 18:24, edited 1 time in total.

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

#35 Post by Revolverve »

saintless,

That was fast work! Bravo! It does boot ok here. No cnc or breakout board to test it right now here and sadly no time to hook it at the job's cnc too ,now... but will give it a try for sure later.

Uploaded ,DebianDogrtai :
https://drive.google.com/folderview?id= ... sp=sharing

Post Reply