Closed ngreve closed 1 year ago
See https://github.com/respeaker/seeed-voicecard/pull/323#issuecomment-1483811134 , and possibly also the latest #336
I have a Respeaker 4-mic linear array and can't get it to work in bullseye 64bit.
With the original repo I get the loop.
Please reboot your machine AND THEN run this script again
With HinTak's repo after the installation my menübar vanishes. This is what I get in the terminal:
pi@raspberrypi:~/seeed-voicecard $ sudo ./install.sh /bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE) Hit:1 http://deb.debian.org/debian bullseye InRelease Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done Building dependency tree... Done Reading state information... Done All packages are up to date. Reading package lists... Done Building dependency tree... Done Reading state information... Done raspberrypi-kernel is already the newest version (1:1.20230405-1). raspberrypi-kernel-headers is already the newest version (1:1.20230405-1). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done Note, selecting 'gcc' instead of 'gcc-aarch64-linux-gnu' gcc is already the newest version (4:10.2.1-1). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree... Done Reading state information... Done E: Unable to locate package linux-raspi E: Unable to locate package linux-headers-raspi E: Unable to locate package linux-image-raspi Reading package lists... Done Building dependency tree... Done Reading state information... Done libasound2-plugins is already the newest version (1.2.2-2). dkms is already the newest version (2.8.4-3). i2c-tools is already the newest version (4.2-1+b1). git is already the newest version (1:2.30.2-1+deb11u2). The following package was automatically installed and is no longer required: libfuse2 Use 'sudo apt autoremove' to remove it. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. grep: /boot/kernel.img: No such file or directorygzip: stdin: unexpected end of file grep: /boot/kernel.img: No such file or directory
gzip: stdin: unexpected end of file /bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE) Error! The module/version combo: seeed-voicecard-0.3 is not located in the DKMS tree. /bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
Creating symlink /var/lib/dkms/seeed-voicecard/0.3/source -> /usr/src/seeed-voicecard-0.3
DKMS: add completed. /bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
Kernel preparation unnecessary for this kernel. Skipping...
Building module: cleaning build area... make -j4 KERNELRELEASE=6.1.21-v8+ -C /lib/modules/6.1.21-v8+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.... cleaning build area...
DKMS: build completed. /bin/bash: warning: setlocale: LC_ALL: cannot change locale (de_DE)
snd-soc-wm8960.ko.xz: Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
snd-soc-ac108.ko.xz: Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
snd-soc-seeed-voicecard.ko.xz: Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
depmod....
DKMS: install completed. git init hint: Using 'master' as the name for the initial branch. This default branch name hint: is subject to change. To configure the initial branch name to use in all hint: of your new repositories, which will suppress this warning, call: hint: hint: git config --global init.defaultBranch
hint: hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and hint: 'development'. The just-created branch can be renamed via this command: hint: hint: git branch -m Initialized empty Git repository in /etc/voicecard/.git/ git add --all git commit -m "origin configures" [master (root-commit) 360e5a5] origin configures 7 files changed, 1482 insertions(+) create mode 100644 ac108_6mic.state create mode 100644 ac108_asound.state create mode 100644 asound_2mic.conf create mode 100644 asound_4mic.conf create mode 100644 asound_6mic.conf create mode 100644 dkms.conf create mode 100644 wm8960_asound.state Created symlink /etc/systemd/system/sysinit.target.wants/seeed-voicecard.service ��� /lib/systemd/system/seeed-voicecard.service. Please reboot your raspberry pi to apply all settings Enjoy!
Any ideas would be appreciated.
Sorry, I don't now why everything after 'depmod' is written in big letters.
@lxne I like to see the result of just "make ; sudo make install" ? That may be more useful at the moment.
Hi @HinTak, for not messing things up, I started from scratch. After setting everything up I instantly get an error when trying the make command (see at bottom).
Hardware Raspberry Pi 400 Rev 1.1 Seeed Studio ReSpeaker 4-Mic Linear Array
Raspberry Pi OS
Preparing the SD card with Raspberry Pi Imager v1.7.4 Bullseye 64bit
First boot -> Updates -> reboot
_cat /etc/debianversion
11.6
uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
sudo apt-get update
Hit:1 http://security.debian.org/debian-security bullseye-security InRelease
Hit:2 http://deb.debian.org/debian bullseye InRelease
Hit:3 http://archive.raspberrypi.org/debian bullseye InRelease
Hit:4 http://deb.debian.org/debian bullseye-updates InRelease
Reading package lists... Done
git clone https://github.com/HinTak/seeed-voicecard.git
Cloning into 'seeed-voicecard'...
remote: Enumerating objects: 1369, done.
remote: Counting objects: 100% (393/393), done.
remote: Compressing objects: 100% (36/36), done.
remote: Total 1369 (delta 368), reused 371 (delta 357), pack-reused 976
Receiving objects: 100% (1369/1369), 1.17 MiB | 3.19 MiB/s, done.
Resolving deltas: 100% (900/900), done.
cd seeed-voicecard/ make ; sudo make install
make -C /lib/modules/6.1.21-v8+/build M=/home/pi/seeed-voicecard modules
make[1]: *** /lib/modules/6.1.21-v8+/build: No such file or directory. Stop.
make: *** [Makefile:37: all] Error 2
sudo cp snd-soc-ac108.ko /lib/modules/6.1.21-v8+/kernel/sound/soc/codecs/
cp: cannot stat 'snd-soc-ac108.ko': No such file or directory
make: *** [Makefile:43: install] Error 1
Then I tried install.sh and did a restart -> menu bar gone -> result of arecord -L at the bottom
sudo ./install.sh
Hit:1 http://deb.debian.org/debian bullseye InRelease
Hit:2 http://deb.debian.org/debian bullseye-updates InRelease
Hit:3 http://security.debian.org/debian-security bullseye-security InRelease
Hit:4 http://archive.raspberrypi.org/debian bullseye InRelease
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
raspberrypi-kernel is already the newest version (1:1.20230405-1).
The following package was automatically installed and is no longer required:
libfuse2
Use 'sudo apt autoremove' to remove it.
The following NEW packages will be installed:
raspberrypi-kernel-headers
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.2 MB of archives.
After this operation, 64.8 MB of additional disk space will be used.
Get:1 http://archive.raspberrypi.org/debian bullseye/main arm64 raspberrypi-kernel-headers arm64 1:1.20230405-1 [10.2 MB]
Fetched 10.2 MB in 4s (2,752 kB/s)
Selecting previously unselected package raspberrypi-kernel-headers.
(Reading database ... 96867 files and directories currently installed.)
Preparing to unpack .../raspberrypi-kernel-headers_1%3a1.20230405-1_arm64.deb ...
Unpacking raspberrypi-kernel-headers (1:1.20230405-1) ...
Setting up raspberrypi-kernel-headers (1:1.20230405-1) ...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'gcc' instead of 'gcc-aarch64-linux-gnu'
gcc is already the newest version (4:10.2.1-1).
gcc set to manually installed.
The following package was automatically installed and is no longer required:
libfuse2
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package linux-raspi
E: Unable to locate package linux-headers-raspi
E: Unable to locate package linux-image-raspi
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
libasound2-plugins is already the newest version (1.2.2-2).
libasound2-plugins set to manually installed.
i2c-tools is already the newest version (4.2-1+b1).
i2c-tools set to manually installed.
git is already the newest version (1:2.30.2-1+deb11u2).
The following package was automatically installed and is no longer required:
libfuse2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
dctrl-tools
Suggested packages:
debtags menu
The following NEW packages will be installed:
dctrl-tools dkms
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 179 kB of archives.
After this operation, 720 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main arm64 dctrl-tools arm64 2.24-3 [101 kB]
Get:2 http://deb.debian.org/debian bullseye/main arm64 dkms all 2.8.4-3 [78.2 kB]
Fetched 179 kB in 1s (295 kB/s)
Selecting previously unselected package dctrl-tools.
(Reading database ... 114935 files and directories currently installed.)
Preparing to unpack .../dctrl-tools_2.24-3_arm64.deb ...
Unpacking dctrl-tools (2.24-3) ...
Selecting previously unselected package dkms.
Preparing to unpack .../archives/dkms_2.8.4-3_all.deb ...
Unpacking dkms (2.8.4-3) ...
Setting up dctrl-tools (2.24-3) ...
Setting up dkms (2.8.4-3) ...
Processing triggers for man-db (2.9.4-2) ...
grep: /boot/kernel.img: No such file or directory
gzip: stdin: unexpected end of file
grep: /boot/kernel.img: No such file or directory
gzip: stdin: unexpected end of file
Creating symlink /var/lib/dkms/seeed-voicecard/0.3/source ->
/usr/src/seeed-voicecard-0.3
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area...
make -j4 KERNELRELEASE=6.1.21-v8+ -C /lib/modules/6.1.21-v8+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...
DKMS: build completed.
snd-soc-wm8960.ko.xz:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
snd-soc-ac108.ko.xz:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
snd-soc-seeed-voicecard.ko.xz:
Running module version sanity check.
- Original module
- Installation
- Installing to /lib/modules/6.1.21-v8+/updates/dkms/
depmod.....
DKMS: install completed.
setup git config
git init
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
Initialized empty Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
[master (root-commit) 1e30468] origin configures
7 files changed, 1482 insertions(+)
create mode 100644 ac108_6mic.state
create mode 100644 ac108_asound.state
create mode 100644 asound_2mic.conf
create mode 100644 asound_4mic.conf
create mode 100644 asound_6mic.conf
create mode 100644 dkms.conf
create mode 100644 wm8960_asound.state
Created symlink /etc/systemd/system/sysinit.target.wants/seeed-voicecard.service → /lib/systemd/system/seeed-voicecard.service.
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------
reboot -> menu bar gone
arecord -L
null
Discard all samples (playback) or generate zero samples (capture)
sysdefault
Default Audio Device
lavrate
Rate Converter Plugin Using Libav/FFmpeg Library
samplerate
Rate Converter Plugin Using Samplerate Library
speexrate
Rate Converter Plugin Using Speex Resampler
jack
JACK Audio Connection Kit
oss
Open Sound System
pulse
PulseAudio Sound Server
upmix
Plugin for channel upmix (4,6,8)
vdownmix
Plugin for channel downmix (stereo) with a simple spacialization
default
Playback/recording through the PulseAudio sound server
ac108
dmixer
ac101
usbstream:CARD=vc4hdmi0
vc4-hdmi-0
USB Stream Output
usbstream:CARD=vc4hdmi1
vc4-hdmi-1
USB Stream Output
hw:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard, bcm2835-i2s-ac10x-codec0 ac10x-codec0-0
Direct hardware device without any conversions
plughw:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard, bcm2835-i2s-ac10x-codec0 ac10x-codec0-0
Hardware device with all software conversions
sysdefault:CARD=seeed8micvoicec
seeed-8mic-voicecard, bcm2835-i2s-ac10x-codec0 ac10x-codec0-0
Default Audio Device
dsnoop:CARD=seeed8micvoicec,DEV=0
seeed-8mic-voicecard, bcm2835-i2s-ac10x-codec0 ac10x-codec0-0
Direct sample snooping device
usbstream:CARD=seeed8micvoicec
seeed-8mic-voicecard
USB Stream Output
Then I tried the make command again – this time no errors – and did a reboot -> everything stays the same (no menu bar). Recording works!
make ; sudo make install
make -C /lib/modules/6.1.21-v8+/build M=/home/pi/seeed-voicecard modules
make[1]: Entering directory '/usr/src/linux-headers-6.1.21-v8+'
CC [M] /home/pi/seeed-voicecard/wm8960.o
LD [M] /home/pi/seeed-voicecard/snd-soc-wm8960.o
CC [M] /home/pi/seeed-voicecard/ac108.o
CC [M] /home/pi/seeed-voicecard/ac101.o
LD [M] /home/pi/seeed-voicecard/snd-soc-ac108.o
CC [M] /home/pi/seeed-voicecard/seeed-voicecard.o
LD [M] /home/pi/seeed-voicecard/snd-soc-seeed-voicecard.o
MODPOST /home/pi/seeed-voicecard/Module.symvers
CC [M] /home/pi/seeed-voicecard/snd-soc-ac108.mod.o
LD [M] /home/pi/seeed-voicecard/snd-soc-ac108.ko
CC [M] /home/pi/seeed-voicecard/snd-soc-seeed-voicecard.mod.o
LD [M] /home/pi/seeed-voicecard/snd-soc-seeed-voicecard.ko
CC [M] /home/pi/seeed-voicecard/snd-soc-wm8960.mod.o
LD [M] /home/pi/seeed-voicecard/snd-soc-wm8960.ko
make[1]: Leaving directory '/usr/src/linux-headers-6.1.21-v8+'
sudo cp snd-soc-ac108.ko /lib/modules/6.1.21-v8+/kernel/sound/soc/codecs/
sudo cp snd-soc-wm8960.ko /lib/modules/6.1.21-v8+/kernel/sound/soc/codecs/
sudo cp snd-soc-seeed-voicecard.ko /lib/modules/6.1.21-v8+/kernel/sound/soc/bcm/
sudo depmod -a
@lxne I posted elsewhere, The lxpanel issue (disappearing menu) is generic to pulsesaudio : https://forums.raspberrypi.com/viewtopic.php?t=295641 and somewhat unrelated; there are some tips there about restoring it.
@lxne I posted elsewhere, The lxpanel issue (disappearing menu) is generic to pulsesaudio : https://forums.raspberrypi.com/viewtopic.php?t=295641 and somewhat unrelated; there are some tips there about restoring it.
@HinTak Thank you for your reply. I looked into the link but I do not get the errors when I run pulseaudio manually and in /usr/share/alsa/alsa.conf there are 0 where they should be.
It is strange because I didn't do anything else with the fresh system then the tings documented above. Right now I am blank.
Sorry for the late response from my side.
See #323 (comment) , and possibly also the latest #336
Using @HinTak 's repository, worked for me. Thanks a lot for your work. I switched to the Lite Raspbian version for now, so I can not tell anything about a missing menu bar. @Ixne you should create an independent issue report for your problem anyway; your problem has nothing to do with my original report.
Just tested yesterday and the original respeaker repo didn't worked for me (https://github.com/respeaker/seeed-voicecard/issues/337)
But then I've tried this one -> https://github.com/HinTak/seeed-voicecard And the ./install.sh worked !
I'm running aplay and I can see my devices now listed:
aplay --list-devices
**** List of PLAYBACK Hardware Devices ****
card 0: seeed2micvoicec [seeed-2mic-voicecard], device 0: 1f000a0000.i2s-wm8960-hifi wm8960-hifi-0 [1f000a0000.i2s-wm8960-hifi wm8960-hifi-0]
Subdevices: 1/1
Subdevice #0: subdevice #0
EDIT: In your documentation, to which your readme also points, you are referencing a different git repository: https://github.com/Seeed-Projects/seeed-voicecard.git My old bug report was based on this other repository. Using this repository, I ran into another problem and updated this report.
Describe the bug
Your install script is the very first thing I run, after I've put a fresh Raspbian image on that sd card.
When running
install_arm64.sh
the script keeps telling me to reboot and run this script again:After reboot, the second run:
After the second run, the sound card is also not listed.
To Reproduce
Expected behavior
Should install properly.
Platform
uname -r
6.1.21-v8+, Release date: February 21st 2023Relevant log output
First run:
Second run: