Closed greykeys closed 3 years ago
Posting the whole of dmesg
(not just the last few lines), plus the output of lsmod
would be good.
Btw, pretty sure that the current code (either seeed studio's or mine) does not work with 2019-09-26-raspbian-buster-lite . Stretch was on 4.19 in march 2020, moving onto 5.4 in summer 2020 . The current code is 5.4+ only. There is a v4.19 branch on mine, which you could try if you want to use such "antique" buster image. The 4.19 branch also works for earlier 4.11(?) I think. But you are talking about 3-year-old raspbian now...
@HinTak Thanks for taking a look. I realize that the buster image is old. I should've clarified I've tried setting up with newer versions of Raspbian as well (2019-09-26-raspbian-buster-lite
, 2020-02-13-raspbian-buster-lite
,...) and I end up running into some issue or the other (Some issues here pointed to the fact that newer kernels were not supported/supported as well). I'm happy to try with a version you think works best for this driver, as I'm not tied to any specific version. Until then, please find the outputs you asked for below:
dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.83+ (dom@buildbot) (gcc version 8.4.0 (Ubuntu/Linaro 8.4.0-3ubuntu1)) #1379 Mon Dec 14 13:06:05 GMT 2020
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Reserved memory: created CMA memory pool at 0x17c00000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] Normal zone: 1008 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113680
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:4E:17:E9 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 376180K/458752K available (7816K kernel code, 712K rwdata, 2468K rodata, 508K init, 804K bss, 17036K reserved, 65536K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 27743 entries in 55 pages
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x2a8/0x4d8 with crng_init=0
[ 0.000022] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000089] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000206] bcm2835: system timer (irq = 27)
[ 0.000822] Console: colour dummy device 80x30
[ 0.001383] printk: console [tty1] enabled
[ 0.001476] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.050394] pid_max: default: 32768 minimum: 301
[ 0.050731] LSM: Security Framework initializing
[ 0.051097] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.051167] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.053381] Disabling memory control group subsystem
[ 0.053704] CPU: Testing write buffer coherency: ok
[ 0.055471] Setting up static identity map for 0x8200 - 0x8238
[ 0.056720] devtmpfs: initialized
[ 0.069313] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.069850] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.069942] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.079040] pinctrl core: initialized pinctrl subsystem
[ 0.081193] NET: Registered protocol family 16
[ 0.085838] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.092380] audit: initializing netlink subsys (disabled)
[ 0.094593] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.094662] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.094859] Serial: AMBA PL011 UART driver
[ 0.098652] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.100759] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1
[ 0.120836] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-01-08 14:33, variant start
[ 0.130861] raspberrypi-firmware soc:firmware: Firmware hash is 194a85abd768c7334bbadc3f1911c10a7d18ed14
[ 0.194965] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.198202] SCSI subsystem initialized
[ 0.198556] usbcore: registered new interface driver usbfs
[ 0.198713] usbcore: registered new interface driver hub
[ 0.199023] usbcore: registered new device driver usb
[ 0.201923] clocksource: Switched to clocksource timer
[ 1.676263] VFS: Disk quotas dquot_6.6.0
[ 1.676491] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.676921] FS-Cache: Loaded
[ 1.677375] CacheFiles: Loaded
[ 1.698731] thermal_sys: Registered thermal governor 'step_wise'
[ 1.699473] NET: Registered protocol family 2
[ 1.700948] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 1.701079] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.701202] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.701328] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.701549] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.701626] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.702391] NET: Registered protocol family 1
[ 1.703757] RPC: Registered named UNIX socket transport module.
[ 1.703825] RPC: Registered udp transport module.
[ 1.703859] RPC: Registered tcp transport module.
[ 1.703891] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.705535] hw perfevents: no irqs for PMU, sampling events not supported
[ 1.705666] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 1.710611] Initialise system trusted keyrings
[ 1.711361] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 1.729311] FS-Cache: Netfs 'nfs' registered for caching
[ 1.731113] NFS: Registering the id_resolver key type
[ 1.731227] Key type id_resolver registered
[ 1.731267] Key type id_legacy registered
[ 1.731324] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.733898] Key type asymmetric registered
[ 1.733973] Asymmetric key parser 'x509' registered
[ 1.734100] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.734156] io scheduler mq-deadline registered
[ 1.734193] io scheduler kyber registered
[ 1.737894] bcm2708_fb soc:fb: FB found 1 display(s)
[ 1.750482] Console: switching to colour frame buffer device 82x26
[ 1.758117] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656x416
[ 1.772135] bcm2835-rng 20104000.rng: hwrng registered
[ 1.775812] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.783101] vc-sm: Videocore shared memory driver
[ 1.787001] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 1.816250] brd: module loaded
[ 1.835624] loop: module loaded
[ 1.840902] Loading iSCSI transport class v2.0-870.
[ 1.845181] usbcore: registered new interface driver smsc95xx
[ 1.848272] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 2.501933] random: fast init done
[ 2.583078] Core Release: 2.80a
[ 2.585978] Setting default values for core params
[ 2.588778] Finished setting default values for core params
[ 2.792291] Using Buffer DMA mode
[ 2.795118] Periodic Transfer Interrupt Enhancement - disabled
[ 2.798002] Multiprocessor Interrupt Enhancement - disabled
[ 2.800862] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.803804] Dedicated Tx FIFOs mode
[ 2.807493] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = d7d14000 dma = 0x97d14000 len=9024
[ 2.813124] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 2.825899] dwc_otg: Microframe scheduler enabled
[ 2.826127] WARN::hcd_init_fiq:457: FIQ on core 0
[ 2.828711] WARN::hcd_init_fiq:458: FIQ ASM at c05a0374 length 36
[ 2.831312] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[ 2.833971] dwc_otg 20980000.usb: DWC OTG Controller
[ 2.836593] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 2.839273] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 2.841986] Init: Port Power? op_state=1
[ 2.844516] Init: Power Port (0)
[ 2.847526] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 2.852740] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.855509] usb usb1: Product: DWC OTG Controller
[ 2.858200] usb usb1: Manufacturer: Linux 5.4.83+ dwc_otg_hcd
[ 2.860884] usb usb1: SerialNumber: 20980000.usb
[ 2.864896] hub 1-0:1.0: USB hub found
[ 2.867644] hub 1-0:1.0: 1 port detected
[ 2.871445] dwc_otg: FIQ enabled
[ 2.871462] dwc_otg: NAK holdoff enabled
[ 2.871474] dwc_otg: FIQ split-transaction FSM enabled
[ 2.871497] Module dwc_common_port init
[ 2.872241] usbcore: registered new interface driver usb-storage
[ 2.875506] mousedev: PS/2 mouse device common for all mice
[ 2.879949] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 2.886553] sdhci: Secure Digital Host Controller Interface driver
[ 2.889402] sdhci: Copyright(c) Pierre Ossman
[ 2.893204] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe
[ 2.897120] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[ 2.900465] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.904437] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.907974] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.911180] usbcore: registered new interface driver usbhid
[ 2.914206] usbhid: USB HID core driver
[ 2.918579] vchiq: vchiq_init_state: slot_zero = (ptrval)
[ 2.923952] [vc_sm_connected_init]: start
[ 2.934422] [vc_sm_connected_init]: end - returning 0
[ 2.940200] Initializing XFRM netlink socket
[ 2.943115] NET: Registered protocol family 17
[ 2.945963] Key type dns_resolver registered
[ 2.949918] registered taskstats version 1
[ 2.952745] Loading compiled-in X.509 certificates
[ 2.971187] uart-pl011 20201000.serial: cts_event_workaround enabled
[ 2.974332] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 2.982863] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 2.988183] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 2.991196] mmc-bcm2835 20300000.mmcnr: DMA channel allocated
[ 3.021873] sdhost: log_buf @ (ptrval) (97d13000)
[ 3.062614] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.067272] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.071747] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.074468] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 3.080462] of_cfs_init
[ 3.103969] of_cfs_init: OK
[ 3.108454] Waiting for root device PARTUUID=6c586e13-02...
[ 3.112554] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.180858] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.189997] mmc0: new high speed SDHC card at address aaaa
[ 3.194998] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 3.205257] mmcblk0: p1 p2
[ 3.238942] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.244723] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.252308] mmc1: new high speed SDIO card at address 0001
[ 3.263434] devtmpfs: mounted
[ 3.272122] Freeing unused kernel memory: 508K
[ 3.274868] This architecture does not have kernel memory protection.
[ 3.277545] Run /sbin/init as init process
[ 4.097721] systemd[1]: System time before build time, advancing clock.
[ 4.277544] NET: Registered protocol family 10
[ 4.283036] Segment Routing with IPv6
[ 4.344893] systemd[1]: systemd 241 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)
[ 4.356439] systemd[1]: Detected architecture arm.
[ 4.389107] systemd[1]: Set hostname to <raspberrypi>.
[ 7.324802] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.358857] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.363770] systemd[1]: Listening on Journal Audit Socket.
[ 7.371732] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.376302] systemd[1]: Listening on udev Kernel Socket.
[ 7.385420] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 7.397846] systemd[1]: Created slice User and Session Slice.
[ 7.411254] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 7.419517] systemd[1]: Reached target Swap.
[ 7.428680] systemd[1]: Listening on Journal Socket (/dev/log).
[ 7.958703] i2c /dev entries driver
[ 11.242072] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.108201] systemd-journald[70]: Received request to flush runtime journal from PID 1
[ 14.412547] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.416191] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 14.416224] [vc_sm_connected_init]: start
[ 14.429461] mc: Linux media interface: v0.10
[ 14.442722] [vc_sm_connected_init]: installed successfully
[ 14.652767] videodev: Linux video capture interface: v2.00
[ 14.720394] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.760227] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.787161] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.788056] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.810426] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.815841] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.861703] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 14.866536] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 14.869108] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.874817] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 14.879597] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 14.879649] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 14.879686] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 14.879745] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 14.879772] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 14.895771] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 14.971371] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 14.971452] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 14.992313] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 14.992390] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 15.000318] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 15.000392] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 17.133926] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 17.590421] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 17.942465] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 17.961895] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 17.962486] usbcore: registered new interface driver brcmfmac
[ 17.988397] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
[ 18.266130] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 18.266350] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 18.267732] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 22 2019 01:59:28 version 7.45.98.94 (r723000 CY) FWID 01-3b33decd
[ 26.336227] 8021q: 802.1Q VLAN Support v1.8
[ 28.439018] random: crng init done
[ 28.439048] random: 7 urandom warning(s) missed due to ratelimiting
[ 28.863291] uart-pl011 20201000.serial: no DMA platform data
[ 29.022363] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 29.164557] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 30.125890] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
[ 30.893748] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
[ 31.298862] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 33.370956] Bluetooth: Core ver 2.22
[ 33.371120] NET: Registered protocol family 31
[ 33.371134] Bluetooth: HCI device and connection manager initialized
[ 33.371164] Bluetooth: HCI socket layer initialized
[ 33.371182] Bluetooth: L2CAP socket layer initialized
[ 33.371224] Bluetooth: SCO socket layer initialized
[ 33.395081] Bluetooth: HCI UART driver ver 2.3
[ 33.395103] Bluetooth: HCI UART protocol H4 registered
[ 33.395220] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 33.395528] Bluetooth: HCI UART protocol Broadcom registered
[ 34.188074] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 34.188092] Bluetooth: BNEP filters: protocol multicast
[ 34.188122] Bluetooth: BNEP socket layer initialized
[ 497.425734] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
[ 497.780234] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
lsmod
Module Size Used by
aes_arm 16384 1
aes_generic 40960 1 aes_arm
cmac 16384 1
bnep 20480 2
hci_uart 40960 1
btbcm 16384 1 hci_uart
bluetooth 376832 24 hci_uart,bnep,btbcm
ecdh_generic 16384 2 bluetooth
ecc 40960 1 ecdh_generic
libaes 16384 3 bluetooth,aes_arm,aes_generic
8021q 32768 0
garp 16384 1 8021q
stp 16384 1 garp
llc 16384 2 garp,stp
spidev 20480 0
brcmfmac 286720 0
brcmutil 20480 1 brcmfmac
sha256_generic 16384 0
libsha256 20480 1 sha256_generic
cfg80211 667648 1 brcmfmac
rfkill 28672 6 bluetooth,cfg80211
snd_soc_bcm2835_i2s 16384 0
raspberrypi_hwmon 16384 0
regmap_mmio 16384 1 snd_soc_bcm2835_i2s
i2c_bcm2835 16384 0
snd_soc_core 200704 1 snd_soc_bcm2835_i2s
snd_compress 20480 1 snd_soc_core
snd_pcm_dmaengine 16384 1 snd_soc_core
bcm2835_codec 36864 0
spi_bcm2835 24576 0
bcm2835_v4l2 45056 0
bcm2835_isp 28672 0
v4l2_mem2mem 32768 1 bcm2835_codec
bcm2835_mmal_vchiq 28672 3 bcm2835_isp,bcm2835_codec,bcm2835_v4l2
videobuf2_dma_contig 20480 2 bcm2835_isp,bcm2835_codec
snd_bcm2835 28672 0
videobuf2_vmalloc 16384 1 bcm2835_v4l2
videobuf2_memops 16384 2 videobuf2_dma_contig,videobuf2_vmalloc
videobuf2_v4l2 28672 4 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem
videobuf2_common 53248 5 bcm2835_isp,bcm2835_codec,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
snd_pcm 94208 4 snd_pcm_dmaengine,snd_soc_bcm2835_i2s,snd_bcm2835,snd_soc_core
snd_timer 32768 1 snd_pcm
snd 73728 5 snd_compress,snd_timer,snd_bcm2835,snd_soc_core,snd_pcm
videodev 225280 6 bcm2835_isp,bcm2835_codec,videobuf2_common,bcm2835_v4l2,v4l2_mem2mem,videobuf2_v4l2
mc 45056 6 bcm2835_isp,bcm2835_codec,videobuf2_common,videodev,v4l2_mem2mem,videobuf2_v4l2
vc_sm_cma 32768 2 bcm2835_isp,bcm2835_mmal_vchiq
uio_pdrv_genirq 16384 0
fixed 16384 0
uio 20480 1 uio_pdrv_genirq
i2c_dev 16384 0
ip_tables 28672 0
x_tables 32768 1 ip_tables
ipv6 446464 18
Try
sudo modprobe -v snd_soc_wm8960
and sudo modprobe -v snd_soc_seeed_voicecard
? Don't reboot after that but just go and run the aplay / arecord commands again.
Also what is in your /boot/config.txt
?
Looks like the right modules to successfully run those commands do not exist for my setup:
pi@raspberrypi:~ $ sudo modprobe -v snd_soc_wm8960
modprobe: FATAL: Module snd_soc_wm8960 not found in directory /lib/modules/5.4.83+
pi@raspberrypi:~ $ sudo modprobe -v snd_soc_seeed_voicecard
modprobe: FATAL: Module snd_soc_seeed_voicecard not found in directory /lib/modules/5.4.83+
pi@raspberrypi:~ $ aplay -l
aplay: device_list:272: no soundcards found...
pi@raspberrypi:~ $ arecord -l
arecord: device_list:272: no soundcards found...
The following are the contents of my /boot/config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=i2s-mmap
dtparam=i2s=on
If you want me to re-setup a new version of Raspbian and retry I'm happy to do that. In case this is too old to diagnose any issues.
No need to start afresh - I want to see the whole output of ./install.sh
from the source directory. It should have created those sndsoc* and copied them to the correct places, but haven't.
Sure, so do you want me to run uninstall.sh
and then run install.sh
and paste the output I get?
No need, since nothing seems to have been installed...
Sure, here's the output from the install:
pi@raspberrypi:~/seeed-voicecard $ sudo ./install.sh
Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:2 http://archive.raspberrypi.org/debian buster InRelease [32.8 kB]
Hit:3 http://packages.microsoft.com/repos/code stable InRelease
Get:4 http://archive.raspberrypi.org/debian buster/main armhf Packages [353 kB]
Fetched 385 kB in 4s (87.0 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree
Reading state information... Done
raspberrypi-kernel is already the newest version (1.20210108-1).
raspberrypi-kernel-headers is already the newest version (1.20210108-1).
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists... Done
Building dependency tree
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
dkms is already the newest version (2.6.1-4).
git is already the newest version (1:2.20.1-2+deb10u3).
i2c-tools is already the newest version (4.1-1).
libasound2-plugins is already the newest version (1.1.8-1).
The following package was automatically installed and is no longer required:
rpi-eeprom-images
Use 'sudo apt autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
------------------------------
Deleting module version: 0.3
completely from the DKMS tree.
------------------------------
Done.
Creating symlink /var/lib/dkms/seeed-voicecard/0.3/source ->
/usr/src/seeed-voicecard-0.3
DKMS: add completed.
Kernel preparation unnecessary for this kernel. Skipping...
Building module:
cleaning build area.....
make -j1 KERNELRELEASE=5.4.83+ -C /lib/modules/5.4.83+/build M=/var/lib/dkms/seeed-voicecard/0.3/build.........................
cleaning build area.....
DKMS: build completed.
snd-soc-wm8960.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.83+/kernel/sound/soc/codecs/
snd-soc-ac108.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.83+/kernel/sound/soc/codecs/
snd-soc-seeed-voicecard.ko:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.4.83+/kernel/sound/soc/bcm/
depmod....
DKMS: install completed.
mkdir: cannot create directory ‘/etc/voicecard’: File exists
git init
Reinitialized existing Git repository in /etc/voicecard/.git/
git add --all
git commit -m "origin configures"
On branch master
nothing to commit, working tree clean
------------------------------------------------------
Please reboot your raspberry pi to apply all settings
Enjoy!
------------------------------------------------------
What is inside /lib/modules/5.4.83+/kernel/sound/soc/codecs/
?
If there are a few snd_soc* files there, try the two modprobe again...
There were some snd_soc*
files in there, so I tried the modprobe commands and checked aplay/arecord. Still no luck
pi@raspberrypi:~ $ ls /lib/modules/5.4.83+/kernel/sound/soc/codecs/
snd-soc-ac108.ko snd-soc-adau1977.ko snd-soc-cs4271.ko snd-soc-i-sabre-codec.ko snd-soc-pcm186x-i2c.ko snd-soc-sigmadsp-i2c.ko snd-soc-tlv320aic32x4-i2c.ko snd-soc-wm8804-i2c.ko
snd-soc-ad193x-i2c.ko snd-soc-adau7002.ko snd-soc-cs42xx8-i2c.ko snd-soc-ma120x0p.ko snd-soc-pcm186x.ko snd-soc-sigmadsp.ko snd-soc-tlv320aic32x4.ko snd-soc-wm8804.ko
snd-soc-ad193x.ko snd-soc-ak4554.ko snd-soc-cs42xx8.ko snd-soc-max98357a.ko snd-soc-pcm5102a.ko snd-soc-spdif-rx.ko snd-soc-tpa6130a2.ko snd-soc-wm8960.ko
snd-soc-ad193x-spi.ko snd-soc-arizona.ko snd-soc-da7213.ko snd-soc-pcm1794a.ko snd-soc-pcm512x-i2c.ko snd-soc-spdif-tx.ko snd-soc-wm5102.ko snd-soc-wm-adsp.ko
snd-soc-adau1701.ko snd-soc-cs4265.ko snd-soc-dmic.ko snd-soc-pcm179x-codec.ko snd-soc-pcm512x.ko snd-soc-tas5713.ko snd-soc-wm8731.ko
snd-soc-adau1977-i2c.ko snd-soc-cs4271-i2c.ko snd-soc-ics43432.ko snd-soc-pcm179x-i2c.ko snd-soc-sgtl5000.ko snd-soc-tas571x.ko snd-soc-wm8741.ko
pi@raspberrypi:~ $ sudo modprobe -v snd_soc_wm8960
pi@raspberrypi:~ $ sudo modprobe -v snd_soc_seeed_voicecard
pi@raspberrypi:~ $ aplay -l
aplay: device_list:272: no soundcards found...
pi@raspberrypi:~ $ arecord -l
arecord: device_list:272: no soundcards found...
pi@raspberrypi:~ $
The tail end of dmesg (before/without reboot), and what's in your /boot/config.txt ?
I rebooted after to test again, so I can only provide the dmesg
output after reboot if it's of any help:
pi@raspberrypi:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.83+ (dom@buildbot) (gcc version 8.4.0 (Ubuntu/Linaro 8.4.0-3ubuntu1)) #1379 Mon Dec 14 13:06:05 GMT 2020
[ 0.000000] CPU: ARMv6-compatible processor [410fb767] revision 7 (ARMv7), cr=00c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi Zero W Rev 1.1
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Reserved memory: created CMA memory pool at 0x17c00000, size 64 MiB
[ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool
[ 0.000000] On node 0 totalpages: 114688
[ 0.000000] Normal zone: 1008 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 114688 pages, LIFO batch:31
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 113680
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 snd_bcm2835.enable_compat_alsa=0 snd_bcm2835.enable_hdmi=1 bcm2708_fb.fbwidth=656 bcm2708_fb.fbheight=416 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:4E:17:E9 vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 console=ttyS0,115200 console=tty1 root=PARTUUID=6c586e13-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 376180K/458752K available (7816K kernel code, 712K rwdata, 2468K rodata, 508K init, 804K bss, 17036K reserved, 65536K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 27743 entries in 55 pages
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] random: get_random_bytes called from start_kernel+0x2a8/0x4d8 with crng_init=0
[ 0.000023] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns
[ 0.000090] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns
[ 0.000209] bcm2835: system timer (irq = 27)
[ 0.000826] Console: colour dummy device 80x30
[ 0.001387] printk: console [tty1] enabled
[ 0.001481] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792)
[ 0.050400] pid_max: default: 32768 minimum: 301
[ 0.050737] LSM: Security Framework initializing
[ 0.051106] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.051175] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.053390] Disabling memory control group subsystem
[ 0.053709] CPU: Testing write buffer coherency: ok
[ 0.055489] Setting up static identity map for 0x8200 - 0x8238
[ 0.056735] devtmpfs: initialized
[ 0.069313] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5
[ 0.069859] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.069950] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.079053] pinctrl core: initialized pinctrl subsystem
[ 0.081200] NET: Registered protocol family 16
[ 0.085843] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.092373] audit: initializing netlink subsys (disabled)
[ 0.094580] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers.
[ 0.094648] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.094848] Serial: AMBA PL011 UART driver
[ 0.098636] bcm2835-mbox 2000b880.mailbox: mailbox enabled
[ 0.100764] audit: type=2000 audit(0.090:1): state=initialized audit_enabled=0 res=1
[ 0.120846] raspberrypi-firmware soc:firmware: Attached to firmware from 2021-01-08 14:33, variant start
[ 0.130869] raspberrypi-firmware soc:firmware: Firmware hash is 194a85abd768c7334bbadc3f1911c10a7d18ed14
[ 0.194997] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1
[ 0.198239] SCSI subsystem initialized
[ 0.198592] usbcore: registered new interface driver usbfs
[ 0.198747] usbcore: registered new interface driver hub
[ 0.199059] usbcore: registered new device driver usb
[ 0.201960] clocksource: Switched to clocksource timer
[ 1.676277] VFS: Disk quotas dquot_6.6.0
[ 1.676503] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.676933] FS-Cache: Loaded
[ 1.677388] CacheFiles: Loaded
[ 1.698796] thermal_sys: Registered thermal governor 'step_wise'
[ 1.699538] NET: Registered protocol family 2
[ 1.701023] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 1.701152] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.701268] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.701394] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.701614] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.701690] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 1.702443] NET: Registered protocol family 1
[ 1.703826] RPC: Registered named UNIX socket transport module.
[ 1.703894] RPC: Registered udp transport module.
[ 1.703928] RPC: Registered tcp transport module.
[ 1.703959] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.705603] hw perfevents: no irqs for PMU, sampling events not supported
[ 1.705734] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available
[ 1.710687] Initialise system trusted keyrings
[ 1.711435] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 1.729378] FS-Cache: Netfs 'nfs' registered for caching
[ 1.731160] NFS: Registering the id_resolver key type
[ 1.731279] Key type id_resolver registered
[ 1.731320] Key type id_legacy registered
[ 1.731377] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.733953] Key type asymmetric registered
[ 1.734028] Asymmetric key parser 'x509' registered
[ 1.734155] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[ 1.734211] io scheduler mq-deadline registered
[ 1.734247] io scheduler kyber registered
[ 1.737939] bcm2708_fb soc:fb: FB found 1 display(s)
[ 1.750512] Console: switching to colour frame buffer device 82x26
[ 1.758190] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 656x416
[ 1.772247] bcm2835-rng 20104000.rng: hwrng registered
[ 1.775912] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB)
[ 1.783215] vc-sm: Videocore shared memory driver
[ 1.787114] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000
[ 1.816413] brd: module loaded
[ 1.835791] loop: module loaded
[ 1.841054] Loading iSCSI transport class v2.0-870.
[ 1.845356] usbcore: registered new interface driver smsc95xx
[ 1.848448] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 2.491967] random: fast init done
[ 2.583218] Core Release: 2.80a
[ 2.586128] Setting default values for core params
[ 2.588937] Finished setting default values for core params
[ 2.792438] Using Buffer DMA mode
[ 2.795296] Periodic Transfer Interrupt Enhancement - disabled
[ 2.798187] Multiprocessor Interrupt Enhancement - disabled
[ 2.801061] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 2.804023] Dedicated Tx FIFOs mode
[ 2.807715] WARN::dwc_otg_hcd_init:1074: FIQ DMA bounce buffers: virt = d7d14000 dma = 0x97d14000 len=9024
[ 2.813383] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 2.826208] dwc_otg: Microframe scheduler enabled
[ 2.826436] WARN::hcd_init_fiq:457: FIQ on core 0
[ 2.829057] WARN::hcd_init_fiq:458: FIQ ASM at c05a0374 length 36
[ 2.831667] WARN::hcd_init_fiq:497: MPHI regs_base at dc810000
[ 2.834332] dwc_otg 20980000.usb: DWC OTG Controller
[ 2.836967] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1
[ 2.839662] dwc_otg 20980000.usb: irq 56, io mem 0x00000000
[ 2.842364] Init: Port Power? op_state=1
[ 2.844912] Init: Power Port (0)
[ 2.847940] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 2.853167] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.855942] usb usb1: Product: DWC OTG Controller
[ 2.858626] usb usb1: Manufacturer: Linux 5.4.83+ dwc_otg_hcd
[ 2.861312] usb usb1: SerialNumber: 20980000.usb
[ 2.865355] hub 1-0:1.0: USB hub found
[ 2.868104] hub 1-0:1.0: 1 port detected
[ 2.871911] dwc_otg: FIQ enabled
[ 2.871929] dwc_otg: NAK holdoff enabled
[ 2.872042] dwc_otg: FIQ split-transaction FSM enabled
[ 2.872074] Module dwc_common_port init
[ 2.872710] usbcore: registered new interface driver usb-storage
[ 2.875949] mousedev: PS/2 mouse device common for all mice
[ 2.880424] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 2.887040] sdhci: Secure Digital Host Controller Interface driver
[ 2.889899] sdhci: Copyright(c) Pierre Ossman
[ 2.893679] mmc-bcm2835 20300000.mmcnr: could not get clk, deferring probe
[ 2.897618] sdhost-bcm2835 20202000.mmc: could not get clk, deferring probe
[ 2.900964] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.904924] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.908446] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.911650] usbcore: registered new interface driver usbhid
[ 2.914699] usbhid: USB HID core driver
[ 2.919066] vchiq: vchiq_init_state: slot_zero = (ptrval)
[ 2.924422] [vc_sm_connected_init]: start
[ 2.934879] [vc_sm_connected_init]: end - returning 0
[ 2.940665] Initializing XFRM netlink socket
[ 2.943558] NET: Registered protocol family 17
[ 2.946442] Key type dns_resolver registered
[ 2.950389] registered taskstats version 1
[ 2.953223] Loading compiled-in X.509 certificates
[ 2.971665] uart-pl011 20201000.serial: cts_event_workaround enabled
[ 2.974800] 20201000.serial: ttyAMA0 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2
[ 2.983346] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 2.988678] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 2.991678] mmc-bcm2835 20300000.mmcnr: DMA channel allocated
[ 3.022458] sdhost: log_buf @ (ptrval) (97d13000)
[ 3.063119] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 3.067774] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.072262] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 3.075441] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 3.081452] of_cfs_init
[ 3.104789] of_cfs_init: OK
[ 3.109361] Waiting for root device PARTUUID=6c586e13-02...
[ 3.113297] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 3.181904] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.191178] mmc0: new high speed SDHC card at address aaaa
[ 3.196161] mmcblk0: mmc0:aaaa SC16G 14.8 GiB
[ 3.206588] mmcblk0: p1 p2
[ 3.239121] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 3.244897] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 3.254315] mmc1: new high speed SDIO card at address 0001
[ 3.259704] devtmpfs: mounted
[ 3.268326] Freeing unused kernel memory: 508K
[ 3.271072] This architecture does not have kernel memory protection.
[ 3.273890] Run /sbin/init as init process
[ 4.094523] systemd[1]: System time before build time, advancing clock.
[ 4.281742] NET: Registered protocol family 10
[ 4.287283] Segment Routing with IPv6
[ 4.349581] systemd[1]: systemd 241 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)
[ 4.361126] systemd[1]: Detected architecture arm.
[ 4.393652] systemd[1]: Set hostname to <raspberrypi>.
[ 7.323739] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.354715] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.358156] systemd[1]: Reached target Swap.
[ 7.366938] random: systemd: uninitialized urandom read (16 bytes read)
[ 7.371291] systemd[1]: Listening on udev Kernel Socket.
[ 7.381095] systemd[1]: Listening on Journal Audit Socket.
[ 7.389768] systemd[1]: Listening on initctl Compatibility Named Pipe.
[ 7.398955] systemd[1]: Listening on fsck to fsckd communication Socket.
[ 7.408838] systemd[1]: Listening on Journal Socket.
[ 7.431914] systemd[1]: Mounting POSIX Message Queue File System...
[ 8.265881] i2c /dev entries driver
[ 8.621506] snd_soc_seeed_voicecard: loading out-of-tree module taints kernel.
[ 9.476691] systemd[1]: Started File System Check Daemon to report status.
[ 9.711516] systemd[1]: Started Apply Kernel Variables.
[ 10.152419] systemd[1]: Started File System Check on Root Device.
[ 10.244174] systemd[1]: Starting Remount Root and Kernel File Systems...
[ 10.249221] systemd[1]: Started Journal Service.
[ 11.297154] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 12.233349] systemd-journald[79]: Received request to flush runtime journal from PID 1
[ 14.671552] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 14.676142] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 14.676172] [vc_sm_connected_init]: start
[ 14.694848] [vc_sm_connected_init]: installed successfully
[ 14.708057] mc: Linux media interface: v0.10
[ 14.790471] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.017942] videodev: Linux video capture interface: v2.00
[ 15.104650] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.108207] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.109950] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.143853] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.172333] bcm2835_isp: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.229472] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 15.245121] bcm2835-isp bcm2835-isp: Device node output[0] registered as /dev/video13
[ 15.270673] bcm2835-isp bcm2835-isp: Device node capture[0] registered as /dev/video14
[ 15.273439] bcm2835-isp bcm2835-isp: Device node capture[1] registered as /dev/video15
[ 15.304989] bcm2835-isp bcm2835-isp: Device node stats[2] registered as /dev/video16
[ 15.305044] bcm2835-isp bcm2835-isp: Register output node 0 with media controller
[ 15.305106] bcm2835-isp bcm2835-isp: Register capture node 1 with media controller
[ 15.305135] bcm2835-isp bcm2835-isp: Register capture node 2 with media controller
[ 15.305161] bcm2835-isp bcm2835-isp: Register capture node 3 with media controller
[ 15.317202] bcm2835-isp bcm2835-isp: Loaded V4L2 bcm2835-isp
[ 15.327832] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 15.327914] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 15.344341] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 15.344420] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 15.372741] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 15.372816] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 17.909633] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 18.536217] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 19.342859] brcmfmac: F1 signature read @0x18000000=0x1541a9a6
[ 19.355399] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 19.355863] usbcore: registered new interface driver brcmfmac
[ 19.384451] brcmfmac mmc1:0001:1: Direct firmware load for brcm/brcmfmac43430-sdio.raspberrypi,model-zero-w.txt failed with error -2
[ 19.688759] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1
[ 19.688998] brcmfmac: brcmf_c_process_clm_blob: no clm_blob available (err=-2), device may have limited channels available
[ 19.690254] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Oct 22 2019 01:59:28 version 7.45.98.94 (r723000 CY) FWID 01-3b33decd
[ 25.220413] random: crng init done
[ 25.220443] random: 7 urandom warning(s) missed due to ratelimiting
[ 26.604521] uart-pl011 20201000.serial: no DMA platform data
[ 27.412730] 8021q: 802.1Q VLAN Support v1.8
[ 28.668637] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 29.150217] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/i2c@7e804000/status
[ 30.057244] OF: overlay: WARNING: memory leak will occur if overlay removed, property: /soc/spi@7e204000/status
[ 30.484599] brcmfmac: brcmf_cfg80211_set_power_mgmt: power save enabled
[ 31.262590] Bluetooth: Core ver 2.22
[ 31.262774] NET: Registered protocol family 31
[ 31.262788] Bluetooth: HCI device and connection manager initialized
[ 31.262819] Bluetooth: HCI socket layer initialized
[ 31.262837] Bluetooth: L2CAP socket layer initialized
[ 31.262880] Bluetooth: SCO socket layer initialized
[ 31.281078] Bluetooth: HCI UART driver ver 2.3
[ 31.281101] Bluetooth: HCI UART protocol H4 registered
[ 31.281216] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 31.281501] Bluetooth: HCI UART protocol Broadcom registered
[ 31.951297] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 31.951313] Bluetooth: BNEP filters: protocol multicast
[ 31.951344] Bluetooth: BNEP socket layer initialized
[ 31.998676] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
And my /boot/config.txt contents are below:
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan
#disable_overscan=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
#dtparam=i2s=on
dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
[pi4]
# Enable DRM VC4 V3D driver on top of the dispmanx display stack
dtoverlay=vc4-fkms-v3d
max_framebuffers=2
[all]
#dtoverlay=vc4-fkms-v3d
dtoverlay=i2s-mmap
dtparam=i2s=on
What does i2cdetect -y 1 0x1a 0x1a
says? Actually just plain i2cdetect -y 1
would be more informative. Post that.
Sure, here are the outputs:
pi@raspberrypi:~ $ i2cdetect -y 1 0x1a 0x1a
0 1 2 3 4 5 6 7 8 9 a b c d e f
00:
10: --
20:
30:
40:
50:
60:
70:
pi@raspberrypi:~ $ i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
Does this indicate a hardware/soldering connection issue? What would the ideal output for this check be?
Yes, that looks like a hardware problem. For the 2mic device, you should have a "UU" where the two "--" are. The other seeed studio devices have a few more UU's.
You should swap the pi or the mics - it could be either being faulty. (or dirty in the sockets between them?).
I see, I'll try swapping to see if that resolves this issue. Thanks a ton @HinTak for your help in diagnosing this issue and your efforts in keeping these drivers up-to-date. I'd have been breaking my head over this for I don't know how long otherwise.
@greykeys you are welcomed. It helps if one has one working device to compare with. These (the pi zero + the 2-mics is probably under 30$US) are relatively cheap toys so it is understandable after-sale support is limited, but nonetheless the lack of seeed studio staff's presence here is disappointing. If you feel generous, you can always buy me a beer with the donate links at https://hintak.github.io . :)
Some FAQ/sanity checks for common issues may have been helpful. I was hoping to use the FAQ image link from the README to see if it was a s/w or h/w issue, but looks like its been broken for at least a few months now based on other git issues.
Regardless, thank you for your help. I donated from your page links just a little while ago :)
I'll close this issue as it looks like h/w on my end.
@HinTak thanks for your efforts! i've contributed too :)
@greykeys @ladyada cheers!
@ladyada argh, you do some cool stuff with your projects!
I am trying to setup a ReSpeaker 2mic Pi-Hat for a Raspberry Pi Zero. I walked through some existing issues on this repo but they didn't help me resolve my issue. I have tried with multiple different Raspbian OS (currently on
2019-09-26-raspbian-buster-lite
) to no avail. I've tried setting up using both this repo and HinTak's (https://github.com/HinTak/seeed-voicecard) and neither seem to be working for me.dmesg tail output
systemctl service status
I've reseated my Pi-Hat, and that doesn't seem to be making a difference either. The link to the Pi image in the FAQ section of this repo is broken so I'm not able to test with a properly working image either to localize the issue.
Any help would be greatly appreciated. Thanks!