Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 04:11 - 21 Jan 2025 10:31 #319520 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5
To turn on i2c

edit as superuser /boot/broadcom/config.txt and uncomment the lines relate to i2c.

then edit as superuser /etc/modules and either add i2c-dev or uncomment if it is commented out

reboot

That will get i2c up and enabled
Last edit: 21 Jan 2025 10:31 by Cant do this anymore bye all.

Please Log in or Create an account to join the conversation.

More
21 Jan 2025 05:55 #319522 by PopBang
I was able to enable i2c, but the instructions say use “sudo i2cdetect -y 1”, 1 doesn’t seem to exist for me, I can only detect 11 and 12 and neither show the 0x36 address.
I have confirmed that the pins are making good contact, so bad connection is ruled out.
Could it be the kernel configuration?

Please Log in or Create an account to join the conversation.

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 06:35 #319525 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5
I'm working on a Rpi5 with an image I built myself from rodw's image builder

This is my kernel.
Linux raspberrypi 6.1.69-rt21 #1 SMP PREEMPT_RT Fri Jan 17 10:39:48 AEDT 2025 aarch64 GNU/Linux

Before I finalised my post I checked running by running
“sudo i2cdetect -y 1”

As I have nothing connected I got this:
sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --


What does
ls /dev/i2c*
show ?

/dev/i2c-1 /dev/i2c-11 /dev/i2c-12

Please Log in or Create an account to join the conversation.

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 06:41 #319526 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5
Too hard to edit

[ls -la /dev/i2c*[/code]

Would be good to see permissions, not that should affect sudo.

Please Log in or Create an account to join the conversation.

More
21 Jan 2025 06:47 #319527 by PopBang
It’s only showing 11 & 12, I can’t get 1 to show.

I’m pretty sure I’m using the latest kernel though.
6.6.44-rt39

Please Log in or Create an account to join the conversation.

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 06:53 #319528 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5
Did you run the commands I suggested and post the output ?

What RPi are you using ?
What Linuxcnc img are you using ?

Please Log in or Create an account to join the conversation.

More
21 Jan 2025 10:17 #319535 by PopBang
I’m using a raspberry pi 5 8gb with the latest 2.93 image that’s linked on the first page of this thread. I’ve attached a screen shot of what I’m getting when run the commands. 
Attachments:

Please Log in or Create an account to join the conversation.

  • Cant do this anymore bye all
  • Cant do this anymore bye all's Avatar
  • Offline
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 10:31 #319536 by Cant do this anymore bye all
Replied by Cant do this anymore bye all on topic Linuxcnc 2.9.2 and 2.93 images for Raspberry Pi 4b & 5
Ok it was a typo I made, but if you tried to edit the file it should not of existed.

as superuser edit /boot/broadcom/config.txt & change the line from

#dtparam=i2c_arm=on
to
dtparam=i2c_arm=on

Then reboot.

Please Log in or Create an account to join the conversation.

More
21 Jan 2025 11:12 - 21 Jan 2025 11:28 #319547 by Moutomation
hello,I can install on both raspberry pi5 4gb and 8gb but the new 16gb I bought gives an error. What is the reason for this?
Attachments:
Last edit: 21 Jan 2025 11:28 by Moutomation.

Please Log in or Create an account to join the conversation.

  • rodw
  • rodw's Avatar Topic Author
  • Away
  • Platinum Member
  • Platinum Member
More
21 Jan 2025 11:29 #319550 by rodw
I think the 16gb has historically not been good for linuxcnc

Please Log in or Create an account to join the conversation.

Time to create page: 0.088 seconds
Powered by Kunena Forum