Libmraa2 Won't Install

Trying to use the GPIO pins seems to be quite the challenge for the Rock SBC. I, like many others, am trying my best; but unable to figure it out.

My current, failed, best shot below. Any help greatly appreciated!

radxa@rock-4c-plus:~/Projects$ sudo apt install libmraa2
[sudo] password for radxa:
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:
libmraa2 : Depends: libjson-c5 (>= 0.15) but it is not installable
E: Unable to correct problems, you have held broken packages.

Note: I am using the rock-4c-plus_ubuntu_focal_kde_b60.img.xz image, which has the following repos enabled:

deb http://ports.ubuntu.com/ubuntu-ports focal main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-security main restricted universe multiverse
deb http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted universe multiverse
deb [signed-by=/usr/share/keyrings/radxa-archive-keyring.gpg] https://radxa-repo.github.io/focal focal main
deb [signed-by=/usr/share/keyrings/vscodium-archive-keyring.gpg] https://download.vscodium.com/debs vscodium main

@Nasca please help to check and give some advice

Use the debian image and follow these steps to install it:

sudo apt-get update -y
sudo apt-get install libmraa2 libmraa-dev libmraa-java python3-mraa mraa-tools -y

If you’re using ubuntu, you may need to compile and install it yourself.

Ok, I’ll try that, hopefully later today.

Sadly, the debian image is a complete fail. See screenshot @ https://www.dropbox.com/scl/fi/xpjm56oh6txbxkmtc8abj/Rock4C-_BootFail.jpg?rlkey=038r4teap389ocyn4ip1d7pnr&dl=0

Here’s what I did –

  1. Flashed the rock-4c-plus_debian_bullseye_kde_b55.img.xz image to the eMMC card.
  2. Snapped the eMMC card onto the Rock 4C+ SBC, turned power on. It did boot into KDE.
  3. I logged into KDE. Ran Discover and applied all the updates (~206 of them). Discover did that successfully. Well, at least it completed the process and reported no errors.
  4. Upon completion of the updates I did a ‘shutdown’ (not a restart, a full shutdown to power off). This is my normal habit whenever there are lots of updates, to make sure I have clean reboot with all updates applied.
  5. After powering back on the boot process hangs. The Rock will not boot. See screenshot to see where it hangs: https://www.dropbox.com/scl/fi/xpjm56oh6txbxkmtc8abj/Rock4C-_BootFail.jpg?rlkey=038r4teap389ocyn4ip1d7pnr&dl=0
  6. I did a force poweroff (holding down the power off button until the Rock turned itself off).
  7. I powered on a 2nd time. Again, the boot process hung in the same spot.

Ok, so after about a week of simply trying to get the Rock to work so that I can even begin my own project I now give up.

Listen - I was really hoping for a good Raspberry Pi competitor. It would be good for the whole ecosystem. I was cheering for you guys. But it’s just too difficult to get your board working. Your product just isn’t there. Your documentation is scattered, hard to find and mostly seems to be out of date. And your support is thin. So I’m going to set the Rock aside and go back to Raspberry Pi. But, thanks for trying.

I’m sorry for the bad experience.

This forum is supposed to support direct image uploading, the link you sent can’t be opened on my side. I’m using the above mentioned image, and after updating or upgrading, I can boot up normally, and then I can also install libmraa normally.


Regarding the documentation, we are recently improving the content and will try to make it as easy to understand as possible.

Found the upload button - so here is the boot-fail screenshot.