Board Name
Khadas VIM3
Steps
I am basing my installation procedure on this guide, even though this is not a Pi, because I cannot find anything for anything but Pi, nor any info for how anything differs for non-Pi. Colleagues of mine have supposedly successfully used this guide before.
- sudo apt-get update
- sudo apt-get -y upgrade
- sudo apt-get install python3-pip
- sudo apt install --upgrade python3-setuptools
- pip3 install --upgrade adafruit-python-shell
- sudo apt-get install -y i2c-tools libgpiod-dev python3-libgpiod
- pip3 install --upgrade adafruit-blinka
- python3
- import board
This gives error:
khadas@Khadas:~$ python3
Python 3.8.10 (default, Feb 4 2025, 15:02:54)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import board
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/khadas/.local/lib/python3.8/site-packages/board.py", line 445, in <module>
raise NotImplementedError(
NotImplementedError:
Adafruit-PlatformDetect version 3.77.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'
If you are running the latest package, your board may not yet be supported. Please
open a New Issue on GitHub at https://github.com/adafruit/Adafruit_Blinka/issues and
select New Board Request.
I've tried forcing:
import os
os.environ["BLINKA_FORCEBOARD"] = "KHADAS_VIM3"
import board
I've tried this with both python3 and sudo python3
khadas@Khadas:~/Documents/git/my_repo$ python3 test.py
Script starting
Traceback (most recent call last):
File "test.py", line 10, in <module>
import board
File "/home/khadas/.local/lib/python3.8/site-packages/board.py", line 219, in <module>
from adafruit_blinka.board.khadas.khadasvim3 import *
File "/home/khadas/.local/lib/python3.8/site-packages/adafruit_blinka/board/khadas/khadasvim3.py", line 6, in <module>
from adafruit_blinka.microcontroller.amlogic.a311d import pin
File "/home/khadas/.local/lib/python3.8/site-packages/adafruit_blinka/microcontroller/amlogic/a311d/pin.py", line 18, in <module>
chip0 = gpiod.Chip("0")
PermissionError: [Errno 13] Permission denied
khadas@Khadas:~/Documents/git/my_repo$ sudo python3 test.py
[sudo] password for khadas:
Script starting
WARNING: chip_id == None is not fully supported. Some features may not work.
WARNING: chip_id == None is not fully supported. Some features may not work.
Traceback (most recent call last):
File "test.py", line 14, in <module>
i2c = board.I2C() # uses board.SCL and board.SDA
File "/usr/local/lib/python3.8/dist-packages/board.py", line 467, in I2C
return busio.I2C(SCL, SDA)
File "/usr/local/lib/python3.8/dist-packages/busio.py", line 36, in __init__
self.init(scl, sda, frequency)
File "/usr/local/lib/python3.8/dist-packages/busio.py", line 158, in init
from microcontroller.pin import i2cPorts
ImportError: cannot import name 'i2cPorts' from 'microcontroller.pin' (/usr/local/lib/python3.8/dist-packages/microcontroller/pin.py)
Description
No response
Additional information
No response
Board Name
Khadas VIM3
Steps
I am basing my installation procedure on this guide, even though this is not a Pi, because I cannot find anything for anything but Pi, nor any info for how anything differs for non-Pi. Colleagues of mine have supposedly successfully used this guide before.
This gives error:
I've tried forcing:
I've tried this with both python3 and sudo python3
Description
No response
Additional information
No response