-
Notifications
You must be signed in to change notification settings - Fork 353
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
Is the new Raspberry Pi CM5 Rev 1.0 board supported? #919
Comments
@Sparqx73 I'm getting this on the CM5 as well. It looks like we don't have it in the list of supported boards yet. There is a guide to allow us to add them ourselves. I'm wondering if anyone has worked on this yet: https://learn.adafruit.com/adding-a-single-board-computer-to-platformdetect-for-blinka |
I've worked on this with my brother and together we got it to work by amending the following /home/pi/.local/lib/python3.11/site-packages/board.py board.pyelif ( and...... /home/pi/stats_env/lib/python3.11/site-packages/adafruit_platformdetect/constants/boards.py boards.pyVarious Raspberry Pi modelsRASPBERRY_PI_B_REV1 = "RASPBERRY_PI_B_REV1" _RASPBERRY_PI_CM_IDS = ( _PI_MODELS = { and..... home/pi/stats_env/lib/python3.11/site-packages/adafruit_platformdetect/revcodes.py as follows: revcodes.pyPI_TYPE = { I am in the midst of debriefing on what else we might have modified but this will be a good start if you haven't done it already...I will come back and add anything else that we adjusted once I have documented it |
Thanks for this @Sparqx73 - that worked for me too. I am using a virtual environment so my locations were different, but these changes resolved the error. 👏 |
It looks like we were successful in adding the additional entries for the CM5 to make the Adafruit_Blinka libraries work for this new board so I will close this issue. |
If this works for you could you please submit one or more pull requests? |
@dhalbert PR created here: adafruit/Adafruit_Python_PlatformDetect#374 |
I am using the new Raspberry Pi 5 Compute IO Board with a CM5 and I am getting the following error when running a python script to display Raspberry Pi Stats on an Oled which uses the Adafruit Blinka Libraries:
python3 monitor.py
Traceback (most recent call last):
File "/home/pi/OLED_Stats/monitor.py", line 7, in
import board
File "/home/pi/stats_env/lib/python3.11/site-packages/board.py", line 451, in
raise NotImplementedError(
NotImplementedError:
Adafruit-PlatformDetect version 3.75.0 was unable to identify the board and/or
microcontroller running the Linux platform. Please be sure you
have the latest packages by running:
'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'
Are you able to advise whether the new Compute Module 5 is supported? Or when it will be supported?
Thanks in advance for your help
The text was updated successfully, but these errors were encountered: