I'm not sure because according to this documentation : https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md Note: As of the 4.9 kernel, all Pis report BCM2835, even those with BCM2836, BCM2837 and BCM2711 processors. You should not use this string to detect the processor. Decode the revision code using the information below
Not sure if it helps but you can try this (non interactive) : python -c 'import RPi.GPIO as GPIO; print(dir(GPIO))' You will get a list of functions : ['BCM', 'BOARD', 'BOTH', 'FALLING', 'HARD_PWM', 'HIGH', 'I2C', 'IN', 'LOW', 'OUT', 'PUD_DOWN', 'PUD_OFF', 'PUD_UP', 'PWM', 'RISING', 'RPI_INFO', 'RPI_REVISION', 'SERIAL', 'SPI', 'UNKNOWN', 'VERSION', 'builtins', 'cached', 'doc', 'file', 'loader', 'name', 'package', 'path', 'spec', 'add_event_callback', 'add_event_detect', 'cleanup', 'event_detected',...
compilation warning on python 3.9 and gcc 10
I have the same problem with manjaro 2020.10 (64bits & gcc 10.2.0) The workaround shown by @seeeker works but it forces us to get into that code when we just want to install a program that requires RPi.GPIO... :-(
I agree I have a 8G rpi and it doesn't show the correct infos : python -u -c 'import RPi.GPIO as GPIO ; print(GPIO.RPI_INFO)' tail -n 4 /proc/cpuinfo | grep -v ^Serial Hardware : BCM2835 Revision : d03114 Model : Raspberry Pi 4 Model B Rev 1.4 and according to https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md d03114 4B 1.4 8GB Sony UK