Commit graph

759 commits

Author SHA1 Message Date
Hans Unzner
5b58b23bde document linuxcnc command line options 2023-01-21 11:32:26 +01:00
Steffen Moeller
3df87ab3f6 docs: misc changes while translating. 2022-12-30 16:00:27 +01:00
Sebastian Kuzminsky
7e974894ad fix zombie detection problem with procps 4.0 (sid)
Some parts of the LinuxCNC launcher scripts try to tell if specific
processes are dead by looking for them using `ps`.

Before this commit, we used to run `ps -C rtapi_app -o comm=`, which
would say `rtapi_app` if there was a healthy rtapi_app process running,
and `rtapi_app <defunct>` if there was a zombie rtapi_app.

Version 4.0 of procps now outputs just `rtapi_app` in both situations,
so our scripts can no longer tell if the rtapi_app is a zombie or not.

This commit changes our scripts to run `ps -C rtapi_app -o stat= -o
comm=`, to explicitly prefix the process with its state (`Z` for zombies,
and something else for healthy processes depending on if they're sleeping
or running or whatever).
2022-12-08 16:12:39 -07:00
Sebastian Kuzminsky
c2011bf151 Merge remote-tracking branch 'origin/2.8' into 2.9
* origin/2.8:
  Fix obsolete link to documentation in image-to-gcode(1).
  mb2hal: fix error when PIN_NAMES > 5
  return PROGRAM NONE if no program is open
  Adjusted scripts/platform-is-supported to not fail on Debian Testing and Unstable.
  githelper.sh: New master glob
  qtvcp -cam_align panel: add window size setting option
  gmoccapy: update release notes
  gmoccapy: fixed sensitizing of user tab button (#2111)
  Fix broken download link in Gmoccapy docs
  Getting Started: Update checksums (en, es, cn)
  Add firmware 7i96d_1pwm for 7i96 for PNCconf
  docs: Bump the version number in the install docs
  Fix the changelog syntax
  gmoccapy: fix error on creating file when RS274NGC_STARTUP_CODE is not set
  gmoccapy: updated changelog
  Release v2.8.4
  pncconf: add inm and outm support plus 7i96s card
  Add preliminary 7I96S support
  hm2_eth: add support for 7i96
  Fix minor outm mistrakes
  Add OutM simple output module support
2022-12-02 16:11:17 -07:00
andypugh
98fd15457c Manually apply PR #2133 to 2.9
Original Author: luz paz <luzpaz@pm.me>

Signed-off-by: andypugh <andy@bodgesoc.org>
2022-11-27 22:22:42 +00:00
Petter Reinholdtsen
7f6837a80f Adjusted scripts/platform-is-supported to not fail on Debian Testing and Unstable.
The Testing Debian distribution only get its version number returned from
lsb_release very shortly before the release, so for most of its life it
will be set to n/a like it is for Unstable.
2022-11-18 20:16:08 +01:00
andypugh
361b85a281 githelper.sh: New master glob
Signed-off-by: andypugh <andy@bodgesoc.org>
2022-11-13 17:26:58 +00:00
andypugh
11e849e2ed githelper.sh: New master glob
Signed-off-by: andypugh <andy@bodgesoc.org>
2022-11-13 17:25:20 +00:00
1b88280c30
Revert "kmod+rtai: don't unload rtai modules after initial load"
This reverts commit dc52ac2227.
2022-10-15 17:50:16 -05:00
806dce4ae7
presence of rtai modules does not indicate realtime is running 2022-10-15 15:49:22 -05:00
Steffen Moeller
2dc8a0d348 src: s/ini/INI/
s/ini/INI/ - smallish correction

Update lib/python/gladevcp/hal_gremlin.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update lib/python/gremlin_view.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update lib/python/qtvcp/widgets/adjustment_bar.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update src/hal/user_comps/vfs11_vfd/vfs11_vfd.c

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update lib/python/qtvcp/widgets/adjustment_bar.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

More 'ini' -> 'INI' in src

ini -> INI to sync tests

Update lib/python/gremlin_view.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update lib/python/qtvcp/widgets/offset_tool_button.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

s/modbus/Modbus/

Update lib/python/qtvcp/widgets/offset_tool_button.py

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update scripts/linuxcnc.in

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update src/emc/rs274ngc/interp_namedparams.cc

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

Update src/emc/usr_intf/emcsh.cc

Co-authored-by: Jérémie Tarot <silopolis@gmail.com>

docs: inifile -> INI file, etc
2022-10-11 19:04:38 +02:00
Jeff Epler
dc52ac2227
kmod+rtai: don't unload rtai modules after initial load
I couldn't determine why, but calling rt_free_timers made the
2nd and successive runs fail.  The effect of rt_free_timers should be
"undone" by rt_start_timers calling rt_request_timers, from what I could
see. But it wasn't.
2022-08-17 09:02:40 -05:00
Jeff Epler
c9d9a810d5
uspace+rtai: don't unload rtai modules
This causes a low-probability crash at runtime, due to an apparent
rtai bug.

Initially introduce this only in the path of the rarely-used
uspace+rtai configuration. However, ultimately, either we could
move towards uspace+rtai as the default configuration for rtai
kernels, or we could apply the same workaround for kmod+rtai
mode.

This also makes it necessary for Load to not error if a module
is already loaded; this can be checked very easily under the modest
assumption that /sys is mounted.
2022-08-17 09:02:40 -05:00
Jeff Epler
32afd0c585
This confuses some naive editors less 2022-08-17 09:02:40 -05:00
Petter Reinholdtsen
0831b83ad5 Revert runtest code to handle read only source tree until it work
This reverts c6b7362773 and
10bf44e6f2 which provded to not work in
all cases.
2022-08-10 23:33:26 +02:00
Petter Reinholdtsen
c6b7362773 Make sure runtests clear out temporary test directory before each test. 2022-08-09 20:07:31 +02:00
Petter Reinholdtsen
10bf44e6f2 Add simple autopkgtest check for the Debian package.
Adjust runtests scripts to work also when source tree is write
protected.
2022-07-30 07:28:11 +02:00
Dewey Garrett
e630900732 linuxcnc_info: show ofile name if no valid VIEWER 2022-07-25 11:30:54 -07:00
Petter Reinholdtsen
c9ad2ad594 Introduce runtest variable TEST_DIR pointing to the current test location.
The tests/motion/g0 test need to locate its ini file for inivar to find.
2022-07-16 21:11:12 +02:00
Petter Reinholdtsen
eeb1fc0f9f Added runtests option -u to skip test requiring sudo access
This make it easier for non-privileged users to run tests automatically.

The tests requiring sudo are flagged using a mechanism inspired by
the autopkgtest system in Debian, where a control file contain
information about the test.  All tests requiring sudo get a
'sudo' flag in the Restrictions field there.

Also add reporting on number of skipped tests at the end.
2022-07-16 09:43:34 +02:00
d21d9fdb95
Switch to built-in png loader
Since tk8.6 the ability to load png files has been built in, so libtk-img
(or tkpng) is not needed at all.
2022-06-25 09:05:12 -05:00
Petter Reinholdtsen
2de08441b8 Add build rules for po4a based documentation translation
Use 'make translateddocs' to build the translations and 'make pofiles'
to update the POT and PO files.  'make postatus' show translation
statistics.  Run 'make manpages' before updating translations to make sure
the generated manpages are available for po4a.  The translateddocs target is
now a prerequisit for the docs target, to make sure the translated files are
available when checking links in the HTML pages.

Added code to copy images into translated adoc directories.

Added po4a as new build dependency.

Require 0 translated strings to generate files, to make sure the documents are
buildable even if nothing is unfuzzied yet.

Drop translated files from docs.xml and use the same list for all languages.

This change need po4a 0.62 or newer to handle UTF-8 properly in input and
output files.  Added configure check to enforce this.
2022-06-03 15:26:30 +02:00
Sebastian Kuzminsky
a10b14d9d0 Merge remote-tracking branch 'origin/2.8' into master-merge
* origin/2.8:
  docs: make an index.html page for the PDF docs
  cosmetic fix to a configure error message
  Update for new version of Rpi400
  Update for new version of Rpi400
  docs: changed url in halshow doc
  docs: created mb2hal doc based on sample ini file
  mb2hal: added pins to manpage
  docs: fixed link
  docs: include mb2hal ini file in docs
  mb2hal: updated and fixed sample configuration
  gmoccapy: sensitize save button after 'save as'
  gmoccapy: fix detection of file change
  Update ini-config.txt
  Update ini-config.txt
  Add files via upload
  correcting submakefile for 2.8
  update
  missing in documentation for INI RS274 section
  Change EDITOR = geany. Restore more generous dirhold and dirsetup timing.
  Updated the gantry example with what I gather from the forum is best practice. 1) Reduce from 4(XYZA) to 3(XYZY) coordinate. 2) Use negative HOME_SEQUENCE values for synchronous homing of the dual Y joints. 3) Rename signals such as adir, astep to y2dir, ystep.
  full update xhc-whb04b-6 for 2.8
2022-04-30 18:15:49 -06:00
Sebastian Kuzminsky
14477fe14c docs: make an index.html page for the PDF docs 2022-04-24 10:47:14 -06:00
Greg Carl
ae7715ef65 python3: fix some lingering python2 syntax 2022-04-02 20:33:55 -04:00
Dewey Garrett
e54a8abb3e linuxcnc.in silence ini msg since default provided
for [EMCMOT]HOMEMOD, [TRAJ]TPMOD
2022-03-27 08:48:44 -07:00
Dewey Garrett
08ac87d411 motion: allow alt tp,home modules, demo comp files
Squashed commits:
===========================================================
A) halcompile.g options for homemod,tpmod
1) supply correct SYNOPSIS
2) force singleton option
===========================================================
B) homecomp.comp (example module using halcompile)
===========================================================
C) tpcomp.comp (skeleton module using halcompile)
===========================================================
D) linuxcnc.in options for alternate tp,home modules
===========================================================
E) Make: modular traj planning, homing (tpmod,homemod)
1) motmod no longer includes functions for trajectory
   planning and homing but uses exported functions
   from modules tpmod,homemod by default
2) building modules out-of-tree requires: homing.h,emcpose.h
3) sincos.c don't use config.h to allow out-of-tree build
===========================================================
docs: tp,home modules
2022-02-11 19:11:20 -07:00
Phillip Carter
0786cc1d84 latency-test: fixes for using servo-thread only.
some doc changes
2022-02-01 16:34:35 +11:00
Dewey Garrett
c5312a3030 linuxcnc.in handle whitespace in pwd with APP=
for error:  [: too many arguments
2022-01-04 09:38:28 -07:00
Dewey Garrett
bf8784634e latency-plot:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:08:34 -07:00
Dewey Garrett
271b8ab07b latency-histogram:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:08:28 -07:00
Dewey Garrett
67fb447283 halreport:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:08:11 -07:00
Dewey Garrett
e55037177c linuxcnc.in:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:08:05 -07:00
Dewey Garrett
118c35f6de linuxcnc_info.in:debian/sid deprecates which
https://lwn.net/Articles/874049/
2021-12-30 05:07:36 -07:00
luz paz
7009d49ece Fix typos in misc. source comments and docs
Found via `codespell -q 3 -S *.po,*.ts,./share,./docs/man/es,./configs/attic,*_fr.*,*_es.* -L ans,ba,bulle,componentes,doubleclick,dout,dum,fo,halp,ihs,inout,parm,parms,ser,te,ue,wille,wont`
2021-11-16 08:04:22 -05:00
Rene Hopf
9c05629c9c remove linuxcnc-python script workaround. 2021-11-09 03:27:08 +01:00
Sebastian Kuzminsky
a5b2222d70 fix a hardcoded path in runtests 2021-10-22 16:04:14 -06:00
Steffen Moeller
3810d12183 Added LSB header (addressing a lintian warning)
Please see https://wiki.debian.org/LSBInitScripts
2021-10-11 12:24:44 +02:00
80a58e1d5d remove more traces of quilt 2021-09-26 16:27:39 -05:00
Steffen
7b875bec41 simplifying debian build, manual patch application 2021-09-24 17:36:40 +02:00
Steffen
e66556a461 Build-dependencies cannot be installed, simplifying 2021-09-23 23:47:18 +02:00
0c8a0058bf use python3 in all #!python lines 2021-09-02 18:32:58 -05:00
Rene Hopf
0cb327dce1 removed references to gtk2 2021-08-30 18:21:28 +02:00
Jeff Epler
228dcc3d65 Remove traces of some unused @VARS@ in .in files 2021-08-10 10:06:01 -05:00
Jeff Epler
aeb1c09ea7 configure.in: Modernize detection of python & boost
Hopefully, this helps with autodetecting the right boost library version.
It also enforces the minimum Python version of 3.4.

This brings us deeper into the autoconf "ecosystem" so the files
config.guess et al had to be added.  Oh well!
2021-08-09 20:20:47 -05:00
Rene Hopf
86f6b61dff Merge branch 'master' into master-gtk3 2021-08-01 00:17:05 +02:00
Dewey Garrett
7447445b2f latency-test: show info for host/kernel/date
Sometimes users post screenshot without supply much info
(and may be inadvertently running a non-realtime kernel)
2021-07-10 16:57:05 -07:00
Dewey Garrett
61bf497b88 latency-test rm dead code 2021-07-10 16:57:05 -07:00
Rene Hopf
32bcd9db61 Merge branch 'master' into master-gtk3 2021-07-07 09:19:06 +02:00
Dewey Garrett
1174134cee linuxcnc.in: add '-H dirname' for halfile search
close #1197

1) linuxcnc.in new option: -H dirname
   to prepend 'dirname' to search path (HALLIB_PATH)
2) linuxcnc.in update usage() message
3) update docs: ini-config.txt
4) update docs: updating-linuxcnc.txt

Revised:
  print HALLIB_PATH when '-H dirname' used
  exit if specified dirname is invalid

Note: the dirname specified with '-H dirname' may be
absolute or relative to the working directory
where linuxcnc is invoked (not necessarily the ini
config dir).  Example:
   $ cd /tmp
   $ mkdir try
   $ echo "show pin axis.z" >|try/test.hal
   $ linuxcnc -H try /somewhere/example.ini # uses test.hal
test.hal will be found as /tmp/try/test.hal
2021-07-01 05:40:09 -07:00