LinuxCNC (EMC2) on Puppy

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

#46 Post by vtpup »

Toni -- trying to catch up.....

But just tried this with your present install and I must be doing something wrong ???

root@debian:~# cd /usr/realtime-3.4-9-rtai-686-pae/modules

root@debian:/usr/realtime-3.4-9-rtai-686-pae/modules# modprobe rtai_hal.ko

FATAL: Module rtai_hal.ko not found.

root@debian:/usr/realtime-3.4-9-rtai-686-pae/modules# ls

Module.symvers rtai_calibrate.ko rtai_mq.ko rtai_tasklets.ko
latency_rt.ko rtai_hal.ko rtai_mup.ko rtai_tbx.ko
linuxcnc rtai_ksched.ko rtai_sched.ko rtai_up.ko
preempt_rt.ko rtai_lxrt.ko rtai_smi.ko switches_rt.ko
rtai_bits.ko rtai_math.ko rtai_smp.ko


nevermind ./ :oops:
[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:

#47 Post by vtpup »

Thank you Toni --- just to fill in on what I've tried with the DebDog LinCNC,

I made a symlink in etc/modules/extras/ pointing to the linuxcnc /usr modules and then did a depmod -a

Then tried

modprobe rtai-hal

I got no error messages, but lsmod didn't show it.

I get the "Operation not permitted" error message when I

insmod rtai_hal.ko

but I don't get it for

modprobe rtai_hal

I looked at the init.d/realtime script and saw that they don't use insmod or modprobe, but call a custom binary for inserting a module.


Now I am downloading the Debian version of LinuxCNC as you requested, and will find Plop and try them out together.
[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:

#48 Post by vtpup »

Toni sorry, big mistake:

the kernel I referenced earlier is for the Lucid version of LinuxCNC not the Hardy version.

The Lucid 10.04 version is here:

http://dsplabs.upt.ro/~juve/emc/get.php ... 3-i386.iso

MD5SUM 76dc2416b917679b71255e464ede84ec.



The version currently running on the Thinkpad 600E is the Hardy 8.04 (link provided earlier)

The kernel for that one is 2.6.24-16-rtai
[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

#49 Post by Les Kerf »


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

#50 Post by saintless »

vtpup wrote:Now I am downloading the Debian version of LinuxCNC as you requested, and will find Plop and try them out together.
Thanks, Vtpup.
This is important test because if the official Debian linuxcnc version works on your machine something is wrong in the testing iso and we will concentrate fixing the problem in DebianDog version.
If it does not work we will try with the kerenel from Ubuntu 8.4 or different.

The problem is I get different output than you from the same commands on old hardware like yours and the official Debian linuxcnc gives the same output on my hardware.

BTW some information about official 1,1 Gb iso - it should boot to desktop after a while as user. If you logout instead rebooting you can login with username user and password live.
If you need to login as root drop back to console with Ctrl+Alt+F1 and setup root password with:

Code: Select all

sudo passwd root
Then login as root:

Code: Select all

sudo login
And type startx

Toni

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

#51 Post by Revolverve »

Finaly been able to get sim start...run fine here..with Saintless "pure plain" debian rt baby.

Removed the following packages:
libgl1-mesa-glx

Installed the following packages:
libgl1-mesa-swx11 (8.0.5-4+deb7u2)
libosmesa6 (8.0.5-4+deb7u2)

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

#52 Post by saintless »

I'm glad you found a way to make it work for you, Revolverve :)
I hope your method will work for Vtpup.
If it does I will rebuild the iso fixing also the small conflict for remaster-scripts and linuxcnc-config-files-location.

Toni

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

#53 Post by vtpup »

Hi saintless, all, frustrating evening -- I did indeed get plop working, only to find I didn't have a free memory stick over 1 gig. I had 5 sticks of the 1G size, but LinuxCNC on Debian is 1.1G and doesn't fit! (Wish they'd trimmed about 150 meg off of it :cry: ).

But plop is nice to have. I can boot the TP600E off of USB now! I'll get a bigger mem stick tomorrow. I'll also Revolverve's change tonight.

btw -- I've always been able to get LinuxCNC to start it's splash screen and interface query with DebianDog but when I select the Axis interface (that's the one with the 3D display) and chose a machine type Gantry, is when the errors show up and crash. So it's pretty close to running.

Okay, on to testing .....
[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:

#54 Post by vtpup »

One question, sorry, how/where do I get these?
Installed the following packages:
libgl1-mesa-swx11 (8.0.5-4+deb7u2)
libosmesa6 (8.0.5-4+deb7u2)
[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

#55 Post by Revolverve »

Synaptic . Short story,running in console for sim to get running, got x error message :BadWindow something, I googled it to find a forum with a solution:install libgl1-mesa-swx11....could be specific video harware related,not so sure...test with your.

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

#56 Post by vtpup »

Revolverve, not listed in my synaptic search -- which repository? Thanks!
[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

#57 Post by Revolverve »

Need to update the package list first...because its a live boot ?!#! could be...
Attachments
2014-09-14-225558_1280x800_scrot.png
Yep...does simulation....no real machine test yet..go ahead plug that interface,home the beast,mill.:)oups i've put my window in front of the lens,sorry
(142.25 KiB) Downloaded 504 times

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

#58 Post by vtpup »

Sorry, yes, found and installed them.

No joy, though. There was no difference.

My problem hasn't been video -- that works.

But rtai and hal kernel module loading.is the problem. The error messages haven't changed.
[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

#59 Post by saintless »

Hi, Vtpup, don't buy new flash drive :)
Actually Revolverve found already the solution - thanks Revolverve ! :)
See the picture on my old machine with Axis -> Gantry settings:

Image

We just need some extra steps for our old machines

1. Boot adding lapic at the end of "append initrd" line. If you boot from CD just press Tab to edit the line.
If you use frugal install with grub4dos like me add lapic to the end of the kernel boot line.

2. Run this commands before starting linuxcnc:

Code: Select all

root@debian:~# ulimit -l      
64
root@debian:~# ulimit -l 20480
root@debian:~# ulimit -l
20480
root@debian:~# linuxcnc
LINUXCNC - 2.6.3-13-g7fdc948
Machine configuration directory is '/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis'
Machine configuration file is 'gantry.ini'
Starting LinuxCNC...
Shutting down and cleaning up LinuxCNC...
root@debian:~# 
Works the same way from user account puppy:

Code: Select all

puppy@debian:~$ ulimit -l
20480
puppy@debian:~$ linuxcnc
LINUXCNC - 2.6.3-13-g7fdc948
Machine configuration directory is '/home/puppy/linuxcnc/configs/sim.axis'
Machine configuration file is 'gantry.ini'
Starting LinuxCNC...
No option 'tto_g11' in section: 'DEFAULT'
No option 'show_program' in section: 'DEFAULT'
No option 'show_rapids' in section: 'DEFAULT'
No option 'program_alpha' in section: 'DEFAULT'
No option 'show_live_plot' in section: 'DEFAULT'
No option 'show_tool' in section: 'DEFAULT'
No option 'show_extents' in section: 'DEFAULT'
No option 'show_offsets' in section: 'DEFAULT'
No option 'grid_size' in section: 'DEFAULT'
No option 'show_machine_limits' in section: 'DEFAULT'
No option 'show_machine_speed' in section: 'DEFAULT'
No option 'show_distance_to_go' in section: 'DEFAULT'
No option 'dro_large_font' in section: 'DEFAULT'
No option 'block_delete' in section: 'DEFAULT'
No option 'optional_stop' in section: 'DEFAULT'
No option 'recentfiles' in section: 'DEFAULT'
Shutting down and cleaning up LinuxCNC...
puppy@debian:~$ 
If it works for you I will rebuild the iso with the fixes and some latest changes for DebianDog today or tomorrow. I will fix also the remaster scripts to work without making troubles for linuxcnc and you will be able to remaster the system much smaller (or bigger) for your needs.

Toni

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

#60 Post by Revolverve »

Lucky you ...
and now I'll try learning how to make snapshot and post correctly :?
Glad it helped!

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

#61 Post by vtpup »

Edited...

I added Debiandog to my hd w/frugal install. Then added lapic to the kernel boot line in Grub.

then tried starting LinuxCNC:

Code: Select all

root@debian:~# ulimit -l 20480
root@debian:~# ulimit -l      
20480
root@debian:~# linuxcnc
LINUXCNC - 2.6.3-11-gb38797a
Machine configuration directory is '/usr/share/doc/linuxcnc/examples/sample-configs/sim/axis'
Machine configuration file is 'gantry.ini'
Starting LinuxCNC...
Error: could not insert module /usr/realtime-3.4-9-rtai-686-pae/modules/rtai_hal.ko: Operation not permitted
Realtime system did not load
Shutting down and cleaning up LinuxCNC...
RTAPI: ERROR: could not open shared memory (errno=2)
/usr/bin/linuxcnc: line 498:  3221 Segmentation fault      $HALCMD stop
RTAPI: ERROR: could not open shared memory (errno=2)
/usr/bin/linuxcnc: line 498:  3222 Segmentation fault      $HALCMD unload all
RTAPI: ERROR: could not open shared memory (errno=2)
:(
[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

#62 Post by saintless »

Can you confirm you also did this:
Removed the following packages:
libgl1-mesa-glx

Installed the following packages:
libgl1-mesa-swx11 (8.0.5-4+deb7u2)
libosmesa6 (8.0.5-4+deb7u2)

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

#63 Post by saintless »

Uploaded second version DebianDog-Jwm-3.4-9-rtai-686-pae-2.iso - 234Mb:
Direct download link
md5sum 6b9d5701f10b148a24f8b7f046e51880
Previous iso removed.

Mirror download from here:
http://www.mydrive.ch/
username: guest@saintless
password: download

Edit:29.04.2016 - I have e-mail from mydrive.ch my free account will have 100Mb storage limit in a month. I had to remove all files over 100Mb limit. Uploaded text file ISO-files-Moved-Here.txt with new storage location in dropbox in case someone visits mydrive.ch. This is the new download link:
https://www.dropbox.com/sh/ca58blnh2m6h ... Th0oa?dl=0

Changes:
Added lapic to the boot code line.
Removed libgl1-mesa-glx
Installed libgl1-mesa-swx11 and libosmesa6.
Remaster scripts fixed for linuxcnc /usr/share/doc/linuxcnc configuration files.
Added latest fixes for DebianDog.

Linuxcnc starts without errors on two old P-III machines.

Edit: Important note - if you already have frugal install make sure to rename live folder and any changes.dat file from previous testing before booting this new CD. Read DebianDog porteus-boot post for more detailed information.

Toni
Last edited by saintless on Fri 29 Apr 2016, 09:33, edited 5 times in total.

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

#64 Post by vtpup »

Okay Toni, I will try the new version, but first want to report on the last boot attempt with the old version:

I can confirm that I removed the following packages:

libgl1-mesa-glx

and installed the following packages:

libgl1-mesa-swx11 (8.0.5-4+deb7u2)
libosmesa6 (8.0.5-4+deb7u2)

I also had done:

Code: Select all

root@debian:~# ulimit -l 20480


Here is a new clue from dmesg though:

Code: Select all

[  116.866320] RTAI[hal]: ERROR, LOCAL APIC CONFIGURED BUT NOT AVAILABLE/ENABLED
However, I did include lapic in the boot .Here is my entire boot stanza for debiandog in Grub:

Code: Select all

title DebianDog frugal
rootnoverify (hd0,5)
kernel /debiandog/live/vmlinuz1 from=/mnt/sda6/debiandog edd=off changes=/mnt/sda6 nomagic base_only norootcopy lapic
initrd=/debiandog/live/initrd1.xz
[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:

#65 Post by vtpup »

Note that the system that does run on this computer is LinuxCNC 2.5

And the DebianDog version of LinuxCNC is 2.6

I periodically boot back into the Ubuntu version to make sure everything works. It does. There is no "lapic" cheatcode in the Ubuntu grub stanza.


(I'm downloading the new DebianDog 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]

Post Reply