Pi 4B rev 1.4 not recognized
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
rpi.gpio (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bionic |
New
|
Undecided
|
Unassigned | ||
Focal |
New
|
Undecided
|
Unassigned | ||
Groovy |
Won't Fix
|
Undecided
|
Unassigned | ||
Hirsute |
New
|
Undecided
|
Unassigned |
Bug Description
$ python3
Python 3.8.6 (default, Sep 25 2020, 09:36:53)
[GCC 10.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import RPi.GPIO as gpio
>>> print(gpio.
{'P1_REVISION': 3, 'REVISION': 'd03114', 'TYPE': 'Pi 4 Model B', 'MANUFACTURER': 'Sony', 'PROCESSOR': 'BCM2711', 'RAM': 'Unknown'}
>>> gpio.setmode(
>>> gpio.setup(32, gpio.IN)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
RuntimeError: Not running on a RPi!
>>> quit()
$ cat /proc/cpuinfo
processor : 0
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 1
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 2
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
processor : 3
BogoMIPS : 108.00
Features : fp asimd evtstrm crc32 cpuid
CPU implementer : 0x41
CPU architecture: 8
CPU variant : 0x0
CPU part : 0xd08
CPU revision : 3
Hardware : BCM2835
Revision : d03114
Serial : 100000008011d9f5
Model : Raspberry Pi 4 Model B Rev 1.4
It could be evaluating `/proc/ device- tree/soc/ ranges` incorrectly, but it looks good on line 86 in c_gpio.c from rpi.gpio_0.6.5 from example (https:/ /www.iot- programmer. com/index. php/books/ 22-raspberry- pi-and- the-iot- in-c/chapters- raspberry- pi-and- the-iot- in-c/59- raspberry- pi-and- the-iot- in-c-memory- mapped- gpio?start= 1).
I note that your `$ cat /proc/cpuinfo` shows the expected hardware `Hardware : BCM2835` as per line 100 of c_gpio.c of rpi.gpio_0.6.5 (https:/ /launchpad. net/ubuntu/ +archive/ primary/ +sourcefiles/ rpi.gpio/ 0.6.5-1ubuntu0. 18.04.1/ rpi.gpio_ 0.6.5.orig. tar.gz)... suggesting ARM1176JZF-S is on board.
What I notice of as mentioned line 100 is it expects a tab between "Hardware" and the semicolon. Did you doctor your cat output in any way? Maybe the whitespace separator unexpectedly changed and it could not get the value from "/proc/ device- tree/soc/ ranges" ?