-
Notifications
You must be signed in to change notification settings - Fork 327
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
Error recognising Raspberry Pi with non-Raspbian OS #99
Comments
looks like Arch is different enough, can you ask the Arch maintainers how you would know what chip its running on? cause as-is, |
Hello, same issue on Ubuntu 18.04 server for arm64 and pi 3 b, same /proc/cpuinfo output as opening post. Is the advice the same for me (go ask Ubuntu maintainers how to determine chip)? Thank you. |
yep! ask them "how can i tell what raspberry pi am i on" |
I managed to find a file called /sys/firmware/devicetree/base/cpus/cpu@0/compatible which lists the processor as 'arm,cortex-a53'. The problem is that both the pi 2 v1.2 and the pi 3 use the same processor... Is there any chance you could use something like the frequency (the pi 2 chip has a default lower clock) to determine the board? Edit: running |
close but not enough, we need something more specific if possible! |
Ok what about the |
sure, thats good enough - can you submit a PR to add that to |
Hello again. I got some code working (hopefully not too crude, I'm a total novice) to detect the pi version on my platform, and was about to put together that pull request, but ran into another issue: now that my platform is detected, the line I will try to get the pull request underway, but it doesn't seem like it'll fix the problem completely. |
does RPi GPIO python library work on your pi? |
Apparently not. Running |
yep you got a lot of work ahead of you - most things wont work on non-raspbian. we really only guarantee it (and so does the pi foundation) |
I see, thanks for your help. |
I mentioned this problem here: #130 On 3B+, since /proc/cpuinfo doesn't give anything useful on mainline arm64 kernels.) Though that is addressed in part in gpio-python here https://sourceforge.net/p/raspberry-gpio-python/tickets/161/ by looking at On 3B
On 3B+
The sourceforge link has a patch which can be used to get gpio-python working on arm64:
|
On Arch latest (as of 2019-12-26), on a Raspberry Pi 3B (non-plus):
I got these strings that are quite handy, off the devicetree:
|
PR's to platform-detect are welcome...we dont run anything other than Raspbian :) |
Raspberry pi 4 board is also not detected on openSUSE-Tumbleweed-ARM-JeOS-raspberrypi4.aarch64-2020.01.08-Snapshot20200115 |
@mruz thanks, we aren't running openSUSE - if you could PR an update to platform-detect to help it know what its running on, blinka will 'magically' work :) |
This was fixed in an update to PlatformDetect. Closing. |
Similar to #66 , I am getting
NotImplementedError: Board not supported
.I am using Raspberry Pi 3 Model B+, with 64-bit Arch linux ARM installed.
Below is the output of
/proc/cpuinfo
On tracing back where the error arises, I found out that in
neopixel_write.py
, line 14 returnsNone
. This function call goes toAdafruit_Python_Platformdetect
's_pi_rev_code
here. However,detector.chip.id
isBCM2XX
when running detect.py and when trying the code myself in python3 console. So the control goes toget_cpuinfo_field
. Here, the regex pattern does not find any matches because there are no lines starting withRevision
orrevision
. There are a few lines withCPU revision
though. I don't know if those are the ones that it should be looking for. If they are, a quick fix would be to remove^
from the regex pattern hereThe text was updated successfully, but these errors were encountered: