Raspberry Pi 4

More
6 years 11 months ago #149949 by andypugh
Replied by andypugh on topic Raspberry Pi 4

RyanG wrote:

RyanG wrote: I got it all figured out, but when I was looking at the GPIO Hal I noticed the pin assignments says they are for the Pi 2/3. Are the GPIO pins for the Pi4 the same as 2/3?


Yes.

But be aware the HAL driver uses physical pin numbers, not GPIO numbers.

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

More
6 years 11 months ago #149950 by RyanG
Replied by RyanG on topic Raspberry Pi 4

andypugh wrote:

RyanG wrote:

RyanG wrote: I got it all figured out, but when I was looking at the GPIO Hal I noticed the pin assignments says they are for the Pi 2/3. Are the GPIO pins for the Pi4 the same as 2/3?


Yes.

But be aware the HAL driver uses physical pin numbers, not GPIO numbers.


Okay thank you!

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

More
6 years 11 months ago #150082 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4
This isn't for RyanG in particular, but its for whomever is actually downloading the rpi4-pre-empt-rt.tgz kernel file from my site at geneslinuxbox.net this evening of 11/10/19.. This is a built kernel but please follow John Thorntens recipe to install it on a pi4's sd card. You only need a few megs of it for a realtime kernel install. Its not built for arm64, but for armhf, which you get from installing the raspbian version of debian 10.1. Its running my big sheldon lathe very well, much easier than the rpi3 I took out. IMO armhf should have a smaller stack frame making context switches faster.

You could rebuild it for arm64, and install it on debian 10.1, but I don't think you'll quite get the latency I'm getting. In any event, have fun. And let me know if you hit any problems. The debs for a linuxcnc install are also armhf flavor.

Be aware that I am blocking the bots as they show up.

Cheers All, Gene Heskett.

Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >
The following user(s) said Thank You: snoozer77

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

More
6 years 11 months ago #150157 by Gene1934
Replied by Gene1934 on topic Raspberry Pi 4

Gene1934 wrote: This isn't for RyanG in particular, but its for whomever is actually downloading the rpi4-pre-empt-rt.tgz kernel file from my site at geneslinuxbox.net this evening of 11/10/19.. This is a built kernel but please follow John Thorntens recipe to install it on a pi4's sd card. You only need a few megs of it for a realtime kernel install. Its not built for arm64, but for armhf, which you get from installing the raspbian version of debian 10.1. Its running my big sheldon lathe very well, much easier than the rpi3 I took out. IMO armhf should have a smaller stack frame making context switches faster.

You could rebuild it for arm64, and install it on debian 10.1, but I don't think you'll quite get the latency I'm getting. In any event, have fun. And let me know if you hit any problems. The debs for a linuxcnc install are also armhf flavor.

Be aware that I am blocking the bots as they show up.

And a showstopper problem with the kernel file has I hope now been fixed. That bad file has now been replaced with a tar.bz2, 4.19 yadda yadda. Sorry bout the wasted time but it should work now.

Cheers, Gene Heskett.

Cheers All, Gene Heskett.


Cheers, Gene Heskett
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page < geneslinuxbox.net:6309/gene >

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

More
6 years 10 months ago #152351 by RyanG
Replied by RyanG on topic Raspberry Pi 4
Hey guys, I have been working on getting my pi 4 setup to run linuxcnc through parallel port but I am not sure how to select Step and Dir from the options provided. What should I be selecting to setup the axis? There is no option for step and dir so I am assuming it should be something else but I don't want to try all of them. I appreciate your time and assistance.

Ryan

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

More
6 years 10 months ago #152352 by skunkworks
Replied by skunkworks on topic Raspberry Pi 4
You are going to have to setup the hal file manually... there is an example using gpio... Hmmm

github.com/LinuxCNC/linuxcnc/commit/e0dc...52586d505f4b9bcda60d

at the bottom. Remember the GPIo pins in hal are actual pin number on the header (not the rpi numbering)

RyanG wrote: Hey guys, I have been working on getting my pi 4 setup to run linuxcnc through parallel port but I am not sure how to select Step and Dir from the options provided. What should I be selecting to setup the axis? There is no option for step and dir so I am assuming it should be something else but I don't want to try all of them. I appreciate your time and assistance.

Ryan

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

Time to create page: 0.201 seconds
Powered by Kunena Forum