Bugfix: Better detection of Pi platform#53
Conversation
…nto fix-detect-platform
…nto fix-detect-platform
|
Hi @wimrijnders, Here is my |
Well crap. The good news is that the |
|
Turns out that BCM2807 and BCM2835 come down to the same thing. It does make it a bit bothersome though. BCM2807 is the 'family' name and the other numbers are its members. I think the safest thing here is to test all possible BCM numbers. From the wiki:
If you have a better idea, please let me know. The thing is, the combination of fields See what I mean? I thought checking the |
|
Strange though; my Pi 1 has revision |
|
@mn416 Adjusted Please test both the bash and C++ version on you platform and tell me if it works for you. |
…nto fix-detect-platform
|
Hi @wimrijnders, To make it future proof, how about just detecting |
|
OK, then. But:
PR forthcoming. |
|
@mn416 Detection of prefix only added. See if this works for you. |
…nto fix-detect-platform
|
@wimrijnders My Pi shows |
|
BCM27x: heh, you're right. Good catch. |
Now that DMA is enabled, it's interesting to know what the actual size is of the VPM. This adds it to the output of `detectPlatform`. Example output: ``` > sudo obj-qpu/bin/detectPlatform Detected platform: Raspberry Pi 2 Model B Rev 1.1 Hardware revision: a01041 Number of slices: 3 Number of QPU's per slice: 4 Size of VPM: 12KB # <-- This is new ``` **NOTE:* This will probably not work on your machine until mn416#52 and mn416#53 have been merged.
|
Hi @wimrijnders, Now getting much further, it's correctly detecting my Pi as a Pi. But I still get stuck on |
That's what the last update in #52 is trying to solve. Can you see if that works now? |
The attempted implementation for detecting if you're running on Pi does not work on early Pi versions (or distributions). This PR adds a fallback which should work on any version.
/proc/cpuinfoto both C++ and shell versions ofdetectPlatform