I need help, I can’t start the penta sata hat which with fan and display on Rock pi 4 model C (kit)
a problem with libmraa…
system info
rock@rockpi4c:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.2 LTS
Release: 20.04
Codename: focal
apt-radxa-com.list
root@rockpi4c:/etc/apt/sources.list.d# cat apt-radxa-com.list
deb https://apt.radxa.com/focal-testing/ focal main
deb http://apt.radxa.com/bionic/ bionic main
echo script rock.sh/get-rockpi-penta
rock@rockpi4c:~$ curl -sL https://rock.sh/get-rockpi-penta | sudo -E bash -
*** Penta SATA Hat Install for ROCK Pi 4
*** Tested distributions:
*** Armbian 20.05.4 focal
*** Armbian 20.05.3 buster
*** Debian 9 Desktop (radxa official image)
*** Ubuntu Server 18.04 (radxa official image)*** Please report problems to setq@radxa.com and we will try to fix.
Package(s) rockpi4c-rk-u-boot-latest libmraa is required.
Would you like to apt-get install the packages? [Y/n] Y
Hit:1 http://ppa.launchpad.net/mraa/mraa/ubuntu focal InRelease
Hit:2 http://ports.ubuntu.com/ubuntu-ports focal InRelease
Hit:3 http://ports.ubuntu.com/ubuntu-ports focal-security InRelease
Hit:4 http://ports.ubuntu.com/ubuntu-ports focal-updates InRelease
Hit:5 http://ports.ubuntu.com/ubuntu-ports focal-backports InRelease
Hit:6 http://apt.radxa.com/bionic bionic InRelease
Hit:7 https://apt.radxa.com/focal-testing focal InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done
rockpi4c-rk-u-boot-latest is already the newest version (2017.09-2700-g70b4cfe057).
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: libjson-c3 but it is not installable
> 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.
running install
running bdist_egg
running egg_info
creating Adafruit_SSD1306.egg-info
writing Adafruit_SSD1306.egg-info/PKG-INFO
writing dependency_links to Adafruit_SSD1306.egg-info/dependency_links.txt
writing requirements to Adafruit_SSD1306.egg-info/requires.txt
writing top-level names to Adafruit_SSD1306.egg-info/top_level.txt
writing manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
reading manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
writing manifest file ‘Adafruit_SSD1306.egg-info/SOURCES.txt’
installing library code to build/bdist.linux-aarch64/egg
running install_lib
running build_py
creating build
creating build/lib
creating build/lib/Adafruit_SSD1306
copying Adafruit_SSD1306/SSD1306.py -> build/lib/Adafruit_SSD1306
copying Adafruit_SSD1306/init.py -> build/lib/Adafruit_SSD1306
creating build/bdist.linux-aarch64
creating build/bdist.linux-aarch64/egg
creating build/bdist.linux-aarch64/egg/Adafruit_SSD1306
copying build/lib/Adafruit_SSD1306/SSD1306.py -> build/bdist.linux-aarch64/egg/Adafruit_SSD1306
copying build/lib/Adafruit_SSD1306/init.py -> build/bdist.linux-aarch64/egg/Adafruit_SSD1306
byte-compiling build/bdist.linux-aarch64/egg/Adafruit_SSD1306/SSD1306.py to SSD1306.cpython-38.pyc
byte-compiling build/bdist.linux-aarch64/egg/Adafruit_SSD1306/init.py to init.cpython-38.pyc
creating build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/PKG-INFO -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/SOURCES.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/dependency_links.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/requires.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
copying Adafruit_SSD1306.egg-info/top_level.txt -> build/bdist.linux-aarch64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents…
creating dist
creating ‘dist/Adafruit_SSD1306-1.6.2-py3.8.egg’ and adding ‘build/bdist.linux-aarch64/egg’ to it
removing ‘build/bdist.linux-aarch64/egg’ (and everything under it)
Processing Adafruit_SSD1306-1.6.2-py3.8.egg
Removing /usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg
Copying Adafruit_SSD1306-1.6.2-py3.8.egg to /usr/local/lib/python3.8/dist-packages
Adafruit-SSD1306 1.6.2 is already the active version in easy-install.pthInstalled /usr/local/lib/python3.8/dist-packages/Adafruit_SSD1306-1.6.2-py3.8.egg
Processing dependencies for Adafruit-SSD1306==1.6.2
Searching for adafruit-pureio>=1.1.5
Reading https://pypi.org/simple/adafruit-pureio/
Downloading https://files.pythonhosted.org/packages/df/ca/9162d4648669d12af16d5a66d808bdef6967eb684cbed9b1a3ebc19b361a/Adafruit_PureIO-1.1.9.tar.gz#sha256=2caf22fb07c7f771d83267f331a76cde314723f884a9570ea6f768730c87a879
Best match: Adafruit-PureIO 1.1.9
Processing Adafruit_PureIO-1.1.9.tar.gz
Writing /tmp/easy_install-hzlmlgi0/Adafruit_PureIO-1.1.9/setup.cfg
Running Adafruit_PureIO-1.1.9/setup.py -q bdist_egg --dist-dir /tmp/easy_install-hzlmlgi0/Adafruit_PureIO-1.1.9/egg-dist-tmp-w7ffd0x4
WARNING: The directory ‘/home/rock/.cache/pip’ or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you may want sudo’s -H flag.
zip_safe flag not set; analyzing archive contents…
Moving Adafruit_PureIO-1.1.9-py3.8.egg to /usr/local/lib/python3.8/dist-packages
Adding Adafruit-PureIO 1.1.9 to easy-install.pth fileInstalled /usr/local/lib/python3.8/dist-packages/Adafruit_PureIO-1.1.9-py3.8.egg
Searching for Adafruit-GPIO==1.0.5
Best match: Adafruit-GPIO 1.0.5
Processing Adafruit_GPIO-1.0.5-py3.8.egg
Adafruit-GPIO 1.0.5 is already the active version in easy-install.pthUsing /usr/local/lib/python3.8/dist-packages/Adafruit_GPIO-1.0.5-py3.8.egg
Searching for spidev==3.5
Best match: spidev 3.5
Processing spidev-3.5-py3.8-linux-aarch64.egg
spidev 3.5 is already the active version in easy-install.pthUsing /usr/local/lib/python3.8/dist-packages/spidev-3.5-py3.8-linux-aarch64.egg
Finished processing dependencies for Adafruit-SSD1306==1.6.2
/home/rock
(Reading database … 202681 files and directories currently installed.)
Preparing to unpack /tmp/tmp.QLxIPB9ZHn …
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.
sudo apt install libjson-c3 python3.6 libpython3.6
root@rockpi4c:/etc/apt/sources.list.d# sudo apt install libjson-c3 python3.6 libpython3.6
Reading package lists… Done
Building dependency tree
Reading state information… Done
Package libjson-c3 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
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
Package libpython3.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 ‘libjson-c3’ has no installation candidate
E: Package ‘python3.6’ has no installation candidate
E: Package ‘libpython3.6’ has no installation candidate
sudo systemctl --type=service
root@rockpi4c:~# sudo systemctl --type=service
UNIT LOAD ACTIVE SUB DESCRIPTION
accounts-daemon.service loaded active running Accounts Service
alsa-restore.service loaded active exited Save/Restore Sound Card State
apport.service loaded active exited LSB: automatic crash report generation
avahi-daemon.service loaded active running Avahi mDNS/DNS-SD Stack
bluetooth.service loaded active running Bluetooth service
brcm-btfw-load.service loaded active running Load Broadcom Bluetooth firmware
console-setup.service loaded active exited Set console font and keymap
cron.service loaded active running Regular background program processing daemon
cups-browsed.service loaded active running Make remote CUPS printers available locally
cups.service loaded active running CUPS Scheduler
dbus.service loaded active running D-Bus System Message Bus
dhcpcd.service loaded active running DHCP Client Daemon
fake-hwclock.service loaded active exited Restore / save the current clock
fwupd.service loaded active running Firmware update daemon
getty@tty1.service loaded active running Getty on tty1
hddtemp.service loaded active exited LSB: disk temperature monitoring daemon
ifupdown-pre.service loaded active exited Helper to synchronize boot up for ifupdown
kerneloops.service loaded active running Tool to automatically collect and submit kernel crash signatures
keyboard-setup.service loaded active exited Set the console keyboard layout
kmod-static-nodes.service loaded active exited Create list of static device nodes for the current kernel
lightdm.service loaded active running Light Display Manager
ModemManager.service loaded active running Modem Manager
networking.service loaded active exited Raise network interfaces
NetworkManager-wait-online.service loaded active exited Network Manager Wait Online
NetworkManager.service loaded active running Network Manager
ntp.service loaded active running Network Time Service
openvpn.service loaded active exited OpenVPN service
polkit.service loaded active running Authorization Manager
rc-local.service loaded active exited /etc/rc.local Compatibility
resolvconf.service loaded active exited Nameserver information manager
● rockpi-penta.service loaded failed failed Rockpi SATA Hat
serial-getty@ttyFIQ0.service loaded active running Serial Getty on ttyFIQ0
setvtrgb.service loaded active exited Set console scheme
snapd.seeded.service loaded active exited Wait until snapd is fully seeded
ssh.service loaded active running OpenBSD Secure Shell server
sysfsutils.service loaded active exited LSB: Set sysfs variables from /etc/sysfs.conf
sysstat.service loaded active exited Resets System Activity Data Collector
systemd-journal-flush.service loaded active exited Flush Journal to Persistent Storage
systemd-journald.service loaded active running Journal Service
systemd-logind.service loaded active running Login Service
systemd-modules-load.service loaded active exited Load Kernel Modules
systemd-random-seed.service loaded active exited Load/Save Random Seed
systemd-remount-fs.service loaded active exited Remount Root and Kernel File Systems
systemd-resolved.service loaded active running Network Name Resolution
systemd-sysctl.service loaded active exited Apply Kernel Variables
systemd-sysusers.service loaded active exited Create System Users
systemd-tmpfiles-setup-dev.service loaded active exited Create Static Device Nodes in /dev
systemd-tmpfiles-setup.service loaded active exited Create Volatile Files and Directories
systemd-udev-trigger.service loaded active exited udev Coldplug all Devices
systemd-udevd.service loaded active running udev Kernel Device Manager
systemd-update-utmp.service loaded active exited Update UTMP about System Boot/Shutdown
systemd-user-sessions.service loaded active exited Permit User Sessions
udisks2.service loaded active running Disk Manager
ufw.service loaded active exited Uncomplicated firewall
unattended-upgrades.service loaded active running Unattended Upgrades Shutdown
upower.service loaded active running Daemon for power management
user-runtime-dir@1000.service loaded active exited User Runtime Directory /run/user/1000
user@1000.service loaded active running User Manager for UID 1000
whoopsie.service loaded active running crash report submission daemon
wpa_supplicant.service loaded active running WPA supplicant
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB = The low-level unit activation state, values depend on unit type.
60 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use ‘systemctl list-unit-files’.
systemctl status rockpi-penta.service
root@rockpi4c:~# systemctl status rockpi-penta.service
● rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2021-06-18 18:19:12 +03; 1h 18min ago
Process: 11527 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py on (code=exited, status=1/FAILURE)
Main PID: 11527 (code=exited, status=1/FAILURE)
Jun 18 18:19:12 rockpi4c systemd[1]: rockpi-penta.service: Scheduled restart job, restart counter is at 5.
Jun 18 18:19:12 rockpi4c systemd[1]: Stopped Rockpi SATA Hat.
Jun 18 18:19:12 rockpi4c systemd[1]: rockpi-penta.service: Start request repeated too quickly.
Jun 18 18:19:12 rockpi4c systemd[1]: rockpi-penta.service: Failed with result ‘exit-code’.
Jun 18 18:19:12 rockpi4c systemd[1]: Failed to start Rockpi SATA Hat.
@All and @jack Help me please =)