Git Product home page Git Product logo

Comments (3)

nerdathome avatar nerdathome commented on July 24, 2024

$ python3 bin/detect.py
Board Detection Test
Check that the Chip and Board IDs match your board and that this it is correctly detecting whether or not it is a Linux board.
Chip id:
RK3566
Board id: None

from adafruit_blinka.

nerdathome avatar nerdathome commented on July 24, 2024

I've followed https://learn.adafruit.com/adding-a-single-board-computer-to-platformdetect-for-blinka?view=all and now have detect.py working:

$ python3 ~/repos/Adafruit_Python_PlatformDetect/bin/detect.py
Board Detection Test

Check that the Chip and Board IDs match your board and that this it is
correctly detecting whether or not it is a Linux board.

Chip id: RK3566
Board id: ORANGE_PI_CM4

Linux Detection

Is this an embedded Linux system? True

Raspberry Pi Boards

Is this a Pi 3B+? False
Is this a Pi 4B? False
Is this a 40-pin Raspberry Pi? False
Is this a Raspberry Pi Compute Module? False

Other Boards

Is this a Siemens Simatic IOT2000 Gateway? False
Is this a 96boards board? False
Is this a BeagleBone board? False
Is this a Giant board? False
Is this a Coral Dev board? False
Is this a MaaXBoard? False
Is this a SiFive board? False
Is this a PYNQ board? False
Is this a Rock Pi board? False
Is this a NanoPi board? False
Is this a Khadas VIM3 board? False
Is this a Clockwork Pi board? False
Is this a Seeed Board? False
Is this a UDOO board? False
Is this an ASUS Tinker board? False
Is this an STM32MP1 board? False
Is this a generic Linux PC? False
Is this an OS environment variable special case? False
Orange Pi detected.

from adafruit_blinka.

nerdathome avatar nerdathome commented on July 24, 2024

I'm now getting this error:

Traceback (most recent call last):
File "~/repos/geekworm/oled/monitor.py", line 4, in
import digitalio

File "/usr/local/lib/python3.11/dist-packages/digitalio.py", line 97, in
from adafruit_blinka.microcontroller.rockchip.rk3566.pin import Pin

File "/usr/local/lib/python3.11/dist-packages/adafruit_blinka/microcontroller/rockchip/rk3566/pin.py", line 182, in
if board in ("ODROID_M1S"):
^^^^^^^^^^^^^^^^^^^^^^^
TypeError: 'in ' requires string as left operand, not NoneType

Does this mean the scripts think the only board with an RK3566 is an ODROID_M1s? And since an Orange Pi CM4 has a different pin out the pin.py script fails? And if so, do I just need to add an "else if" exit for the OrangePi_CM4 & copy the RaspberryPi CM4 gpio pin out code block?

from adafruit_blinka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.