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
487 stars 294 forks source link

Install on other OS (libreelec/kodi, volumio etc.) #268

Closed h4de5 closed 3 years ago

h4de5 commented 3 years ago

Hello,

I am wondering if it was possible to install and run the 4mic-array on any other OS than raspbian. I would like to install them on Kodi (https://github.com/LibreELEC/LibreELEC.tv) or Volumio (https://github.com/volumio). On both systems the install script fails:

$ ./install.sh
bash: 0: unknown operand
df: invalid option -- 'B'
BusyBox v1.31.0 (2020-10-24 15:30:09 EDT) multi-call binary.

Usage: df [-PkmhT] [FILESYSTEM]...

Print filesystem usage statistics

        -P      POSIX output format
        -k      1024-byte blocks (default)
        -m      1M-byte blocks
        -h      Human readable (e.g. 1K 243M 2G)
        -T      Print filesystem type
Warning: /boot volume not found ..
/boot/overlays not found or not a directory
Errors found, exiting.

Both systems are running on a RPI4.

kodi:

$ uname -a
Linux kodi 4.19.127 #1 SMP Sat Oct 24 15:01:22 EDT 2020 armv7l GNU/Linux
$ cat /proc/version
Linux version 4.19.127 (jenkins@prometheus) (gcc version 8.3.0 (GCC)) #1 SMP Sat Oct 24 15:01:22 EDT 2020

volumio:

$ uname -a
Linux volumio 4.19.49v6v7-aufs #1 SMP Tue Jun 11 15:13:27 CEST 2019 armv7l GNU/Linux
$ cat /proc/version
Linux version 4.19.49v6v7-aufs (max@lynx) (gcc version 8.2.0 (Buildroot 2018.08-gbbba56f1-dirty)) #1 SMP Tue Jun 11 15:13:27 CEST 2019
HinTak commented 3 years ago

The current code has dropped older kernel (4.19) support, I think, and also too much bash-isms. Busybox's emulation of bash isn't up for it, I think. And I have never agreed with the whole check disk space and downgrade kernel thing , so you may have better luck with https://github.com/HinTak/seeed-voicecard . That said, it should be possible to rollback and get 4.19 support back again. (revert commits marked "v5.x" etc) . You probably want to follow some of the raspberrypi dev tips I wrote in the raspberrypi-dev repo. See https://hintak.github.io .

HinTak commented 3 years ago

I don't agree with the whole downgrade kernel thing which "Warning: /boot volume" is for.

h4de5 commented 3 years ago

@HinTak thank you very much for the fast response and the idea.

I am trying to manually go through your install.sh script on libreelec.

how far would I need to go back in the git history? I see the bigger changes are starting at around beginning of this year. and adding support for 4.18 at around march 2019. so somewhere in between?

HinTak commented 3 years ago

@h4de5 actually 5.4 support (for current raspbian /Ubuntu ) was only merged in summer 2020 (after many months of unhappiness of users being forced to stay in old OSes) - so you only need to roll back a few months. I'll make a v4.19 branch soon - just stay on that branch and you'd be fine, and I'd be interested to know what adjustments you need to make to make it work.

Your first 4 points aren't important, if you are happy with staying with one device and hardcoding that into your config.txt . A lot of the complexity is strictly speaking not necessary and only for dynamically detectino which respeaker it is and load the correct one. So that covers half of your 5th point too. To check that you have manually configure correctly you need to read your boot messages (dmesg).

It is a bit painful without arecord but maybe you have pyalsa (python binding of libalsa) or equivalent?

HinTak commented 3 years ago

The v4.19 branch on https://github.com/HinTak/seeed-voicecard is now synced to v5.5 with all the Ubuntu related stuff earlier this year, minus v4.19+ necessary code changes. So you should use that, and possibly let me know of any interesting distro-related modifications needed for you.

I don't work for Seeed Studio so maintaining two (current Ubuntu v5.4 and oldish Raspbian 4.19) and tracking a 3rd keeping x86_64 buildable on most current kernel (v5.9) is already beyond what I should... you are welcomed to click on the donate link at the bottom of https://hintak.github.io , if only to pay for a few SD cards to play with different OSes...

h4de5 commented 3 years ago

wow. thanks a lot. but I am not sure where to start from here. I switched to the new branch and run seeed-voicecard

thats the outcome.

+ export 'PATH=/usr/bin:/usr/sbin:/storage/.kodi/addons/service.system.docker/bin:/storage/.kodi/addons/virtual.multimedia-tools/bin:/storage/.kodi/addons/virtual.rpi-tools/bin:/storage/.kodi/addons/virtual.system-tools/bin:/opt/vc/bin'
+ OVERLAYS=/boot/overlays
+ '[' -d /boot/firmware/overlays ]
+ dtparam -d /boot/overlays 'i2c_arm=on'
+ modprobe i2c-dev
+ dtparam -d /boot/overlays 'spi=on'
+ _VER_RUN=
+ CONFIG=/boot/config.txt
+ '[' -f /boot/firmware/usercfg.txt ]
+ i2cdetect -y 1 0x1a 0x1a
+ egrep '(1a|UU)'
+ awk '{print $2}'
+ is_1a=
+ i2cdetect -y 1 0x35 0x35
+ egrep '(35|UU)'+ awk '{print $2}'

+ is_35=
+ i2cdetect -y 1 0x3b 0x3b
+ egrep '(3b|UU)'
+ awk '{print $2}'
+ is_3b=3b
+ RPI_HATS='seeed-2mic-voicecard seeed-4mic-voicecard seeed-8mic-voicecard'
+ overlay=
+ '[' x '!=' x ]
+ '[' x3b '!=' x ]
+ '[' x '==' x ]
+ echo 'install 4mic'
install 4mic
+ overlay=seeed-4mic-voicecard
+ asound_conf=/etc/voicecard/asound_4mic.conf
+ asound_state=/etc/voicecard/ac108_asound.state
+ '[' x3b '!=' x ]
+ '[' x '!=' x ]
+ '[' seeed-4mic-voicecard ]
+ echo Install seeed-4mic-voicecard ...
Install seeed-4mic-voicecard ...
+ rm /etc/asound.conf
rm: can't remove '/etc/asound.conf': No such file or directory
+ rm /var/lib/alsa/asound.state
rm: can't remove '/var/lib/alsa/asound.state': No such file or directory
+ uname -r
+ kernel_ver=4.19.127
+ '[[' 4.19.127 '=~' '^4.19.*$' -o 4.19.127 '=~' '^5.*$' ]]
bash: =~: unknown operand
+ dtoverlay -d /boot/overlays seeed-4mic-voicecard
DTOVERLAY[error]: failed to open '/boot/overlays/seeed-4mic-voicecard.dtbo'
* Failed to read '/boot/overlays/seeed-4mic-voicecard.dtbo'
+ true
+ echo 'create seeed-4mic-voicecard asound configure file'
create seeed-4mic-voicecard asound configure file
+ ln -s /etc/voicecard/asound_4mic.conf /etc/asound.conf
ln: /etc/asound.conf: Read-only file system
+ echo 'create seeed-4mic-voicecard asound status file'
create seeed-4mic-voicecard asound status file
+ ln -s /etc/voicecard/ac108_asound.state /var/lib/alsa/asound.state
ln: /var/lib/alsa/asound.state: No such file or directory
+ alsactl restore
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory
alsactl: sysfs_init:48: sysfs path '/sys' is invalid

Found hardware: "bcm2835_alsa" "Broadcom Mixer" "" "" ""
Hardware is initialized using a generic method
+ + grepaplay -q -l 'bcm2835 ALSA'

+ amixer cset 'numid=3' 1
numid=3,iface=MIXER,name='PCM Playback Route'
  ; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0
  : values=1

I also found a way to install i2cdetect -y 1

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- 3b -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

there is no /boot/ folder - overlays are located in: /flash/overlays/ and /etc/ is readonly. asound.conf should go into /storage/.config/ (which I did) i think asound.state should go to: /var/media/root/var/lib/alsa/asound.state (which I did)

still - alsoctlsearches for the wrong path:

alsactl restore
alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory

I now also found a way to install alsamixer through Kodi's multimedia tools (not sure if this helps)

PS: I followed your advice about that buttons on your website - keep up the good work!

HinTak commented 3 years ago

@h4de5 that seems to have gone better than expected. So now we have a 3rd variants:

Possibly /flash/config.txt?

"bash: =~: unknown operand" is another busybox vs bash issue.

I think you need to have a look at /flash/config.txt. Adding a line dtoverlay=seeed-4mic-voicecard to the config file manually is equivalent to all the i2cdetect and dtoverlay -d ..., so if you add that line you can drop most of seeed-voicecard 's content. As I wrote earlier most of it is just trying to dynamically determine if you have 2-mics 4 mics or 6-mics.

h4de5 commented 3 years ago

mmh. you are making me feel, like we could actually get this thing running..

I had put dtoverlay=seeed-4mic-voicecard.dtbo - which I fixed that now.

I also added this stuff (that I found on the internet, but actually have no idea about..)

dtparam=i2c1=on
dtparam=i2c_arm=on
dtoverlay=i2s-mmap
dtparam=audio=on

is any of this needed?

not sure about: usercfg.txt is there any way to test it without seeed-voicecard?

HinTak commented 3 years ago

I have downloaded the LibreELEC image and have a look. So I updated the v4.19 branch. The correct place is /flash/distroconfig.txt though /boot/config.txt includes the former and works too.

Since you seem to be able to run i2cdetect correctly, you don't need to worry about the dtparam stuff.

I think we need to see your dmesg output with the config.txt change and the card physically hooked up, that"s all. Curious libreELEC have aplay but no arecord! But you should be able to look at aplay -L and verify that the card is installed correctly, and use it to play some sound through the respeaker's phone output jack! (follow the instruction in the README).

h4de5 commented 3 years ago

aplay -L:

null
    Discard all samples (playback) or generate zero samples (capture)
sysdefault:CARD=ALSA
    bcm2835 ALSA, bcm2835 ALSA
    Default Audio Device
iec958:CARD=ALSA,DEV=0
    bcm2835 ALSA, bcm2835 IEC958/HDMI
    IEC958 (S/PDIF) Digital Audio Output
dmesg ``` [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.127 (jenkins@prometheus) (gcc version 8.3.0 (GCC)) #1 SMP Sat Oct 24 15:01:22 EDT 2020 [ 0.000000] CPU: ARMv7 Processor [410fd083] revision 3 (ARMv7), cr=30c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 4 Model B Rev 1.1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 256 MiB at 0x000000000fc00000 [ 0.000000] On node 0 totalpages: 901120 [ 0.000000] DMA zone: 1152 pages used for memmap [ 0.000000] DMA zone: 0 pages reserved [ 0.000000] DMA zone: 131072 pages, LIFO batch:31 [ 0.000000] HighMem zone: 770048 pages, LIFO batch:63 [ 0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4d8 with crng_init=0 [ 0.000000] percpu: Embedded 17 pages/cpu s37580 r8192 d23860 u69632 [ 0.000000] pcpu-alloc: s37580 r8192 d23860 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 899968 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M cma=256M video=HDMI-A-1:1920x1080M@60 smsc95xx.macaddr=DC:A6:32:49:9E:98 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 boot=LABEL=System disk=LABEL=Storage quiet root=/dev/ram0 rdinit=/init usbcore.autosuspend=-1 [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 3287480K/3604480K available (10240K kernel code, 760K rwdata, 2256K rodata, 6144K init, 559K bss, 54856K reserved, 262144K cma-reserved, 3080192K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff800000 ( 496 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (12256 kB) [ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (6144 kB) [ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 761 kB) [ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) ( 560 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 32912 entries in 97 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] GIC: Using split EOI/Deactivate mode [ 0.000000] arch_timer: cp15 timer(s) running at 54.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0xc743ce346, max_idle_ns: 440795203123 ns [ 0.000004] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns [ 0.000015] Switching to timer-based delay loop, resolution 18ns [ 0.000234] Console: colour dummy device 80x30 [ 0.000262] console [tty0] enabled [ 0.000311] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.50 BogoMIPS (lpj=180000) [ 0.000329] pid_max: default: 32768 minimum: 301 [ 0.000502] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000522] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001210] CPU: Testing write buffer coherency: ok [ 0.001680] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002418] Setting up static identity map for 0x200000 - 0x20003c [ 0.002585] rcu: Hierarchical SRCU implementation. [ 0.004948] smp: Bringing up secondary CPUs ... [ 0.005940] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.007059] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.008082] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.008211] smp: Brought up 1 node, 4 CPUs [ 0.008226] SMP: Total of 4 processors activated (432.00 BogoMIPS). [ 0.008238] CPU: All CPU(s) started in HYP mode. [ 0.008248] CPU: Virtualization extensions available. [ 0.008920] devtmpfs: initialized [ 0.018854] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0 [ 0.019067] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370867519511994 ns [ 0.019092] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.024650] pinctrl core: initialized pinctrl subsystem [ 0.025599] NET: Registered protocol family 16 [ 0.029284] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.030239] cpuidle: using governor ladder [ 0.030281] cpuidle: using governor menu [ 0.030740] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.030753] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.030971] Serial: AMBA PL011 UART driver [ 0.034984] bcm2835-mbox fe00b880.mailbox: mailbox enabled [ 0.043486] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-06-26 14:49, variant start_x [ 0.046831] raspberrypi-firmware soc:firmware: Firmware hash is b078012603a6a094178f959805996ad225a0d83b [ 0.084216] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 0.088219] vgaarb: loaded [ 0.088529] SCSI subsystem initialized [ 0.088710] usbcore: registered new interface driver usbfs [ 0.088768] usbcore: registered new interface driver hub [ 0.088869] usbcore: registered new device driver usb [ 0.089383] Advanced Linux Sound Architecture Driver Initialized. [ 0.090351] clocksource: Switched to clocksource arch_sys_counter [ 0.167382] FS-Cache: Loaded [ 0.176551] NET: Registered protocol family 2 [ 0.177219] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 0.177244] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 0.177280] TCP bind hash table entries: 4096 (order: 3, 32768 bytes) [ 0.177319] TCP: Hash tables configured (established 4096 bind 4096) [ 0.177458] UDP hash table entries: 256 (order: 1, 8192 bytes) [ 0.177482] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes) [ 0.177706] NET: Registered protocol family 1 [ 0.178280] RPC: Registered named UNIX socket transport module. [ 0.178291] RPC: Registered udp transport module. [ 0.178302] RPC: Registered tcp transport module. [ 0.178313] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.178333] PCI: CLS 0 bytes, default 64 [ 0.200014] hw perfevents: enabled with armv7_cortex_a15 PMU driver, 7 counters available [ 0.202203] Initialise system trusted keyrings [ 0.202383] workingset: timestamp_bits=14 max_order=20 bucket_order=6 [ 0.210564] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.211199] FS-Cache: Netfs 'nfs' registered for caching [ 0.211711] NFS: Registering the id_resolver key type [ 0.211745] Key type id_resolver registered [ 0.211756] Key type id_legacy registered [ 0.211777] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.212160] FS-Cache: Netfs 'cifs' registered for caching [ 0.218372] Key type asymmetric registered [ 0.218387] Asymmetric key parser 'x509' registered [ 0.218558] bounce: pool size: 64 pages [ 0.218602] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 0.218615] io scheduler noop registered (default) [ 0.218628] io scheduler deadline registered [ 0.218772] io scheduler cfq registered [ 0.218786] io scheduler mq-deadline registered [ 0.218798] io scheduler kyber registered [ 0.218924] io scheduler bfq registered [ 0.253750] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000 [ 0.253776] brcm-pcie fd500000.pcie: could not get clock [ 0.253866] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges: [ 0.253917] brcm-pcie fd500000.pcie: MEM 0x600000000..0x603ffffff -> 0xf8000000 [ 0.303730] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC) [ 0.303999] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00 [ 0.304016] pci_bus 0000:00: root bus resource [bus 00-01] [ 0.304032] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff]) [ 0.304094] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400 [ 0.304293] pci 0000:00:00.0: PME# supported from D0 D3hot [ 0.306772] PCI: bus0: Fast back to back transfers disabled [ 0.306792] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring [ 0.307077] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330 [ 0.307220] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit] [ 0.307598] pci 0000:01:00.0: PME# supported from D0 D3cold [ 0.310051] PCI: bus1: Fast back to back transfers disabled [ 0.310067] pci_bus 0000:01: busn_res: [bus 01] end is updated to 01 [ 0.310124] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff] [ 0.310143] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit] [ 0.310222] pci 0000:00:00.0: PCI bridge to [bus 01] [ 0.310242] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff] [ 0.310536] pcieport 0000:00:00.0: enabling device (0140 -> 0142) [ 0.310736] pcieport 0000:00:00.0: Signaling PME with IRQ 53 [ 0.310908] pcieport 0000:00:00.0: AER enabled with IRQ 53 [ 0.311109] pci 0000:01:00.0: enabling device (0140 -> 0142) [ 0.316250] iproc-rng200 fe104000.rng: hwrng registered [ 0.316528] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 0.317133] vc-sm: Videocore shared memory driver [ 0.323368] vc4-drm soc:gpu: bound fe600000.firmwarekms (ops 0xc0c5fa58) [ 0.323933] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0 [ 0.323946] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 0.323956] [drm] No driver support for vblank timestamp query. [ 0.323968] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL [ 0.559786] Console: switching to colour frame buffer device 240x67 [ 0.593110] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device [ 0.604094] brd: module loaded [ 0.604238] loop: module loaded [ 0.623624] usbcore: registered new interface driver rtsx_usb [ 0.624684] Loading iSCSI transport class v2.0-870. [ 0.625071] iscsi: registered transport (tcp) [ 0.626565] libphy: Fixed MDIO Bus: probed [ 0.626600] tun: Universal TUN/TAP device driver, 1.6 [ 0.627308] bcmgenet fd580000.genet: failed to get enet clock [ 0.627325] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000 [ 0.627346] bcmgenet fd580000.genet: failed to get enet-wol clock [ 0.627364] bcmgenet fd580000.genet: failed to get enet-eee clock [ 0.627389] bcmgenet: Skipping UMAC reset [ 0.627732] unimac-mdio unimac-mdio.-19: DMA mask not set [ 0.640393] libphy: bcmgenet MII bus: probed [ 0.667842] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval) [ 0.668741] usbcore: registered new interface driver lan78xx [ 0.668786] usbcore: registered new interface driver dm9601 [ 0.668836] usbcore: registered new interface driver smsc95xx [ 0.669207] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.669245] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1 [ 0.671703] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890 [ 0.672036] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 54 [ 0.672929] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 0.672944] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.672958] usb usb1: Product: xHCI Host Controller [ 0.672971] usb usb1: Manufacturer: Linux 4.19.127 xhci-hcd [ 0.672984] usb usb1: SerialNumber: 0000:01:00.0 [ 0.673510] hub 1-0:1.0: USB hub found [ 0.673595] hub 1-0:1.0: 1 port detected [ 0.674118] xhci_hcd 0000:01:00.0: xHCI Host Controller [ 0.674141] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2 [ 0.674162] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed [ 0.674580] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19 [ 0.674594] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 0.674608] usb usb2: Product: xHCI Host Controller [ 0.674621] usb usb2: Manufacturer: Linux 4.19.127 xhci-hcd [ 0.674633] usb usb2: SerialNumber: 0000:01:00.0 [ 0.675133] hub 2-0:1.0: USB hub found [ 0.675213] hub 2-0:1.0: 4 ports detected [ 0.676505] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 0.676769] dwc_otg: FIQ enabled [ 0.676780] dwc_otg: NAK holdoff enabled [ 0.676790] dwc_otg: FIQ split-transaction FSM enabled [ 0.676805] Module dwc_common_port init [ 0.677209] usbcore: registered new interface driver uas [ 0.677298] usbcore: registered new interface driver usb-storage [ 0.677480] mousedev: PS/2 mouse device common for all mice [ 0.677812] i2c /dev entries driver [ 0.680238] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 0.682362] sdhci: Secure Digital Host Controller Interface driver [ 0.682374] sdhci: Copyright(c) Pierre Ossman [ 0.682855] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe [ 0.683454] sdhci-pltfm: SDHCI platform and OF driver helper [ 0.687890] ledtrig-cpu: registered to indicate activity on CPUs [ 0.687919] hidraw: raw HID events driver (C) Jiri Kosina [ 0.688961] usbcore: registered new interface driver usbhid [ 0.688965] usbhid: USB HID core driver [ 0.689364] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0 [ 0.690398] [vc_sm_connected_init]: start [ 0.696383] [vc_sm_connected_init]: end - returning 0 [ 0.696926] bcm2835_vc_sm_cma_probe: Videocore shared memory driver [ 0.696933] [vc_sm_connected_init]: start [ 0.697107] [vc_sm_connected_init]: installed successfully [ 0.698001] NET: Registered protocol family 10 [ 0.698652] Segment Routing with IPv6 [ 0.698706] NET: Registered protocol family 17 [ 0.698772] Key type dns_resolver registered [ 0.698948] Registering SWP/SWPB emulation handler [ 0.699310] Loading compiled-in X.509 certificates [ 0.704054] uart-pl011 fe201000.serial: cts_event_workaround enabled [ 0.704102] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2 [ 0.710593] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 0.710889] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver [ 0.711253] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 0.711259] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated [ 0.737242] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.3 [ 0.737332] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.4 [ 0.755411] mmc1: queuing unknown CIS tuple 0x80 (2 bytes) [ 0.756981] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.758556] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.761439] mmc1: queuing unknown CIS tuple 0x80 (7 bytes) [ 0.763053] mmc1: queuing unknown CIS tuple 0x80 (3 bytes) [ 0.767053] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA [ 0.773162] [drm] Initialized v3d 1.0.0 20180419 for fec00000.v3d on minor 1 [ 0.777370] console [netcon0] enabled [ 0.777374] netconsole: network logging started [ 0.777379] of_cfs_init [ 0.777389] of_cfs_init: OK [ 0.777528] ALSA device list: [ 0.777533] No soundcards found. [ 0.783936] Freeing unused kernel memory: 6144K [ 0.784107] Run /init as init process [ 0.806740] random: fast init done [ 0.834575] Checking disk(s): LABEL=System LABEL=Storage [ 0.877335] mmc0: new ultra high speed DDR50 SDHC card at address 0007 [ 0.878808] mmc1: new high speed SDIO card at address 0001 [ 0.879085] mmcblk0: mmc0:0007 SD32G 29.0 GiB [ 0.883682] mmcblk0: p1 p2 < p5 p6 p7 p8 p9 p10 p11 p12 > [ 1.010375] usb 1-1: new high-speed USB device number 2 using xhci_hcd [ 1.152969] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.21 [ 1.152984] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 1.152998] usb 1-1: Product: USB2.0 Hub [ 1.154730] hub 1-1:1.0: USB hub found [ 1.155073] hub 1-1:1.0: 4 ports detected [ 1.453741] usb 1-1.4: new full-speed USB device number 3 using xhci_hcd [ 1.554631] usb 1-1.4: New USB device found, idVendor=20a0, idProduct=0006, bcdDevice= 2.00 [ 1.554639] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 1.554644] usb 1-1.4: Product: flirc [ 1.554649] usb 1-1.4: Manufacturer: flirc.tv [ 1.563243] hid-generic 0003:20A0:0006.0001: hiddev96,hidraw0: USB HID v1.11 Device [flirc.tv flirc] on usb-0000:01:00.0-1.4/input0 [ 1.572100] input: flirc.tv flirc Keyboard as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:20A0:0006.0002/input/input0 [ 1.627188] input: flirc.tv flirc Consumer Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:20A0:0006.0002/input/input1 [ 1.627288] input: flirc.tv flirc System Control as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.4/1-1.4:1.1/0003:20A0:0006.0002/input/input2 [ 1.627385] hid-generic 0003:20A0:0006.0002: input,hidraw1: USB HID v1.01 Keyboard [flirc.tv flirc] on usb-0000:01:00.0-1.4/input1 [ 1.631796] hid-generic 0003:20A0:0006.0003: hiddev97,hidraw2: USB HID v1.11 Device [flirc.tv flirc] on usb-0000:01:00.0-1.4/input2 [ 1.843577] fsck: CP437: Invalid argument [ 1.843722] fsck: fsck.fat 4.1 (2017-01-24) [ 1.843904] fsck: /dev/mmcblk0p8: 249 files, 18539/65501 clusters [ 1.844116] fsck: Storage: clean, 84031/429936 files, 1211727/1718271 blocks [ 2.165039] EXT4-fs (mmcblk0p9): mounted filesystem with ordered data mode. Opts: (null) [ 2.478167] systemd[1]: System time before build time, advancing clock. [ 2.483913] systemd[1]: systemd 242 running in system mode. (-PAM -AUDIT -SELINUX -IMA -APPARMOR -SMACK +SYSVINIT -UTMP -LIBCRYPTSETUP -GCRYPT -GNUTLS -ACL -XZ -LZ4 -SECCOMP +BLKID -ELFUTILS +KMOD +IDN2 -IDN -PCRE2 default-hierarchy=hybrid) [ 2.484196] systemd[1]: Detected architecture arm. [ 2.486882] systemd[1]: Set hostname to . [ 2.489503] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument [ 2.604676] random: systemd: uninitialized urandom read (16 bytes read) [ 2.616325] systemd[1]: Listening on RPCbind Server Activation Socket. [ 2.616521] random: systemd: uninitialized urandom read (16 bytes read) [ 2.616980] systemd[1]: Listening on Journal Socket. [ 2.619191] systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped. [ 2.619234] random: systemd: uninitialized urandom read (16 bytes read) [ 2.619499] systemd[1]: Listening on Journal Socket (/dev/log). [ 2.621430] systemd[1]: Mounting Variable Directory... [ 2.621572] systemd[1]: Reached target RPC Port Mapper. [ 2.745562] kernel-overlays-setup: setup base modules [ 2.789586] kernel-overlays-setup: added modules from /usr/lib/kernel-overlays/base/lib/modules/4.19.127 [ 2.818879] kernel-overlays-setup: added firmware from /usr/lib/kernel-overlays/base/lib/firmware [ 2.818994] kernel-overlays-setup: adding overlays from /storage/.cache/kernel-overlays [ 2.820933] kernel-overlays-setup: done [ 2.933465] systemd-journald[214]: Received request to flush runtime journal from PID 1 [ 2.938861] wireguard: WireGuard 1.0.20200908 loaded. See www.wireguard.com for information. [ 2.938867] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld . All Rights Reserved. [ 3.396006] random: crng init done [ 3.396014] random: 7 urandom warning(s) missed due to ratelimiting [ 3.960515] media: Linux media interface: v0.10 [ 4.123897] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000 [ 4.123941] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff [ 4.126974] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff [ 4.127723] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff [ 4.128513] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff [ 4.348384] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 4.361426] videodev: Linux video capture interface: v2.00 [ 4.390333] bcm2835_audio soc:audio: card created with 8 channels [ 4.407565] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 4.415470] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 4.476519] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 4.509079] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 4.513573] brcmfmac: F1 signature read @0x18000000=0x15264345 [ 4.514139] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 4.514165] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 4.518799] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 4.519646] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 4.519675] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 4.525303] usbcore: registered new interface driver brcmfmac [ 4.528963] : bcm2835_codec_get_supported_fmts: port has more encoding than we provided space for. Some are dropped. [ 4.529465] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 4.529485] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 4.589273] bcmgenet: Skipping UMAC reset [ 4.657648] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay) [ 4.658032] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready [ 4.828055] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6 [ 4.865958] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04 [ 4.891232] EXT4-fs (mmcblk0p12): mounted filesystem with ordered data mode. Opts: (null) [ 4.936016] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready [ 4.936029] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled [ 4.937259] FAT-fs (mmcblk0p11): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 4.942601] EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: (null) [ 4.945640] EXT4-fs (mmcblk0p10): mounted filesystem with ordered data mode. Opts: (null) [ 5.107450] uart-pl011 fe201000.serial: no DMA platform data [ 5.677170] bcmgenet fd580000.genet eth0: Link is Down [ 7.588312] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 7.589456] Bridge firewalling registered [ 7.943187] IPv6: ADDRCONF(NETDEV_UP): br-9b31617d392f: link is not ready [ 8.065395] IPv6: ADDRCONF(NETDEV_UP): docker0: link is not ready [ 8.929375] br-9b31617d392f: port 1(veth26f39a1) entered blocking state [ 8.929383] br-9b31617d392f: port 1(veth26f39a1) entered disabled state [ 8.929538] device veth26f39a1 entered promiscuous mode [ 8.929757] IPv6: ADDRCONF(NETDEV_UP): veth26f39a1: link is not ready [ 8.929764] br-9b31617d392f: port 1(veth26f39a1) entered blocking state [ 8.929770] br-9b31617d392f: port 1(veth26f39a1) entered forwarding state [ 8.930902] br-9b31617d392f: port 1(veth26f39a1) entered disabled state [ 9.730533] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control off [ 9.730561] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ 9.737153] 8021q: 802.1Q VLAN Support v1.8 [ 9.954658] eth0: renamed from vethdca80e7 [ 9.971729] IPv6: ADDRCONF(NETDEV_CHANGE): veth26f39a1: link becomes ready [ 9.971815] br-9b31617d392f: port 1(veth26f39a1) entered blocking state [ 9.971822] br-9b31617d392f: port 1(veth26f39a1) entered forwarding state [ 9.971935] IPv6: ADDRCONF(NETDEV_CHANGE): br-9b31617d392f: link becomes ready [ 11.711504] Bluetooth: Core ver 2.22 [ 11.711542] NET: Registered protocol family 31 [ 11.711547] Bluetooth: HCI device and connection manager initialized [ 11.711560] Bluetooth: HCI socket layer initialized [ 11.711568] Bluetooth: L2CAP socket layer initialized [ 11.711588] Bluetooth: SCO socket layer initialized [ 11.713581] Bluetooth: HCI UART driver ver 2.3 [ 11.713589] Bluetooth: HCI UART protocol H4 registered [ 11.713634] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 11.714763] Bluetooth: HCI UART protocol Broadcom registered [ 791.433743] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status [ 791.544905] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status ```

maybe a stupid question, but should there be any vital signs on the respeaker if its pluged in correctly? like would it light a led or something? I already changed the connector twice because I was not sure - but there is no led on at the moment.

HinTak commented 3 years ago

@h4de5 libreELEC has pacmd so you can use that to see if the recording part of the card is detected with pacmd list-sources . If that works, you might be able to use parecord instead of arecord to record off the 4-mics!

h4de5 commented 3 years ago
install.sh ``` bash: 0: unknown operand Warning: /boot volume not found .. grep: invalid option -- 'b' BusyBox v1.31.0 (2020-10-24 15:30:09 EDT) multi-call binary. Usage: grep [-HhnlLoqvsriwFE] [-m N] [-A/B/C N] PATTERN/-e PATTERN.../-f FILE [FILE]... Search for PATTERN in FILEs (or stdin) -H Add 'filename:' prefix -h Do not add 'filename:' prefix -n Add 'line_no:' prefix -l Show only names of files that match -L Show only names of files that don't match -c Show only count of matching lines -o Show only the matching part of line -q Quiet. Return 0 if PATTERN is found, 1 otherwise -v Select non-matching lines -s Suppress open and read errors -r Recurse -i Ignore case -w Match whole words only -x Match whole lines only -F PATTERN is a literal (not regexp) -E PATTERN is an extended regexp -m N Match up to N times per file -A N Print N lines of trailing context -B N Print N lines of leading context -C N Same as '-A N -B N' -e PTRN Pattern to match -f FILE Read pattern from file zcat: short read mkdir: can't create directory '/usr/src/': Read-only file system cp: can't create '/usr/src/seeed-voicecard-0.3/LICENSE': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/Makefile': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/README.md': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac101.c': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac101_regs.h': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac108.c': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac108.h': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac108_6mic.state': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/ac108_asound.state': Path does not exist cp: can't create directory '/usr/src/seeed-voicecard-0.3/ac108_plugin': No such file or directory cp: can't create '/usr/src/seeed-voicecard-0.3/ac10x.h': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/asound_2mic.conf': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/asound_4mic.conf': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/asound_6mic.conf': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/builddtbo.sh': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/default.pa': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/dkms.conf': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/install.sh': Path does not exist cp: can't create directory '/usr/src/seeed-voicecard-0.3/pulseaudio': No such file or directory cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-2mic-voicecard-overlay.dts': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-2mic-voicecard.dtbo': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-4mic-voicecard-overlay.dts': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-4mic-voicecard.dtbo': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-8mic-voicecard-overlay.dts': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-8mic-voicecard.dtbo': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-voicecard': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-voicecard.c': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/seeed-voicecard.service': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/sound-compatible-4.18.h': Path does not exist cp: can't create directory '/usr/src/seeed-voicecard-0.3/tools': No such file or directory cp: can't create '/usr/src/seeed-voicecard-0.3/ubuntu-prerequisite.sh': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/uninstall.sh': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/wm8960.c': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/wm8960.h': Path does not exist cp: can't create '/usr/src/seeed-voicecard-0.3/wm8960_asound.state': Path does not exist ./install.sh: line 150: dkms: not found ./install.sh: line 152: dkms: not found cp: can't create '/flash/overlays/seeed-2mic-voicecard.dtbo': Read-only file system cp: can't create '/flash/overlays/seeed-4mic-voicecard.dtbo': File exists cp: can't create '/flash/overlays/seeed-8mic-voicecard.dtbo': Read-only file system grep: /etc/modules: No such file or directory ./install.sh: line 175: can't create /etc/modules: Read-only file system grep: /etc/modules: No such file or directory ./install.sh: line 177: can't create /etc/modules: Read-only file system grep: /etc/modules: No such file or directory ./install.sh: line 179: can't create /etc/modules: Read-only file system sed: can't create temp file '/flash/distroconfig.txtY7Ea6j': Read-only file system ./install.sh: line 190: can't create /flash/distroconfig.txt: Read-only file system ./install.sh: line 194: can't create /flash/distroconfig.txt: Read-only file system mkdir: can't create directory '/etc/voicecard': Read-only file system cp: can't create '/etc/voicecard/asound_2mic.conf': Path does not exist cp: can't create '/etc/voicecard/asound_4mic.conf': Path does not exist cp: can't create '/etc/voicecard/asound_6mic.conf': Path does not exist cp: can't create '/etc/voicecard/dkms.conf': Path does not exist cp: can't create '/etc/voicecard/ac108_6mic.state': Path does not exist cp: can't create '/etc/voicecard/ac108_asound.state': Path does not exist cp: can't create '/etc/voicecard/wm8960_asound.state': Path does not exist ./install.sh: line 202: git: not found ./install.sh: line 203: git: not found setup git config ./install.sh: line 206: git: not found ./install.sh: line 207: git: not found git init ./install.sh: line 210: git: not found git add --all ./install.sh: line 212: git: not found git commit -m "origin configures" ./install.sh: line 214: git: not found cp: can't create '/usr/bin/seeed-voicecard': Read-only file system cp: can't create '/lib/systemd/system/seeed-voicecard.service': Read-only file system 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! ```
seeed-voicecard ``` + export 'PATH=/usr/bin:/usr/sbin:/storage/.kodi/addons/service.system.docker/bin:/storage/.kodi/addons/virtual.multimedia-tools/bin:/storage/.kodi/addons/virtual.rpi-tools/bin:/storage/.kodi/addons/virtual.system-tools/bin:/opt/vc/bin' + OVERLAYS=/boot/overlays + '[' -d /boot/firmware/overlays ] + '[' -d /flash/overlays ] + OVERLAYS=/flash/overlays + dtparam -d /flash/overlays 'i2c_arm=on' + modprobe i2c-dev + dtparam -d /flash/overlays 'spi=on' + _VER_RUN= + CONFIG=/boot/config.txt + '[' -f /boot/firmware/usercfg.txt ] + '[' -f /flash/distroconfig.txt ] + CONFIG=/flash/distroconfig.txt + i2cdetect -y 1 0x1a 0x1a + egrep '(1a|UU)'+ awk '{print $2}' + is_1a= + i2cdetect -y 1 0x35 0x35 + awk '{print $2}' + egrep '(35|UU)' + is_35= + i2cdetect -y 1+ egrep '(3b|UU)' 0x3b 0x3b + awk '{print $2}' + is_3b=3b + RPI_HATS='seeed-2mic-voicecard seeed-4mic-voicecard seeed-8mic-voicecard' + overlay= + '[' x '!=' x ] + '[' x3b '!=' x ] + '[' x '==' x ] + echo 'install 4mic' install 4mic + overlay=seeed-4mic-voicecard + asound_conf=/etc/voicecard/asound_4mic.conf + asound_state=/etc/voicecard/ac108_asound.state + '[' x3b '!=' x ] + '[' x '!=' x ] + '[' seeed-4mic-voicecard ] + echo Install seeed-4mic-voicecard ... Install seeed-4mic-voicecard ... + rm /etc/asound.conf rm: can't remove '/etc/asound.conf': No such file or directory + rm /var/lib/alsa/asound.state rm: can't remove '/var/lib/alsa/asound.state': No such file or directory + uname -r + kernel_ver=4.19.127 + '[[' 4.19.127 '=~' '^4.19.*$' -o 4.19.127 '=~' '^5.*$' ]] bash: =~: unknown operand + dtoverlay -d /flash/overlays seeed-4mic-voicecard * Failed to apply overlay '2_seeed-4mic-voicecard' (kernel) + true + echo 'create seeed-4mic-voicecard asound configure file' create seeed-4mic-voicecard asound configure file + ln -s /etc/voicecard/asound_4mic.conf /etc/asound.conf ln: /etc/asound.conf: Read-only file system + echo 'create seeed-4mic-voicecard asound status file' create seeed-4mic-voicecard asound status file + ln -s /etc/voicecard/ac108_asound.state /var/lib/alsa/asound.state ln: /var/lib/alsa/asound.state: No such file or directory + alsactl restore alsactl: load_state:1683: Cannot open /var/lib/alsa/asound.state for reading: No such file or directory alsactl: sysfs_init:48: sysfs path '/sys' is invalid Found hardware: "bcm2835_alsa" "Broadcom Mixer" "" "" "" Hardware is initialized using a generic method + + grepaplay -q -l 'bcm2835 ALSA' + amixer cset 'numid=3' 1 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=3,step=0 : values=1 ```
pulseaudio --start ``` W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified). E: [pulseaudio] ltdl-bind-now.c: Failed to open module /usr/lib/pulse/module-alsa-card.so: /usr/lib/pulse/libalsa-util.so: undefined symbol: pa_alsa_ucm_device_update_available E: [pulseaudio] stdin-util.c: Unable to read or parse data from client. E: [pulseaudio] module.c: Failed to load module "module-gsettings" (argument: ""): initialization failed. W: [pulseaudio] server-lookup.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead W: [pulseaudio] main.c: Unable to contact D-Bus: org.freedesktop.DBus.Error.NotSupported: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead E: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.ServiceUnknown: The name org.bluez was not provided by any .service files ```
pacmd list-sources ``` 1 source(s) available. * index: 0 name: driver: flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: SUSPENDED suspend cause: IDLE priority: 1000 volume: front-left: 65536 / 100% / 0.00 dB, front-right: 65536 / 100% / 0.00 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 0.00 ms max rewind: 0 KiB sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo used by: 0 linked by: 0 configured latency: 0.00 ms; range is 0.50 .. 743.04 ms monitor_of: 0 card: 0 module: 6 properties: device.description = "Monitor of Built-in Audio Digital Stereo (IEC958)" device.class = "monitor" alsa.card = "0" alsa.card_name = "bcm2835 ALSA" alsa.long_card_name = "bcm2835 ALSA" alsa.driver_name = "snd_bcm2835" device.bus_path = "/devices/platform/soc/soc:audio/sound/card0" sysfs.path = "/devices/platform/soc/soc:audio/sound/card0" device.form_factor = "internal" device.string = "0" module-udev-detect.discovered = "1" device.icon_name = "audio-card" ```

it is not showing up, right?

``` ```
HinTak commented 3 years ago

@h4de5 okay, your dmesg is half-way to correct - these two lines means your overlay is half-loaded:

[  791.433743] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
[  791.544905] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status

your question about LEDs: no, the leds are programable and you can play with them (I have a script which makes them do a spinning rainbow...), but they don't automatically light up.

@h4de5 since LibreELEC does not have dkms, we need to do things the old-fashioned way: if you do make, it should hopefully create a few "*.ko". make install should copy them to some place under /lib/modules/4.19.127 or /usr/lib/kernel-overlays/base/lib/modules/4.19.127 ?

The part of interesting dmesg on raspbian looks like this:

[    2.224602] snd_soc_seeed_voicecard: loading out-of-tree module taints kernel.
...
[    3.452025]  ac10x i2c_id number: 1
[    3.452036]  ac10x data protocol: 0
...
[    3.836116]  ac10x codec count  : 1
[    3.836963]  ac10x i2c_id number: 0
[    3.836973]  ac10x data protocol: 0
...
[    4.165136]  ac10x codec count  : 2
...
[    4.491265] input: seed-voicecard-headset as /devices/platform/soc/fe804000.i2c/i2c-1/1-0035/input/input0
[    4.503653] ac108_set_sysclk  :24000000
[    4.518598] AC101 as Master
[    4.523353] seeed-voicecard soc:sound: ac10x-codec.1-0035 <-> fe203000.i2s mapping ok
...
[    6.542662] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
...
[    6.901904] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
[    7.187898] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2s@7e203000/#sound-dai-cells
[    7.187968] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2s@7e203000/status

This is the 6-mics devices; I believe the 4-mics shows fewer ac10x lines, with a "codec count 1", and does not have the "input: seed-voicecard-headset" lines.

It appears that the libreELEC does not ship any dev tools, so unfortunately you may need to install "make", "gcc", "kernel-dev" and perhaps a few other dev-related packages before you can run "make" correctly to generate the "*.ko" files.

HinTak commented 3 years ago

@h4de5 I had a look at volumio - it turns out to be just old raspbian, so as far as I see it should just work, if you are careful about kernel header package installation.

HinTak commented 3 years ago

My notes - https://github.com/HinTak/RaspberryPi-Dev/blob/master/LibreELEC-and-Volumio.md

It looks like Volumio is perhaps easier.

If your apt list -a raspberrypi-kernel on Volumio looks like this:

Listing... Done
raspberrypi-kernel/testing 1.20201022-1 armhf [upgradable from: 1.20200512-2]
raspberrypi-kernel/now 1.20200512-2 armhf [installed,upgradable to: 1.20201022-1]

You should be able to download the matching header,

http://archive.raspberrypi.org/debian/pool/main/r/raspberrypi-firmware/raspberrypi-kernel-headers_1.20200512-2_armhf.deb

dpkg -i the downloaded file, then do apt-mark hold raspberrypi-kernel raspberrypi-kernel-headers and verify with apt-mark showholds that they are marked to stay not to auto-upgrade, and just follow ./install.sh as normal raspbian.

I'll put these in the Volumio section of the above doc.

h4de5 commented 3 years ago

I had no luck finding a way to get the build tools into kodi.

lets assume - just for a moment - that I have no idea about building stuff with make .. what happens if I build it in a docker container that is running within libreelec or even on a separate raspbian installation on that rpi and copy them over?

so, you think installation on volumio would be easier? i just checked, and that volumio is running on a rpi3b (not a rpi4).

HinTak commented 3 years ago

@h4de5 Volumio seems to be just older raspbian (Jesse), it may indeed be a bit too old for pi4? Not sure about this.

HinTak commented 3 years ago

@h4de5 I think volumio would work on pi4 - while most of the system is older raspbian, the kernel is a fairly current one - 20200512 as far as I can see, identical to what I am running on my kernel-version-locked current raspbian).

h4de5 commented 3 years ago

ok. in this case i'll have a look at volumio later today. not sure - but the last time i tried to get the respeaker run there, I got stuck somewhere else..

btw. I have put ac108_asound.state to: /var/media/root/var/lib/alsa/asound.state

h4de5 commented 3 years ago

I am on volumio now. install.sh ran through - but had many errors:

sudo ./install.sh ``` Hit http://archive.volumio.org jessie InRelease Hit http://archive.volumio.org jessie InRelease Hit https://download.docker.com jessie InRelease Get:1 https://download.docker.com jessie/stable armhf Packages [4943 B] Get:2 https://download.docker.com jessie/stable Translation-en [393 B] Get:3 http://archive.volumio.org jessie/main Sources [7762 kB] Get:4 https://download.docker.com jessie/stable Translation-en [393 B] Get:5 https://download.docker.com jessie/stable Translation-en [393 B] Get:6 https://download.docker.com jessie/stable Translation-en [393 B] Get:7 https://download.docker.com jessie/stable Translation-en [393 B] Ign https://download.docker.com jessie/stable Translation-en Get:8 http://archive.volumio.org jessie/contrib Sources [64.5 kB] Get:9 http://archive.volumio.org jessie/non-free Sources [113 kB] Get:10 http://archive.volumio.org jessie/rpi Sources [1132 B] Get:11 http://archive.volumio.org jessie/main armhf Packages [9539 kB] Get:12 http://archive.volumio.org jessie/contrib armhf Packages [43.3 kB] Get:13 http://archive.volumio.org jessie/non-free armhf Packages [88.1 kB] Get:14 http://archive.volumio.org jessie/rpi armhf Packages [1356 B] Get:15 http://archive.volumio.org jessie/main Sources [57.1 kB] Get:16 http://archive.volumio.org jessie/ui Sources [17.4 kB] Get:17 http://archive.volumio.org jessie/main armhf Packages [171 kB] Get:18 http://archive.volumio.org jessie/ui armhf Packages [58.9 kB] Ign http://archive.volumio.org jessie/contrib Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/non-free Translation-en Ign http://archive.volumio.org jessie/rpi Translation-en Ign http://archive.volumio.org jessie/main Translation-en Ign http://archive.volumio.org jessie/ui Translation-en Fetched 17.9 MB in 22s (787 kB/s) Reading package lists... Done Building dependency tree Reading state information... Done 24 packages can be upgraded. Run 'apt list --upgradable' to see them. Reading package lists... Done Building dependency tree Reading state information... Done Package raspberrypi-kernel is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source E: Package 'raspberrypi-kernel' has no installation candidate 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 Reading package lists... Done Building dependency tree Reading state information... Done git is already the newest version. libasound2-plugins is already the newest version. libasound2-plugins set to manually installed. i2c-tools is already the newest version. The following extra packages will be installed: binutils cpp cpp-4.6 cpp-4.9 fakeroot gcc gcc-4.6 gcc-4.9 libasan1 libatomic1 libcloog-isl4 libfakeroot libgcc-4.9-dev libisl10 libmpc3 libmpfr4 libubsan0 linux-base linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-image-3.6-trunk-rpi linux-kbuild-3.6 make patch Suggested packages: binutils-doc cpp-doc gcc-4.6-locales gcc-4.9-locales gcc-multilib autoconf automake libtool flex bison gdb gcc-doc libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath-dbg libmudflap0-dbg libcloog-ppl1 libcloog-ppl0 libppl-c4 libppl12 libppl9 binutils-gold gcc-4.9-doc libitm1-dbg libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg linux-doc-3.6 debian-kernel-handbook fdutils make-doc ed diffutils-doc Recommended packages: linux-headers-686-pae linux-headers-amd64 linux-headers-generic linux-headers linux-image The following NEW packages will be installed: binutils cpp cpp-4.6 cpp-4.9 dkms fakeroot gcc gcc-4.6 gcc-4.9 libasan1 libatomic1 libcloog-isl4 libfakeroot libgcc-4.9-dev libisl10 libmpc3 libmpfr4 libubsan0 linux-base linux-headers-3.6-trunk-common linux-headers-3.6-trunk-rpi linux-image-3.6-trunk-rpi linux-kbuild-3.6 make patch 0 upgraded, 25 newly installed, 0 to remove and 24 not upgraded. Need to get 37.6 MB of archives. After this operation, 143 MB of additional disk space will be used. Get:1 http://archive.volumio.org/raspbian/ jessie/main libasan1 armhf 4.9.2-10+deb8u1 [165 kB] Get:2 http://archive.volumio.org/raspbian/ jessie/main libatomic1 armhf 4.9.2-10+deb8u1 [6806 B] Get:3 http://archive.volumio.org/raspbian/ jessie/main libisl10 armhf 0.12.2-2 [327 kB] Get:4 http://archive.volumio.org/raspbian/ jessie/main libcloog-isl4 armhf 0.18.2-1 [48.1 kB] Get:5 http://archive.volumio.org/raspbian/ jessie/main libmpfr4 armhf 3.1.2-2 [501 kB] Get:6 http://archive.volumio.org/raspbian/ jessie/main libubsan0 armhf 4.9.2-10+deb8u1 [68.3 kB] Get:7 http://archive.volumio.org/raspbian/ jessie/main linux-base all 4.5 [19.1 kB] Get:8 http://archive.volumio.org/raspbian/ jessie/main linux-image-3.6-trunk-rpi armhf 3.6.9-1~experimental.1+rpi7 [10.0 MB] Get:9 http://archive.volumio.org/raspbian/ jessie/main libmpc3 armhf 1.0.2-1 [29.7 kB] Get:10 http://archive.volumio.org/raspbian/ jessie/main make armhf 4.0-8.1 [333 kB] Get:11 http://archive.volumio.org/raspbian/ jessie/main patch armhf 2.7.5-1+deb8u1 [99.6 kB] Get:12 http://archive.volumio.org/raspbian/ jessie/main binutils armhf 2.25-5+deb8u1 [3470 kB] Get:13 http://archive.volumio.org/raspbian/ jessie/main cpp-4.9 armhf 4.9.2-10+deb8u1 [4271 kB] Get:14 http://archive.volumio.org/raspbian/ jessie/main cpp armhf 4:4.9.2-2 [17.3 kB] Get:15 http://archive.volumio.org/raspbian/ jessie/main cpp-4.6 armhf 4.6.4-5+rpi1 [4145 kB] Get:16 http://archive.volumio.org/raspbian/ jessie/main libgcc-4.9-dev armhf 4.9.2-10+deb8u1 [355 kB] Get:17 http://archive.volumio.org/raspbian/ jessie/main gcc-4.9 armhf 4.9.2-10+deb8u1 [4449 kB] Get:18 http://archive.volumio.org/raspbian/ jessie/main gcc armhf 4:4.9.2-2 [5132 B] Get:19 http://archive.volumio.org/raspbian/ jessie/main dkms all 2.2.0.3-2 [70.9 kB] Get:20 http://archive.volumio.org/raspbian/ jessie/main libfakeroot armhf 1.20.2-1 [41.9 kB] Get:21 http://archive.volumio.org/raspbian/ jessie/main fakeroot armhf 1.20.2-1 [85.5 kB] Get:22 http://archive.volumio.org/raspbian/ jessie/main gcc-4.6 armhf 4.6.4-5+rpi1 [4363 kB] Get:23 http://archive.volumio.org/raspbian/ jessie/main linux-headers-3.6-trunk-common armhf 3.6.9-1~experimental.1+rpi7 [4189 kB] Get:24 http://archive.volumio.org/raspbian/ jessie/main linux-kbuild-3.6 armhf 3.6-1~experimental.1+rpi2 [135 kB] Get:25 http://archive.volumio.org/raspbian/ jessie/main linux-headers-3.6-trunk-rpi armhf 3.6.9-1~experimental.1+rpi7 [414 kB] Fetched 37.6 MB in 9s (3944 kB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package libasan1:armhf. dpkg: warning: files list file for package 'libgc1c2:armhf' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed dpkg: warning: files list file for package 'guile-2.0-libs:armhf' missing; assuming package has no files currently installed (Reading database ... 25043 files and directories currently installed.) Preparing to unpack .../libasan1_4.9.2-10+deb8u1_armhf.deb ... Unpacking libasan1:armhf (4.9.2-10+deb8u1) ... Selecting previously unselected package libatomic1:armhf. Preparing to unpack .../libatomic1_4.9.2-10+deb8u1_armhf.deb ... Unpacking libatomic1:armhf (4.9.2-10+deb8u1) ... Selecting previously unselected package libisl10:armhf. Preparing to unpack .../libisl10_0.12.2-2_armhf.deb ... Unpacking libisl10:armhf (0.12.2-2) ... Selecting previously unselected package libcloog-isl4:armhf. Preparing to unpack .../libcloog-isl4_0.18.2-1_armhf.deb ... Unpacking libcloog-isl4:armhf (0.18.2-1) ... Selecting previously unselected package libmpfr4:armhf. Preparing to unpack .../libmpfr4_3.1.2-2_armhf.deb ... Unpacking libmpfr4:armhf (3.1.2-2) ... Selecting previously unselected package libubsan0:armhf. Preparing to unpack .../libubsan0_4.9.2-10+deb8u1_armhf.deb ... Unpacking libubsan0:armhf (4.9.2-10+deb8u1) ... Selecting previously unselected package linux-base. Preparing to unpack .../linux-base_4.5_all.deb ... Unpacking linux-base (4.5) ... Selecting previously unselected package linux-image-3.6-trunk-rpi. Preparing to unpack .../linux-image-3.6-trunk-rpi_3.6.9-1~experimental.1+rpi7_armhf.deb ... Unpacking linux-image-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Selecting previously unselected package libmpc3:armhf. Preparing to unpack .../libmpc3_1.0.2-1_armhf.deb ... Unpacking libmpc3:armhf (1.0.2-1) ... Selecting previously unselected package make. Preparing to unpack .../make_4.0-8.1_armhf.deb ... Unpacking make (4.0-8.1) ... Selecting previously unselected package patch. Preparing to unpack .../patch_2.7.5-1+deb8u1_armhf.deb ... Unpacking patch (2.7.5-1+deb8u1) ... Selecting previously unselected package binutils. Preparing to unpack .../binutils_2.25-5+deb8u1_armhf.deb ... Unpacking binutils (2.25-5+deb8u1) ... Selecting previously unselected package cpp-4.9. Preparing to unpack .../cpp-4.9_4.9.2-10+deb8u1_armhf.deb ... Unpacking cpp-4.9 (4.9.2-10+deb8u1) ... Selecting previously unselected package cpp. Preparing to unpack .../cpp_4%3a4.9.2-2_armhf.deb ... Unpacking cpp (4:4.9.2-2) ... Selecting previously unselected package cpp-4.6. Preparing to unpack .../cpp-4.6_4.6.4-5+rpi1_armhf.deb ... Unpacking cpp-4.6 (4.6.4-5+rpi1) ... Selecting previously unselected package libgcc-4.9-dev:armhf. Preparing to unpack .../libgcc-4.9-dev_4.9.2-10+deb8u1_armhf.deb ... Unpacking libgcc-4.9-dev:armhf (4.9.2-10+deb8u1) ... Selecting previously unselected package gcc-4.9. Preparing to unpack .../gcc-4.9_4.9.2-10+deb8u1_armhf.deb ... Unpacking gcc-4.9 (4.9.2-10+deb8u1) ... Selecting previously unselected package gcc. Preparing to unpack .../gcc_4%3a4.9.2-2_armhf.deb ... Unpacking gcc (4:4.9.2-2) ... Selecting previously unselected package dkms. Preparing to unpack .../dkms_2.2.0.3-2_all.deb ... Unpacking dkms (2.2.0.3-2) ... Selecting previously unselected package libfakeroot:armhf. Preparing to unpack .../libfakeroot_1.20.2-1_armhf.deb ... Unpacking libfakeroot:armhf (1.20.2-1) ... Selecting previously unselected package fakeroot. Preparing to unpack .../fakeroot_1.20.2-1_armhf.deb ... Unpacking fakeroot (1.20.2-1) ... Selecting previously unselected package gcc-4.6. Preparing to unpack .../gcc-4.6_4.6.4-5+rpi1_armhf.deb ... Unpacking gcc-4.6 (4.6.4-5+rpi1) ... Selecting previously unselected package linux-headers-3.6-trunk-common. Preparing to unpack .../linux-headers-3.6-trunk-common_3.6.9-1~experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ... Selecting previously unselected package linux-kbuild-3.6. Preparing to unpack .../linux-kbuild-3.6_3.6-1~experimental.1+rpi2_armhf.deb ... Unpacking linux-kbuild-3.6 (3.6-1~experimental.1+rpi2) ... Selecting previously unselected package linux-headers-3.6-trunk-rpi. Preparing to unpack .../linux-headers-3.6-trunk-rpi_3.6.9-1~experimental.1+rpi7_armhf.deb ... Unpacking linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Setting up libasan1:armhf (4.9.2-10+deb8u1) ... Setting up libatomic1:armhf (4.9.2-10+deb8u1) ... Setting up libisl10:armhf (0.12.2-2) ... Setting up libcloog-isl4:armhf (0.18.2-1) ... Setting up libmpfr4:armhf (3.1.2-2) ... Setting up libubsan0:armhf (4.9.2-10+deb8u1) ... Setting up linux-base (4.5) ... Setting up linux-image-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Running depmod. Examining /etc/kernel/postinst.d. run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 3.6-trunk-rpi /boot/vmlinuz-3.6-trunk-rpi run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.6-trunk-rpi /boot/vmlinuz-3.6-trunk-rpi update-initramfs: Generating /boot/initrd.img-3.6-trunk-rpi Setting up libmpc3:armhf (1.0.2-1) ... Setting up make (4.0-8.1) ... Setting up patch (2.7.5-1+deb8u1) ... Setting up binutils (2.25-5+deb8u1) ... Setting up cpp-4.9 (4.9.2-10+deb8u1) ... Setting up cpp (4:4.9.2-2) ... Setting up cpp-4.6 (4.6.4-5+rpi1) ... Setting up libgcc-4.9-dev:armhf (4.9.2-10+deb8u1) ... Setting up gcc-4.9 (4.9.2-10+deb8u1) ... Setting up gcc (4:4.9.2-2) ... Setting up dkms (2.2.0.3-2) ... Setting up libfakeroot:armhf (1.20.2-1) ... Setting up fakeroot (1.20.2-1) ... update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode update-alternatives: warning: skip creation of /usr/share/man/es/man1/fakeroot.1.gz because associated file /usr/share/man/es/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/es/man1/faked.1.gz because associated file /usr/share/man/es/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/fr/man1/fakeroot.1.gz because associated file /usr/share/man/fr/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/fr/man1/faked.1.gz because associated file /usr/share/man/fr/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/sv/man1/fakeroot.1.gz because associated file /usr/share/man/sv/man1/fakeroot-sysv.1.gz (of link group fakeroot) doesn't exist update-alternatives: warning: skip creation of /usr/share/man/sv/man1/faked.1.gz because associated file /usr/share/man/sv/man1/faked-sysv.1.gz (of link group fakeroot) doesn't exist Setting up gcc-4.6 (4.6.4-5+rpi1) ... Setting up linux-headers-3.6-trunk-common (3.6.9-1~experimental.1+rpi7) ... Setting up linux-kbuild-3.6 (3.6-1~experimental.1+rpi2) ... Setting up linux-headers-3.6-trunk-rpi (3.6.9-1~experimental.1+rpi7) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.6-trunk-rpi Processing triggers for libc-bin (2.19-18+deb8u10) ... grep: /boot/kernel.img: No such file or directory gzip: stdin: unexpected end of file dpkg-query: package 'raspberrypi-kernel-headers' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. 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. Error! echo Your kernel headers for kernel 4.19.49v6v7-aufs cannot be found at /lib/modules/4.19.49v6v7-aufs/build or /lib/modules/4.19.49v6v7-aufs/source. setup git config git init Initialized empty Git repository in /etc/voicecard/.git/ git add --all git commit -m "origin configures" [master (root-commit) b161adf] 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 from /etc/systemd/system/sysinit.target.wants/seeed-voicecard.service to /lib/systemd/system/seeed-voicecard.service. ------------------------------------------------------ Please reboot your raspberry pi to apply all settings Enjoy! ------------------------------------------------------ ```
./seeed-voicecard ``` + export PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/vc/bin + PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/opt/vc/bin + OVERLAYS=/boot/overlays + '[' -d /boot/firmware/overlays ']' + '[' -d /flash/overlays ']' + dtparam -d /boot/overlays i2c_arm=on * Must be run as root - try 'sudo dtparam ...' + modprobe i2c-dev ./seeed-voicecard: line 35: modprobe: command not found + dtparam -d /boot/overlays spi=on * Must be run as root - try 'sudo dtparam ...' + _VER_RUN= + CONFIG=/boot/config.txt + '[' -f /boot/firmware/usercfg.txt ']' + '[' -f /flash/distroconfig.txt ']' ++ i2cdetect -y 1 0x1a 0x1a ++ egrep '(1a|UU)' ++ awk '{print $2}' ./seeed-voicecard: line 97: i2cdetect: command not found + is_1a= ++ i2cdetect -y 1 0x35 0x35 ++ egrep '(35|UU)' ./seeed-voicecard: line 98: i2cdetect: command not found ++ awk '{print $2}' + is_35= ++ i2cdetect -y 1 0x3b 0x3b ++ egrep '(3b|UU)' ./seeed-voicecard: line 99: i2cdetect: command not found ++ awk '{print $2}' + is_3b= + RPI_HATS='seeed-2mic-voicecard seeed-4mic-voicecard seeed-8mic-voicecard' + overlay= + '[' x '!=' x ']' + '[' x '!=' x ']' + '[' x '!=' x ']' + '[' '' ']' + alsactl restore ./seeed-voicecard: line 157: alsactl: command not found + aplay -l + grep -q 'bcm2835 ALSA' + amixer cset numid=3 1 numid=3,iface=MIXER,name='PCM Playback Route' ; type=INTEGER,access=rw------,values=1,min=0,max=2,step=0 : values=1 ```
dmesg ``` dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.19.49v6v7-aufs (max@lynx) (gcc version 8.2.0 (Buildroot 2018.08-gbbba56f1-dirty)) #1 SMP Tue Jun 11 15:13:27 CEST 2019 [ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d [ 0.000000] CPU: div instructions available: patching division code [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Rev 1.2 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] cma: Reserved 8 MiB at 0x35800000 [ 0.000000] On node 0 totalpages: 221184 [ 0.000000] Normal zone: 1944 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 221184 pages, LIFO batch:63 [ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x4b8 with crng_init=0 [ 0.000000] percpu: Embedded 17 pages/cpu s39436 r8192 d22004 u69632 [ 0.000000] pcpu-alloc: s39436 r8192 d22004 u69632 alloc=17*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 219240 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 bcm2708_fb.fbwidth=720 bcm2708_fb.fbheight=480 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 elevator=deadline quiet bootmenutimeout=10 datadev=iscsi qmap=de vncinstall ipv4=192.168.0.73/255.255.240.0/192.168.0.1 [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 851524K/884736K available (9216K kernel code, 695K rwdata, 2472K rodata, 1024K init, 837K bss, 25020K reserved, 8192K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xb6800000 - 0xff800000 (1168 MB) lowmem : 0x80000000 - 0xb6000000 ( 864 MB) modules : 0x7f000000 - 0x80000000 ( 16 MB) .text : 0x(ptrval) - 0x(ptrval) (10208 kB) .init : 0x(ptrval) - 0x(ptrval) (1024 kB) .data : 0x(ptrval) - 0x(ptrval) ( 696 kB) .bss : 0x(ptrval) - 0x(ptrval) ( 838 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 29051 entries in 86 pages [ 0.000000] rcu: Hierarchical RCU implementation. [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.000018] Switching to timer-based delay loop, resolution 52ns [ 0.000277] Console: colour dummy device 80x30 [ 0.000295] console [tty0] enabled [ 0.000338] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000) [ 0.000354] pid_max: default: 32768 minimum: 301 [ 0.000697] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000713] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001737] CPU: Testing write buffer coherency: ok [ 0.002205] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002864] Setting up static identity map for 0x100000 - 0x100054 [ 0.003014] rcu: Hierarchical SRCU implementation. [ 0.003843] smp: Bringing up secondary CPUs ... [ 0.004746] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.005742] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002 [ 0.006669] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003 [ 0.006793] smp: Brought up 1 node, 4 CPUs [ 0.006805] SMP: Total of 4 processors activated (153.60 BogoMIPS). [ 0.006811] CPU: All CPU(s) started in HYP mode. [ 0.006816] CPU: Virtualization extensions available. [ 0.007724] devtmpfs: initialized [ 0.019731] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4 [ 0.020000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.020021] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.020618] xor: measuring software checksum speed [ 0.120033] arm4regs : 920.000 MB/sec [ 0.220119] 8regs : 685.200 MB/sec [ 0.320205] 32regs : 638.000 MB/sec [ 0.420285] neon : 1032.400 MB/sec [ 0.420293] xor: using function: neon (1032.400 MB/sec) [ 0.420307] pinctrl core: initialized pinctrl subsystem [ 0.421210] NET: Registered protocol family 16 [ 0.424238] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.429857] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.429865] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.430092] Serial: AMBA PL011 UART driver [ 0.432446] bcm2835-mbox 3f00b880.mailbox: mailbox enabled [ 0.631060] raid6: int32x1 gen() 94 MB/s [ 0.801010] raid6: int32x1 xor() 92 MB/s [ 0.971265] raid6: int32x2 gen() 145 MB/s [ 1.141496] raid6: int32x2 xor() 114 MB/s [ 1.311815] raid6: int32x4 gen() 157 MB/s [ 1.481909] raid6: int32x4 xor() 123 MB/s [ 1.652117] raid6: int32x8 gen() 164 MB/s [ 1.822334] raid6: int32x8 xor() 111 MB/s [ 1.992427] raid6: neonx1 gen() 350 MB/s [ 2.162568] raid6: neonx1 xor() 348 MB/s [ 2.332872] raid6: neonx2 gen() 522 MB/s [ 2.503016] raid6: neonx2 xor() 518 MB/s [ 2.673228] raid6: neonx4 gen() 716 MB/s [ 2.843429] raid6: neonx4 xor() 651 MB/s [ 3.013611] raid6: neonx8 gen() 683 MB/s [ 3.183808] raid6: neonx8 xor() 587 MB/s [ 3.183815] raid6: using algorithm neonx4 gen() 716 MB/s [ 3.183821] raid6: .... xor() 651 MB/s, rmw enabled [ 3.183828] raid6: using neon recovery algorithm [ 3.184364] bcm2835-dma 3f007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1 [ 3.186028] SCSI subsystem initialized [ 3.186263] usbcore: registered new interface driver usbfs [ 3.186321] usbcore: registered new interface driver hub [ 3.186419] usbcore: registered new device driver usb [ 3.206678] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-06-10 15:14, variant start_x [ 3.216686] raspberrypi-firmware soc:firmware: Firmware hash is e57a7ab1847d26251175e99d158a29ed46eb9ca4 [ 3.228271] clocksource: Switched to clocksource arch_sys_counter [ 3.348627] VFS: Disk quotas dquot_6.6.0 [ 3.348712] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 3.348947] FS-Cache: Loaded [ 3.349140] CacheFiles: Loaded [ 3.357988] NET: Registered protocol family 2 [ 3.358880] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes) [ 3.358918] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 3.359028] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 3.359214] TCP: Hash tables configured (established 8192 bind 8192) [ 3.359349] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 3.359395] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 3.359737] NET: Registered protocol family 1 [ 3.360345] RPC: Registered named UNIX socket transport module. [ 3.360352] RPC: Registered udp transport module. [ 3.360358] RPC: Registered tcp transport module. [ 3.360363] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 3.360593] Trying to unpack rootfs image as initramfs... [ 3.369544] Freeing initrd memory: 168K [ 3.371264] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available [ 3.374355] Initialise system trusted keyrings [ 3.374538] workingset: timestamp_bits=14 max_order=18 bucket_order=4 [ 3.384372] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 3.384656] FS-Cache: Netfs 'nfs' registered for caching [ 3.385225] NFS: Registering the id_resolver key type [ 3.385253] Key type id_resolver registered [ 3.385260] Key type id_legacy registered [ 3.385277] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 3.386580] aufs 4.19.17+-20190311 [ 3.388068] Key type asymmetric registered [ 3.388076] Asymmetric key parser 'x509' registered [ 3.388124] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250) [ 3.388329] io scheduler noop registered [ 3.388337] io scheduler deadline registered (default) [ 3.388527] io scheduler cfq registered [ 3.388535] io scheduler mq-deadline registered (default) [ 3.388542] io scheduler kyber registered [ 3.391832] BCM2708FB: allocated DMA memory 0xf5910000 [ 3.391860] BCM2708FB: allocated DMA channel 0 [ 3.402086] Console: switching to colour frame buffer device 90x30 [ 3.409394] bcm2835-rng 3f104000.rng: hwrng registered [ 3.409584] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 3.410091] vc-sm: Videocore shared memory driver [ 3.410408] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000 [ 3.421543] brd: module loaded [ 3.431669] loop: module loaded [ 3.431680] Loading iSCSI transport class v2.0-870. [ 3.432144] iscsi: registered transport (tcp) [ 3.432519] libphy: Fixed MDIO Bus: probed [ 3.432627] usbcore: registered new interface driver lan78xx [ 3.432688] usbcore: registered new interface driver smsc95xx [ 3.432701] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 3.460593] dwc_otg 3f980000.usb: base=(ptrval) [ 3.660844] Core Release: 2.80a [ 3.660854] Setting default values for core params [ 3.660881] Finished setting default values for core params [ 3.861189] Using Buffer DMA mode [ 3.861197] Periodic Transfer Interrupt Enhancement - disabled [ 3.861203] Multiprocessor Interrupt Enhancement - disabled [ 3.861211] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 3.861228] Dedicated Tx FIFOs mode [ 3.861682] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = b5904000 dma = 0xf5904000 len=9024 [ 3.861707] FIQ FSM acceleration enabled for : Non-periodic Split Transactions Periodic Split Transactions High-Speed Isochronous Endpoints Interrupt/Control Split Transaction hack enabled [ 3.861715] dwc_otg: Microframe scheduler enabled [ 3.861771] WARN::hcd_init_fiq:457: FIQ on core 1 [ 3.861783] WARN::hcd_init_fiq:458: FIQ ASM at 807cb658 length 36 [ 3.861795] WARN::hcd_init_fiq:484: MPHI regs_base at f0006000 [ 3.861810] dwc_otg 3f980000.usb: DWC OTG Controller [ 3.861845] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1 [ 3.861879] dwc_otg 3f980000.usb: irq 56, io mem 0x00000000 [ 3.861926] Init: Port Power? op_state=1 [ 3.861932] Init: Power Port (0) [ 3.862187] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 3.862199] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.862208] usb usb1: Product: DWC OTG Controller [ 3.862217] usb usb1: Manufacturer: Linux 4.19.49v6v7-aufs dwc_otg_hcd [ 3.862227] usb usb1: SerialNumber: 3f980000.usb [ 3.862844] hub 1-0:1.0: USB hub found [ 3.862891] hub 1-0:1.0: 1 port detected [ 3.863489] dwc_otg: FIQ enabled [ 3.863495] dwc_otg: NAK holdoff enabled [ 3.863501] dwc_otg: FIQ split-transaction FSM enabled [ 3.863512] Module dwc_common_port init [ 3.863775] usbcore: registered new interface driver usb-storage [ 3.863954] mousedev: PS/2 mouse device common for all mice [ 3.865060] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer [ 3.865391] bcm2835-cpufreq: min=600000 max=1200000 [ 3.865876] sdhci: Secure Digital Host Controller Interface driver [ 3.865881] sdhci: Copyright(c) Pierre Ossman [ 3.866269] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe [ 3.866678] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe [ 3.866800] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.868826] ledtrig-cpu: registered to indicate activity on CPUs [ 3.868907] hidraw: raw HID events driver (C) Jiri Kosina [ 3.871005] usbcore: registered new interface driver usbhid [ 3.871011] usbhid: USB HID core driver [ 3.871358] ashmem: initialized [ 3.872127] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0 [ 3.873650] [vc_sm_connected_init]: start [ 3.882316] [vc_sm_connected_init]: end - returning 0 [ 3.883793] Initializing XFRM netlink socket [ 3.883823] NET: Registered protocol family 17 [ 3.883948] Key type dns_resolver registered [ 3.884392] Registering SWP/SWPB emulation handler [ 3.885067] registered taskstats version 1 [ 3.885083] Loading compiled-in X.509 certificates [ 3.886774] Btrfs loaded, crc32c=crc32c-generic [ 3.894335] uart-pl011 3f201000.serial: cts_event_workaround enabled [ 3.894415] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 81, base_baud = 0) is a PL011 rev2 [ 3.896454] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 3.896464] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated [ 3.921612] sdhost: log_buf @ (ptrval) (f5907000) [ 3.961029] mmc1: new high speed SDIO card at address 0001 [ 3.968309] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 3.969666] of_cfs_init [ 3.969826] of_cfs_init: OK [ 3.990371] Freeing unused kernel memory: 1024K [ 4.018750] Run /init as init process [ 4.057035] mmc0: host does not support reading read-only switch, assuming write-enable [ 4.060888] mmc0: new high speed SD card at address aaaa [ 4.062110] mmcblk0: mmc0:aaaa SU02G 1.84 GiB [ 4.070672] mmcblk0: p1 [ 4.078414] Indeed it is in host mode hprt0 = 00021501 [ 4.145831] random: fast init done [ 4.288351] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 4.288506] Indeed it is in host mode hprt0 = 00001101 [ 4.528662] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00 [ 4.528678] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.529364] hub 1-1:1.0: USB hub found [ 4.529475] hub 1-1:1.0: 5 ports detected [ 4.848351] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 4.978727] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00 [ 4.978742] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.981507] smsc95xx v1.0.6 [ 5.072156] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:6c:46:ae [ 6.020569] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 7.639394] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1 [ 7.729812] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 8.002825] scsi host0: iSCSI Initiator over TCP/IP [ 9.083503] scsi 0:0:0:2: Direct-Access SYNOLOGY iSCSI Storage 4.0 PQ: 0 ANSI: 5 [ 9.093794] sd 0:0:0:2: [sda] 33554432 512-byte logical blocks: (17.2 GB/16.0 GiB) [ 9.094555] sd 0:0:0:2: [sda] Write Protect is off [ 9.094572] sd 0:0:0:2: [sda] Mode Sense: 43 00 10 08 [ 9.095950] sd 0:0:0:2: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 9.097158] sd 0:0:0:2: [sda] Optimal transfer size 16384 logical blocks > dev_max (8192 logical blocks) [ 9.105144] sda: sda1 [ 9.112327] sd 0:0:0:2: [sda] Attached SCSI disk [ 9.165702] EXT4-fs (sda1): INFO: recovery required on readonly filesystem [ 9.165712] EXT4-fs (sda1): write access will be enabled during recovery [ 9.501510] EXT4-fs (sda1): orphan cleanup on readonly fs [ 9.504272] EXT4-fs (sda1): 4 orphan inodes deleted [ 9.504280] EXT4-fs (sda1): recovery complete [ 9.518234] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 9.539912] EXT4-fs (sda1): re-mounted. Opts: (null) [ 9.567874] udevd[136]: starting version 3.2.5 [ 9.661304] random: udevd: uninitialized urandom read (16 bytes read) [ 9.661572] random: udevd: uninitialized urandom read (16 bytes read) [ 9.661672] random: udevd: uninitialized urandom read (16 bytes read) [ 9.671534] udevd[137]: starting eudev-3.2.5 [ 9.823356] random: crng init done [ 9.823370] random: 2 urandom warning(s) missed due to ratelimiting [ 9.842606] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 9.845116] bcm2835_vc_sm_cma_probe: Videocore shared memory driver [ 9.845129] [vc_sm_connected_init]: start [ 9.852108] media: Linux media interface: v0.10 [ 9.852754] [vc_sm_connected_init]: installed successfully [ 9.891433] videodev: Linux video capture interface: v2.00 [ 10.052584] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 10.097102] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 10.101694] i2c /dev entries driver [ 10.104083] bcm2835_audio soc:audio: card created with 8 channels [ 10.140959] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 10.152558] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 10.167641] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 10.740365] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 10.741999] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2 [ 10.742013] cfg80211: failed to load regulatory.db [ 10.770236] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 10.770247] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 10.773197] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 10.773208] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 10.776404] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 10.776414] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 10.803819] brcmfmac: F1 signature read @0x18000000=0x1541a9a6 [ 10.809555] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 10.810037] usbcore: registered new interface driver brcmfmac [ 11.022012] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 11.022388] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 11.023415] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f [ 20.002582] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 20.365439] aufs test_add:291:mount[237]: uid/gid/perm /squashfs 0/0/0777, 0/0/0755 [ 20.776103] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) [ 20.776489] systemd[1]: Detected architecture 'arm'. [ 20.909096] NET: Registered protocol family 10 [ 20.910356] Segment Routing with IPv6 [ 20.910541] systemd[1]: Inserted module 'ipv6' [ 20.912385] systemd[1]: Set hostname to . [ 21.234891] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service' [ 21.234930] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service' [ 21.234961] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service' [ 21.234998] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service' [ 21.240546] systemd[1]: [/lib/systemd/system/docker.service:25] Unknown lvalue 'Delegate' in section 'Service' [ 21.276666] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. [ 21.637165] fuse init (API version 7.27) [ 21.895497] systemd-udevd[286]: starting version 215 [ 22.114922] systemd-journald[266]: Received request to flush runtime journal from PID 1 [ 22.322231] sd 0:0:0:2: Attached scsi generic sg0 type 0 [ 23.282084] brcmfmac: power management disabled [ 23.597387] brcmfmac: power management disabled [ 24.904993] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 25.329862] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 25.679616] uart-pl011 3f201000.serial: no DMA platform data [ 30.210106] Bluetooth: Core ver 2.22 [ 30.210165] NET: Registered protocol family 31 [ 30.210169] Bluetooth: HCI device and connection manager initialized [ 30.210637] Bluetooth: HCI socket layer initialized [ 30.210646] Bluetooth: L2CAP socket layer initialized [ 30.210669] Bluetooth: SCO socket layer initialized [ 30.259871] Bluetooth: HCI UART driver ver 2.3 [ 30.259879] Bluetooth: HCI UART protocol H4 registered [ 30.259963] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 30.261465] Bluetooth: HCI UART protocol Broadcom registered [ 31.176621] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 31.176629] Bluetooth: BNEP filters: protocol multicast [ 31.176642] Bluetooth: BNEP socket layer initialized [ 34.357173] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com [ 34.450506] aufs au_warn_loopback:123:loop1[1047]: you may want to try another patch for loopback file on ext4(0xef53) branch [ 36.646230] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 36.652912] Bridge firewalling registered [ 37.023097] brcmfmac: power management disabled [ 38.631699] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null) [ 38.714572] br-bde535b3b227: port 1(veth5846153) entered blocking state [ 38.714582] br-bde535b3b227: port 1(veth5846153) entered disabled state [ 38.714945] device veth5846153 entered promiscuous mode [ 38.715466] br-bde535b3b227: port 1(veth5846153) entered blocking state [ 38.715474] br-bde535b3b227: port 1(veth5846153) entered forwarding state [ 38.715609] br-bde535b3b227: port 1(veth5846153) entered disabled state [ 38.822422] br-bde535b3b227: port 1(veth5846153) entered blocking state [ 38.822433] br-bde535b3b227: port 1(veth5846153) entered forwarding state [ 43.790766] br-bde535b3b227: port 1(veth5846153) entered disabled state [ 43.792927] eth0: renamed from veth8fb1602 [ 43.832348] br-bde535b3b227: port 1(veth5846153) entered blocking state [ 43.832358] br-bde535b3b227: port 1(veth5846153) entered forwarding state [ 54.643117] FS-Cache: Netfs 'cifs' registered for caching [ 54.643458] Key type cifs.spnego registered [ 54.643468] Key type cifs.idmap registered [ 54.647689] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.647692] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.647743] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.647809] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.650825] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.653501] No dialect specified on mount. Default has changed to a more secure dialect, SMB2.1 or later (e.g. SMB3), from CIFS (SMB1). To use the less secure SMB1 dialect to access old servers which do not support SMB3 (or SMB2.1) specify vers=1.0 on mount. [ 54.675174] FS-Cache: Duplicate cookie detected [ 54.675189] FS-Cache: O-cookie c=50c2ed4e [p=14b63648 fl=222 nc=0 na=1] [ 54.675194] FS-Cache: O-cookie d=38bd6c2b n=73f76261 [ 54.675204] FS-Cache: O-key=[8] '020001bdc0a8000a' [ 54.675233] FS-Cache: N-cookie c=ab2bce66 [p=14b63648 fl=2 nc=0 na=1] [ 54.675237] FS-Cache: N-cookie d=38bd6c2b n=8490ff0f [ 54.675240] FS-Cache: N-key=[8] '020001bdc0a8000a' [ 54.675315] FS-Cache: Duplicate cookie detected [ 54.675322] FS-Cache: O-cookie c=50c2ed4e [p=14b63648 fl=222 nc=0 na=1] [ 54.675326] FS-Cache: O-cookie d=38bd6c2b n=73f76261 [ 54.675356] FS-Cache: O-key=[8] '020001bdc0a8000a' [ 54.675412] FS-Cache: N-cookie c=795e87dc [p=14b63648 fl=2 nc=0 na=1] [ 54.675417] FS-Cache: N-cookie d=38bd6c2b n=dea50e3f [ 54.675419] FS-Cache: N-key=[8] '020001bdc0a8000a' [ 54.675674] FS-Cache: Duplicate cookie detected [ 54.675682] FS-Cache: O-cookie c=50c2ed4e [p=14b63648 fl=222 nc=0 na=1] [ 54.675686] FS-Cache: O-cookie d=38bd6c2b n=73f76261 [ 54.675689] FS-Cache: O-key=[8] '020001bdc0a8000a' [ 54.675720] FS-Cache: N-cookie c=ab2bce66 [p=14b63648 fl=2 nc=0 na=1] [ 54.675724] FS-Cache: N-cookie d=38bd6c2b n=8430c83f [ 54.675727] FS-Cache: N-key=[8] '020001bdc0a8000a' [ 54.675855] FS-Cache: Duplicate cookie detected [ 54.675862] FS-Cache: O-cookie c=50c2ed4e [p=14b63648 fl=222 nc=0 na=1] [ 54.675867] FS-Cache: O-cookie d=38bd6c2b n=73f76261 [ 54.675869] FS-Cache: O-key=[8] '020001bdc0a8000a' [ 54.675894] FS-Cache: N-cookie c=ab2bce66 [p=14b63648 fl=2 nc=0 na=1] [ 54.675898] FS-Cache: N-cookie d=38bd6c2b n=df543971 [ 54.675901] FS-Cache: N-key=[8] '020001bdc0a8000a' [ 54.679356] FS-Cache: Duplicate cookie detected [ 54.679372] FS-Cache: O-cookie c=50c2ed4e [p=14b63648 fl=222 nc=0 na=1] [ 54.679377] FS-Cache: O-cookie d=38bd6c2b n=73f76261 [ 54.679380] FS-Cache: O-key=[8] '020001bdc0a8000a' [ 54.679406] FS-Cache: N-cookie c=ed757e77 [p=14b63648 fl=2 nc=0 na=1] [ 54.679411] FS-Cache: N-cookie d=38bd6c2b n=b75dfe9d [ 54.679417] FS-Cache: N-key=[8] '020001bdc0a8000a' ```

at least arecord is there:

$ arecord -L

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default
playback
ac108
$ pacmd list-sources
1 source(s) available.
  * index: 0
        name: <null.monitor>
        driver: <module-null-sink.c>
        flags: DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: IDLE
        suspend cause:
        priority: 1000
        volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
                balance 0.00
        base volume: 65536 / 100% / 0.00 dB
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max rewind: 344 KiB
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 2000.00 ms; range is 0.50 .. 2000.00 ms
        monitor_of: 0
        module: 3
        properties:
                device.description = "Monitor of Null Output"
                device.class = "monitor"
                device.icon_name = "audio-input-microphone"

I am going through them right now.

h4de5 commented 3 years ago

this is was my headers look like:

apt list -a raspberrypi-kernel
Listing... Done
raspberrypi-kernel/oldstable 1.20170703-1 armhf
HinTak commented 3 years ago

this is was my headers look like:

apt list -a raspberrypi-kernel
Listing... Done
raspberrypi-kernel/oldstable 1.20170703-1 armhf

How old is your volumio installation? As it says 2017, it is antique...

h4de5 commented 3 years ago

I am wondering myself - its the current volumio (2.853), but I mostly updated it through the service itself - still 2017 seems a little too old. image

also - not sure if this matters - this installation is running on a berryboot bootloader, with the image located on a iSCSI mount.

I tried to download those headers (only after I already tried to run install.sh)

$ sudo dpkg -i raspberrypi-kernel-headers_1.20170703-1_armhf.deb
[sudo] password for volumio:
Selecting previously unselected package raspberrypi-kernel-headers.
dpkg: warning: files list file for package 'libgc1c2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'guile-2.0-libs:armhf' missing; assuming package has no files currently installed
(Reading database ... 34657 files and directories currently installed.)
Preparing to unpack raspberrypi-kernel-headers_1.20170703-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20170703-1) ...
Setting up raspberrypi-kernel-headers (1.20170703-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35+
Error! Bad return status for module build on kernel: 4.9.35+ (armv7l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35-v7+
Error! Bad return status for module build on kernel: 4.9.35-v7+ (armv7l)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

$ cat /var/lib/dkms/seeed-voicecard/0.3/build/make.log
DKMS make.log for seeed-voicecard-0.3 for kernel 4.9.35-v7+ (armv7l)
Fri Dec  4 21:30:41 UTC 2020
make: Entering directory '/usr/src/linux-headers-4.9.35-v7+'
  LD      /var/lib/dkms/seeed-voicecard/0.3/build/built-in.o
  CC [M]  /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o
In file included from /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:28:0:
/var/lib/dkms/seeed-voicecard/0.3/build/sound-compatible-4.18.h:19:5: warning: "__has_attribute" is not defined [-Wundef]
 #if __has_attribute(__fallthrough__)
     ^
/var/lib/dkms/seeed-voicecard/0.3/build/sound-compatible-4.18.h:19:20: error: missing binary operator before token "("
 #if __has_attribute(__fallthrough__)
                    ^
scripts/Makefile.build:293: recipe for target '/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o' failed
make[1]: *** [/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o] Error 1
Makefile:1490: recipe for target '_module_/var/lib/dkms/seeed-voicecard/0.3/build' failed
make: *** [_module_/var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.9.35-v7+'
$ apt-mark showholds
raspberrypi-kernel-headers
HinTak commented 3 years ago

@h4de5 okay, for some strange reason, it is stuck at the older 4.9 kernel. Anyway, the error you saw is because of older compiler (than gcc 5 ... Current is 10, you know...) did not have __has_attribute . I just pushed a fix - please pull and see if you manage to continue compilation?

h4de5 commented 3 years ago
$ cat /var/lib/dkms/seeed-voicecard/0.3/build/make.log
DKMS make.log for seeed-voicecard-0.3 for kernel 4.9.35-v7+ (armv7l)
Fri Dec  4 22:22:06 UTC 2020
make: Entering directory '/usr/src/linux-headers-4.9.35-v7+'
  LD      /var/lib/dkms/seeed-voicecard/0.3/build/built-in.o
  CC [M]  /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o
In file included from /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.c:28:0:
/var/lib/dkms/seeed-voicecard/0.3/build/sound-compatible-4.18.h:19:48: error: missing binary operator before token "("
 #if defined(__has_attribute) && __has_attribute(__fallthrough__)
                                                ^
scripts/Makefile.build:293: recipe for target '/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o' failed
make[1]: *** [/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o] Error 1
Makefile:1490: recipe for target '_module_/var/lib/dkms/seeed-voicecard/0.3/build' failed
make: *** [_module_/var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.9.35-v7+'

should I try to update the berryboot installation?

h4de5 commented 3 years ago

did I mentioned, that volumio is running on a rpi3 (not a 4) ? maybe thats the difference?

HinTak commented 3 years ago

Okay, made a mistake with the fix - pushed a better fix.

Likely volumio has a special pi4 build with a more current kernel? I mean, pi 4 did not exist in 2017.

h4de5 commented 3 years ago

i tried to update some more stuff. getting the latest berryboot version - it seems its running on 64bit now.

$ sudo dpkg -i raspberrypi-kernel-headers_1.20170703-1_armhf.deb
[sudo] password for volumio:
dpkg: warning: files list file for package 'libgc1c2:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'libunistring0:armhf' missing; assuming package has no files currently installed
dpkg: warning: files list file for package 'guile-2.0-libs:armhf' missing; assuming package has no files currently installed
(Reading database ... 65410 files and directories currently installed.)
Preparing to unpack raspberrypi-kernel-headers_1.20170703-1_armhf.deb ...
Unpacking raspberrypi-kernel-headers (1.20170703-1) over (1.20170703-1) ...
kSetting up raspberrypi-kernel-headers (1.20170703-1) ...
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35+
Error! Bad return status for module build on kernel: 4.9.35+ (aarch64)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.9.35-v7+
Error! Bad return status for module build on kernel: 4.9.35-v7+ (aarch64)
Consult /var/lib/dkms/seeed-voicecard/0.3/build/make.log for more information.

$ cat /var/lib/dkms/seeed-voicecard/0.3/build/make.log
DKMS make.log for seeed-voicecard-0.3 for kernel 4.9.35-v7+ (aarch64)
Sat Dec  5 00:20:05 UTC 2020
make: Entering directory '/usr/src/linux-headers-4.9.35-v7+'
  LD      /var/lib/dkms/seeed-voicecard/0.3/build/built-in.o
  CC [M]  /var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o
gcc: error: unrecognized command line option ‘-mgeneral-regs-only’
scripts/Makefile.build:293: recipe for target '/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o' failed
make[1]: *** [/var/lib/dkms/seeed-voicecard/0.3/build/wm8960.o] Error 1
Makefile:1490: recipe for target '_module_/var/lib/dkms/seeed-voicecard/0.3/build' failed
make: *** [_module_/var/lib/dkms/seeed-voicecard/0.3/build] Error 2
make: Leaving directory '/usr/src/linux-headers-4.9.35-v7+'
HinTak commented 3 years ago

According to the berryboot changelog, https://www.berryterminal.com/doku.php/berryboot/changelog , current berryboot is 5.4 based, same as Ubuntu and raspbian...

h4de5 commented 3 years ago

yes. thats what I hoped to get :\ but apt list -a raspberrypi-kernel still shows the one from 2017

the kernel only changed a little - from 4.19.49v6v7 to 4.19.127v64

dmesg ``` [ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd034] [ 0.000000] Linux version 4.19.127v64 (max@lynx) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #1 SMP PREEMPT Fri Jun 12 22:09:51 CEST 2020 [ 0.000000] Machine model: Raspberry Pi 3 Model B Rev 1.2 [ 0.000000] efi: Getting EFI parameters from FDT: [ 0.000000] efi: UEFI not found. [ 0.000000] cma: Reserved 256 MiB at 0x000000001ec00000 [ 0.000000] On node 0 totalpages: 221184 [ 0.000000] DMA32 zone: 3456 pages used for memmap [ 0.000000] DMA32 zone: 0 pages reserved [ 0.000000] DMA32 zone: 221184 pages, LIFO batch:63 [ 0.000000] random: get_random_bytes called from start_kernel+0xb4/0x484 with crng_init=0 [ 0.000000] percpu: Embedded 24 pages/cpu s58840 r8192 d31272 u98304 [ 0.000000] pcpu-alloc: s58840 r8192 d31272 u98304 alloc=24*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [ 0.000000] Detected VIPT I-cache on CPU0 [ 0.000000] CPU features: enabling workaround for ARM erratum 843419 [ 0.000000] CPU features: enabling workaround for ARM erratum 845719 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 217728 [ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=256M video=HDMI-A-1:1920x1080M@60 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 elevator=deadline quiet bootmenutimeout=7 datadev=iscsi qmap=de vncinstall ipv4=192.168.0.73/255.255.240.0/192.168.0.1 [ 0.000000] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.000000] Memory: 588060K/884736K available (9596K kernel code, 998K rwdata, 2860K rodata, 1024K init, 1137K bss, 34532K reserved, 262144K cma-reserved) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1 [ 0.000000] ftrace: allocating 31135 entries in 122 pages [ 0.000000] rcu: Preemptible hierarchical RCU implementation. [ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=64 to nr_cpu_ids=4. [ 0.000000] Tasks RCU enabled. [ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=4 [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns [ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns [ 0.000249] Console: colour dummy device 80x25 [ 0.000278] console [tty0] enabled [ 0.000330] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=76800) [ 0.000351] pid_max: default: 32768 minimum: 301 [ 0.000756] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.000790] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.024122] ASID allocator initialised with 32768 entries [ 0.032114] rcu: Hierarchical SRCU implementation. [ 0.040801] EFI services will not be available. [ 0.048190] smp: Bringing up secondary CPUs ... [ 0.080470] Detected VIPT I-cache on CPU1 [ 0.080548] CPU1: Booted secondary processor 0x0000000001 [0x410fd034] [ 0.112593] Detected VIPT I-cache on CPU2 [ 0.112646] CPU2: Booted secondary processor 0x0000000002 [0x410fd034] [ 0.144750] Detected VIPT I-cache on CPU3 [ 0.144795] CPU3: Booted secondary processor 0x0000000003 [0x410fd034] [ 0.144980] smp: Brought up 1 node, 4 CPUs [ 0.144994] SMP: Total of 4 processors activated. [ 0.145010] CPU features: detected: 32-bit EL0 Support [ 0.146009] CPU: All CPU(s) started at EL2 [ 0.146064] alternatives: patching kernel code [ 0.147605] devtmpfs: initialized [ 0.164535] Enabled cp15_barrier support [ 0.164572] Enabled setend support [ 0.165176] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns [ 0.165206] futex hash table entries: 1024 (order: 4, 65536 bytes) [ 0.177536] xor: measuring software checksum speed [ 0.217035] 8regs : 1144.000 MB/sec [ 0.257133] 8regs_prefetch: 1019.000 MB/sec [ 0.297244] 32regs : 1403.000 MB/sec [ 0.337350] 32regs_prefetch: 1184.000 MB/sec [ 0.337364] xor: using function: 32regs (1403.000 MB/sec) [ 0.337387] pinctrl core: initialized pinctrl subsystem [ 0.338354] DMI not present or invalid. [ 0.338978] NET: Registered protocol family 16 [ 0.345683] cpuidle: using governor menu [ 0.346229] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers. [ 0.357107] DMA: preallocated 1024 KiB pool for atomic allocations [ 0.357273] Serial: AMBA PL011 UART driver [ 0.362186] bcm2835-mbox 3f00b880.mailbox: mailbox enabled [ 0.373897] raspberrypi-firmware soc:firmware: Attached to firmware from 2020-06-10 17:53, variant start_x [ 0.377913] raspberrypi-firmware soc:firmware: Firmware hash is e46bba1638cca2708b31b9daf4636770ef981735 [ 0.486427] raid6: int64x1 gen() 231 MB/s [ 0.554592] raid6: int64x1 xor() 220 MB/s [ 0.622741] raid6: int64x2 gen() 351 MB/s [ 0.691044] raid6: int64x2 xor() 302 MB/s [ 0.759292] raid6: int64x4 gen() 532 MB/s [ 0.827405] raid6: int64x4 xor() 382 MB/s [ 0.895711] raid6: int64x8 gen() 495 MB/s [ 0.963850] raid6: int64x8 xor() 375 MB/s [ 1.032171] raid6: neonx1 gen() 373 MB/s [ 1.100318] raid6: neonx1 xor() 417 MB/s [ 1.168549] raid6: neonx2 gen() 587 MB/s [ 1.236722] raid6: neonx2 xor() 581 MB/s [ 1.304991] raid6: neonx4 gen() 757 MB/s [ 1.373151] raid6: neonx4 xor() 694 MB/s [ 1.441422] raid6: neonx8 gen() 809 MB/s [ 1.509621] raid6: neonx8 xor() 732 MB/s [ 1.509634] raid6: using algorithm neonx8 gen() 809 MB/s [ 1.509645] raid6: .... xor() 732 MB/s, rmw enabled [ 1.509657] raid6: using neon recovery algorithm [ 1.510335] bcm2835-dma 3f007000.dma: DMA legacy API manager at (____ptrval____), dmachans=0x1 [ 1.513876] vgaarb: loaded [ 1.514389] SCSI subsystem initialized [ 1.514693] usbcore: registered new interface driver usbfs [ 1.514766] usbcore: registered new interface driver hub [ 1.514915] usbcore: registered new device driver usb [ 1.515058] pps_core: LinuxPPS API ver. 1 registered [ 1.515070] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 1.515100] PTP clock support registered [ 1.516918] clocksource: Switched to clocksource arch_sys_counter [ 1.664004] VFS: Disk quotas dquot_6.6.0 [ 1.664128] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes) [ 1.664458] FS-Cache: Loaded [ 1.664722] CacheFiles: Loaded [ 1.665842] simple-framebuffer 3e402000.framebuffer: framebuffer at 0x3e402000, 0x7f8000 bytes, mapped to 0x(____ptrval____) [ 1.665863] simple-framebuffer 3e402000.framebuffer: format=a8r8g8b8, mode=1920x1080x32, linelength=7680 [ 1.696552] Console: switching to colour frame buffer device 240x67 [ 1.724740] simple-framebuffer 3e402000.framebuffer: fb0: simplefb registered! [ 1.736598] NET: Registered protocol family 2 [ 1.737641] tcp_listen_portaddr_hash hash table entries: 512 (order: 1, 8192 bytes) [ 1.737687] TCP established hash table entries: 8192 (order: 4, 65536 bytes) [ 1.737811] TCP bind hash table entries: 8192 (order: 5, 131072 bytes) [ 1.738029] TCP: Hash tables configured (established 8192 bind 8192) [ 1.738309] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.738364] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.738723] NET: Registered protocol family 1 [ 1.738775] PCI: CLS 0 bytes, default 64 [ 1.739077] Trying to unpack rootfs image as initramfs... [ 1.745595] Freeing initrd memory: 164K [ 1.748292] hw perfevents: enabled with armv8_cortex_a53 PMU driver, 7 counters available [ 1.748489] kvm [1]: 8-bit VMID [ 1.749455] kvm [1]: Hyp mode initialized successfully [ 1.754600] Initialise system trusted keyrings [ 1.755013] workingset: timestamp_bits=46 max_order=18 bucket_order=0 [ 1.767294] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.769595] aufs 4.19.17+-20190311 [ 1.776557] Key type asymmetric registered [ 1.776577] Asymmetric key parser 'x509' registered [ 1.776662] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248) [ 1.776987] io scheduler noop registered [ 1.777001] io scheduler deadline registered (default) [ 1.777279] io scheduler cfq registered [ 1.777294] io scheduler mq-deadline registered (default) [ 1.777307] io scheduler kyber registered [ 1.787497] bcm2835-rng 3f104000.rng: hwrng registered [ 1.788146] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB) [ 1.789191] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000 [ 1.789538] cacheinfo: Unable to detect cache hierarchy for CPU 0 [ 1.805257] brd: module loaded [ 1.821247] loop: module loaded [ 1.822475] Loading iSCSI transport class v2.0-870. [ 1.823183] iscsi: registered transport (tcp) [ 1.825517] libphy: Fixed MDIO Bus: probed [ 1.826033] usbcore: registered new interface driver r8152 [ 1.826118] usbcore: registered new interface driver lan78xx [ 1.826192] usbcore: registered new interface driver smsc95xx [ 1.826648] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 2.354683] dwc_otg 3f980000.usb: base=(____ptrval____) [ 2.568106] Core Release: 2.80a [ 2.568121] Setting default values for core params [ 2.568154] Finished setting default values for core params [ 2.781761] Using Buffer DMA mode [ 2.781775] Periodic Transfer Interrupt Enhancement - disabled [ 2.781787] Multiprocessor Interrupt Enhancement - disabled [ 2.781801] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 2.781829] Dedicated Tx FIFOs mode [ 2.782554] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = ffffff80091a9000 dma = 0x00000000ded04000 len=9024 [ 2.782588] FIQ FSM acceleration enabled for : Non-periodic Split Transactions Periodic Split Transactions High-Speed Isochronous Endpoints Interrupt/Control Split Transaction hack enabled [ 2.782602] dwc_otg: Microframe scheduler enabled [ 2.782718] WARN::hcd_init_fiq:497: MPHI regs_base at ffffff8008065000 [ 2.782790] dwc_otg 3f980000.usb: DWC OTG Controller [ 2.782844] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1 [ 2.782908] dwc_otg 3f980000.usb: irq 9, io mem 0x00000000 [ 2.782961] Init: Port Power? op_state=1 [ 2.782972] Init: Power Port (0) [ 2.783363] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19 [ 2.783381] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.783396] usb usb1: Product: DWC OTG Controller [ 2.783411] usb usb1: Manufacturer: Linux 4.19.127v64 dwc_otg_hcd [ 2.783426] usb usb1: SerialNumber: 3f980000.usb [ 2.784249] hub 1-0:1.0: USB hub found [ 2.784322] hub 1-0:1.0: 1 port detected [ 2.785301] dwc_otg: FIQ enabled [ 2.785313] dwc_otg: NAK holdoff enabled [ 2.785324] dwc_otg: FIQ split-transaction FSM enabled [ 2.785341] Module dwc_common_port init [ 2.785996] usbcore: registered new interface driver uas [ 2.786114] usbcore: registered new interface driver usb-storage [ 2.786436] mousedev: PS/2 mouse device common for all mice [ 2.788621] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 2.791046] sdhci: Secure Digital Host Controller Interface driver [ 2.791057] sdhci: Copyright(c) Pierre Ossman [ 2.791668] mmc-bcm2835 3f300000.mmcnr: could not get clk, deferring probe [ 2.792343] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe [ 2.792608] sdhci-pltfm: SDHCI platform and OF driver helper [ 2.795643] ledtrig-cpu: registered to indicate activity on CPUs [ 2.795748] hidraw: raw HID events driver (C) Jiri Kosina [ 2.799467] usbcore: registered new interface driver usbhid [ 2.799479] usbhid: USB HID core driver [ 2.799905] ashmem: initialized [ 2.801225] vchiq: vchiq_init_state: slot_zero = (____ptrval____), is_master = 0 [ 2.805990] Initializing XFRM netlink socket [ 2.806041] NET: Registered protocol family 17 [ 2.806110] Key type dns_resolver registered [ 2.807334] registered taskstats version 1 [ 2.807360] Loading compiled-in X.509 certificates [ 2.809771] Btrfs loaded, crc32c=crc32c-generic [ 2.822727] uart-pl011 3f201000.serial: cts_event_workaround enabled [ 2.822858] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 66, base_baud = 0) is a PL011 rev2 [ 2.825005] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 2.826536] mmc-bcm2835 3f300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 2.826552] mmc-bcm2835 3f300000.mmcnr: DMA channel allocated [ 2.858029] sdhost: log_buf @ (____ptrval____) (ded07000) [ 2.885731] mmc1: new high speed SDIO card at address 0001 [ 2.907256] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 2.911303] of_cfs_init [ 2.911492] of_cfs_init: OK [ 2.917625] Freeing unused kernel memory: 1024K [ 2.917757] Run /init as init process [ 2.990684] Indeed it is in host mode hprt0 = 00021501 [ 3.008360] mmc0: host does not support reading read-only switch, assuming write-enable [ 3.012832] mmc0: new high speed SD card at address aaaa [ 3.015195] mmcblk0: mmc0:aaaa SU02G 1.84 GiB [ 3.064874] random: fast init done [ 3.065385] mmcblk0: p1 [ 3.087513] F2FS-fs (mmcblk0): Magic Mismatch, valid(0xf2f52010) - read(0x0) [ 3.087535] F2FS-fs (mmcblk0): Can't find valid F2FS filesystem in 1th superblock [ 3.089868] F2FS-fs (mmcblk0): Magic Mismatch, valid(0xf2f52010) - read(0x0) [ 3.089885] F2FS-fs (mmcblk0): Can't find valid F2FS filesystem in 2th superblock [ 3.090148] F2FS-fs (mmcblk0): Magic Mismatch, valid(0xf2f52010) - read(0x0) [ 3.090165] F2FS-fs (mmcblk0): Can't find valid F2FS filesystem in 1th superblock [ 3.090398] F2FS-fs (mmcblk0): Magic Mismatch, valid(0xf2f52010) - read(0x0) [ 3.090414] F2FS-fs (mmcblk0): Can't find valid F2FS filesystem in 2th superblock [ 3.185001] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 3.185240] Indeed it is in host mode hprt0 = 00001101 [ 3.397464] usb 1-1: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00 [ 3.397483] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.398398] hub 1-1:1.0: USB hub found [ 3.398560] hub 1-1:1.0: 5 ports detected [ 3.689010] usb 1-1.1: new high-speed USB device number 3 using dwc_otg [ 3.789606] usb 1-1.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00 [ 3.789629] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 3.792670] smsc95xx v1.0.6 [ 3.864134] smsc95xx 1-1.1:1.0 eth0: register 'smsc95xx' at usb-3f980000.usb-1.1, smsc95xx USB 2.0 Ethernet, b8:27:eb:6c:46:ae [ 3.945027] usb 1-1.5: new low-speed USB device number 4 using dwc_otg [ 4.120254] usb 1-1.5: New USB device found, idVendor=046a, idProduct=b102, bcdDevice= 4.03 [ 4.120277] usb 1-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 4.120293] usb 1-1.5: Product: USB Wireless Device [ 4.120308] usb 1-1.5: Manufacturer: HOLTEK [ 4.142194] random: crng init done [ 4.155554] input: HOLTEK USB Wireless Device as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.0/0003:046A:B102.0001/input/input0 [ 4.214109] hid-generic 0003:046A:B102.0001: input,hidraw0: USB HID v1.10 Keyboard [HOLTEK USB Wireless Device] on usb-3f980000.usb-1.5/input0 [ 4.281486] input: HOLTEK USB Wireless Device Mouse as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:046A:B102.0002/input/input1 [ 4.282120] input: HOLTEK USB Wireless Device System Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:046A:B102.0002/input/input2 [ 4.341731] input: HOLTEK USB Wireless Device Consumer Control as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.5/1-1.5:1.1/0003:046A:B102.0002/input/input3 [ 4.342154] hid-generic 0003:046A:B102.0002: input,hidraw1: USB HID v1.10 Mouse [HOLTEK USB Wireless Device] on usb-3f980000.usb-1.5/input1 [ 5.605145] smsc95xx 1-1.1:1.0 eth0: hardware isn't capable of remote wakeup [ 5.661822] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 7.234002] smsc95xx 1-1.1:1.0 eth0: link up, 100Mbps, full-duplex, lpa 0xC5E1 [ 8.607240] scsi host0: iSCSI Initiator over TCP/IP [ 11.122107] scsi 0:0:0:2: Direct-Access SYNOLOGY iSCSI Storage 4.0 PQ: 0 ANSI: 5 [ 11.135760] sd 0:0:0:2: [sda] 33554432 512-byte logical blocks: (17.2 GB/16.0 GiB) [ 11.136396] sd 0:0:0:2: [sda] Write Protect is off [ 11.136418] sd 0:0:0:2: [sda] Mode Sense: 43 00 10 08 [ 11.137795] sd 0:0:0:2: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA [ 11.139132] sd 0:0:0:2: [sda] Optimal transfer size 16384 logical blocks > dev_max (8192 logical blocks) [ 11.148010] sda: sda1 [ 11.156085] sd 0:0:0:2: [sda] Attached SCSI disk [ 11.207404] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null) [ 11.228404] EXT4-fs (sda1): re-mounted. Opts: (null) [ 11.267060] udevd[155]: starting version 3.2.5 [ 11.351272] udevd[156]: starting eudev-3.2.5 [ 11.576419] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned. [ 11.585094] bcm2835_vc_sm_cma_probe: Videocore shared memory driver [ 11.585141] [vc_sm_connected_init]: start [ 11.602063] [vc_sm_connected_init]: installed successfully [ 11.691715] media: Linux media interface: v0.10 [ 11.902313] i2c /dev entries driver [ 11.909077] videodev: Linux video capture interface: v2.00 [ 12.053342] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 12.089265] bcm2835_audio soc:audio: card created with 8 channels [ 12.096522] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 12.097455] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned. [ 12.129946] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 12.140136] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned. [ 12.154976] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned. [ 12.159613] udevd[170]: Error running install command for drm [ 12.446814] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 12.580098] brcmfmac: F1 signature read @0x18000000=0x1541a9a6 [ 12.587960] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 12.588587] usbcore: registered new interface driver brcmfmac [ 12.810107] bcm2835-codec bcm2835-codec: Device registered as /dev/video10 [ 12.810164] bcm2835-codec bcm2835-codec: Loaded V4L2 decode [ 12.813758] bcm2835-codec bcm2835-codec: Device registered as /dev/video11 [ 12.813804] bcm2835-codec bcm2835-codec: Loaded V4L2 encode [ 12.818471] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 12.818891] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available [ 12.820169] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 23 2017 03:55:53 version 7.45.98.38 (r674442 CY) FWID 01-e58d219f [ 12.820570] : bcm2835_codec_get_supported_fmts: port has more encoding than we provided space for. Some are dropped. [ 12.821994] bcm2835-codec bcm2835-codec: Device registered as /dev/video12 [ 12.822045] bcm2835-codec bcm2835-codec: Loaded V4L2 isp [ 18.796238] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 19.146909] aufs test_add:291:mount[254]: uid/gid/perm /squashfs 0/0/0777, 0/0/0755 [ 19.665714] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR) [ 19.665986] systemd[1]: Detected architecture 'arm64'. [ 19.820414] NET: Registered protocol family 10 [ 19.822044] Segment Routing with IPv6 [ 19.822280] systemd[1]: Inserted module 'ipv6' [ 19.824661] systemd[1]: Set hostname to . [ 20.142302] systemd[1]: [/lib/systemd/system/mpd.service:18] Unknown lvalue 'ProtectKernelTunables' in section 'Service' [ 20.142353] systemd[1]: [/lib/systemd/system/mpd.service:19] Unknown lvalue 'ProtectControlGroups' in section 'Service' [ 20.142389] systemd[1]: [/lib/systemd/system/mpd.service:20] Unknown lvalue 'ProtectKernelModules' in section 'Service' [ 20.142434] systemd[1]: [/lib/systemd/system/mpd.service:23] Unknown lvalue 'RestrictNamespaces' in section 'Service' [ 20.149778] systemd[1]: [/lib/systemd/system/docker.service:25] Unknown lvalue 'Delegate' in section 'Service' [ 20.202549] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory. [ 20.550228] fuse init (API version 7.27) [ 20.873453] systemd-udevd[301]: starting version 215 [ 21.143895] systemd-journald[281]: Received request to flush runtime journal from PID 1 [ 21.422411] sd 0:0:0:2: Attached scsi generic sg0 type 0 [ 21.801243] vc4-drm soc:gpu: bound 3f600000.firmwarekms (ops vc4_fkms_ops [vc4]) [ 21.833986] vc4-drm soc:gpu: bound 3fc00000.v3d (ops vc4_v3d_ops [vc4]) [ 21.834013] checking generic (3e402000 7f8000) vs hw (0 ffffffffffffffff) [ 21.834019] fb: switching to vc4drmfb from simple [ 21.834130] Console: switching to colour dummy device 80x25 [ 21.835831] [drm] Initialized vc4 0.0.0 20140616 for soc:gpu on minor 0 [ 21.835925] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013). [ 21.835932] [drm] No driver support for vblank timestamp query. [ 21.835938] [drm] Setting vblank_disable_immediate to false because get_vblank_timestamp == NULL [ 22.084797] Console: switching to colour frame buffer device 240x67 [ 22.154095] vc4-drm soc:gpu: fb0: DRM emulated frame buffer device [ 22.984660] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled [ 24.491484] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck. [ 24.997811] RPC: Registered named UNIX socket transport module. [ 24.997821] RPC: Registered udp transport module. [ 24.997827] RPC: Registered tcp transport module. [ 24.997833] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 25.108618] FS-Cache: Netfs 'nfs' registered for caching [ 25.218272] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 25.695520] uart-pl011 3f201000.serial: no DMA platform data [ 30.437870] Bluetooth: Core ver 2.22 [ 30.437982] NET: Registered protocol family 31 [ 30.437989] Bluetooth: HCI device and connection manager initialized [ 30.438010] Bluetooth: HCI socket layer initialized [ 30.438066] Bluetooth: L2CAP socket layer initialized [ 30.438121] Bluetooth: SCO socket layer initialized [ 30.478198] Bluetooth: HCI UART driver ver 2.3 [ 30.478214] Bluetooth: HCI UART protocol H4 registered [ 30.478286] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 30.478543] Bluetooth: HCI UART protocol Broadcom registered [ 31.566916] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 31.566929] Bluetooth: BNEP filters: protocol multicast [ 31.566953] Bluetooth: BNEP socket layer initialized [ 34.522552] device-mapper: ioctl: 4.39.0-ioctl (2018-04-03) initialised: dm-devel@redhat.com [ 34.583144] aufs au_warn_loopback:123:loop1[1076]: you may want to try another patch for loopback file on ext4(0xef53) branch [ 37.359178] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this. [ 37.367634] Bridge firewalling registered [ 38.041071] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save disabled [ 39.921128] EXT4-fs (dm-1): mounted filesystem with ordered data mode. Opts: (null) [ 40.034913] br-bde535b3b227: port 1(vethe6957a9) entered blocking state [ 40.034927] br-bde535b3b227: port 1(vethe6957a9) entered disabled state [ 40.035211] device vethe6957a9 entered promiscuous mode [ 40.035653] br-bde535b3b227: port 1(vethe6957a9) entered blocking state [ 40.035665] br-bde535b3b227: port 1(vethe6957a9) entered forwarding state [ 40.035908] br-bde535b3b227: port 1(vethe6957a9) entered disabled state [ 40.040382] br-bde535b3b227: port 1(vethe6957a9) entered blocking state [ 40.040401] br-bde535b3b227: port 1(vethe6957a9) entered forwarding state [ 44.690625] br-bde535b3b227: port 1(vethe6957a9) entered disabled state [ 44.693021] eth0: renamed from veth6f228d6 [ 44.716841] br-bde535b3b227: port 1(vethe6957a9) entered blocking state [ 44.716861] br-bde535b3b227: port 1(vethe6957a9) entered forwarding state ```

$ uname -a Linux Kallisto 4.19.127v64 #1 SMP PREEMPT Fri Jun 12 22:09:51 CEST 2020 aarch64 GNU/Linux

$ cat /proc/version Linux version 4.19.127v64 (max@lynx) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #1 SMP PREEMPT Fri Jun 12 22:09:51 CEST 2020

HinTak commented 3 years ago

You need version-matched header package - apt list -a raspberrypi-kernel-headers. And you should use a arm64 header package raspberrypi-kernel-headers_1.20170703-1_arm64.deb?

The "error: unrecognized command line option ‘-mgeneral-regs-only’" comes from armhf/arm64 32-bit/64-bit confusion.

h4de5 commented 3 years ago

so.. while talking about confusion..

$ uname -a
Linux Kallisto 5.4.73v64 #2 SMP PREEMPT Tue Nov 3 16:11:05 CET 2020 aarch64 GNU/Linux

$ cat /proc/version
Linux version 5.4.73v64 (max@lynx) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #2 SMP PREEMPT Tue Nov 3 16:11:05 CET 2020

$ sudo apt list -a raspberrypi-kernel
Listing... Done
raspberrypi-kernel/oldstable 1.20170703-1 armhf

the arm64 header files starting only in 2020.

lets call it a day for now - I learned a lot, thanks for the help and for your patience!

HinTak commented 3 years ago

@h4de5 I think that is berryboot - it uses its own kernel (outside of the volumio/raspbian packaging system) to boot the rest of volumio. It is not a bootloader like the one on the x86 desktop. It is more like customisation of kernel + initramfs .

It is an interesting journey for me - didn't know about any of these other distros, and I have been using Linux since it was only about 5 years old! (it is just over 30 now).

h4de5 commented 3 years ago

I liked berryboot because it would allow me to install, change, add and reuse multiple distros on the same sdcard. I could just add another os and play around, or clone an existing partition before i try out something new. With the iscsi setup backups are even easier.

The downsides seems to surface slowly only now. I often needed special images that allow updates (like volumio and kodi: https://github.com/macmpi/berryboot-scripts) Also HATs like that often ask for additional efforts.

Good to hear that you to learned something ;)

Any more ideas i could go after?

HinTak commented 3 years ago

@h4de5 it is a little painful, but since berryboot runs its own kernel, you really needs to have a customized berryboot image to add new kernel modules for hardware drivers such as this. So "HATs ask for additional efforts" is exactly it. For example https://github.com/maxnet/berryboot/issues/631 is somewhat a similar problem.

h4de5 commented 3 years ago

@HinTak Kodi is running no noobs. would this help?

HinTak commented 3 years ago

This is more directly relevant https://github.com/maxnet/berryboot/issues/576

h4de5 commented 3 years ago

mmh. i think this is part of the upgrade procedure (to manually extract the shared modules)

I did this yesterday as well: https://github.com/maxnet/berryboot/issues/666#issuecomment-739083724

HinTak commented 3 years ago

@h4de5 stock volumio (without berryboot) is easiest, I think; berryboot (with anything) requires some customization of the berryboot build process and is next. LibreELEC is missing a lot of dev tools so hardest.

Noobs isn't really relevant - it installs the others as they are.

Berryboot seems small enough, I might have a go at inserting the respeaker driver in there...

h4de5 commented 3 years ago

and this would be possible? adding a driver?

my issue with berryboot is, that both - the kodi and the volumio on the rpi3 - have other partitions I am currently using. so in this case i may have to put it on a different place altogether. I have two dedicated volumios, but those are running on a rpi0 and they do have HATs installed already (a PHAT Dac for sound output: https://de.pinout.xyz/pinout/phat_dac).

how do you see the chances that they work well together, after the last two days? 🤣

if not, I may have to just postbone the usage of this piece for now. I'll add one (propably) last device in the future anyway and I was thinking about having a normal raspian installation and run volumio as app or from a docker image. I mean, this would be the most straight forward solution anyway, right?

HinTak commented 3 years ago

@h4de5 I suspect that how berryboot works, is booting its own kernel while having a (small) addition to the full OSes it boots by adding a "/lib/modules/" directory to it, plus other small scripts. So it should be possible to add the respeaker modules there (or other out-of-tree driver like exfat in the above report), if you customize the berryboot build. I'll need to take apart the current berryboot image to be sure.

Devices with in-tree drivers (I guess your PHAT DAC is) is much easier, but the respeaker driver will be never be in-tree ... See https://github.com/respeaker/seeed-voicecard/issues/213

h4de5 commented 3 years ago

The problem with the phat dac is that they may use the same gpio pins.. at least thats what i expect after the last two days ;)

HinTak commented 3 years ago

In-tree drivers only requires additing a line config.txt to activate (and removing to deactivate). Out-of-tree driver needs to adds a few things to /lib/modules/-kernelversion- , in addition to editing config.txt . Berryboot is tricky because /lib/modules itself comes from the OSes (volumio) but /lib/modules/-kernel version- from berryboot.

dkms and other stuff we covered earlier tries to build and add the respeaker driver to /lib/modules/-kernelversion-, but it requirea compiler and also other relevant stuff (kernel headers) under /lib/modules/-version-/build/.

Dkms is more or less jus copying the respeaker source to /usr/src and "make; make install" automatically for each new kernel. (hence if you are happy to stay with the same kernel forever, you can live without it)

Edit: stupid markdown did not show angle brackets... Changed them to "-".

h4de5 commented 3 years ago

Have a look at shared.img in the berryboot package. During an upgrade I manually extract this file on the first start using berryboots own tty terminal. It holds the modules and the kernel files. If its enough to place them there before volumio can access it, it should work.

HinTak commented 3 years ago

Yes, that looks like it - I also just unzipped berryboot, and it looks like what I thought - it is a custom kernel to run the rest of other OSes. So it probably can be rebuilt with the respeaker driver modules included; then it is easier editing config.txt and adding the other scripts on the rest of the OSes.

HinTak commented 3 years ago

@h4de5 backup your stuff and have a go with this ? https://github.com/HinTak/berryboot/releases . You mostly want the +respeaker.zip (the *.sig are the accompanying gpg signatures - ignore if you don't know what that is; not important) , in fact perhaps even less - you just need "kernel_rpi64.img" and "shared.img" . They need to be a matching pair - I built from berryboot current, so it is more recent that 5.4.73, and it is 5.4.81:

Linux version 5.4.81v64 (Hin-Tak@localhost.localdomain) (gcc version 10.2.1 20200826 (Red Hat Cross 10.2.1-3) (GCC)) #1 SMP PREEMPT Tue Dec 8 00:15:44 GMT 2020

Please backup your boot folder before you try this (so that you can roll back to your known good berryboot). Then you need a dtoverlay=seeed-4mic-voicecard line in config.txt . The rest is in userland and in the rest of the OS (alsa in volumio etc).

h4de5 commented 3 years ago

and its working in volumio/rhasspy assistant. image

thank you for your help! couldn't have done it without that.

shall we try to convince berryboot to include your drivers to their upstream?

HinTak commented 3 years ago

Cool! I'd be interested to see what you need to do on the OS side (I think it is probably just blindly running install.sh or most of it, and igoring errors...) , and any anomalies when using. And click donate if you feel generous :-).

I have already got a pull on updating the Readme on the 64-bit vanilla build instruction - https://github.com/maxnet/berryboot/pull/674

I have collected a few patches for Berryboot at https://github.com/HinTak/RaspberryPi-Dev/tree/master/patches - mostly because my desktop (fedora 33, a few weeks old) is a lot newer than the berryboot guy's (it seems he is using Ubuntu 18.04, which is 2018 spring), compiler-wise. I just need to write up some instructions from my notes to new arbitrary out-of-tree drivers to berryboot. It is basically build berryboot (which took about 4 hours) plus some extra steps at the end (making additional content for shared.img and re-generate it).

h4de5 commented 3 years ago

@HinTak I have setup now a completely new volumio on berryboot with your image. which branch from your respeaker repo should I try ? the v5.5 or the v4.19?

HinTak commented 3 years ago

@h4de5 v5.5, but it doesn't really matter as the difference is in the c code (the kernel modules) which is already in the modified berryboot. In fact you probably don't need to do anything other than the extra line of "dtoverlay=..." in config.txt.

To be on the safe side I would suggest removing all the "apt-get kernel..." lines so as not to mess up berryboot.