adafruit / Adafruit_Blinka

Add CircuitPython hardware API and libraries to MicroPython & CPython devices
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux
MIT License
453 stars 340 forks source link

add support in Blinka for orange pi zero 2 #657

Closed radfordwill closed 1 year ago

radfordwill commented 1 year ago

Do you plan on supporting the orange pi zero 2?

import board Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.10/dist-packages/board.py", line 333, in <module> raise NotImplementedError( NotImplementedError: Adafruit-PlatformDetect version 3.40.3 was unable to identify the board and/or microcontroller running the Linux platform. Please be sure you have the latest packages running: 'pip3 install --upgrade adafruit-blinka adafruit-platformdetect'

board info

root@orangepizero2:~/picar# cat /etc/*-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Ubuntu 22.04.2 LTS"
# PLEASE DO NOT EDIT THIS FILE
BOARD=orangepizero2
BOARD_NAME="Orange Pi Zero2"
BOARDFAMILY=sun50iw9
BUILD_REPOSITORY_URL=https://github.com/orangepi-xunlong/orangepi-build
BUILD_REPOSITORY_COMMIT=7a67c95-dirty
DISTRIBUTION_CODENAME=jammy
DISTRIBUTION_STATUS=supported
VERSION=3.0.6
LINUXFAMILY=sun50iw9
ARCH=arm64
IMAGE_TYPE=user-built
BOARD_TYPE=conf
INITRD_ARCH=arm64
KERNEL_IMAGE_TYPE=Image
IMAGE_UUID=32059672-6ddd-45ad-ace5-2d604fd45b70
makermelissa commented 1 year ago

It appears Orange Pi Zero2 support was added in #413 and detection for the board was added in https://github.com/adafruit/Adafruit_Python_PlatformDetect/pull/141 and https://github.com/adafruit/Adafruit_Python_PlatformDetect/pull/160 as part of the 3.10.0 release of PlatformDetect. The issue is likely that you are running ubuntu and it was added with armbian.

Closing since there is an existing issue at https://github.com/adafruit/Adafruit_Python_PlatformDetect/issues/285 open for these sort of issues.

OldSurferDude commented 1 year ago

Thank you for the update. I would normally confirm that the update resolved my issue, but right now my orange pi running ubuntu is an important tool in my development or another project.

I appreciate your efforts, as the Orange Pi can be a much less costly solution in many instances. Not just monetarily, but also in power usage (~0.35A vs ~2.0A)

OSD

On Wed, Sep 13, 2023 at 9:58 AM Melissa LeBlanc-Williams < @.***> wrote:

Closed #657 https://github.com/adafruit/Adafruit_Blinka/issues/657 as completed.

— Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_Blinka/issues/657#event-10362162636, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFHZE2Q54GKJCOI5SEY4YULX2HQ2JANCNFSM6AAAAAAVKNSOEA . You are receiving this because you are subscribed to this thread.Message ID: @.*** com>

makermelissa commented 1 year ago

While the issue isn't quite resolved, you may wish to follow the issue at https://github.com/adafruit/Adafruit_Python_PlatformDetect/issues/285 for further updates.