Advanced Search

Search Results (Searched for: raspberry)

  • unknown
  • unknown
05 Feb 2025 11:33
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

I wonder about the drivers in the gnet folder for the RPi. Whether the drivers from 6.12.x kernel source need to be patched with the ethercat stuff and moved into the gnet folder.
  • rodw
  • rodw's Avatar
05 Feb 2025 11:29
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

. I'd get confirmation that the commit for 6.11 will work for 6.12.

It seems to be confirmed because the notes say it fixes issue #160 which is the issue I raised. 
gitlab.com/etherlab.org/ethercat/-/merge_requests/151
  • unknown
  • unknown
05 Feb 2025 11:01
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
 

I had a look at the ethercat DKMS package (extracted the package in a temporary directory, no need to do an install), and what I saw is that the source of the modules have ending with 5.14 & 6.1 before the .c .h extension (I'm guessing these are the supported kernels). I'd get confirmation that the commit for 6.11 will work for 6.12.
  • unknown
  • unknown
05 Feb 2025 10:54
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hello everyone,

I started to work with linuxcnc only a few weeks ago, when I decided to upgrade my 3d printer with A and B axis.
Because my pi4 was starting to jitter I acquired a pi5. :) As one does.. :)

I etched the image 2.94 for pi5 to an SD card. Running this image, GPIO is not working.

halcmd loadrt hal_gpio help
Note: Using POSIX realtime
Invalid parameter `help'
<commandline>:0: waitpid failed /usr/bin/rtapi_app hal_gpio
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for hal_gpio failed, returned -1
cnc@raspberrypi:~$

I dont have the knowledge to troubleshoot this. Unfortunately. Maybe somebody here know how to solve this.

kind regards,
JAiro
 

halcmd loadrt hal_gpio help
Invalid parameter `help' <<<<< this is the error from the above, Linux is pretty verbose in telling you what is wrong.

But you really need to read the man page
linuxcnc.org/docs/devel/html/drivers/hal_gpio.html

 
  • rodw
  • rodw's Avatar
05 Feb 2025 09:56
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

There is a commit pending with etherlab or the 6.11 kernel and up which also should let ethercat on 6.12 work for us.
Bjarne at etherlab is chasing it up for us internally. He has been so helpful for us along the way.
  • rodw
  • rodw's Avatar
05 Feb 2025 09:12
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

hal_gpio uses a newer method that is meant to support other ARM hardware, not just the PI. Code changes at the kernel never stops!
  • unknown
  • unknown
05 Feb 2025 08:37
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

The images provided are not generic Debian images, as generic Debian didn't support overlays.
The images we build are custom images based on Debian repo but with kernel sources from the RPi-Linux github.

The output I gave was showing that the hal_gpio driver does indeed work, the first line is loading the driver with the GPIO config as per the man page for the driver. Yes it was the current image, with the 6.12 series kernel & Linuxcnc 2.9.4.
  • KrisJ
  • KrisJ
05 Feb 2025 07:47
Replied by KrisJ on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Pardon me for not posting the errormessage encountered.
I was using hal_pi_gpio since I was under the impression from the forum that it is recommended for new projects.
Under "known bugs" on the man page it says:
*
At the moment (2023-07-16) this driver only seems to work on Raspbian as the generic Debian image does not set up the correct interfaces in /dev/gpiomem and restricts access to the /sys/mem interface.
*
The error message I got was related to access to /sys/mem. Since it was a known bug I did not save and post the error-message but instead tried going the Raspbian route.


I'm not sure what to make of your output from halrun but do you mean that you are successfully using GPIOs on a Rpi5 with hal_gpio and the downloaded "standard" img?
I'm not sure where I picked up that hal_pi_gpio was the way to go but if it works with hal_gpio I suppose that is the way to go. Thoughts?
  • unknown
  • unknown
05 Feb 2025 06:53
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Already built the Trixie image, just wanted to make sure there were no gotchas. Haven't added desktop yet, I'll do that when the base image boots from nvme drive on the Pi. Build the packages, put them up on github like before and build a full image.
Eventually this will need building once Trixie is officially released, might as well start checking if anything goes pear shaped.

I started with the most recent pull from pyavitz's repo and hoping that it's just the user script is needed to be slotted in and of course the userdata.txt I used for the Bookworm build. Oh and turn SPI on as default and just for myself as I'm probably the only one that uses midnight commander ditch the red & green defaults.

With regards to network manager, I really haven't noticed an issue with it on the RPi5 even with gnome network manager, reckon it's worth putting it in ? Another personal pref as it's easy to turn wifi on & off when needed.
Does this affect ethercat ?
  • jairobbo
  • jairobbo
05 Feb 2025 06:49
Replied by jairobbo on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Hello everyone,

I started to work with linuxcnc only a few weeks ago, when I decided to upgrade my 3d printer with A and B axis.
Because my pi4 was starting to jitter I acquired a pi5. :) As one does.. :)

I etched the image 2.94 for pi5 to an SD card. Running this image, GPIO is not working.

halcmd loadrt hal_gpio help
Note: Using POSIX realtime
Invalid parameter `help'
<commandline>:0: waitpid failed /usr/bin/rtapi_app hal_gpio
<commandline>:0: /usr/bin/rtapi_app exited without becoming ready
<commandline>:0: insmod for hal_gpio failed, returned -1
cnc@raspberrypi:~$

I dont have the knowledge to troubleshoot this. Unfortunately. Maybe somebody here know how to solve this.

kind regards,
JAiro
  • rodw
  • rodw's Avatar
05 Feb 2025 04:12
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

You could also try installing Debian Trixie from the debian image now its available
raspi.debian.net/daily-images/

Note that this will not install a desktop, just a console but it will have a preempt_rt kernel available. I did do up a doc on doing this for Debian Bullseye which will basically be the same.

docs.google.com/document/d/1S0K-UBlXnsYC...b_0/edit?usp=sharing

The name for xfce package might have changed search the debian packages for XFCE to get the right name today.
  • rodw
  • rodw's Avatar
05 Feb 2025 04:05
Replied by rodw on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Once again thanks mate.

I'm going to play around with making an RPi5 image based on Trixie\Testing so I'll give it a whirl.

You might as well use the provided image becasue you basically end up with Trixie (with 6.1.2 kernel) and 2.9.4 already installed.
  • unknown
  • unknown
05 Feb 2025 02:36
Replied by unknown on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

Once again thanks mate.

I'm going to play around with making an RPi5 image based on Trixie\Testing so I'll give it a whirl.
  • jm_mt
  • jm_mt
05 Feb 2025 01:30 - 05 Feb 2025 02:33

Ethercat installation from repositories - how to step by step

Category: EtherCAT

Is it safe to say the Linux Raspberrypi 6.12.11 #1 SMP PREEMPT_RT doesn't work with Etherlab Ethercat Master version 1.6.2. Trying to setup EtherCat on Pi5 with Debian.

I have issues starting the ethercat service.
sudo systemctl enable ethercat

Job for ethercat.service failed because the control process exited with error code.
See "systemctl status ethercat.service" and "journalctl -xeu ethercat.service" for details.

Here's what shows in the journal
Feb 05 12:13:12 raspberrypi ethercatctl[53739]: ERROR: No network cards for EtherCAT specified.
Feb 05 12:13:12 raspberrypi ethercatctl[53739]: Please edit /etc/ethercat.conf with root permissions and set MASTER0_DEVICE variable to either a network interface name (like eth0) or to a MAC addre>
Feb 05 12:13:12 raspberrypi systemd[1]: ethercat.service: Main process exited, code=exited, status=1/FAILURE

Looks like some files are missing or can't be found when trying to install the modules?
sudo make modules_install

returns

cnc@raspberrypi:~/ethercat$ sudo make modules_install make -C "/usr/src/linux-headers-6.12.11" M="/home/cnc/ethercat" INSTALL_MOD_DIR="ethercat" modules_install make[1]: Entering directory '/usr/src/linux-headers-6.12.11'   INSTALL /lib/modules/6.12.11/ethercat/examples/mini/ec_mini.ko   SIGN    /lib/modules/6.12.11/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: ./certs/signing_key.pem   XZ      /lib/modules/6.12.11/ethercat/examples/mini/ec_mini.ko.xz   INSTALL /lib/modules/6.12.11/ethercat/master/ec_master.ko   SIGN    /lib/modules/6.12.11/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: ./certs/signing_key.pem   XZ      /lib/modules/6.12.11/ethercat/master/ec_master.ko.xz   INSTALL /lib/modules/6.12.11/ethercat/devices/ec_generic.ko   SIGN    /lib/modules/6.12.11/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: ./certs/signing_key.pem   XZ      /lib/modules/6.12.11/ethercat/devices/ec_generic.ko.xz   DEPMOD  /lib/modules/6.12.11 Warning: modules_install: missing 'System.map' file. Skipping depmod. make[1]: Leaving directory '/usr/src/linux-headers-6.12.11'

This seems to the affect other command later like sudo modprobe ethercat. When this run it returns
modprobe: FATAL: Module ethercat not found in directory /lib/modules/6.12.11

Almost looks like the module never gets built or compiled correctly?
EtherCAT's kernel module (.ko) doesn't appear in the modules when trying to search for it
sudo find /lib/modules/$(uname -r) -name "ethercat.ko"

This returns not found

I think tomorrow I'm just gonna try everything again with an old kernel version, just to get started.
  • royka
  • royka
04 Feb 2025 21:21 - 04 Feb 2025 23:39
Replied by royka on topic LinuxCNC on Raspberry Pi 5

LinuxCNC on Raspberry Pi 5

Category: Installing LinuxCNC

@unknown Nope until now it's only at the master branch, when I see time I'll do a pull request for the 2.9 branch. You could possibly build from the 2.9 branch and apply the following patch with: git apply ../linuxcnc-rt-detect-6.12.patch

forum.linuxcnc.org/media/kunena/attachme...rt-detect-6.12.patch

Or just put "LINUXCNC_FORCE_REALTIME=1" in front of the LinuxCNC command of set it as a permanent environment setting
Displaying 361 - 375 out of 922 results.
Time to create page: 0.770 seconds
Powered by Kunena Forum