It’s good news to work on armbian. I’m sorry I missed your message. I’ll check it now.
Penta SATA Kit Rock Pi 4 - OLED Config doesn't work
Please download this script to run on ubuntu and press the button to watch the print
https://rock.sh/tmp-sh
Thanks for the script !
I just ran it and I have no output when I press the button, just === Button test ===
at startup
Try to stop rockpi-penta.service first.
Same, no output
If convenient, test the script again on armbian.
Ok, do I have to remove the emmc to boot on a sd card ?
I just booted on a fresh armbian install and now I can’t install rockpi-penta, I have the following error :
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libmraa : Depends: python3.6 but it is not installable
Depends: libpython3.6 but it is not installable
E: Unable to correct problems, you have held broken packages.
(Reading database ... 127058 files and directories currently installed.)
Preparing to unpack /tmp/tmp.4888qygTJt ...
Removed /etc/systemd/system/multi-user.target.wants/rockpi-penta.service.
Unpacking rockpi-penta (0.10) over (0.10) ...
Setting up rockpi-penta (0.10) ...
Created symlink /etc/systemd/system/multi-user.target.wants/rockpi-penta.service → /lib/systemd/system/rockpi-penta.service.
Traceback (most recent call last):
File "setup.py", line 3, in <module>
from setuptools import setup, find_packages
ModuleNotFoundError: No module named 'setuptools'
Traceback (most recent call last):
File "/usr/bin/rockpi-penta/misc.py", line 6, in <module>
import mraa # pylint: disable=import-error
ModuleNotFoundError: No module named 'mraa'
It seems that it tries to install python3.6 but can’t. I have python 3.7 installed.
The apt repository I used :
deb http://apt.radxa.com/bionic-stable/ bionic main
When I try to install python3.6 I got the error :
Package python3.6 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'python3.6' has no installation candidate
What about lsb_release -c ?
~# lsb_release -c
Codename: buster
But if I put the buster apt repository I can’t install rockpi-penta :
E: Unable to locate package rockpi4-dtbo
However I can install python3.6
I don’t remember how I made it working last time I tried with armbian.
Edit : Maybe I’m wrong and it worked with debian 9 desktop and not armbian… My memory probably fails me I will try it later
@setq I just tried with Debian 9 Stretch, the button does work with the rockpi-penta service.
However the script you provided doesn’t seem to work, I get no output when I press the button (with the rockpi-penta service stopped or running).
To be clear, I just have to download the script anywhere on the server and run it with python test-button.py
, and then try to press the button ?
sudo python3 test-button.py
Ok with the sudo python3 test-button.py
I get the following result :
=== Button test ===
0
1
The problem might be that I wasn’t using sudo, so I will try again with ubuntu…
Thanks for the armbian script, I will maybe give it a try later
@setq, I just tried with Ubuntu :
sudo python3 test-button.py
=== Button test ===
No output when I press the button, even with the rockpi-penta service stopped.
It can’t be a missplugged connector as this time I didn’t disassembled everything, so it’s in the same state as my functionnal test on Debian.
Any other ideas ?
Hi,
I’m having a similar issue with my Penta sata running on Ubuntu server 18.04:
- The button does nothing
- The fan turns to max speed when I shut the board down. It also turns on when the temperature is below lv0 (in rockpi-penta.conf). It seems to be disregarding the current temperature: sometimes it’s at minimal speed and sometimes it goes to max.
What about uname -r ?
Do you ever execute unminimize ?
uname -r
4.4.154-95-rockchip-gd2ab1f26e1b3
I think I’m experiencing the same issue as ma3oun about the fan, it’s behavior doesn’t seem right.
However I can’t test anymore as I broke my fan…
yes. I ran unminimize before running the penta sata installation script