respeaker / seeed-voicecard

2 Mic Hat, 4 Mic Array, 6-Mic Circular Array Kit, and 4-Mic Linear Array Kit for Raspberry Pi
GNU General Public License v3.0
493 stars 295 forks source link

[Bug]: installation failed on bullseye with make error #335

Closed bruesche closed 1 year ago

bruesche commented 1 year ago

Describe the bug

Do the installation with sudo .install.sh. Refreshed the files from GitHub an get Error:

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

make -j4 KERNELRELEASE=5.15.84-v7l+ -C /lib/modules/5.15.84-v7l+/build M=/var/lib/dkms/seeed-voicecard/0.3/build....(bad exit status: 2) Error! Bad return status for module build on kernel: 5.15.84-v7l+ (armv7l)

The complet log (install log and Make.log) in the attachment.

The Rhasspy installation didn#t recognized the microphone...

Please help... Thx

Expected behavior

Installation without errors an a working microphone ;)

Platform

Relevant log output

Log from .install.sh:
pi@raspberrypi:~/seeed-voicecard $ sudo ./install.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease  
Hit:3 https://download.docker.com/linux/raspbian 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.20230106-1).
raspberrypi-kernel-headers is already the newest version (1:1.20230106-1).
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
dkms is already the newest version (2.8.4-3).
git is already the newest version (1:2.30.2-1+deb11u1).
i2c-tools is already the newest version (4.2-1+b1).
libasound2-plugins is already the newest version (1.2.2-2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

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...
applying patch back-to-v5.8.diff...patching file ac108.c
patching file sound-compatible-4.18.h
patching file wm8960.c

Building module:
cleaning build area...
make -j4 KERNELRELEASE=5.15.84-v7l+ -C /lib/modules/5.15.84-v7l+/build M=/var/lib/dkms/seeed-voicecard/0.3/build....(bad exit status: 2)
Error! Bad return status for module build on kernel: 5.15.84-v7l+ (armv7l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
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) 2401187] 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
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------

Log from make.log:
Last login: Mon Feb  6 10:26:43 on ttys000
bruesche@bruesches-MacBook-Air ~ % ssh pi@192.168.178.68
pi@192.168.178.68's password: 
Linux raspberrypi 5.15.84-v7l+ #1613 SMP Thu Jan 5 12:01:26 GMT 2023 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Mon Feb  6 10:34:56 2023 from 192.168.178.56

SSH is enabled and the default password for the 'pi' user has not been changed.
This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.

pi@raspberrypi:~ $ cd /proc/
pi@raspberrypi:/proc $ ls
1     1260  1318  196   23    253   3173  4    65   83   asound       interrupts     mounts         version
10    1274  1319  197   2304  254   32    40   66   84   buddyinfo    iomem          net            vmallocinfo
100   1275  1320  2     231   256   3218  400  67   85   bus          ioports        pagetypeinfo   vmstat
102   1276  1321  205   232   26    3224  401  68   87   cgroups      irq            partitions     zoneinfo
103   1279  14    208   233   260   3225  41   70   88   cmdline      kallsyms       schedstat
104   1282  141   209   234   261   3240  42   707  886  consoles     keys           self
105   1284  15    210   235   2611  33    455  708  89   cpu          key-users      slabinfo
106   1286  16    212   237   27    35    473  71   893  cpuinfo      kmsg           softirqs
11    1288  17    2133  239   272   36    491  711  9    crypto       kpagecgroup    stat
1179  1291  170   215   24    28    378   492  72   90   devices      kpagecount     swaps
12    1295  18    217   240   281   379   5    74   909  device-tree  kpageflags     sys
120   1297  19    218   242   283   38    505  75   91   diskstats    latency_stats  sysrq-trigger
123   1299  190   22    244   2865  380   516  76   92   driver       loadavg        sysvipc
124   13    191   2275  2440  29    39    6    78   929  execdomains  locks          thread-self
1241  1309  192   2276  2443  3     394   601  80   94   fb           meminfo        timer_list
1242  1310  193   2278  2462  301   397   615  81   95   filesystems  misc           tty
1259  1317  195   2281  250   309   399   620  82   98   fs           modules        uptime
pi@raspberrypi:/proc $ cd version
-bash: cd: version: Not a directory
pi@raspberrypi:/proc $ less version
pi@raspberrypi:/proc $ uname -r
5.15.84-v7l+
pi@raspberrypi:/proc $ less /var/lib/dkms/seeed-voicecard/0.3/build/make.log

./include/sound/simple_card_utils.h:156:75: note: expected ‘struct snd_soc_dai_link_component *’ but argument is of type ‘struct snd_soc_dai_link *’
  156 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
      |                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/seeed-voicecard.c:548:2: error: too few arguments to function ‘asoc_simple_canonicalize_platform’
  548 |  asoc_simple_canonicalize_platform(dai_link);
      |  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /var/lib/dkms/seeed-voicecard/0.3/build/seeed-voicecard.c:28:
./include/sound/simple_card_utils.h:156:6: note: declared here
  156 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component *platforms,
      |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
/var/lib/dkms/seeed-voicecard/0.3/build/seeed-voicecard.c:263:12: warning: ‘asoc_simple_parse_dai’ defined but not used [-Wunused-function]
  263 | static int asoc_simple_parse_dai(struct device_node *node,
      |            ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:289: /var/lib/dkms/seeed-voicecard/0.3/build/seeed-voicecard.o] Error 1
make[1]: *** Waiting for unfinished jobs....
/var/lib/dkms/seeed-voicecard/0.3/build/ac108.c:1148:3: error: ‘const struct snd_soc_dai_ops’ has no member named ‘digital_mute’
 1148 |  .digital_mute = ac108_aif_mute,
      |   ^~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/ac108.c:1148:18: error: initialization of ‘int (*)(struct snd_pcm_substream *, int,  struct snd_soc_dai *)’ from incompatible pointer type ‘int (*)(struct snd_soc_dai *, int)’ [-Werror=incompatible-pointer-types]
 1148 |  .digital_mute = ac108_aif_mute,
      |                  ^~~~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/ac108.c:1148:18: note: (near initialization for ‘ac108_dai_ops.bespoke_trigger’)
In file included from /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:28:
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c: In function ‘wm8960_configure_clocking’:
/var/lib/dkms/seeed-voicecard/0.3/build/sound-compatible-4.18.h:34:36: error: implicit declaration of function ‘snd_soc_component_read32’; did you mean ‘snd_soc_component_read’? [-Werror=implicit-function-declaration]
   34 | #define snd_soc_read               snd_soc_component_read32
      |                                    ^~~~~~~~~~~~~~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:619:15: note: in expansion of macro ‘snd_soc_read’
  619 |  u16 iface1 = snd_soc_read(codec, WM8960_IFACE1);
      |               ^~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c: At top level:
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:1239:3: error: ‘const struct snd_soc_dai_ops’ has no member named ‘digital_mute’
 1239 |  .digital_mute = wm8960_mute,
      |   ^~~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:1239:18: error: initialization of ‘int (*)(struct snd_pcm_substream *, struct snd_soc_dai *)’ from incompatible pointer type ‘int (*)(struct snd_soc_dai *, int)’ [-Werror=incompatible-pointer-types]
 1239 |  .digital_mute = wm8960_mute,
      |                  ^~~~~~~~~~~
/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:1239:18: note: (near initialization for ‘wm8960_dai_ops.prepare’)
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:289: /var/lib/dkms/seeed-voicecard/0.3/build/ac108.o] Error 1
cc1: some warnings being treated as errors
make[1]: *** [scripts/Makefile.build:289: /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o] Error 1
make: *** [Makefile:1902: /var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/src/linux-headers-5.15.84-v7l+'
(END)
HinTak commented 1 year ago

See https://github.com/respeaker/seeed-voicecard/issues/332#issuecomment-1379439079

bruesche commented 1 year ago

"After further playing around I noticed that the install script wasn't using the source from the git repo to build the module, but what was already present in /lib/modules/. So instead I just did a make, sudo make install and everything sprang back to life."

Didn't know what to do... can you give me advice?

HinTak commented 1 year ago

It is as it says, make a fresh clone from my repo (HinTak/seed-voicecard instead of upstream), then type 'make' then "sudo make install" inside, and reboot.

bruesche commented 1 year ago

tried. Sorry. I think I do something wrong. Here is what I do and what I get:

pi@raspberrypi:~ $ git clone https://github.com/respeaker/seeed-voicecard Cloning into 'seeed-voicecard'... remote: Enumerating objects: 1278, done. remote: Counting objects: 100% (320/320), done. remote: Compressing objects: 100% (20/20), done. remote: Total 1278 (delta 308), reused 300 (delta 300), pack-reused 958 Receiving objects: 100% (1278/1278), 1.41 MiB 1.23 MiB/s, done. Resolving deltas: 100% (836/836), done. pi@raspberrypi:~ $ cd seeed-voicecard/ pi@raspberrypi:~/seeed-voicecard $ make make -C /lib/modules/5.15.84-v7l+/build M=/home/pi/seeed-voicecard modules make[1]: Entering directory '/usr/src/linux-headers-5.15.84-v7l+' 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 /home/pi/seeed-voicecard/seeed-voicecard.c: In function ‘seeed_voice_card_dai_link_of’: /home/pi/seeed-voicecard/seeed-voicecard.c:463:8: error: implicit declaration of function ‘asoc_simple_parse_cpu’; did you mean ‘asoc_simple_parse_clk’? [-Werror=implicit-function-declaration] 463 ret = asoc_simple_parse_cpu(cpu, dai_link, &single_cpu); ^~~~~ asoc_simple_parse_clk /home/pi/seeed-voicecard/seeed-voicecard.c:468:8: error: implicit declaration of function ‘asoc_simple_parse_codec’; did you mean ‘asoc_simple_parse_dai’? [-Werror=implicit-function-declaration] 468 ret = asoc_simple_parse_codec(codec, dai_link); ^~~~~~~ asoc_simple_parse_dai /home/pi/seeed-voicecard/seeed-voicecard.c:480:8: error: implicit declaration of function ‘asoc_simple_parse_platform’; did you mean ‘asoc_simple_parse_daifmt’? [-Werror=implicit-function-declaration] 480 ret = asoc_simple_parse_platform(plat, dai_link); ^~~~~~ asoc_simple_parse_daifmt /home/pi/seeed-voicecard/seeed-voicecard.c:505:8: error: implicit declaration of function ‘asoc_simple_parse_clk_cpu’; did you mean ‘asoc_simple_parse_clk’? [-Werror=implicit-function-declaration] 505 ret = asoc_simple_parse_clk_cpu(dev, cpu, dai_link, cpu_dai); ^~~~~~~~~ asoc_simple_parse_clk /home/pi/seeed-voicecard/seeed-voicecard.c:513:8: error: implicit declaration of function ‘asoc_simple_parse_clk_codec’; did you mean ‘asoc_simple_parse_clk’? [-Werror=implicit-function-declaration] 513 ret = asoc_simple_parse_clk_codec(dev, codec, dai_link, codec_dai); ^~~~~~~ asoc_simple_parse_clk /home/pi/seeed-voicecard/seeed-voicecard.c:546:31: error: passing argument 1 of ‘asoc_simple_canonicalize_cpu’ from incompatible pointer type [-Werror=incompatible-pointer-types] 546 asoc_simple_canonicalize_cpu(dai_link, single_cpu); ^~~~
struct snd_soc_dai_link *
In file included from /home/pi/seeed-voicecard/seeed-voicecard.c:28: ./include/sound/simple_card_utils.h:158:70: note: expected ‘struct snd_soc_dai_link_component ’ but argument is of type ‘struct snd_soc_dai_link ’ 158 void asoc_simple_canonicalize_cpu(struct snd_soc_dai_link_component *cpus, ~~~~~~~^~~~ /home/pi/seeed-voicecard/seeed-voicecard.c:548:36: error: passing argument 1 of ‘asoc_simple_canonicalize_platform’ from incompatible pointer type [-Werror=incompatible-pointer-types] 548 asoc_simple_canonicalize_platform(dai_link); ^~~~
struct snd_soc_dai_link *

In file included from /home/pi/seeed-voicecard/seeed-voicecard.c:28: ./include/sound/simple_card_utils.h:156:75: note: expected ‘struct snd_soc_dai_link_component ’ but argument is of type ‘struct snd_soc_dai_link ’ 156 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component platforms, | ~~~~~~~^~~~~ /home/pi/seeed-voicecard/seeed-voicecard.c:548:2: error: too few arguments to function ‘asoc_simple_canonicalize_platform’ 548 | asoc_simple_canonicalize_platform(dai_link); | ^~~~~~~~~ In file included from /home/pi/seeed-voicecard/seeed-voicecard.c:28: ./include/sound/simple_card_utils.h:156:6: note: declared here 156 | void asoc_simple_canonicalize_platform(struct snd_soc_dai_link_component platforms, | ^~~~~~~~~ At top level: /home/pi/seeed-voicecard/seeed-voicecard.c:263:12: warning: ‘asoc_simple_parse_dai’ defined but not used [-Wunused-function] 263 | static int asoc_simple_parse_dai(struct device_node *node, | ^~~~~ cc1: some warnings being treated as errors make[2]: [scripts/Makefile.build:289: /home/pi/seeed-voicecard/seeed-voicecard.o] Error 1 make[1]: [Makefile:1902: /home/pi/seeed-voicecard] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.15.84-v7l+' make: [Makefile:37: all] Error 2 pi@raspberrypi:~/seeed-voicecard $ sudo make install sudo cp snd-soc-ac108.ko /lib/modules/5.15.84-v7l+/kernel/sound/soc/codecs/ cp: cannot stat 'snd-soc-ac108.ko': No such file or directory make: [Makefile:43: install] Error 1 pi@raspberrypi:~/seeed-voicecard $

HinTak commented 1 year ago

I said clone my fork, which is https://github.com/HinTak/seeed-voicecard

bruesche commented 1 year ago

Sorry, old man, glasses... you know? ;)

Everything works fine now. Thanks for your help!

pauloesteban commented 1 year ago

I said clone my fork, which is https://github.com/HinTak/seeed-voicecard

$ git clone https://github.com/HinTak/seeed-voicecard
Cloning into 'seeed-voicecard'...
remote: Enumerating objects: 1363, done.
remote: Counting objects: 100% (387/387), done.
remote: Compressing objects: 100% (32/32), done.
remote: Total 1363 (delta 365), reused 366 (delta 355), pack-reused 976
Receiving objects: 100% (1363/1363), 1.16 MiB | 2.69 MiB/s, done.
Resolving deltas: 100% (897/897), done.

$ cd seeed-voicecard/

$ sudo make install
sudo cp snd-soc-ac108.ko /lib/modules/5.15.84-v7+/kernel/sound/soc/codecs/
cp: cannot stat 'snd-soc-ac108.ko': No such file or directory
make: *** [Makefile:43: install] Error 1

$ git status
On branch v5.9
Your branch is up to date with 'origin/v5.9'.

nothing to commit, working tree clean

The makefile error happened with HinTak repo

HinTak commented 1 year ago

Doing "sudo make" between clone and "sudo make install" would be useful 😀

pauloesteban commented 1 year ago

Doing "sudo make" between clone and "sudo make install" would be useful 😀

Thanks for the suggestion, I am going to try a fresh installation.

FTR, I tried twice with sudo ./install.sh with the latest Raspberry OS image. It crashes the lxpanel, hence, I tried the method indicated above.

HinTak commented 1 year ago

The lxpanel issue is generic to pulsesaudio : https://forums.raspberrypi.com/viewtopic.php?t=295641 and unrelated.

bruesche commented 1 year ago

Hi, now have same problem. After kernel update the mic is not recognized by the pi. Did the same as last time. Delete the directory speed-voicecard, clone new from github HinTak fork and start with make.

Error: pi@raspberrypi:~ $ rm -rf seeed-voicecard/ pi@raspberrypi:~ $ git clone https://github.com/HinTak/seeed-voicecard Cloning into 'seeed-voicecard'... remote: Enumerating objects: 1366, done. remote: Counting objects: 100% (390/390), done. remote: Compressing objects: 100% (34/34), done. remote: Total 1366 (delta 366), reused 368 (delta 356), pack-reused 976 Receiving objects: 100% (1366/1366), 1.16 MiB | 3.98 MiB/s, done. Resolving deltas: 100% (898/898), done. pi@raspberrypi:~ $ cd seeed-voicecard/ pi@raspberrypi:~/seeed-voicecard $ make 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 make gets same error.

Tried to use install.sh

Error: pi@raspberrypi:~/seeed-voicecard $ sudo ./install.sh Get:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease [15.0 kB] Get:2 http://archive.raspberrypi.org/debian bullseye InRelease [23.6 kB]
Hit:3 https://download.docker.com/linux/raspbian bullseye InRelease
Get:4 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages [13.2 MB] Get:5 http://archive.raspberrypi.org/debian bullseye/main armhf Packages [316 kB] Fetched 13.6 MB in 6s (2,103 kB/s)
Reading package lists... Done Building dependency tree... Done Reading state information... Done 5 packages can be upgraded. Run 'apt list --upgradable' to see them. 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). 0 upgraded, 0 newly installed, 0 to remove and 5 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 dkms is already the newest version (2.8.4-3). git is already the newest version (1:2.30.2-1+deb11u2). i2c-tools is already the newest version (4.2-1+b1). libasound2-plugins is already the newest version (1.2.2-2). 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.


Deleting module version: 0.3 completely from the DKMS tree.

Done.

Creating symlink /var/lib/dkms/seeed-voicecard/0.3/source -> /usr/src/seeed-voicecard-0.3

DKMS: add completed. Error! echo Your kernel headers for kernel 6.1.21-v8+ cannot be found at /lib/modules/6.1.21-v8+/build or /lib/modules/6.1.21-v8+/source. You can use the --kernelsourcedir option to tell DKMS where it's located. mkdir: cannot create directory ‘/etc/voicecard’: File exists git init Reinitialized existing Git repository in /etc/voicecard/.git/ git add --all git commit -m "origin configures" On branch master nothing to commit, working tree clean

Please reboot your raspberry pi to apply all settings Enjoy!

There is something wrong with the kernel version. Can you help me?

HinTak commented 1 year ago

What does "ls -l /lib/modules/6.1.21-v8+/build" says, and does it points at a real place? It says no such file/ directory. You might want to try again?

bruesche commented 1 year ago

The output is:

pi@raspberrypi:~ $ ls -l /lib/modules/6.1.21-v8+/build ls: cannot access '/lib/modules/6.1.21-v8+/build': No such file or directory

I tried to make the directory but then the error is:

pi@raspberrypi:~ $ sudo mkdir /lib/modules/6.1.21-v8+/build pi@raspberrypi:~ $ cd seeed-voicecard/ pi@raspberrypi:~/seeed-voicecard $ sudo make make -C /lib/modules/6.1.21-v8+/build M= modules make[1]: Entering directory '/usr/lib/modules/6.1.21-v8+/build' make[1]: No rule to make target 'modules'. Stop. make[1]: Leaving directory '/usr/lib/modules/6.1.21-v8+/build' make: [Makefile:37: all] Error 2

What can I do? Please give advice...

bruesche commented 1 year ago

Hier can I solve my Problem? Can anybody help me?

HinTak commented 1 year ago

@bruesche it is not the same problem... but there is a workaround in https://github.com/raspberrypi/firmware/issues/1795 , adding one line in /boot/config.txt

Jeebus678 commented 1 year ago

@bruesche would like to update here that I had the exact same issue. Adding arm_64bit=0 to /boot/config.txt and then reinstalling the driver fixed the issue.

HinTak commented 1 year ago

FWIW, the initial report and current (since early April) are two different problems. The initial report is simply because upstream seeed studio has stopped updating beyond about 5.13, so won't build against newer kernels. The solution to that is to use one of my v5.x/v6.x branches. (It gets quite messy with a lot of "if kernel version <..." ">=" , so I make new branches when difference is too large for such constructs).

The new problem since early April is that raspberrypi people decided that 64-bit kernel on 32-bit system is better than 32-bit kernel on 32-bit system. (Better compiler optimization and resource useage etc). But that specifically does not work for out-of-tree device drivers. They are still working on it - https://github.com/raspberrypi/firmware/issues/1795 - but until they figure it out, you can add one line in/boot/config.txt to go back to a 32-bit kernel on 32-bit system setup.

bruesche commented 1 year ago

Thanks a lot!