Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS - NOT

2020-02-13 Thread Thomas D. Dean

On 2020-02-13 18:32, Jon Elson wrote:

On 02/13/2020 04:53 PM, Thomas D. Dean wrote:

I shut down the system last night.

I can boot debian 7 (sda) and run linuxcnc from the distro. Everything 
comes up and seems normal.


But, on boot into debian 10 (sdb), it drops into the console login.  I 
can startx, but, the display is background only.  I can switch to 
another console, ctl-alt-F3, and start some xterms, then switch back 
to X, alt-F1, and the xterms are there.  I can do most things. I can 
NOT see dmesg as a normal user.

> dmesg
dmesg: read kernel buffer failed: Operation not permitted
Google says this is an "Improved" security feature of debian 10.  I have 
been using dmesg for some 40 years, and, now, it is a security risk...


Strange.

I'm taking a wild guess, but maybe the system did an automatic update 
that included a kernel update sometime in
the past, but this required a reboot to load the new kernel. LinuxCNC is 
compiled/linked against a specific kernel, and
so a kernel update will cause it to not run anymore.  So, you really 
want to turn off automatic updates, or at least make

sure that kernel updates require manual approval.

And, that WAS a wild guess.  The kernel booted was 4.14.148-rtai-amd64, 
I selected it from grub...


I can run debian 7 with the linuxcnc distro (sda) OK.  The MB is an 
Intel D2500HN with 4G Ram.  Seems like Debian 10 is not stable on this MB:


I started over with a clean install of debian 10 on sdb.  The install 
seemed to go OK, using all defaults and grub on sda.  Booted into the 
installed kernel, OK.  But, I had 'slinky' scrolling, mouse pointer 
movements were lagging and sometimes, typing a single char inserted 8 to 
10 of the same char.  Today, I was at the machine.  Yesterday, I did 
this via ssh and the display/input problems were not evident.


I pushed ahead, using gdebi, I installed
  linux-headers-4.14.148-rtai-amd64.deb
  linux-image-4.14.148-rtai-amd64.deb
Using gdebi, I installed (all from stretch)
  python-gtksourceview2_2.10.1-3_amd64.deb
  libvte-common_0.28.2-5_all.deb
  libvte9_0.28.2-5+b2_amd64.deb
  python-vte_0.28.2-5+b2_amd64.deb

Installing with gdebi (from stretch)
  libboost-python.1.62.0_1.62.0+dfsg-10+b1_amd64.deb
has unmet dependencies.
Using apt-get wants to remove a full screen (50+ lines?) of things. 
Most of gnome, etc.  I think this disables the desktop.


Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS - NOT

2020-02-13 Thread Gene Heskett
On Thursday 13 February 2020 21:32:30 Jon Elson wrote:

> On 02/13/2020 04:53 PM, Thomas D. Dean wrote:
> > I shut down the system last night.
> >
> > I can boot debian 7 (sda) and run linuxcnc from the
> > distro. Everything comes up and seems normal.
> >
> > But, on boot into debian 10 (sdb), it drops into the
> > console login.  I can startx, but, the display is
> > background only.  I can switch to another console,
> > ctl-alt-F3, and start some xterms, then switch back to X,
> > alt-F1, and the xterms are there.  I can do most things.
> > I can NOT see dmesg as a normal user.
> >
> > > dmesg
> >
> > dmesg: read kernel buffer failed: Operation not permitted
> >
> > Strange.
>
> I'm taking a wild guess, but maybe the system did an
> automatic update that included a kernel update sometime in
> the past, but this required a reboot to load the new kernel.
> LinuxCNC is compiled/linked against a specific kernel, and
> so a kernel update will cause it to not run anymore.  

I didn't find that in my last rpi4 kernel rebuild that was actually an 
improved latency-test, from about 50 u-secs down to 16 u-secs. lcnc 
built as uspace always on the rpi4. Thinking about new kernels, I 
probably should go back and do a make headers_install too.

> So, 
> you really want to turn off automatic updates, or at least make
> sure that kernel updates require manual approval.
>
> Jon
>
Exactly why I "pin" them. The offered replacements are never "realtime"
In fact that potential for such cross contamination alone should be 
considered an apt bug.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS - NOT

2020-02-13 Thread Jon Elson

On 02/13/2020 04:53 PM, Thomas D. Dean wrote:

I shut down the system last night.

I can boot debian 7 (sda) and run linuxcnc from the 
distro. Everything comes up and seems normal.


But, on boot into debian 10 (sdb), it drops into the 
console login.  I can startx, but, the display is 
background only.  I can switch to another console, 
ctl-alt-F3, and start some xterms, then switch back to X, 
alt-F1, and the xterms are there.  I can do most things.  
I can NOT see dmesg as a normal user.

> dmesg
dmesg: read kernel buffer failed: Operation not permitted

Strange.

I'm taking a wild guess, but maybe the system did an 
automatic update that included a kernel update sometime in
the past, but this required a reboot to load the new kernel. 
LinuxCNC is compiled/linked against a specific kernel, and
so a kernel update will cause it to not run anymore.  So, 
you really want to turn off automatic updates, or at least make

sure that kernel updates require manual approval.

Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS - NOT

2020-02-13 Thread Thomas D. Dean

I shut down the system last night.

I can boot debian 7 (sda) and run linuxcnc from the distro.  Everything 
comes up and seems normal.


But, on boot into debian 10 (sdb), it drops into the console login.  I 
can startx, but, the display is background only.  I can switch to 
another console, ctl-alt-F3, and start some xterms, then switch back to 
X, alt-F1, and the xterms are there.  I can do most things.  I can NOT 
see dmesg as a normal user.

> dmesg
dmesg: read kernel buffer failed: Operation not permitted

Strange.

The only difference I see is keyboard and mouse actions are 'jerky'. 
Delays in typing.  Move the physical mouse and the pointer stays still 
for 1/2 sec, or so, then follows.


Linuxcnc hangs, details at the bottom.  I get the initial logo, and the 
display to select a machine.  I select the sherline inch lathe.  The 
terminal shows some start information and hangs.


I plan to repeat the installation from a fresh Debian 10,
   debian-10.3.0-amd64-netinst.iso
after running a disk check.

Then install
  linux-image-4.14.148-rtai-amd64.deb
  linux-headers-4.14.148-rtai-amd64.deb
Install from stretch, using gdebi.  Yesterday, I used apt-get.  Does 
this make a difference?

  python-gtksourceview2_2.10.1-3_amd64.deb
  libvte-common_0.28.2-5_all.deb
  libvte9_0.28.2-5+b2_amd64.deb
  python-vte_0.28.2-5+b2_amd64.deb
  python-vte/download
  libboost-python.1.62.0_1.62.0+dfsg-10+b1_amd64.deb
Then, use apt-get to install the last glob of things.
Then, build linuxcnc.

Any ideas of what I should do?

Tom Dean

== What happened today ===

After boot and startx,
linuxcnc-latency works.

> . ./RTAI/linuxcnc-dev/scripts/rip-environment
> linuxcnc -d -v
Debug mode on
+ getopts dvlhkr opt
+ case "$opt" in
+ tty -s
+ PRINT_FILE=/dev/fd/1
+ echo 'Verbose mode on'
Verbose mode on
+ getopts dvlhkr opt
+ shift 2
+ case "4.14.148-rtai-amd64" in
++ uname -r
+ '[' 4.14.148-rtai-amd64 '!=' 4.14.148-rtai-amd64 ']'
+ '[' -z ']'
+ tty -s
+ trap ErrorCheck EXIT
+ '[' '!' -z '' ']'
+ EXTRA_ARGS=
+ RUN_IN_PLACE=yes
+ echo RUN_IN_PLACE=yes
RUN_IN_PLACE=yes
+ LINUXCNCVERSION=2.9.0~pre0
+ export LINUXCNCVERSION
+ INIVAR=inivar
+ HALCMD='halcmd '
+ PICKCONFIG='/usr/bin/wish8.6 
/home/tomdean/RTAI/linuxcnc-dev/tcl/bin/pickconfig.tcl'

+ LINUXCNC_EMCSH=/usr/bin/wish8.6
+ echo LINUXCNC_DIR=
LINUXCNC_DIR=
+ echo LINUXCNC_BIN_DIR=/home/tomdean/RTAI/linuxcnc-dev/bin
LINUXCNC_BIN_DIR=/home/tomdean/RTAI/linuxcnc-dev/bin
+ echo LINUXCNC_TCL_DIR=/home/tomdean/RTAI/linuxcnc-dev/tcl
LINUXCNC_TCL_DIR=/home/tomdean/RTAI/linuxcnc-dev/tcl
+ echo LINUXCNC_SCRIPT_DIR=
LINUXCNC_SCRIPT_DIR=
+ echo LINUXCNC_RTLIB_DIR=/home/tomdean/RTAI/linuxcnc-dev/rtlib
LINUXCNC_RTLIB_DIR=/home/tomdean/RTAI/linuxcnc-dev/rtlib
+ echo LINUXCNC_CONFIG_DIR=
LINUXCNC_CONFIG_DIR=
+ echo LINUXCNC_LANG_DIR=/home/tomdean/RTAI/linuxcnc-dev/src/objects
LINUXCNC_LANG_DIR=/home/tomdean/RTAI/linuxcnc-dev/src/objects
+ echo INIVAR=inivar
INIVAR=inivar
+ echo HALCMD=halcmd
HALCMD=halcmd
+ echo LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC_EMCSH=/usr/bin/wish8.6
+ export LINUXCNC_TCL_DIR
+ export LINUXCNC_EMCSH
+ export LINUXCNC_HELP_DIR
+ export LINUXCNC_LANG_DIR
+ export REALTIME
+ export HALCMD
+ export LINUXCNC_NCFILES_DIR
+ '[' -z ']'
+ echo 'LINUXCNC - 2.9.0~pre0'
LINUXCNC - 2.9.0~pre0
+ '[' '!' -z '' ']'
+ '[' '!' -n '' ']'
++ /usr/bin/wish8.6 /home/tomdean/RTAI/linuxcnc-dev/tcl/bin/pickconfig.tcl
( here, the welcome and config selection appears )
I select by)machine->sherline->SherlineLathe->SherlineLathe_inch
and click OK
+ INIFILE=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
+ '[' /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini.demo = 
/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini ']'

+ '[' '!' -n /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini ']'
++ handle_includes /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
++ hdr='# handle_includes():'
++ inifile=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
+++ dirname /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
++ cd /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis
++ /usr/bin/grep '^#INCLUDE' 
/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini

++ status=1
++ '[' 1 -ne 0 ']'
++ echo /home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
++ return 0
+ INIFILE=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/axis.ini
+ INI_NAME=axis.ini
+ INI_DIR=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis
+ CONFIG_DIR=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis
+ export CONFIG_DIR
+ export 
PATH=/home/tomdean/RTAI/linuxcnc-dev/configs/sim/axis/bin:/home/tomdean/RTAI/linuxcnc-dev/scripts:/home/tomdean/RTAI/linuxcnc-dev/bin:/home/tomdean/RTAI/linuxcnc-dev/bin:/home/tomdean/RTAI/linuxcnc-dev/scripts:/home/tomdean/RTAI/linuxcnc-dev/tcl:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
+ 

Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS

2020-02-13 Thread Gene Heskett
On Thursday 13 February 2020 09:57:08 andy pugh wrote:

> On Thu, 13 Feb 2020 at 05:10, Thomas D. Dean 
> wrote:
>
> python-gtksourceview2_2.10.1-3_amd64.deb from
>
> > packages.debian.org/sid/amd64/python-gtksourceview2/download
> > actual from
> > packages.debian.org/stretch/amd64/python-gtksourceview2/download
> > libvte-common_0.28.2-5_all.deb
> >  >loadlibvte-common_0.28.2-5_all.deb> from
> > packages.debian.org/stretch/all/libvte-common/download
> > libvte9_0.28.2-5+b2_amd64.debfrom
> > packages.debian.org/stretch/amd64/libvte9/download
> > python-vte_0.28.2-5+b2_amd64.deb from
> > packages.debian.org/stretch/amd64/python-vte/download
> > install libboost-python.1.62.0_1.62.0+dfsg-10+b1_amd64.deb from
> > packages.debian.org/sid/amd64/libboost-python1.62.0/download
>
> I think that (other than _changing_ these dependencies) the solution
> is to supply these packages via the LinuxCNC repository.
> (We already do this for a few non-linuxcnc packages, for example there
> are some gtk2 packages here:
> http://www.linuxcnc.org/dists/wheezy/base/binary-amd64/ )

But that doesn't do me any good unless its src so I can build it on the 
rpi4's. I am already building for rpi4's, but without a working 
gmoccapi(sp?) and without a printout function for any ladder logic the 
user might want to use.  And now we're (raspbian) is up to 10.3 and 
something else I didn't note has gone missing but linuxcnc installed and 
continues to run well.

Cheers, Gene Heskett
-- 
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
If we desire respect for the law, we must first make the law respectable.
 - Louis D. Brandeis
Genes Web page 


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS

2020-02-13 Thread andy pugh
On Thu, 13 Feb 2020 at 05:10, Thomas D. Dean  wrote:

python-gtksourceview2_2.10.1-3_amd64.deb from
> packages.debian.org/sid/amd64/python-gtksourceview2/download
> actual from
> packages.debian.org/stretch/amd64/python-gtksourceview2/download
> libvte-common_0.28.2-5_all.deb
> 
>  from
> packages.debian.org/stretch/all/libvte-common/download
> libvte9_0.28.2-5+b2_amd64.debfrom
> packages.debian.org/stretch/amd64/libvte9/download
> python-vte_0.28.2-5+b2_amd64.deb from
> packages.debian.org/stretch/amd64/python-vte/download
> install libboost-python.1.62.0_1.62.0+dfsg-10+b1_amd64.deb from
> packages.debian.org/sid/amd64/libboost-python1.62.0/download


I think that (other than _changing_ these dependencies) the solution is to
supply these packages via the LinuxCNC repository.
(We already do this for a few non-linuxcnc packages, for example there are
some gtk2 packages here:
http://www.linuxcnc.org/dists/wheezy/base/binary-amd64/ )

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is designed
for the especial use of mechanical geniuses, daredevils and lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs WORKS

2020-02-12 Thread Thomas D. Dean

On 2020-02-12 13:44, Thomas D. Dean wrote:

On 2020-02-12 13:39, Thomas D. Dean wrote:

On 2020-02-12 00:03, Robert Murphy wrote:

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669 







I followed this series of emails.


python-gtksourceview2_2.10.1-3_amd64.deb from 
packages.debian.org/sid/amd64/python-gtksourceview2/download

actual from packages.debian.org/stretch/amd64/python-gtksourceview2/download
libvte-common_0.28.2-5_all.deb   from 
packages.debian.org/stretch/all/libvte-common/download
libvte9_0.28.2-5+b2_amd64.debfrom 
packages.debian.org/stretch/amd64/libvte9/download
python-vte_0.28.2-5+b2_amd64.deb from 
packages.debian.org/stretch/amd64/python-vte/download
install libboost-python.1.62.0_1.62.0+dfsg-10+b1_amd64.deb from 
packages.debian.org/sid/amd64/libboost-python1.62.0/download

actual from packages.debian.org/stretch/amd64/libboost-python1.62.0/download
sudo apt-get install git debhelper dh-python libudev-dev python-yapps 
tcl8.6-dev tk8.6-dev libreadline-gplv2-dev asciidoc dblatex docbook-xsl 
dvipng graphviz groff imagemagick inkscape python-lxml source-highlight 
texlive-extra-utils texlive-font-utils texlive-fonts-recommended 
texlive-lang-cyrillic texlive-lang-french texlive-lang-german 
texlive-lang-polish texlive-lang-spanish texlive-latex-recommended 
w3c-linkchecker xsltproc asciidoc-dblatex python-dev python-tk 
libxmu-dev libglu1-mesa-dev libgl1-mesa-dev libgtk2.0-dev intltool 
autoconf libboost-python-dev libmodbus-dev libusb-1.0-0-dev yapps2 
bwidget libtk-img tclx python-glade2 python-gtkglext1 python-xlib 
python-configobj


This removed lots of packages and install still more...

 build 
git clone git://github.com/linuxcnc/linuxcnc.git linuxcnc-dev
cd linuxcnc-dev/src
./autogen.sh
./configure --with-realtime=uspace ( try no args, first )
make
sudo make setuid
cd ..
. ./scripts/rip-environment
linuxcnc ... OK
latency-test ==> ~4000 nsec


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-12 Thread Thomas D. Dean

On 2020-02-12 13:44, Thomas D. Dean wrote:

On 2020-02-12 13:39, Thomas D. Dean wrote:

On 2020-02-12 00:03, Robert Murphy wrote:

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669 





These two URL's show Error No such package.

packages.debian.org/sid/amd64/python-gtksourceview2/download
packages.debian.org/sid/amd64/libboost-python1.62.0/download



I can not seem to catch-up with the rate of package move/removal.  Both 
of these packages have been removed from sid within the past month.




Found them in stretch.  I will try that...

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-12 Thread Thomas D. Dean

On 2020-02-12 13:39, Thomas D. Dean wrote:

On 2020-02-12 00:03, Robert Murphy wrote:

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669 





These two URL's show Error No such package.

packages.debian.org/sid/amd64/python-gtksourceview2/download
packages.debian.org/sid/amd64/libboost-python1.62.0/download



I can not seem to catch-up with the rate of package move/removal.  Both 
of these packages have been removed from sid within the past month.


Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-12 Thread Thomas D. Dean

On 2020-02-12 00:03, Robert Murphy wrote:

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669 





These two URL's show Error No such package.

packages.debian.org/sid/amd64/python-gtksourceview2/download
packages.debian.org/sid/amd64/libboost-python1.62.0/download

How do I access sid packages?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-12 Thread Thomas D. Dean

On 2020-02-12 00:03, Robert Murphy wrote:

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669 





I saw this last night.  I plan to try this, today.

Thanks,
Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-12 Thread Robert Murphy

Have you seen this on the forums

https://forum.linuxcnc.org/gmoccapy/36942-debian-10-dependencies?start=10#149669

On 12/2/20 2:24 pm, Thomas D. Dean wrote:

On 2020-02-05 01:57, andy pugh wrote:

On Wed, 5 Feb 2020 at 04:25, Thomas D. Dean 
wrote:


How do I do a clean install of buster rtai and llinuxcnc?


Experimental at the moment. But:
1) Install Buster
2) Download the .debs at www.linuxcnc.org/temp
3) Install the Linux-image and Linux-headers debs
  sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb
  sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb
4) Reboot and choose the new kernel in the grub menu.
5) Install the remaining .debs

This will give you a version of 2.8 that is a few months old. Buster
is currently being trained to build preemp-rt versions on Buster.



I did this and failed.  There are unmet dependencies.

I installed Debian 10 from debian-10.3.0-amd64-netinst.iso
Boot Debian 10 - OK
sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb - OK
sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb - OK
Boot linux-image-4.14.148-rtai-amd64 - There seems to be some problem
  with the gnome display.  I had to use ctrl-alt-f2 and then alt-f1 to
  get the display to start.  This problem repeated on subsequent boots.

# uname -a
Linux sherline 4.14.148-rtai-amd64 #2 SMP PREEMPT Sat Nov 9 16:29:10
GMT 2019 x86_64 GNU/Linux

# sudo apt-get install ./linuxcnc_2.8.0~pre1_amd64.deb \
   ./linuxcnc-dev_2.8.0~pre1_amd64.deb
...
 linuxcnc : Depends: libboost-python1.62.0 but it is not installable
    Depends: python-gtksourceview2 but it is not installable
    Depends: python-vte but it is not installable
    Recommends: hostmot2-firmware-all but it is not installable
 linuxcnc-dev : Depends: yapps2-runtime but it is not installable

These packages do not seem to be in the Debian 10 repository,
including contrib and non-free.  They were installed when the .deb
files were generated.

Where are they?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-11 Thread Thomas D. Dean

On 2020-02-05 01:57, andy pugh wrote:

On Wed, 5 Feb 2020 at 04:25, Thomas D. Dean  wrote:


How do I do a clean install of buster rtai and llinuxcnc?


Experimental at the moment. But:
1) Install Buster
2) Download the .debs at www.linuxcnc.org/temp
3) Install the Linux-image and Linux-headers debs
  sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb
  sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb
4) Reboot and choose the new kernel in the grub menu.
5) Install the remaining .debs

This will give you a version of 2.8 that is a few months old. Buster
is currently being trained to build preemp-rt versions on Buster.



I did this and failed.  There are unmet dependencies.

I installed Debian 10 from debian-10.3.0-amd64-netinst.iso
Boot Debian 10 - OK
sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb - OK
sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb - OK
Boot linux-image-4.14.148-rtai-amd64 - There seems to be some problem
  with the gnome display.  I had to use ctrl-alt-f2 and then alt-f1 to
  get the display to start.  This problem repeated on subsequent boots.

# uname -a
Linux sherline 4.14.148-rtai-amd64 #2 SMP PREEMPT Sat Nov 9 16:29:10 GMT 
2019 x86_64 GNU/Linux


# sudo apt-get install ./linuxcnc_2.8.0~pre1_amd64.deb \
   ./linuxcnc-dev_2.8.0~pre1_amd64.deb
...
 linuxcnc : Depends: libboost-python1.62.0 but it is not installable
Depends: python-gtksourceview2 but it is not installable
Depends: python-vte but it is not installable
Recommends: hostmot2-firmware-all but it is not installable
 linuxcnc-dev : Depends: yapps2-runtime but it is not installable

These packages do not seem to be in the Debian 10 repository, including 
contrib and non-free.  They were installed when the .deb files were 
generated.


Where are they?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-09 Thread Thomas D. Dean

On 2020-02-08 20:50, R C wrote:

I saw linuxcnc 2.9.x mentioned a few times.


where can it be downloaded from?


thanks,


I was building from sources.

Next week, I have time to try it again.  Need to repair my computer, 
first...


Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-08 Thread Phill Carter



> On 9 Feb 2020, at 3:50 pm, R C  wrote:
> 
> I saw linuxcnc 2.9.x mentioned a few times.
2.9 is the development branch so it is being constantly changed
2.8 will be the next official release, it is currently having the final touches 
done
2.7 is the stable release branch 
> 
> 
> where can it be downloaded from?
You could follow the instructions here 
>

> 
> 
> thanks,
> 
> 
> Ron
> 
> On 2/4/20 9:23 PM, Thomas D. Dean wrote:
>> On 2020-02-04 07:40, Stuart Stevenson wrote:
>>> A number of years ago (circa 2000) I
>>> experienced problems with updating to a new version of Linux. This was on
>>> SuSe and Redhat. You can never be sure what is broken but you can always be
>>> sure something is broken. I always do a clean install now.
>> 
>> How do I do a clean install of buster rtai and llinuxcnc?
>> 
>> Tom Dean
>> 
>> 
>> ___
>> Emc-users mailing list
>> Emc-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/emc-users
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-08 Thread R C

I saw linuxcnc 2.9.x mentioned a few times.


where can it be downloaded from?


thanks,


Ron

On 2/4/20 9:23 PM, Thomas D. Dean wrote:

On 2020-02-04 07:40, Stuart Stevenson wrote:

A number of years ago (circa 2000) I
experienced problems with updating to a new version of Linux. This 
was on
SuSe and Redhat. You can never be sure what is broken but you can 
always be

sure something is broken. I always do a clean install now.


How do I do a clean install of buster rtai and llinuxcnc?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-05 Thread Thomas D. Dean

On 2020-02-05 01:57, andy pugh wrote:

On Wed, 5 Feb 2020 at 04:25, Thomas D. Dean  wrote:


How do I do a clean install of buster rtai and llinuxcnc?


Experimental at the moment. But:
1) Install Buster
2) Download the .debs at www.linuxcnc.org/temp
3) Install the Linux-image and Linux-headers debs
  sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb
  sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb
4) Reboot and choose the new kernel in the grub menu.
5) Install the remaining .debs

This will give you a version of 2.8 that is a few months old. Buster
is currently being trained to build preemp-rt versions on Buster.



That is what  I did.  Thanks for your work.  I will get back to this, soon.

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-05 Thread andy pugh
On Wed, 5 Feb 2020 at 04:25, Thomas D. Dean  wrote:

> How do I do a clean install of buster rtai and llinuxcnc?

Experimental at the moment. But:
1) Install Buster
2) Download the .debs at www.linuxcnc.org/temp
3) Install the Linux-image and Linux-headers debs
 sudo apt-get install ./linux-image-4.14.148-rtai-amd64.deb
 sudo apt-get install ./linux-headers-4.14.148-rtai-amd64.deb
4) Reboot and choose the new kernel in the grub menu.
5) Install the remaining .debs

This will give you a version of 2.8 that is a few months old. Buster
is currently being trained to build preemp-rt versions on Buster.

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-05 Thread Gregg Eshelman via Emc-users
A PCI Express SATA II card with 4 ports can be bought pretty cheaply. PCI SATA 
cards can be found for around $15 for SATA 1.0 and a bit higher for SATA II, 
but they'll bottleneck SATA II devices.

Found something I thought would never exist, and it's at a totally not stupidly 
insane price, 2 and 4 port USB 3.0 cards for PCI. Seriously? Just ONE USB 3.0 
port with a decently fast drive connected would be more than the PCI bus can 
handle, but Newegg has a 2 port for $47 and a 4 port for $65. Why would a 
company make something that pointless but not a dual USB-C port ExpressCard for 
laptops? ExpressCard has PCI Express x1 and there are tons of dual port USB-C 
PCIe x1 cards for desktops.

On Tuesday, February 4, 2020, 10:34:05 PM MST, Thomas D. Dean 
 wrote:  
It will be some time before I get back to this.  My old MB only has two 
SATA connections.  One is a DVD.  I have been physically changing disk 
drives to get a usable  system or to test buster.  I damaged a cable 
today, my last spare...

I have wheezy on one disk and buster on another.  Today I tried putting 
wheezy as the boot drive and buster in place of the DVD connection. 
Boot OK.  Update-grub failed.  Seems that wheezy can not read the buster 
disk.  Metadata checksum problem.  I want wheezy to be the default boot. 
  When I get time, I will reverse the disk drives and see if buster can 
read the wheezy disk.  
___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-04 Thread Thomas D. Dean

On 2020-02-03 03:34, andy pugh wrote:

On Mon, 3 Feb 2020 at 07:07, Thomas D. Dean  wrote:


The hang was on initial linuxcnc startup.  No toolpath was loaded.


I can only think of a few possibilities. (I am not saying that there
are not many others, I am saying that my imagination is limited)

One obvious difference between running LinuxCNC and not running
LinuxCNC is starting the realtime subsystem.
To check this:
Does the LinuxCNC latency test run?
Does the RTAI-provided latency test run? (probably in
/usr/realtime/testsuite/kernel/ I am not at a LinuxCNC machine right
now to check)

It might be graphics, Axis uses OpenGL.
Does glxgears work?
Does LinuxCNC also crash of you use a non-GL GUI such as tklinuxcnc or
Touchy? (sim configs exist to test this)



It will be some time before I get back to this.  My old MB only has two 
SATA connections.  One is a DVD.  I have been physically changing disk 
drives to get a usable  system or to test buster.  I damaged a cable 
today, my last spare...


I have wheezy on one disk and buster on another.  Today I tried putting 
wheezy as the boot drive and buster in place of the DVD connection. 
Boot OK.  Update-grub failed.  Seems that wheezy can not read the buster 
disk.  Metadata checksum problem.  I want wheezy to be the default boot. 
 When I get time, I will reverse the disk drives and see if buster can 
read the wheezy disk.


Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-04 Thread Thomas D. Dean

On 2020-02-04 07:40, Stuart Stevenson wrote:

A number of years ago (circa 2000) I
experienced problems with updating to a new version of Linux. This was on
SuSe and Redhat. You can never be sure what is broken but you can always be
sure something is broken. I always do a clean install now.


How do I do a clean install of buster rtai and llinuxcnc?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-04 Thread Stuart Stevenson
A number of years ago (circa 2000) I
experienced problems with updating to a new version of Linux. This was on
SuSe and Redhat. You can never be sure what is broken but you can always be
sure something is broken. I always do a clean install now.
I haven't tried it on any current version and don't intend to. There is
always someone complaining about the version update killing some function
and a clean install magically fixing it.
Then you have Windows helpfully updating your software even when you
thought you had all the (DO NOT UPDATE) boxes ticked.
The QNX and OpenCNC install ran from 1997 thru 2017 and was shut down
because the machine was sold. It was never updated and not on the internet.
The only problem I remember was chips accumulated between the pendant face
and the CRT touchscreen. This caused some strange actions/reactions. A
cleaning and silicon seal fixed that.
Jon's comment about not updating a running machine is right on the button.
Regards
Stuart

On Mon, Feb 3, 2020, 11:01 AM N  wrote:

> In synaptic, the dialog about where to get packages on the tab updates,
> there is text "buster/updates" and "buster-updates" so I guess it must be
> buster. /proc/version claim it is (Debian 8.3.0-6)
>
>
> > On 2020-02-02 22:06, N wrote:
> >
> > > Pretty sure I use buster on several machines.
> > >
> >
> > You use linuxcnc with buster?
> >
> > Tom Dean
> >
> >
> > ___
> > Emc-users mailing list
> > Emc-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/emc-users
>
>
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users
>

___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-03 Thread N
In synaptic, the dialog about where to get packages on the tab updates, there 
is text "buster/updates" and "buster-updates" so I guess it must be buster. 
/proc/version claim it is (Debian 8.3.0-6)


> On 2020-02-02 22:06, N wrote:
> 
> > Pretty sure I use buster on several machines.
> > 
> 
> You use linuxcnc with buster?
> 
> Tom Dean
> 
> 
> ___
> Emc-users mailing list
> Emc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-users


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-03 Thread andy pugh
On Mon, 3 Feb 2020 at 07:07, Thomas D. Dean  wrote:

> The hang was on initial linuxcnc startup.  No toolpath was loaded.

I can only think of a few possibilities. (I am not saying that there
are not many others, I am saying that my imagination is limited)

One obvious difference between running LinuxCNC and not running
LinuxCNC is starting the realtime subsystem.
To check this:
Does the LinuxCNC latency test run?
Does the RTAI-provided latency test run? (probably in
/usr/realtime/testsuite/kernel/ I am not at a LinuxCNC machine right
now to check)

It might be graphics, Axis uses OpenGL.
Does glxgears work?
Does LinuxCNC also crash of you use a non-GL GUI such as tklinuxcnc or
Touchy? (sim configs exist to test this)

-- 
atp
"A motorcycle is a bicycle with a pandemonium attachment and is
designed for the especial use of mechanical geniuses, daredevils and
lunatics."
— George Fitch, Atlanta Constitution Newspaper, 1912


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-03 Thread Rafael Skodlar

On 2020-02-02 17:00, Jon Elson wrote:

On 02/02/2020 05:04 PM, Thomas D. Dean wrote:

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in place.  
Until today, it has worked, mostly.  Before today, about 2x per week 
it would freeze and I had to cycle power to get it working.  Now, 
linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just keep working 
if you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has too 
short a period.  Try increasing

the BASE_THREAD period in the .ini file and see if that fixes it.



I changed the BASE_THREAD period by a factor of 10x then 100x, with 
the same result.


The OS seems to run fine.  I did:
> cd RTAI/linuxcnc
> git pull
> cd src
> make clean
> make
> sudo make setuid

All this went OK.  Elapsed time 20 min, or so.

OK, so ONLY your GUI is freezing?  One other thing is if you load a very 
long and complex toolpath, then the

3D preview window can lock up for a long time.

Jon
Perfect example of poor design where the OS with RT kernel is configured 
with all the software needed for GUI and multimedia!


It took me 20 minutes to install linuxcnc-2.7-wheezy.iso in virtual 
machine. It's not the same as on bare metal of course but most things 
should work under such circumstances.
Linux linuxcnc 3.4-9-rtai-686-pae #1 SMP PREEMPT Debian 3.4.55-4linuxcnc 
i686 GNU/Linux


rs@linuxcnc:~$ lsmod | wc -l
83
one a set of modules is sound related
snd_intel8x0
snd_ac97_codec,snd_intel8x0,snd_timer,snd_pcm,snd_seq,snd_seq_device
Default installation has sound modules active on CNC?

LinuxCNC program started fine. I was able to power it on.
When I started milling test axis.ngc it failed due to RT error. Not a 
surprise for a VM. I was watching a TV program on my workstation 
connected to Silicon Dust box over the network at the same time as VM 
was running. As soon as I turned the TV app VLC off I was able to start 
virtual CNC milling. Amazing how many things can be done on one system.


I poked around CNC kern.log and other logs. It's easy to see that there 
is a lot of useful information for troubleshooting.


--
Rafael


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Thomas D. Dean

On 2020-02-02 17:00, Jon Elson wrote:

On 02/02/2020 05:04 PM, Thomas D. Dean wrote:

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in place.  
Until today, it has worked, mostly.  Before today, about 2x per week 
it would freeze and I had to cycle power to get it working.  Now, 
linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just keep working 
if you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has too 
short a period.  Try increasing

the BASE_THREAD period in the .ini file and see if that fixes it.



I changed the BASE_THREAD period by a factor of 10x then 100x, with 
the same result.


The OS seems to run fine.  I did:
> cd RTAI/linuxcnc
> git pull
> cd src
> make clean
> make
> sudo make setuid

All this went OK.  Elapsed time 20 min, or so.

OK, so ONLY your GUI is freezing?  One other thing is if you load a very 
long and complex toolpath, then the

3D preview window can lock up for a long time.



The hang was on initial linuxcnc startup.  No toolpath was loaded.  The 
machine was hung, the clock was not updating, the mouse pointer would 
not move, the machine did not respond to the keyboard (ctrl-alt-f3, 
etc), the machine did not respond to pings.


Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Thomas D. Dean

On 2020-02-02 22:06, N wrote:


Pretty sure I use buster on several machines.



You use linuxcnc with buster?

Tom Dean


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread N
> On 2020-02-01 20:46, Jon Elson wrote:
> > On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
> >> I have been using linuxcnc 2.9.0~Pre0 from sources, run in place.  
> >> Until today, it has worked, mostly.  Before today, about 2x per week 
> >> it would freeze and I had to cycle power to get it working.  Now, 
> >> linuxcnc freezes.
> >>
> > Does it ONLY freeze when LinuxCNC is running?  But, just keep working if 
> > you DON'T start LinuxCNC?
> > In that case, the most likely problem is the BASE_THREAD has too short a 
> > period.  Try increasing
> > the BASE_THREAD period in the .ini file and see if that fixes it.
> > 
> 
> I changed the BASE_THREAD period by a factor of 10x then 100x, with the 
> same result.

Had similar problems and removed graphics card, used the builtin instead and it 
started to work.

Pretty sure I use buster on several machines.


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Thomas D. Dean

On 2020-02-02 17:02, Jon Elson wrote:

On 02/02/2020 06:32 PM, Sebastian Kuzminsky wrote:


So the problem started right after you upgraded to the new RTAI kernel?

That's where I'd look for a problem first.


Ohhh!  I NEVER, EVER, update the kernel on a LinuxCNC system. In 
fact, I NEVER update the kernel on
ANY Linux system that has any custom or special drivers on it, as then 
the drivers can get out of sync

with the kernel.

If you want a new kernel for some reason, then it is best to just 
re-install the whole system.


My problem started AFTER I used 'apt --fix-broken install'.  Since then, 
I have nothing that worked.  I used linuxcnc for at least a month after 
I started using the git build.+



History, Starting in late November and early December:
1.  Install stretch
2.  Upgrade to buster, as noted in earlier posts.
3.  Git clone ...
4.  Install depends
5.  configure and build.
After this, I DID NOT upgrade the kernel.  linuxcnc worked OK, for at 
least a month.


= New Installation of linuxcnc 
I installed linuxcnc 'stretch' from the iso.  'Wheezy' has too much jitter.
I installed a new disk drive and installed to it.  After the install, I 
upgraded linuxcnc from 1:2.7.14 to 1:2.7.15 via apt.


Linuxcnc 1:2.7.15 'wheezy' works fine.
Max Jitter:
Servo 4727
Base  8773

Tom Dean



___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Jon Elson

On 02/02/2020 06:32 PM, Sebastian Kuzminsky wrote:


So the problem started right after you upgraded to the new 
RTAI kernel?


That's where I'd look for a problem first.


Ohhh!  I NEVER, EVER, update the kernel on a LinuxCNC 
system. In fact, I NEVER update the kernel on
ANY Linux system that has any custom or special drivers on 
it, as then the drivers can get out of sync

with the kernel.

If you want a new kernel for some reason, then it is best to 
just re-install the whole system.


Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Jon Elson

On 02/02/2020 05:04 PM, Thomas D. Dean wrote:

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run 
in place.  Until today, it has worked, mostly.  Before 
today, about 2x per week it would freeze and I had to 
cycle power to get it working.  Now, linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just 
keep working if you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD 
has too short a period.  Try increasing
the BASE_THREAD period in the .ini file and see if that 
fixes it.




I changed the BASE_THREAD period by a factor of 10x then 
100x, with the same result.


The OS seems to run fine.  I did:
> cd RTAI/linuxcnc
> git pull
> cd src
> make clean
> make
> sudo make setuid

All this went OK.  Elapsed time 20 min, or so.

OK, so ONLY your GUI is freezing?  One other thing is if you 
load a very long and complex toolpath, then the

3D preview window can lock up for a long time.

Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Sebastian Kuzminsky

On 2/1/20 10:23 PM, Thomas D. Dean wrote:

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in place. 
Until today, it has worked, mostly.  Before today, about 2x per week 
it would freeze and I had to cycle power to get it working.  Now, 
linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just keep working 
if you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has too short 
a period.  Try increasing

the BASE_THREAD period in the .ini file and see if that fixes it.



This has been working for several months.  Today, I used
   apt --fix-broken install
which removed the (broken?) linuxcnc package and now I have this problem.

I initially installed from a DVD, linuxcnc 2.7.14, in Oct 2019.  Then, 
upgraded to buster.


Is it possible something from linuxcnc* or linuxcnc-dev* needed for 
running from the git sources?  I use run-in-place.


Tom Dean

= upgrade to buster 
cd ~/RTAI
wget http://www.linuxcnc.org/temp/linux-headers-4.14.148-rtai-amd64.deb
wget http://www.linuxcnc.org/temp/linux-image-4.14.148-rtai-amd64.deb
wget http://www.linuxcnc.org/temp/linuxcnc-dev_2.8.0~pre1_amd64.deb
wget http://www.linuxcnc.org/temp/linuxcnc-doc-en_2.8.0~pre1_all.deb
wget http://www.linuxcnc.org/temp/linuxcnc_2.8.0~pre1_amd64.deb
wget 
http://www.linuxcnc.org/temp/rtai-modules-4.14.148_5.2.3-linuxcnc_amd64.deb


sudo bash
  cd /etc/apt
  mv sources.list sources.list.bak
  cat sources.list.bak | sed 's/stretch/buster/g' > sources.list
exit

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
hostnamectl

sudo reboot

cd ~/RTAI

sudo apt-get install linux-image-4.14.148-rtai-amd64.deb
sudo apt-get install linux-headers-4.14.148-rtai-amd64.deb
sudo apt-get install rtai-modules-4.14.148_5.2.3-linuxcnc_amd64.deb
sudo apt-get install linuxcnc_2.8.0~pre1_amd64.deb
sudo apt-get install linuxcnc-dev_2.8.0~pre1_amd64.deb
sudo apt-get install linuxcnc-doc-en_2.8.0~pre1_all.deb


So the problem started right after you upgraded to the new RTAI kernel?

That's where I'd look for a problem first.


--
Sebastian Kuzminsky


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-02 Thread Thomas D. Dean

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in place.  
Until today, it has worked, mostly.  Before today, about 2x per week 
it would freeze and I had to cycle power to get it working.  Now, 
linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just keep working if 
you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has too short a 
period.  Try increasing

the BASE_THREAD period in the .ini file and see if that fixes it.



I changed the BASE_THREAD period by a factor of 10x then 100x, with the 
same result.


The OS seems to run fine.  I did:
> cd RTAI/linuxcnc
> git pull
> cd src
> make clean
> make
> sudo make setuid

All this went OK.  Elapsed time 20 min, or so.

Tom Dean




___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-01 Thread Thomas D. Dean

On 2020-02-01 20:46, Jon Elson wrote:

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in place.  
Until today, it has worked, mostly.  Before today, about 2x per week 
it would freeze and I had to cycle power to get it working.  Now, 
linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just keep working if 
you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has too short a 
period.  Try increasing

the BASE_THREAD period in the .ini file and see if that fixes it.



This has been working for several months.  Today, I used
  apt --fix-broken install
which removed the (broken?) linuxcnc package and now I have this problem.

I initially installed from a DVD, linuxcnc 2.7.14, in Oct 2019.  Then, 
upgraded to buster.


Is it possible something from linuxcnc* or linuxcnc-dev* needed for 
running from the git sources?  I use run-in-place.


Tom Dean

= upgrade to buster 
cd ~/RTAI
wget http://www.linuxcnc.org/temp/linux-headers-4.14.148-rtai-amd64.deb
wget http://www.linuxcnc.org/temp/linux-image-4.14.148-rtai-amd64.deb
wget http://www.linuxcnc.org/temp/linuxcnc-dev_2.8.0~pre1_amd64.deb
wget http://www.linuxcnc.org/temp/linuxcnc-doc-en_2.8.0~pre1_all.deb
wget http://www.linuxcnc.org/temp/linuxcnc_2.8.0~pre1_amd64.deb
wget 
http://www.linuxcnc.org/temp/rtai-modules-4.14.148_5.2.3-linuxcnc_amd64.deb


sudo bash
 cd /etc/apt
 mv sources.list sources.list.bak
 cat sources.list.bak | sed 's/stretch/buster/g' > sources.list
exit

sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
hostnamectl

sudo reboot

cd ~/RTAI

sudo apt-get install linux-image-4.14.148-rtai-amd64.deb
sudo apt-get install linux-headers-4.14.148-rtai-amd64.deb
sudo apt-get install rtai-modules-4.14.148_5.2.3-linuxcnc_amd64.deb
sudo apt-get install linuxcnc_2.8.0~pre1_amd64.deb
sudo apt-get install linuxcnc-dev_2.8.0~pre1_amd64.deb
sudo apt-get install linuxcnc-doc-en_2.8.0~pre1_all.deb


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users


Re: [Emc-users] Linuxcnc 2.9.0 hangs

2020-02-01 Thread Jon Elson

On 02/01/2020 08:35 PM, Thomas D. Dean wrote:
I have been using linuxcnc 2.9.0~Pre0 from sources, run in 
place.  Until today, it has worked, mostly.  Before today, 
about 2x per week it would freeze and I had to cycle power 
to get it working.  Now, linuxcnc freezes.


Does it ONLY freeze when LinuxCNC is running?  But, just 
keep working if you DON'T start LinuxCNC?
In that case, the most likely problem is the BASE_THREAD has 
too short a period.  Try increasing
the BASE_THREAD period in the .ini file and see if that 
fixes it.


Jon


___
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users