Advanced Search

Search Results (Searched for: )

  • rodw
  • rodw's Avatar
07 Jan 2026 22:50
Replied by rodw on topic Installing ethercat repositories

Installing ethercat repositories

Category: EtherCAT

There are still some reasons why its necessary to build the Ethercat master from source which is pretty easy anyway. In that case, go to the etherlab site, get their source and read their instructions in the PDF instructions
etherlab.org/en_GB/ethercat

@NIckH, the Etherlab repository also hosts the latest Ethercat hal driver thanks to Scott Laird. So it is possible to install everything without building anything!
  • unknown
  • unknown
07 Jan 2026 21:51

RPi GPIO .hal and .ini from scratch, without hardware, should the GUI open?

Category: Basic Configuration

First thing I'd do is disable SPi if you haven't already.
Qtdragon and software step generation may not be the best combination, the RPi4 is not the most powerful.
For some reason you are missing a library as per "can not open shared library".
WORKINGDIRECTORY may not be correct either.
If you go to the big thread regarding the image, it's a sticky, there is a basic working config, that uses axis as the GUI. I would try working with that to begin with.
This a link to an index to the big thread.
forum.linuxcnc.org/38-general-linuxcnc-q...official-images-only
  • andypugh
  • andypugh's Avatar
07 Jan 2026 21:49
Replied by andypugh on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Do you _need_ RTAI? What is your latency with preempt-rt?
  • strawberry.blondish
  • strawberry.blondish
07 Jan 2026 20:52

RPi GPIO .hal and .ini from scratch, without hardware, should the GUI open?

Category: Basic Configuration

Forgive me, these are my files that were supposed to be attached to my thread.

The demo .hal file using hal_pi_gpio:
 

File Attachment:

File Name: hal_pi_gpi...1-07.hal
File Size:2 KB


The instructions I translated into english to learn how to configure .hal file:
 

This browser does not support PDFs. Please download the PDF to view it: Download PDF



My personal .hal and .ini file:
 

File Attachment:

File Name: my-rpigpio...1-07.hal
File Size:3 KB
 

File Attachment:

File Name: my-rpigpio...1-07.ini
File Size:3 KB


My pinout:
 
 
  • NickH
  • NickH
07 Jan 2026 19:49
Replied by NickH on topic Installing ethercat repositories

Installing ethercat repositories

Category: EtherCAT

I stand corrected, and somewhat outdated!
  • tommylight
  • tommylight's Avatar
07 Jan 2026 19:47
Replied by tommylight on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

From your error report:
malloc(): unsorted double linked list corrupted
And the subsequent "segfault" (segmentation fault), both pointing at something wrong with memory or memory subsystem, but from experience, RTAI can and will report that sometimes on some hardware despite memory being OK.
Some tips:
-if the PC has more than one memory module, yank all but one out and test them one by one, see if it crashes
-if you have another PC, yank the HDD from this one and plug it on the other one, see if it crashes.
  • tommylight
  • tommylight's Avatar
07 Jan 2026 19:41
Replied by tommylight on topic Installing ethercat repositories

Installing ethercat repositories

Category: EtherCAT

It will not work from the downloaded ISO file.

It does work, RodW did a lot of work for that to work
forum.linuxcnc.org/ethercat/45336-etherc...-how-to-step-by-step
  • NickH
  • NickH
07 Jan 2026 19:33 - 07 Jan 2026 19:34
Replied by NickH on topic Installing ethercat repositories

Installing ethercat repositories

Category: EtherCAT

Tntmold: I think you have to build LinuxCNC from source for an Ethercat install, then build Ethercat master. It will not work from the downloaded ISO file.
Build from a Debian13 Netinstall(or full) image.
  • cnbbom
  • cnbbom
07 Jan 2026 19:07
Replied by cnbbom on topic New and Working RTAI debs for 2.9

New and Working RTAI debs for 2.9

Category: Installing LinuxCNC

Happy 2026 to all.
Please inform me what kind of error this is when starting linuxcnc Rtai debian13



Print file information:
RUN_IN_PLACE=no
LINUXCNC_DIR=
LINUXCNC_BIN_DIR=/usr/bin
LINUXCNC_TCL_DIR=/usr/lib/tcltk/linuxcnc
LINUXCNC_SCRIPT_DIR=
LINUXCNC_RTLIB_DIR=/usr/realtime-5.4.290-rtai-amd64/modules/linuxcnc
LINUXCNC_CONFIG_DIR=
LINUXCNC_LANG_DIR=/usr/lib/tcltk/linuxcnc/msgs
INIVAR=inivar
HALCMD=halcmd
LINUXCNC_EMCSH=/usr/bin/wish8.6
LINUXCNC - 2.9.8
Machine configuration directory is '/home/cnc3axis/linuxcnc/configs/my-mill'
Machine configuration file is 'my-mill.ini'
INIFILE=/home/cnc3axis/linuxcnc/configs/my-mill/my-mill.ini
VERSION=1.1
PARAMETER_FILE=linuxcnc.var
TPMOD=
HOMEMOD=
TASK=milltask
HALUI=
DISPLAY=axis
COORDINATES=X Y Z
KINEMATICS=trivkins coordinates=XYZ
Starting LinuxCNC...
Starting LinuxCNC server program: linuxcncsvr
Loading Real Time OS, RTAPI, and HAL_LIB modules
Starting LinuxCNC IO program: io
linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod
Found file(REL): ./my-mill.hal
Found file(REL): ./custom.hal
Starting TASK program: milltask
Starting DISPLAY program: axis
Shutting down and cleaning up LinuxCNC...
task: 173 cycles, min=0.000004, max=0.013482, avg=0.009198, 0 latency excursions (> 10x expected cycle time of 0.010000s)
Removing HAL_LIB, RTAPI, and Real Time OS modules
Removing NML shared memory segments

Debug file information:
note: MAXV     max: 137.000 units/sec 8220.000 units/min
note: LJOG     max: 137.000 units/sec 8220.000 units/min
note: LJOG default: 13.700 units/sec 822.000 units/min
note: jog_order='XYZ'
note: jog_invert=set()
2950
malloc(): unsorted double linked list corrupted
3020
Stopping realtime threads
Unloading hal components

Kernel message information:
[  402.698255] I-pipe: head domain RTAI registered.
[  402.698257] RTAI[hal]: mounted. ISOL_CPUS_MASK: 0.
[  402.698259] SYSINFO - # CPUs: 4, TIMER NAME: 'lapic-deadline', TIMER IRQ: 4355, TIMER FREQ: 424048632, CLOCK NAME: 'tsc', CLOCK FREQ: 3392293000, CPU FREQ: 3392293000, LINUX TIMER IRQ: 4355.
[  402.702297] RTAI[malloc]: global heap size = 2097152 bytes, <BSD>.
[  402.702324] kstacks pool size = 524288 bytes
[  402.702325] RTAI[sched]: hard timer type/freq = lapic-deadline/424048632(Hz)
[  402.702325] linear timed lists.
[  402.702326] RTAI[sched]: Linux timer freq = 250 (Hz), TimeBase freq = 3392293000 hz.
[  402.702326] RTAI[sched]: timer setup = 90 ns, resched latency = 0 ns.
[  402.715421] USERMODE CHECK: OK.
[  402.715422] USERMODE CHECK PROVIDED (ns): KernelLatency 1165, UserLatency 1867.
[  402.715423] FINAL CALIBRATION SUMMARY (ns): KernelLatency 1165, UserLatency 1867.
[  402.719591] RTAI[math]: loaded integrated musl libm version 1.2.3.
[  402.760494] config string '0 out'


  =====>>   [  403.068800] xfdesktop[871]: segfault at 18 ip 00007fe8f41d7dd7 sp 00007ffd5fbed7e0 error 4 in libc.so.6[7fe8f4161000+165000]

[  403.068814] Code: dd 07 00 48 83 ec 08 48 8b 4f 08 48 89 c8 48 83 e0 f8 48 3b 04 07 0f 85 a9 00 00 00 f3 0f 6f 47 10 48 8b 57 18 66 48 0f 7e c0 <48> 3b 78 18 75 7b 48 3b 7a 10 75 75 48 8b 77 10 48 89 50 18 66 0f


 =======>>    [  404.365328] axis[3055]: segfault at 0 ip 0000000000530730 sp 00007fff6a8ab700 error 6 in python3.13[420000+31f000]


[  404.365333] Code: 41 54 55 48 89 fd 53 48 83 ec 18 48 8b 57 f0 48 85 d2 0f 84 32 02 00 00 48 8b 4f f8 48 8b 42 08 48 83 e1 fc 83 e0 03 48 09 c8 <48> 89 11 48 89 42 08 48 c7 47 f0 00 00 00 00 48 83 67 f8 01 64 4c
[  406.905822] RTAI[math]: unloaded.
[  406.960250] SCHED releases registered named ALIEN PEDV$D
[  406.961994] RTAI[malloc]: unloaded.
[  407.068242] RTAI[sched]: unloaded (forced hard/soft/hard transitions: traps 0, syscalls 0).
[  407.086079] I-pipe: head domain RTAI unregistered.
[  407.086083] RTAI[hal]: unmounted.
  • vibram
  • vibram
07 Jan 2026 18:48
Replied by vibram on topic Spindle Encoder: Float Precision Issues

Spindle Encoder: Float Precision Issues

Category: HAL

Hello Daniel,I have exactly the same setup as you.
Do you mind sharing your Hal and ini file for this specific parts please? It would save me a lot of time

Thank you in advance
  • strawberry.blondish
  • strawberry.blondish
07 Jan 2026 17:41

RPi GPIO .hal and .ini from scratch, without hardware, should the GUI open?

Category: Basic Configuration

Hello guys!

I have been trying to switch over from an online system with GRBL Teensy 4.1 with ioSender to a Raspberry Pi 4B LinuxCNC configuration for an 3-axis milling machine. The tricky part is that I am trying to make a configuration that uses the GPIO pins from the RPi instead of using a parallel port hat or a Mesa board. I am an absolute noob, with this being my first post.

Going based off some instructional files I found online and demos for the few who have done this, I have gotten to where I am today. The PDF is in Italian but can be easily inserted into Google Translate. The .hal was the demo I referenced for setting up my .hal.

 
You do not have permissions to access this page.
 
You do not have permissions to access this page.


My version, rpi-4-debian-bookworm-6.12.11-arm64-ext4-2025-01-27-0404.img.xz, should have PREEMPT-RT. These are my .ini and .hal files that I have made for my 3-axis CNC machine.

 
You do not have permissions to access this page.

 
You do not have permissions to access this page.
 
You do not have permissions to access this page.


The problem is that when I run cd ~/linuxcnc/configs/my-rpigpio/ linuxcnc my-rpigpio.ini linuxcnc will tease me with the bootup screen, and then in the terminal I get this:

LINUXCNC - 2.9.4 Machine configuration directory is '/home/cnc/linuxcnc/configs/my-rpigpio' Machine configuration file is 'my-rpigpio.ini' Starting LinuxCNC... linuxcnc TPMOD=tpmod HOMEMOD=homemod EMCMOT=motmod Note: Using POSIX realtime Found file(REL): ./my-rpigpio.hal motion: dlopen: /usr/lib/linuxcnc/modules/motion.so: cannot open shared object file: No such file or directory ./my-rpigpio.hal:7: waitpid failed /usr/bin/rtapi_app motion ./my-rpigpio.hal:7: /usr/bin/rtapi_app exited without becoming ready ./my-rpigpio.hal:7: insmod for motion failed, returned -1 Shutting down and cleaning up LinuxCNC... Note: Using POSIX realtime LinuxCNC terminated with an error.  You can find more information in the log:     /home/cnc/linuxcnc_debug.txt and     /home/cnc/linuxcnc_print.txt as well as in the output of the shell command 'dmesg' and in the terminal

With none of my hardware connected, should I even be expecting the LinuxCNC GUI to open? I feel I have too much stuff in my .hal file and it may be looking for components that don't exist, and that is why my LinuxCNC GUI is not opening.
  • PCW
  • PCW's Avatar
07 Jan 2026 17:32 - 07 Jan 2026 17:32
Replied by PCW on topic El5101 possible overflow?

El5101 possible overflow?

Category: EtherCAT

There is a related thread here:

forum.linuxcnc.org/24-hal-components/581...oat-precision-issues

The conclusion is that there is not an issue.
  • NickH
  • NickH
07 Jan 2026 17:01 - 07 Jan 2026 22:29
Replied by NickH on topic Installing ethercat repositories

Installing ethercat repositories

Category: EtherCAT

Also having problems installing and building Ethercat Master. I have tried the first script at the top ofthe thread(editing Deb12 for Deb13) and the new updated script and still get SSL errors, listed below.
Linux headers are installed and latest for rt kernel.

SSL errors:
root@chewy:/home/nick/ethercat-master# make modules_install install
make -C "/usr/src/linux-headers-6.12.57+deb13-rt-amd64" M="/home/nick/ethercat-master" INSTALL_MOD_DIR="ethercat" modules_install
make[1]: Entering directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/examples/mini/ec_mini.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/master/ec_master.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/ec_generic.ko.xz
INSTALL /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
SIGN /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko
At main.c:171:
- SSL error:FFFFFFFF80000002:system library::No such file or directory: ../crypto/bio/bss_file.c:67
- SSL error:10000080:BIO routines::no such file: ../crypto/bio/bss_file.c:75
sign-file: /usr/src/linux-headers-6.12.57+deb13-common-rt/output/signing_key.pem
XZ /lib/modules/6.12.57+deb13-rt-amd64/ethercat/devices/r8169/ec_r8169.ko.xz
DEPMOD /lib/modules/6.12.57+deb13-rt-amd64
Warning: modules_install: missing 'System.map' file. Skipping depmod.
make[1]: Leaving directory '/usr/src/linux-headers-6.12.57+deb13-rt-amd64'
Making install in include
make[1]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Entering directory '/home/nick/ethercat-master/include'
make[2]: Nothing to be done for 'install-exec-am'.
/usr/bin/mkdir -p '/usr/local/include'
/usr/bin/install -c -m 644 ecrt.h ectty.h '/usr/local/include'
make[2]: Leaving directory '/home/nick/ethercat-master/include'
make[1]: Leaving directory '/home/nick/ethercat-master/include'
Making install in script
make[1]: Entering directory '/home/nick/ethercat-master/script'
make[2]: Entering directory '/home/nick/ethercat-master/script'
/usr/bin/mkdir -p '/etc'
/usr/bin/install -c -m 644 ethercat.conf '/etc'
/usr/bin/mkdir -p '/usr/local/sbin'
/usr/bin/install -c ethercatctl '/usr/local/sbin'
/usr/bin/mkdir -p '/usr/local/share/bash-completion/completions'
/usr/bin/install -c -m 644 ethercat.bash_completion '/usr/local/share/bash-completion/completions'
/usr/bin/mkdir -p '/etc/init.d'
/usr/bin/install -c init.d/ethercat '/etc/init.d'
/usr/bin/mkdir -p '/etc/sysconfig'
/usr/bin/install -c -m 644 ethercat '/etc/sysconfig'
make install-data-hook

Can anyone help me put this right please?

##Fresh start, reinstalled## 
  • PCW
  • PCW's Avatar
07 Jan 2026 16:01
Replied by PCW on topic 7i92M + 7i76 add PWM+PktUART

7i92M + 7i76 add PWM+PktUART

Category: Driver Boards

Unfortunately the serial interface on the 7I76 is RS-422 only so not suitable for Modbus
which normally requires a 2 wire (RS-485) connection.

You could add a single chip RS-485 adapter to the second 7I92 connector though.

Perhaps using a SP491 with the proper RS-485 bias resistors
 
  • PCW
  • PCW's Avatar
07 Jan 2026 15:52
Replied by PCW on topic Servos drives directly start turning

Servos drives directly start turning

Category: General LinuxCNC Questions

Encoder issue? Did you that  both encoders work?
Are they Scaled properly and in the correct direction?

Why does one joint have the scale reversed?

If the axis drifts when enabled, encoder feedback --> PID --> analog output  is not working

If the axis runs away when enabled you most likely have the feedback loop reversed

Unless both motors hold position when enable (and resist applied torque)
the feedback loop is not working and needs to be checked on part at a time
Displaying 46 - 60 out of 20387 results.
Time to create page: 0.204 seconds
Powered by Kunena Forum