Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v5.5 Fork does not work with ReSpeaker 4-Mic Array #236

Closed
DerT94 opened this issue Jul 29, 2020 · 30 comments
Closed

v5.5 Fork does not work with ReSpeaker 4-Mic Array #236

DerT94 opened this issue Jul 29, 2020 · 30 comments

Comments

@DerT94
Copy link

DerT94 commented Jul 29, 2020

Hi,

I have the ReSpeaker 4-Mic Array and cannot install the driver.
The driver was already installed for the 2-Mic-Array

I use this fork
https://github.com/HinTak/seeed-voicecard/tree/v5.5

If i run "sudo ./install.sh" it stucks at the following point.

DKMS: install completed.
git init
Leeres Git-Repository in /etc/voicecard/.git/ initialisiert
git add --all
git commit -m "origin configures"
[master (Basis-Commit) 339c3b5] origin configures
 7 files changed, 1476 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
@HinTak
Copy link
Contributor

HinTak commented Jul 29, 2020

And reboot and?

@DerT94
Copy link
Author

DerT94 commented Jul 30, 2020

Nothing.
If I try "arecord -Dac108 -f S32_LE -r 16000 -c 4 hello.wav"

pi@testpi:~ $ arecord -D ac108 -f S32_LE -r 16000 -c 4 hello.wav
Aufnahme: WAVE 'hello.wav' : Signed 32 bit Little Endian, Rate: 16000 Hz, 4 Kanäle
arecord: pcm_read:2145: Read error: Input/output error

@DerT94
Copy link
Author

DerT94 commented Jul 30, 2020

It is working with the master branch
https://github.com/HinTak/seeed-voicecard/tree/master

But with an update, the kernel is also updated and then it no longer works

@HinTak
Copy link
Contributor

HinTak commented Jul 30, 2020

What is your current kernel version?

@baileyji
Copy link

baileyji commented Aug 2, 2020

@HinTak I'm running into this issue as well. I'm on Raspbian Buster with kernel 5.4.51-v7l+. Looking at the journal for seeed-voicecard it is exiting with a failure right these messages on you v5.5 branch

Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + echo 'create seeed-4mic-voicecard asound configure file'
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: create seeed-4mic-voicecard asound configure file
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + ln -s /etc/voicecard/asound_4mic.conf /etc/asound.conf
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + echo 'create seeed-4mic-voicecard asound status file'
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: create seeed-4mic-voicecard asound status file
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + ln -s /etc/voicecard/ac108_asound.state /var/lib/alsa/asound.state
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + alsactl restore
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: No state is present for card b1
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: Found hardware: "bcm2835_hdmi" "Broadcom Mixer" "" "" ""
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: Hardware is initialized using a generic method
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: No state is present for card b1
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: No state is present for card Headphones
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: Found hardware: "bcm2835_headpho" "Broadcom Mixer" "" "" ""
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: Hardware is initialized using a generic method
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: No state is present for card Headphones
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: + amixer -c 1 cset numid=3 1
Aug 01 22:13:30 raspberrypi seeed-voicecard[1797]: amixer: Cannot find the given element from control hw:1

arecord -l and arecord -L both look good to me.

Switching to master forced a kernel downgrade to 4.19 but things work. Let me know if you want additional debugging info.

@DerT94 DerT94 changed the title install error v5.5 Fork does not work with ReSpeaker 4-Mic Array Aug 6, 2020
@HinTak
Copy link
Contributor

HinTak commented Aug 6, 2020

@DerT94 I updated my v5.5 branch yesterday with I think a fix. Give it a try?

@HinTak
Copy link
Contributor

HinTak commented Aug 7, 2020

@baileyji I'd be interested to know if you get all 4 channels on your hardware with your hardware (I updated v5.5 with a fix). See #240 , likely a 64-bit issue.

@DerT94
Copy link
Author

DerT94 commented Aug 7, 2020

@HinTak
I have now tested some things.
Hope not too many :)

git clone command:
git clone -b v5.5 https://github.com/HinTak/seeed-voicecard.git ~/programs/seeed-voicecard_5.5

Rapsberry Pi 3 + 2-MIC HAT

Same as in #239
Failed to start Seeed Voicecard service but the microphones work
Tested on two diffrent RPis

Installation output

pi@rhasspy1:~/programs/seeed-voicecard_5.5 $ sudo ./install.sh
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20200723-1).
raspberrypi-kernel-headers is already the newest version (1.20200723-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
libasound2-plugins is already the newest version (1.1.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Error! There are no instances of module: seeed-voicecard
0.3 located in the DKMS tree.

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=5.4.51+ -C /lib/modules/5.4.51+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/bcm/

depmod.......

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make -j4 KERNELRELEASE=5.4.51-v7+ -C /lib/modules/5.4.51-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/bcm/

depmod....

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.4.51-v7l+ -C /lib/modules/5.4.51-v7l+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/bcm/

depmod....

DKMS: install completed.
git init
Initialized empty Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
[master (root-commit) 472eeaa] origin configures
 7 files changed, 1476 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.
Job for seeed-voicecard.service failed because the control process exited with error code.
See "systemctl status seeed-voicecard.service" and "journalctl -xe" for details.
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

sudo journalctl -xe

Aug 07 12:48:20 rhasspy1 systemd[1]: Starting Seeed Voicecard service...
-- Subject: A start job for unit seeed-voicecard.service has begun execution
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- A start job for unit seeed-voicecard.service has begun execution.
--
-- The job identifier is 851.
Aug 07 12:48:20 rhasspy1 seeed-voicecard[4609]: + export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/vc/bin
Aug 07 12:48:20 rhasspy1 seeed-voicecard[4609]: + PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/vc/bin
Aug 07 12:48:20 rhasspy1 seeed-voicecard[4609]: + OVERLAYS=/boot/overlays
Aug 07 12:48:20 rhasspy1 seeed-voicecard[4609]: + '[' -d /boot/firmware/overlays ']'
Aug 07 12:48:20 rhasspy1 seeed-voicecard[4609]: + dtparam -d /boot/overlays i2c_arm=on
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + modprobe i2c-dev
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + dtparam -d /boot/overlays spi=on
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + _VER_RUN=
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + CONFIG=/boot/config.txt
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' -f /boot/firmware/usercfg.txt ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ i2cdetect -y 1 0x1a 0x1a
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ egrep '(1a|UU)'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ awk '{print $2}'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + is_1a=1a
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ i2cdetect -y 1 0x35 0x35
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ egrep '(35|UU)'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ awk '{print $2}'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + is_35=
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ i2cdetect -y 1 0x3b 0x3b
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ egrep '(3b|UU)'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ awk '{print $2}'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + is_3b=
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + RPI_HATS='seeed-2mic-voicecard seeed-4mic-voicecard seeed-8mic-voicecard'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + overlay=
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' x1a '!=' x ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' x == x ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + echo 'install 2mic'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: install 2mic
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + overlay=seeed-2mic-voicecard
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + asound_conf=/etc/voicecard/asound_2mic.conf
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + asound_state=/etc/voicecard/wm8960_asound.state
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' x '!=' x ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' x '!=' x ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + '[' seeed-2mic-voicecard ']'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + echo Install seeed-2mic-voicecard ...
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: Install seeed-2mic-voicecard ...
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + rm /etc/asound.conf
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + rm /var/lib/alsa/asound.state
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: ++ uname -r
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + kernel_ver=5.4.51-v7+
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + [[ 5.4.51-v7+ =~ ^4\.19.*$ ]]
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + dtoverlay -d /boot/overlays seeed-2mic-voicecard
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2s@7e203000/status
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/compatible
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/simple-audio-card,format
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/simple-audio-card,name
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/status
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/simple-audio-card,widgets
Aug 07 12:48:21 rhasspy1 kernel: OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/sound/simple-audio-card,routing
Aug 07 12:48:21 rhasspy1 kernel: asoc-simple-card soc:sound: wm8960-hifi <-> 3f203000.i2s mapping ok
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + echo 'create seeed-2mic-voicecard asound configure file'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: create seeed-2mic-voicecard asound configure file
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + ln -s /etc/voicecard/asound_2mic.conf /etc/asound.conf
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + echo 'create seeed-2mic-voicecard asound status file'
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: create seeed-2mic-voicecard asound status file
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + ln -s /etc/voicecard/wm8960_asound.state /var/lib/alsa/asound.state
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + alsactl restore
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: No state is present for card b1
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: Found hardware: "bcm2835_hdmi" "Broadcom Mixer" "" "" ""
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: Hardware is initialized using a generic method
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: No state is present for card b1
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: No state is present for card Headphones
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: Found hardware: "bcm2835_headpho" "Broadcom Mixer" "" "" ""
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: Hardware is initialized using a generic method
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: No state is present for card Headphones
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: + amixer -c 1 cset numid=3 1
Aug 07 12:48:21 rhasspy1 seeed-voicecard[4609]: amixer: Cannot find the given element from control hw:1
Aug 07 12:48:21 rhasspy1 systemd[1]: seeed-voicecard.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit seeed-voicecard.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
Aug 07 12:48:21 rhasspy1 systemd[1]: seeed-voicecard.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit seeed-voicecard.service has entered the 'failed' state with result 'exit-code'.
Aug 07 12:48:21 rhasspy1 systemd[1]: Failed to start Seeed Voicecard service.

Rapsberry Pi 3 + 4-MIC HAT

Same as in #239
Failed to start Seeed Voicecard service.

The microhpnes do not work.

pi@rhasspy1:~/programs/seeed-voicecard_5.5 $ arecord -Dac108 -f S32_LE -r 16000 -c 4 test.wav
Recording WAVE 'test.wav' : Signed 32 bit Little Endian, Rate 16000 Hz, Channels 4
^CAborted by signal Interrupt...

arecord: pcm_read:2145: read error: Input/output error

Installation output

sudo ./install.sh
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20200723-1).
raspberrypi-kernel-headers is already the newest version (1.20200723-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
libasound2-plugins is already the newest version (1.1.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Error! There are no instances of module: seeed-voicecard
0.3 located in the DKMS tree.

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=5.4.51+ -C /lib/modules/5.4.51+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/bcm/

depmod....

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.4.51-v7+ -C /lib/modules/5.4.51-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/bcm/

depmod....

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.4.51-v7l+ -C /lib/modules/5.4.51-v7l+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.....
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/bcm/

depmod....

DKMS: install completed.
git init
Initialized empty Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
[master (root-commit) 665e5c3] origin configures
 7 files changed, 1476 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.
Job for seeed-voicecard.service failed because the control process exited with error code.
See "systemctl status seeed-voicecard.service" and "journalctl -xe" for details.
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

sudo journalctl -xe
identical to a Rapsberry Pi 3 + 2-MIC HAT

Rapsberry Pi 4 + 2-MIC HAT

Same as in #239
Failed to start Seeed Voicecard service but the microphones work

Installation output

pi@testpi:~/programs/seeed-voicecard_5.5 $ sudo ./install.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:2 http://archive.raspberrypi.org/debian buster InRelease
Hit:3 https://apt.mopidy.com buster InRelease
Hit:4 https://download.docker.com/linux/raspbian buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20200723-1).
raspberrypi-kernel-headers is already the newest version (1.20200723-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
libasound2-plugins is already the newest version (1.1.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Error! There are no instances of module: seeed-voicecard
0.3 located in the DKMS tree.

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=5.4.51+ -C /lib/modules/5.4.51+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.......
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51+/kernel/sound/soc/bcm/

depmod.........

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area....
make -j4 KERNELRELEASE=5.4.51-v7+ -C /lib/modules/5.4.51-v7+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.......
cleaning build area...

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7+/kernel/sound/soc/bcm/

depmod......

DKMS: install completed.

Kernel preparation unnecessary for this kernel.  Skipping...

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.4.51-v7l+ -C /lib/modules/5.4.51-v7l+/build M=/var/lib/dkms/seeed-voicecard/0.3/build..........
cleaning build area....

DKMS: build completed.

snd-soc-wm8960.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-ac108.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/codecs/

snd-soc-seeed-voicecard.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/5.4.51-v7l+/kernel/sound/soc/bcm/

depmod.....

DKMS: install completed.
git init
Initialized empty Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
[master (root-commit) 0ff5723] origin configures
 7 files changed, 1476 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.
Job for seeed-voicecard.service failed because the control process exited with error code.
See "systemctl status seeed-voicecard.service" and "journalctl -xe" for details.
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

sudo journalctl -xe
identical to a Rapsberry Pi 3 + 2-MIC HAT

Rapsberry Pi 4 + 4-MIC HAT

Does not Work

Installation output

pi@testpi:~/programs $ sudo bash ~/programs/seeed-voicecard_5.5/install.sh
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Hit:3 https://download.docker.com/linux/raspbian buster InRelease
Hit:4 https://apt.mopidy.com buster InRelease
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20200723-1).
raspberrypi-kernel-headers is already the newest version (1.20200723-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
Reading state information... Done
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
libasound2-plugins is already the newest version (1.1.8-1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Error! There are no instances of module: seeed-voicecard
0.3 located in the DKMS tree.
Error! Could not locate dkms.conf file.
File: /usr/src/seeed-voicecard-0.3/dkms.conf does not exist.
Error! Could not locate dkms.conf file.
File: /usr/src/seeed-voicecard-0.3/dkms.conf does not exist.
Error! Could not locate dkms.conf file.
File: /usr/src/seeed-voicecard-0.3/dkms.conf does not exist.
Error! Could not locate dkms.conf file.
File: /usr/src/seeed-voicecard-0.3/dkms.conf does not exist.
cp: cannot stat 'seeed-2mic-voicecard.dtbo': No such file or directory
cp: cannot stat 'seeed-4mic-voicecard.dtbo': No such file or directory
cp: cannot stat 'seeed-8mic-voicecard.dtbo': No such file or directory
cp: cannot stat '*.conf': No such file or directory
cp: cannot stat '*.state': No such file or directory
git init
Initialized empty Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
On branch master

Initial commit

nothing to commit
cp: cannot stat 'seeed-voicecard': No such file or directory
cp: cannot stat 'seeed-voicecard.service': No such file or directory
Failed to enable unit: Unit file seeed-voicecard.service does not exist.
Failed to start seeed-voicecard.service: Unit seeed-voicecard.service not found.
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

@HinTak
Copy link
Contributor

HinTak commented Aug 9, 2020

@DerT94 your install procedure for the last entry, Rapsberry Pi 4 + 4-MIC HAT, was wrong - you must run inside the source directory, not elsewhere.

As for the service start failure, that seems to be just from the amixer line - I picked up the "-c 1" change from somebody else. Need revisit.

@HinTak
Copy link
Contributor

HinTak commented Aug 9, 2020

@DerT94 I pushed a fix to v5.5 for #239 - I think it is the mixer line - you have a 3rd audio device connected, besides the built-in pi on-board Broadcom audio and the seeed studio, or did you disable the on-board audio?

Anyway, it looks like your 2-mics device is working okay, but one of your two 4-mic setup was a user error. So if you could post dmesg output after install/reboot for the 4-mic case?

@lxne
Copy link

lxne commented Aug 12, 2020

I just tested v5.5 with my 4mic linear array and it works. No issues so far.
Before installing v5.5 I updated raspbian buster and uninstalled old drivers.

@HinTak
Copy link
Contributor

HinTak commented Aug 13, 2020

@lxne thanks for trying. It looks like 2-mics and linear 4-mics and the 6-mics are okay with the v5.5 driver, but the square 4-mics isn't, and there is a 64-bit issue (#240 ) somewhere.

edit: fixed - it is just amixer accidentally turning recording volume of channel 3 really low, rather than selecting headphone for output, when run against newer kernel. works perfectly for me on the 6-mic device with ubuntu 64-bit now.

@Pillar1989
Copy link
Contributor

#249

@Alex-Beh
Copy link

Alex-Beh commented Mar 10, 2021

@HinTak Hi, I tried your fork branch v5.5 and it work. I can see the correct output when I arecord -L. But it cannot boot up after I reboot my raspberry pi. May I know why? Is the kernel die?

Update:
I try the solution that you have described in this issue. I have removed the symlink. How to load the seeed-voicecard service back? What is the next step to permanently solve the issue?

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

@Alex-Beh : what kernel version are you using, and are you on 32-bit or 64-bit? The failure to boot issue sounds a lot like #251 .

@Alex-Beh
Copy link

Alex-Beh commented Mar 10, 2021

@HinTak

This is the output of uname -r :
Linux ubuntu 5.4.0-1029-raspi #32-Ubuntu SMP PREEMPT Thu Feb 4 23:00:55 UTC 2021 aarch64 aarch64 aarch64 GNU/Linux

(previously it only show 5.4.0-1029-raspi)

Output of dpkg --print-architecture:
arm64

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

@Alex-Beh It is most definitely #251 then. You can downgrade slightly with https://github.com/HinTak/RaspberryPi-Dev/releases/tag/Ubuntu-raspi-5.4.0-1028.31 . After downgrading and "apt-mark hold ..."; reboot, reinstall the driver as unusual. You do need to mark hold

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

I'll probably make a more recent build at some point.

@Alex-Beh
Copy link

Alex-Beh commented Mar 10, 2021

Sorry I am a bit confused on the instruction.

So I need to

  1. Download all the 5 .deb file.
  2. sudo dpkg -i the 5 .deb file
  3. "sudo tar -xzpvf ..." the addons.tgz file
  4. cd /usr/src/linux-headers-5.4.0-1028-raspi
  5. sudo apt-mark ...
  6. reboot

Then "sudo ./install.sh" to install the driver as usual.

Am I correct?

@baileyji
Copy link

I'll probably make a more recent build at some point.

I'd love the ability to use a current build of Raspbian, I saw your v5.6-v5.9 and was hoping that one of them would have made all this go away. I'm inferring from your comment it does not?

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

Sorry I am a bit confused on the instruction.

So I need to

  1. Download all the 5 .deb file.
  2. sudo dpkg -i the 5 .deb file
  3. "sudo tar -xzpvf ..." the addons.tgz file
  4. cd /usr/src/linux-headers-5.4.0-1028-raspi
  5. sudo apt-mark ...
  6. reboot

Then "sudo ./install.sh" to install the driver as usual.

Am I correct?

Only 4 deb files (no need to do buildinfo), and step 4 before step 3. Step 5 is
apt-mark hold linux-image-5.4.0-1028-raspi (without the version and extension part) etc. If you make a mistake etc you can verify with apt-mark showhold .

Also Raspbian has moved to v5.10 already, so my repo now defaults to v5.9. Just stay with your existing clone - if you are doing a fresh new clone, you need to do git checkout -b v5.5 origin/v5.5 to switch to the v5.5 branch before ./install.sh .

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

I'll probably make a more recent build at some point.

I'd love the ability to use a current build of Raspbian, I saw your v5.6-v5.9 and was hoping that one of them would have made all this go away. I'm inferring from your comment it does not?

32-bit raspbian is not (yet) affected by #251 .

@baileyji
Copy link

I'll probably make a more recent build at some point.

I'd love the ability to use a current build of Raspbian, I saw your v5.6-v5.9 and was hoping that one of them would have made all this go away. I'm inferring from your comment it does not?

32-bit raspbian is not (yet) affected by #251 .

I don't follow. I switched to your fork as the official repo didn't work with the current release of Raspbian as of ~late-mid last year. I had to roll back to Linux raspberrypi 4.19.75-v7l+ #1270 SMP Tue Sep 24 18:51:41 BST 2019 armv7l GNU/Linux and would really love to update and use the current 5.4.x+ kernel in the more recent official releases.

@HinTak
Copy link
Contributor

HinTak commented Mar 10, 2021

@baileyji current raspbian is 5.10 (since Feb 2021, 6 weeks ago). Ubuntu groovy is 5.8 based and ubuntu focal is 5.4 based. Seeed studio's repo defaults to 5.4 since autumn 2020; my repo have branches for v4.19/v5.5/v5.8/v5.9 (v5.5 branch works for 5.4 kernels, while v5.9 branch works for 5.10 kernels). The default is v5.9 since a few weeks ago, switched over from v5.5.

@Alex-Beh
Copy link

@HinTak I tried the steps, git checkout v5.5. And the OS still crash after I sudo ./install.sh. The error is kernel:[ 260.431895] Kernel panic - not syncing: Aiee, killing interrupt handler! and I think I didn't install your RaspberryPi-Dev fix correctly.

After I completed the step 1 to step 5, the kernel version supposed downgrade to 5.4.0-1028-raspi? Because it still shown the 5.4.0-1029-raspi version.

@HinTak
Copy link
Contributor

HinTak commented Mar 11, 2021

@Alex-Beh yup, you are seeing bug #251 ...

Apologies - when I made them they were the newest (so they worked as upgrades), apparently one needs to add "--force-downgrade" to "dpkg -i ..." to actually downgrade. Mind you I have not tried downgrading the kernel on ubuntu raspberrypi yet (ubuntu x86_64 desktop is well-tested, and so is raspbian). Do you want to give that a try, or wait for me to make a even newer set so you could just do plain upgrade (without "--force-downgrade")?

@Alex-Beh
Copy link

Hi @HinTak,

I tried to add --force-downgrade on the 4 deb file.

  • sudo tar -xzpvf ... in /usr/src/linux-headers-5.4.0-1028-raspi directory.

  • sudo apt-mark hold linux-image-5.4.0-1028-raspi

After reboot, uname -r still shown the old kernel. Looking forwards to further help. 感恩感谢

@HinTak
Copy link
Contributor

HinTak commented Mar 11, 2021

@Alex-Beh okay, thanks for trying the downgrade route. The ubuntu raspberrypi boot process is different from both ubuntu desktop/x86_64 and raspbian so it is not clear how one can boot an older kernel on ubuntu pi.

Give me a couple of days to make another set of those debs.

@Alex-Beh
Copy link

Thanks for your help. Let me know if anything I can help.

@HinTak
Copy link
Contributor

HinTak commented Mar 12, 2021

@Alex-Beh I made 5.4.0-1030 -
https://github.com/HinTak/RaspberryPi-Dev/releases/tag/Ubuntu-raspi-5.4.0-1030.33 - and also updated the release notes to hopefully make the steps clearer. I'd like to have a look at how downgrading could be done on ubuntu raspberrypi (raspbian and ubuntu x86/desktop are well-documented) as it is somewhat tedious to make a new build when a new kernel package from ubuntu comes out. It takes about 5 hours to build, although, after having done the process a 4th time, I only need to attend to the first 30 minutes or so. If it works okay for you, please consider clicking donate at https://hintak.github.io .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants