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