开云体育

Locked Pi4B 64 bit and GPIO #rpi


 

I have a pi4 8gb running g 64 bit rasputin and the latest JMRI.
All works great except when I select Raspberry pi gpio? and I get error message, cannot connect to pi, as this expected when not using a pi.
Not sure what's going on.....


 

开云体育

Not sure what you are asking, but I assume the GPIO pins don’t work like you expect. Did you add the GPIO software routines to the PI??

I use SteveTodd's free software image for Pi-OS and JMRI installation which has enhancements already added, such as, VNC, GPIO support, etc., with excellent results. I like playing with the Pi software for adding enhancements but Steve’s Pi skills runs circles around mine which I appreciate. ?


I’m not sure if the Raspbian OS that Steve uses (bullseye) is the 64bit version or not. He also describes the methods used to create the image. So you will find his site useful.?

John Bauchiero
Delaware & Hudson Model?Railroad
NCE PH-Pro+PowerCab,?RaspPi4b, JMRI 5.3.5


On May 3, 2023, at 1:50 PM, Colin Head <headcol@...> wrote:

I have a pi4 8gb running g 64 bit rasputin and the latest JMRI.
All works great except when I select Raspberry pi gpio? and I get error message, cannot connect to pi, as this expected when not using a pi.
Not sure what's going on.....


 

The image uses the 32 bit platform.
I just thought that as I have a 64 bit board I should use it, it also allows the use of extended memory.
The Jmri just refuses to select GPIO and states this error iscexpected when not running on a pi.
As I said a bit odd, I can select simulator so Mt pi gpio can be included in the sensor tables and scripts.? I won't let this beat me ...


 

开云体育

Unless there is an issue between 32bit and 64bit, I don’t understand either. If you can select Pi simulator you should be able to add GPIOs.?

Did you enable the GPIOs in the Raspian software?

appended the following line to???

export WIRINGPI_GPIOMEM=1

and added the following value to?

default_options="-Dpi4j.linking=dynamic

Without making those two additions RPi and JMRI won’t know the GPIOs exist. That is what I was telling you about Steve Todd’s website, he spells out all the additions needed for the RPi image.


?

On May 4, 2023, at 4:18 PM, Colin Head <headcol@...> wrote:

The image uses the 32 bit platform.
I just thought that as I have a 64 bit board I should use it, it also allows the use of extended memory.
The Jmri just refuses to select GPIO and states this error iscexpected when not running on a pi.
As I said a bit odd, I can select simulator so Mt pi gpio can be included in the sensor tables and scripts.? I won't let this beat me ...


 

I have done all the things mentioned in Steve's explanation and it still does the same and rejects selection of GPUIO in JMRI Connections.
I know the IO works as I can make them work from the command line.
I have done the full set up on 32 bit and don't have problems, so there must be an extra step on 64 bit that I'm missing.