Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
matrixio-kernel-modules
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/20.6 kB of archives.
After this operation, 115 kB of additional disk space will be used.
Selecting previously unselected package matrixio-kernel-modules.
(Reading database … 211908 files and directories currently installed.)
Preparing to unpack …/matrixio-kernel-modules_0.2.3_all.deb …
Unpacking matrixio-kernel-modules (0.2.3) …
Setting up matrixio-kernel-modules (0.2.3) …
Loading new matrixio-kernel-modules-0.2.3 DKMS files…
It is likely that 5.4.51-v7l+ belongs to a chroot’s host
Building for 5.4.51+, 5.4.51-v7+, 5.4.51-v7l+ and 5.4.51-v8+
Building initial module for 5.4.51+
Error! Bad return status for module build on kernel: 5.4.51+ (armv7l)
Consult /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/make.log for more information.
dpkg: error processing package matrixio-kernel-modules (–configure):
installed matrixio-kernel-modules package post-installation script subprocess returned error exit status 10
Errors were encountered while processing:
matrixio-kernel-modules
E: Sub-process /usr/bin/dpkg returned an error code (1)
Can somebody help please?
uname -a
Linux raspberrypi 5.4.51-v7l+ #1327 SMP Thu Jul 23 11:04:39 BST 2020 armv7l GNU/Linux
in logs:
cat /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/make.log
DKMS make.log for matrixio-kernel-modules-0.2.3 for kernel 5.4.51+ (armv7l)
Wed 29 Jul 2020 04:19:43 PM CEST
make: Entering directory ‘/usr/src/linux-headers-5.4.51+’
AR /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/built-in.a
CC [M] /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-core.o
CC [M] /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-uart.o
CC [M] /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-everloop.o
CC [M] /var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-codec.o
/var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-codec.c:34:3: error: ‘struct snd_soc_dai_link’ has no member named ‘codec_dai_name’; did you mean ‘stream_name’?
.codec_dai_name = “snd-soc-dummy-dai”,
^~~~~~~~~~~~~~
stream_name
/var/lib/dkms/matrixio-kernel-modules/0.2.3/build/matrixio-codec.c:34:20: error: initialization of ‘struct snd_soc_dai_link_component *’ from incompatible pointer type ‘char *’ [-Werror=incompatible-pointer-types]
.codec_dai_name = “snd-soc-dummy-dai”,
…
The kernel issue has now been resolved, so you can try reverting to the newest Linux kernels and re-install the latest MATRIX kernel modules to try again. Steps here.
For errors like this, you should:
Check that the MATRIX packages are properly installed
dpkg -l | grep matrix
Check if MATRIX microphones have registered in ALSA
arecord -l
Let me know how it goes. You can send screenshots here for us to troubleshoot together. It might be worth updating everything with the latest versions and trying again though.
$ dpkg -l | grep matrix
ii libmatrixio-creator-hal:armhf 0.3.8 armhf Hardware Abstraction Layer for MATRIX.
ii libmatrixio-creator-hal-dev 0.3.8 armhf Hardware Abstraction Layer for MATRIX (headers)
ii libswresample3:armhf 7:4.1.6-1~deb10u1+rpt1 armhf FFmpeg library for audio resampling, rematrixing etc. - runtime files
ii matrixio-creator-init 0.4.17 armhf Install scripts that can program the MATRIX Creator FPGA and SAM3 IMU.
ii matrixio-kernel-modules 0.2.4 all Source DKMS for MATRIXIO kernel modules.
ii matrixio-openocd 1.0.1.002 armhf Open on-chip JTAG debug solution for ARM and MIPS systems
ii matrixio-xc3sprog 1.1.1.003 armhf Spartan3, XCF and CPLD JTAG programmer and other utilities.
by the way I could record audio when I added --device option like that:
arecord --device=hw:MATRIXIOSOUND -r 16000 -c 1 -f S16_LE test.wav -d 5
in addition when I used js module - I finally could record audio only after providing the device option. I could not find any documentation which options are supported and just wrote like this:
var mic = matrix.alsa.mic({ // or configure settings
device: ‘hw:MATRIXIOSOUND’,
rate: ‘16000’,
debug: true,
exitOnSilence: 6,
// up to 8 channels
channels: ‘1’
});
I think it might be useful for your documentation if someone faces the same problem
Guys please update the documentation if someone has other default device (not card 2 but card 3 for example) then we need to change the ./asoundrc file and this file above to let it work