Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RPi 4b 32bit: gpio -g mode 28 in --> crash #82

Closed
hstarmans opened this issue Dec 22, 2020 · 1 comment
Closed

RPi 4b 32bit: gpio -g mode 28 in --> crash #82

hstarmans opened this issue Dec 22, 2020 · 1 comment

Comments

@hstarmans
Copy link

hstarmans commented Dec 22, 2020

The script camera_i2c crashes on the following lines with a Raspberry pi 4B 8 GB

gpio -g mode 28 in
gpio -g mode 29 in

Basically, one is not allowed to touch these pins. I have fixed this by downloading and patching wiringpi.c in WiringPi

void pinMode (int pin, int mode)                                                                                     
 {
      int    fSel, shift, alt ;
      struct wiringPiNodeStruct *node = wiringPiNodes ;
      int origPin = pin ;
      if ((pin == 28) | (pin == 29)){ 
                         return ;      
      }
# code continues

Another fix would be to not make calls to pin 28 and 29 in libarducam_mipicamera.so or pull these out of the driver.
So a user can block these calls.

Note after the fix, I have the following output for arducamstill -?

Open camera...
Found sensor ov2311 at address 60
mode: 0, width: 1600, height: 1300, pixelformat: GREY, desc: (null)
mode: 1, width: 1600, height: 1300, pixelformat: BA81, desc: (null)
# output continues with all other modes etc.. 
@hstarmans hstarmans changed the title crash gpio -g mode 28 in crash gpio -g mode 28 in, on raspberry pi 4b Dec 22, 2020
@hstarmans hstarmans changed the title crash gpio -g mode 28 in, on raspberry pi 4b Raspberry pi 4b 32bit: crash gpio -g mode 28 in, on Dec 24, 2020
@hstarmans hstarmans changed the title Raspberry pi 4b 32bit: crash gpio -g mode 28 in, on Raspberry pi 4b 32bit: gpio -g mode 28 in --> crash Dec 24, 2020
@hstarmans hstarmans changed the title Raspberry pi 4b 32bit: gpio -g mode 28 in --> crash RPi 4b 32bit: gpio -g mode 28 in --> crash Dec 24, 2020
@hstarmans
Copy link
Author

It might be fixed with new binary, I still think the IC2 detect script will fail. Closing this for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant