Repository 'https://apt.matrix.one/raspbian buster InRelease' doesn't support architecture 'arm64'

Hi,

I am attempting to install matrix hal, matrix kernel modules, and matrix-creator-init in balenaOS. The system uses the raspberry pi kernel in the raspbian container and has access to all the hardware interfaces. I’ve managed to make substantial progress.

So far I have installed matrix hall and matrix kernel modules from source, but I am unable to get matrix-creator init installed.

I would prefer to use the binary distributed packages though, but I am having trouble with the install.

When performing these steps to install it:

apt-get install lsb-release apt-transport-https && \
curl https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add - && \
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | tee /etc/apt/sources.list.d/matrixlabs.list && \
apt-get update

I get this error message:

N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://apt.matrix.one/raspbian buster InRelease' doesn't support architecture 'arm64'

I have also tried adding the armhf architecture via dpkg:
dpkg --add-architecture armhf, but the dependencies are marked as uninstallable.

Is there any way to install 64bit versions of these packages via apt?

Thank you for any help you could provide

Here’s the relevant thread from the balenaOS forums: https://forums.balena.io/t/cant-send-spi-message-error-when-running-matrix-creator-examples-on-resinos/3267/48

1 Like

Next I tried changing /etc/apt/sources.list.d/matrixlabs.list to
deb [arch=armhf] https://apt.matrix.one/raspbian buster main
based on this documentation https://wiki.debian.org/Multiarch/HOWTO#Setting_up_apt_sources

That fixed the issue of it being skipped during the apt update, but apt says the dependencies are still not installable

root@04b083b:/usr/src/app# apt-get install matrixio-creator-init libmatrixio-creator-hal libmatrixio-creator-hal-dev
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:
 libmatrixio-creator-hal:armhf : Depends: wiringpi:armhf but it is not installable
                                 Depends: libgflags-dev:armhf but it is not going to be installed
 matrixio-creator-init:armhf : Depends: libreadline6:armhf (>= 6.0) but it is not installable
                               Depends: wiringpi:armhf but it is not installable
                               Depends: matrixio-xc3sprog:armhf but it is not going to be installed
                               Depends: python-pip:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.
root@04b083b:/usr/src/app# 

I’ve managed to get libreadline6 and wiringpi installed by manually downloading deb files on the web and installing. However, I cannot get python-pip installed. python-pip comes installed but the version that is installed is python-pip:all not python-pip:armhf and I believe python-pip:armhf does not exist because the tool is not architecture specific due to it being written in an interpreted language.

I am stuck here:

The following packages have unmet dependencies:
 matrixio-creator-init:armhf : Depends: python-pip:armhf but it is not installable
E: Unable to correct problems, you have held broken packages.

@airfield20,

Welcome to the community!

We currently don’t have arm64-compatible debian files to install through apt and are working on that.

I saw on your balena forum thread that you have made good progress with a 32-bit OS and are having ALSA issues with audio recording and playback.

From your thread, I see you had an invalid argument error when trying arecord
image

Can you instead try the following commands to record and playback?

arecord recording.wav -f S16_LE -r 16000 -d 5
aplay recording.wav

Best,
Samreen

Hi Samreen, thank you for the assistance. Unfortunately the output is unchanged when specifying the format and rate:

root@5a54ff0:/usr/src/app/matrix-creator-hal/build/demos# arecord recording.wav -f S16_LE -r 16000 -d 5
arecord: main:828: audio open error: Invalid argument
root@5a54ff0:/usr/src/app/matrix-creator-hal/build/demos# aplay recording.wav
recording.wav: No such file or directory

@airfield20,

I have not tried using balenaOS. There must be some hardware access limitation because of the container. Can the drivers be enabled in the host OS?

Best,
Samreen

There shouldnt be a hardware access limitation. I can connect to sensors and the everloop, also I can build and load the kernel modules from the matrix kernel modules repo manually. I believe there is an issue with building the kernel modules

@Samreen do you know why the modules specifically require the raspbian kernel? That may help me diagnose the issue.