Would you like to apt-get install the packages? [Y/n] y
Hit:1 Index of /ubuntu-ports focal InRelease
Hit:2 Index of /ubuntu-ports focal-security InRelease
Hit:3 Index of /ubuntu-ports focal-updates InRelease
Hit:4 Index of /ubuntu-ports focal-backports InRelease
Hit:5 http://apt.radxa.com/focal-stable focal InRelease
Reading package lists… Done
Reading package lists… Done
Building dependency tree
Reading state information… Done E: Unable to locate package radxarock3modela-rk-u-boot-latest
Traceback (most recent call last):
File “setup.py”, line 3, in
from setuptools import setup, find_packages
ModuleNotFoundError: No module named ‘setuptools’
Selecting previously unselected package rockpi-penta.
(Reading database … 59570 files and directories currently installed.)
Preparing to unpack /tmp/tmp.bfyplXLmRN …
Unpacking rockpi-penta (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 “/usr/bin/rockpi-penta/misc.py”, line 6, in
import mraa # pylint: disable=import-error
ModuleNotFoundError: No module named ‘mraa’
After Failing with
rock@rock-3a: sudo dpkg -i ./rock-3a-rk-ubootimg_2017.09-gfd3d0a53104-210525_all.deb I Called
rock@rock-3a:~$ sudo apt install ./rock-3a-rk-ubootimg_2017.09-gfd3d0a53104-210525_all.deb
Reading package lists… Error!
E: Invalid archive signature
E: Internal error, could not locate member control.tar.{zstlz4gzxzbz2lzma}
E: Could not read meta data from /home/rock/rock-3a-rk-ubootimg_2017.09-gfd3d0a53104-210525_all.deb
E: The package lists or status file could not be parsed or opened.
I have no ubuntu to test at the moment, but this looks like You have missing packages/dependencies, purge those packages and try to use apt to search anything like “mraa” (maybe without “1”). There should be some libs for that, they need to be compiled for arm64, quick google shows that there have to be something (like this: https://launchpad.net/~mraa/+archive/ubuntu/mraa/+build/19234560 )
At the end You should have python3-mraa package required for penta hat setup (maybe try that alone to install and see if it fails?).
Thank you so much for your hints up to now …dominik
But still no good! apart from the ..1’s It installed the other stuff
but sudo apt install libmraa
Reading package lists… Done
Building dependency tree
Reading state information… Done
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
E: Unable to correct problems, you have held broken packages.
rock@rock-3a:~$ sudo apt install libjson-c4
Reading package lists… Done
Building dependency tree
Reading state information… Done
libjson-c4 is already the newest version (0.13.1+dfsg-7ubuntu0.3).
libjson-c4 set to manually installed.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
rock@rock-3a:~$ sudo apt install libjson-c3
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
E: Package ‘libjson-c3’ has no installation candidate
Found this:
Plus After aplying that fix
plus an
apt update
libmraa finally has installed!
Still .. Unable to locate package radxarock3modela-rk-u-boot-latest plus all subseqent errors from above
Instead of radxarock4modela-rk-u-boot-latest for rock3a this one is suitable: rockpis-rk-u-boot-latest
yet I don’t know if it’s really required for that hat, updating bootloader can make your board not bootable
after installation of libmraa what is output from penta sata hat service?
This is the result after install of rockpis-rk-u-boot-latest: I dId not dare to apply change to the boot sector. Should I give that a Try?
And how do I revert it that fails. Do a Backup with dd before?
So PENTA SATA HAT still is not active
11:14 Failed to start Rockpi SATA Hat. systemd
11:14 rockpi-penta.service: Failed with result ‘exit-code’. systemd
11:14 rockpi-penta.service: Start request repeated too quickly. systemd
11:14 Stopped Rockpi SATA Hat. systemd
11:14 rockpi-penta.service: Scheduled restart job, restart counter is at 5. systemd
11:14 rockpi-penta.service: Failed with result ‘exit-code’. systemd
11:14 rockpi-penta.service: Main process exited, code=exited, status=1/FAILURE systemd
11:14 ValueError: Error initialising PWM on pin python3
11:14 this = _mraa.new_Pwm(pin, owner, chipid) python3
11:14 File “/usr/local/lib/python3.8/dist-packages/mraa.py”, line 579, in init python3
What helped to get libmraa installed, was your hint that was deleted unfortunately
I burned today Your image and checked what is wrong about libmraa, seems that it depends on older libjson-c3, on focal there is libjson-c4 istead. To get rid of that You need to find repo with all needed dependencies, according to this link: https://wiki.radxa.com/Rockpi4/dev/libmraa all You need to do is to add testing repo with key for focal. uncomment that in sources.list.d/apt-radxa-com.list
I deleted that reply because I noticed You already got mraa package. @stephen just regenerated all images with debos: https://github.com/radxa/debos-radxa/releases
I would start yet again trying focal image and see if it’s any better. Also check debian and armbian - they may have right packages out of box. I’ll have that hat in 2-3 weeks and will be able to see it in action (and full setup ;))
Now there is another error, there is no /boot/hw_intfc.conf file in system
It fails at: Traceback (most recent call last): File "/usr/bin/rockpi-penta/misc.py", line 192, in <module> open_pwm_i2c() File "/usr/bin/rockpi-penta/misc.py", line 181, in open_pwm_i2c replace('/boot/hw_intfc.conf', 'intfc:pwm0=off', 'intfc:pwm0=on') File "/usr/bin/rockpi-penta/misc.py", line 171, in replace with open(filename, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '/boot/hw_intfc.conf'
But there is another errors, which you can notice Here is complete paste
The only thing which I did after flashing OS was apt update & upgrade
This is file for rockpi 4, but not for 3a, as mentioned here
Hi! got rock-3a and Penta HAT
Have the same problem, want to follow this topic and bring some logs aswell:
“Package(s) radxarock3modela-rk-u-boot-latest rockpi4-dtbo gcc python3-dev python3-pil is required.”
“E: Unable to locate package radxarock3modela-rk-u-boot-latest”
Install:
Would you like to apt-get install the packages?
E: Unable to locate package radxarock3modela-rk-u-boot-latest
unable to execute ‘aarch64-linux-gnu-gcc’: No such file or directory
error: Setup script exited with error: command ‘aarch64-linux-gnu-gcc’ failed with exit status 1
(Reading database … 60240 files and directories currently installed.)
Preparing to unpack /tmp/tmp.K6hnKpGGE3 …
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 “/usr/bin/rockpi-penta/misc.py”, line 192, in **
** open_pwm_i2c()**
** File “/usr/bin/rockpi-penta/misc.py”, line 181, in open_pwm_i2c**
** replace(’/boot/hw_intfc.conf’, ‘intfc:pwm0=off’, ‘intfc:pwm0=on’)**
** File “/usr/bin/rockpi-penta/misc.py”, line 171, in replace**
** with open(filename, ‘r’) as f:** FileNotFoundError: [Errno 2] No such file or directory: '/boot/hw_intfc.conf’
After reboot:
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 2022-01-07 23:42:06 UTC; 11min ago
Process: 462 ExecStart=/usr/bin/python3 /usr/bin/rockpi-penta/main.py on (code=exited, status=1/FAILURE)
Main PID: 462 (code=exited, status=1/FAILURE)
Update:
since such file or directory: '/boot/hw_intfc.conf’ i made this file with touch /boot/hw_intfc.conf
yes, that made
systemctl status rockpi-penta.service
● rockpi-penta.service - Rockpi SATA Hat
Loaded: loaded (/lib/systemd/system/rockpi-penta.service; enabled; vendor >
Active: active (running) since Mon 2022-01-10 14:33:05 UTC; 49min ago
Main PID: 335 (python3)
Tasks: 2 (limit: 8600)
Memory: 14.4M
CGroup: /system.slice/rockpi-penta.service
├─335 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
└─414 /usr/bin/python3 /usr/bin/rockpi-penta/main.py on
but top hat (fan and oled) - still not working
all drives are showing (i have 3 2.5" hdd + emmc)
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 465.8G 0 disk -sda1 8:1 0 465.8G 0 part sdb 8:16 0 465.8G 0 disk -sdb1 8:17 0 465.8G 0 part
sdc 8:32 0 149.1G 0 disk -sdc1 8:33 0 149G 0 part mmcblk0 179:0 0 57.6G 0 disk |-mmcblk0p1 179:1 0 512M 0 part -mmcblk0p2 179:2 0 56.3G 0 part /
mmcblk0boot0 179:32 0 4M 1 disk
mmcblk0boot1 179:64 0 4M 1 disk
i noticed, that if connect top hat (fan+oled) via included wire it will spin sometimes, but not when i connect it completely
i dont have similar cable to check if there is problem with cable.
Regarding the above, have a look at Packages in “libmraa” : libmraa : “mraa” team where you can actually see details about the available packages – this’ll tell you that you want to install libmraa2 and libupm2 when using said third-party repository. As a rule of thumb, however, you don’t need to specify non-dev library packages in the first place when installing the main packages (here: mra, upm) as the former should be listed as dependencies (apt is supposed to take care of these, dpkg won’t).
Did that already and both .deb’s installed fluelessly but still the PENTA SATA HAT will not install and activate on the rock3a.
So Im Waiting for setq’s respond by tomorrow I hope…