LinuxCNC on Raspberry Pi 5
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18460
- Thank you received: 5041
06 Feb 2025 21:05 #320851
by PCW
Replied by PCW on topic LinuxCNC on Raspberry Pi 5
What is the servo thread rate?
How are the ping times?
How are the ping times?
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
06 Feb 2025 22:40 - 06 Feb 2025 22:42 #320861
by jhandel
Replied by jhandel on topic LinuxCNC on Raspberry Pi 5
I was able to cause it to crash out without going into Linux CNC if i load it up too much with commands like
sudo chrt 99 ping -i .001
It handled running realtime at 1ms delay with averages of .101msĀ for 10000, 20000 and 30000 pings, but when I jumped to 50000 pings it crashed out at about 40k pings..
So there is something that someone in the "chain" doesn't like under high network traffic..
and again, unplugging and plugging back in (just the network) fixes it... which is... wierd... (to me)..
Here is my Servo Period:
SERVO_PERIOD = 1000000
and here is my Servo Timeout
setp hm2_7i76e.0.watchdog.timeout_ns 5000000
the whole config can be found here (its where I wrote it a while ago, but my old pc died so working on getting it up and running on this pi)
github.com/Skyfire-community/SVM2-LinuxCNC
sudo chrt 99 ping -i .001
It handled running realtime at 1ms delay with averages of .101msĀ for 10000, 20000 and 30000 pings, but when I jumped to 50000 pings it crashed out at about 40k pings..
So there is something that someone in the "chain" doesn't like under high network traffic..
and again, unplugging and plugging back in (just the network) fixes it... which is... wierd... (to me)..
Here is my Servo Period:
SERVO_PERIOD = 1000000
and here is my Servo Timeout
setp hm2_7i76e.0.watchdog.timeout_ns 5000000
the whole config can be found here (its where I wrote it a while ago, but my old pc died so working on getting it up and running on this pi)
github.com/Skyfire-community/SVM2-LinuxCNC
Last edit: 06 Feb 2025 22:42 by jhandel.
Please Log in or Create an account to join the conversation.
- PCW
-
- Offline
- Moderator
-
Less
More
- Posts: 18460
- Thank you received: 5041
06 Feb 2025 23:09 #320862
by PCW
Replied by PCW on topic LinuxCNC on Raspberry Pi 5
Strange, others have used the RPI5 with Ethernet FPGA cards without issue.
What kernel are you using?
(uname -a)
I guess it could be a hardware issue.
Do lose link lights when you lose the network connection?
I can try and duplicate this when I get a chance.
What kernel are you using?
(uname -a)
I guess it could be a hardware issue.
Do lose link lights when you lose the network connection?
I can try and duplicate this when I get a chance.
Please Log in or Create an account to join the conversation.
- skunkworks
- Offline
- Moderator
-
Less
More
- Posts: 363
- Thank you received: 154
07 Feb 2025 00:26 #320863
by skunkworks
Replied by skunkworks on topic LinuxCNC on Raspberry Pi 5
What image are you using for the rpi5? I was having read errors on my 7i97 very often with whatever image I was using (I don't remember when I got it) I downloaded the latest off of linuxcnc's site (2.9.4)
It has been rock solid. No issues running it for a week now.
sam
It has been rock solid. No issues running it for a week now.
sam
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
07 Feb 2025 01:02 #320865
by jhandel
Replied by jhandel on topic LinuxCNC on Raspberry Pi 5
this is an on and off project for me so I built it maybe 4 months ago before there was an official image... I'll pull down the 2.9.4 and reimage the pi with it and see if that makes it happy...
I'll report back if that doesn't fix it..
I'll report back if that doesn't fix it..
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 316
- Thank you received: 124
07 Feb 2025 02:27 #320874
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
There's been official images for the RPi5 from about Dec 2023.
Please Log in or Create an account to join the conversation.
- Grad
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 1
07 Feb 2025 09:58 #320900
by Grad
Replied by Grad on topic LinuxCNC on Raspberry Pi 5
Thank you for your help, please notice my linux knowledge is limited so my answers may sound stupid
. Anyways
cat /proc/device-tree/compatible | tr '\0' '\n'
returned:
raspberrypi, 5-model-b
brcm, bcm2712
The checksum did not match, but the link you provided is for rpi-5-debian-bookworm - I used the linuxcnc_2.9.4-amd64.hybrid.iso
Anyways, I mounted Linuxcnc image under Ubuntu and all the checksums there matched when i used
sha256sum -c sha256sum.txt

cat /proc/device-tree/compatible | tr '\0' '\n'
returned:
raspberrypi, 5-model-b
brcm, bcm2712
The checksum did not match, but the link you provided is for rpi-5-debian-bookworm - I used the linuxcnc_2.9.4-amd64.hybrid.iso
Anyways, I mounted Linuxcnc image under Ubuntu and all the checksums there matched when i used
sha256sum -c sha256sum.txt
Please Log in or Create an account to join the conversation.
- unknown
- Offline
- Elite Member
-
Less
More
- Posts: 316
- Thank you received: 124
07 Feb 2025 10:16 #320901
by unknown
Replied by unknown on topic LinuxCNC on Raspberry Pi 5
What you were trying to boot a RPi5 with a amd64 image ?
Of course I provided the RPi5 checksum, why wouldn't I, this is a thread for the RPi5. The checksum will only work when used against a file, not a mounted file system, the checksum is for the compressed image file.
Am I missing something here ?
Of course I provided the RPi5 checksum, why wouldn't I, this is a thread for the RPi5. The checksum will only work when used against a file, not a mounted file system, the checksum is for the compressed image file.
Am I missing something here ?
The following user(s) said Thank You: Grad
Please Log in or Create an account to join the conversation.
- Grad
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 1
07 Feb 2025 11:20 #320904
by Grad
Replied by Grad on topic LinuxCNC on Raspberry Pi 5
As you might have guessed already I just downloaded the wrong file. Now you can say that you pointed me on that with your last comment. But since my linux knowledge is limited (told you so) I just needed you to tell me again to realize my mistake 
Anyways it runs just fine now - thx for your help

Anyways it runs just fine now - thx for your help

The following user(s) said Thank You: unknown
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
07 Feb 2025 12:17 #320905
by jhandel
Replied by jhandel on topic LinuxCNC on Raspberry Pi 5
I just remember lots of discussion around build your own last fall and went off some of the instructions in there... either which way, its a "home brew" and I'll give the official image a go.
Please Log in or Create an account to join the conversation.
Time to create page: 0.097 seconds