ReSpeaker kernel module installation on OSMC

I’m trying to install the ReSpeaker kernel module on my Raspberry Pi running OSMC. I have already worked around a known problem with OSMC’s kernel headers, but now I can’t get the installation script to work. It bails out pretty fast because it can’t recognize that OSMC’s kernel headers (in the rbp2-headers-4.19.122-1-osmc package) are installed:


### will compile with the latest kernel...

### Install required tool packages
Get:1 http://security.debian.org buster/updates InRelease [65.4 kB]
Hit:2 http://ftp.debian.org/debian buster InRelease                                               
Get:3 http://ftp.debian.org/debian buster-updates InRelease [51.9 kB]
Get:5 http://security.debian.org buster/updates/main armhf Packages [246 kB]
Hit:4 http://ftp.fau.de/osmc/osmc/apt buster InRelease
Fetched 363 kB in 2s (148 kB/s)               
Reading package lists... Done
Reading package lists... Done
Building dependency tree       
Reading state information... Done
libasound2-plugins is already the newest version (1.1.8-1).
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).
The following packages were automatically installed and are no longer required:
  armv7-libass-osmc armv7-libnfs-osmc g++-6 gnupg-agent libapparmor-perl libavcodec57 libavresample3 libavutil55 libbind9-140 libcdio13 libcryptsetup4 libdevmapper-event1.02.1 libdns162 libenca0 libevent-2.0-5
  libgdbm3 libicu57 libisc160 libisccc140 libisccfg140 libiso9660-8 liblvm2app2.2 liblwres141 libncurses5 libntfs-3g871 libonig4 libperl5.24 libprocps6 libpython3.5 libpython3.5-dev libpython3.5-minimal
  libpython3.5-stdlib libsndio6.1 libssl1.0.2 libstdc++-6-dev libswresample2 libunistring0 libva-drm1 libva-x11-1 libva1 libvpx4 libwebpmux2 libx264-148 libx265-95 python-imaging python3.5 python3.5-dev
  python3.5-minimal samba-common snap-confine ubuntu-core-launcher
Use 'sudo apt autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

### Uninstall previous dkms module

------------------------------
Deleting module version: 0.3
completely from the DKMS tree.
------------------------------
Done.

### Install required kernel package
Reading package lists... Done
Building dependency tree       
Reading state information... Done
W: --force-yes is deprecated, use one of the options starting with --allow instead.
E: Unable to locate package raspberrypi-kernel-headers
E: Unable to locate package raspberrypi-kernel
Reading package lists... Done
Building dependency tree       
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
E: Unable to locate package raspberrypi-kernel
dpkg-query: no packages found matching raspberrypi-kernel
--2020-11-24 21:13:42--  http://raspberrypi-kernel__armhf.deb/
Resolving raspberrypi-kernel__armhf.deb (raspberrypi-kernel__armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__armhf.deb’
--2020-11-24 21:13:42--  http://raspberrypi-kernel__armhf.deb/
Resolving raspberrypi-kernel__armhf.deb (raspberrypi-kernel__armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__armhf.deb’
--2020-11-24 21:13:42--  http://raspberrypi-kernel__armhf.deb/
Resolving raspberrypi-kernel__armhf.deb (raspberrypi-kernel__armhf.deb)... failed: Name or service not known.
wget: unable to resolve host address ‘raspberrypi-kernel__armhf.deb’
dpkg-deb: error: '/tmp/raspberrypi-kernel__armhf.deb' is not a Debian format archive
dpkg: error processing archive /tmp/raspberrypi-kernel__armhf.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /tmp/raspberrypi-kernel__armhf.deb
Error: Install kernel or header failed

I tried to hack up the script to disable this check (since of course I’ve confirmed that the headers are installed properly myself) but I ran into more errors - can’t remember the details unfortunately since it was a while ago. Can someone from Seeed (or who understands how the install.sh script works) test on OSMC and fix the script so that it works?

Can I get a reply from Seeed Studio here? I thought this was where support requests were supposed to be filed? I’m happy to ask somewhere else if that’s incorrect.