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

More
1 year 9 months ago #319520 by Cant do this anymore bye all
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

Please Log in to join the conversation.

More
1 year 9 months ago #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 to join the conversation.

More
1 year 9 months ago #319525 by Cant do this anymore bye all
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
Code:
“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
Code:
ls /dev/i2c*
show ?

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

Please Log in to join the conversation.

More
1 year 9 months ago #319526 by Cant do this anymore bye all
Too hard to edit

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

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

Please Log in to join the conversation.

More
1 year 9 months ago #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 to join the conversation.

More
1 year 9 months ago #319528 by Cant do this anymore bye all
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 to join the conversation.

More
1 year 9 months ago #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. 

Please Log in to join the conversation.

More
1 year 9 months ago #319536 by Cant do this anymore bye all
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 to join the conversation.

More
1 year 9 months ago #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?

Attachment not found

Please Log in to join the conversation.

More
1 year 9 months ago #319550 by rodw
I think the 16gb has historically not been good for linuxcnc

Please Log in to join the conversation.

Time to create page: 0.234 seconds
Powered by Kunena Forum