raspberrypi / linux

Kernel source tree for Raspberry Pi-provided kernel builds. Issues unrelated to the linux kernel should be posted on the community forum at https://forums.raspberrypi.com/
Other
11.16k stars 5k forks source link

dtoverlay for Hifiberry DAC broken #5795

Closed hackerb9 closed 11 months ago

hackerb9 commented 11 months ago

Describe the bug

The Hifiberry DAC does not show up as a sound card. It does not even appear on the i2c bus and an oscilloscope shows no data on the relevant pins. This situation might be analogous to issue #4898 , in which the overlay for the Hifiberry DAC 2 HD was not working.

Relevant section of config.txt

dtoverlay=
dtoverlay=hifiberry-dac

(See below for full config.txt.)

What does i2cdetect -y 1 show?

I see that no devices are on the i2c bus when using dtoverlay=hifiberry-dac. In fact, although hifiberry-dac is supposed to set dtparam=i2c automatically, it does not. To run i2cdetect, I must specify dtparam=i2c explicitly in config.txt in addition to the usual modprobe i2c-dev.

Perhaps of note: knowing that the overlay was fixed for the Hifiberry DAC 2 HD, I also experimentally tried dtoverlay=hifiberry-dacplushd. Although it is the wrong overlay for my card, it does demonstrate that my card is responding on the i2c bus. i2cdetect -y 1 shows address 4C as UU, in use by driver. My DAC still doesn't work, but it does suggest that the change to the hifiberry-dacplushd overlay by @j-schambacher in pull request #4904 may somehow be related. Update: It appears that the dacplushd overlay shows 4C in use even when no hat is installed. This was a red-herring.

Is it a hardware fault?

Highly unlikely. I have reproduced this problem with two different Raspberry Pi Zeroes and two different DAC hats.

Steps to reproduce the behaviour

Install a hat compatible with the Hifiberry DAC. (I'm using the Adafruit "I2S DAC Bonnet"). Try aplay -l and note that the DAC is not detected.

Device (s)

Raspberry Pi Zero, Raspberry Pi Zero W / WH

System

OS: piCore 14.

Firmware version: Apr 25 2023 18:32:05 Copyright (c) 2012 Broadcom version d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 (clean) (release) (start)

Kernel version: Linux box 6.1.25-piCore #1 Sun Apr 30 13:17:34 EDT 2023 armv6l GNU/Linux

Logs

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: -- -- -- -- -- -- -- -- ```

/proc/device-tree/chosen/user-warnings

File not found.

dmesg

```log [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 6.1.25-piCore (tc@piCore) (arm-bcm2708hf-linux-gnueabihf-gcc (crosstool-NG 1.25.0.117_66ac9e6) 12.2.0, GNU ld (crosstool-NG 1.25.0.117_66ac9e6) 2.39) #1 Sun Apr 30 13:17:34 EDT 2023 [ 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] random: crng init done [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Reserved memory: created CMA memory pool at 0x17800000, size 64 MiB [ 0.000000] OF: reserved mem: initialized node linux,cma, compatible id shared-dma-pool [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x000000001bffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x000000001bffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001bffffff] [ 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_headphones=0 bcm2708_fb.fbwidth=1680 bcm2708_fb.fbheight=1050 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:D5:89:DC vc_mem.mem_base=0x1ec00000 vc_mem.mem_size=0x20000000 zswap.compressor=lz4 zswap.zpool=z3fold console=tty1 root=/dev/ram0 rootwait quiet nortc loglevel=3 noembed [ 0.000000] Unknown kernel command line parameters "nortc noembed", will be passed to user space. [ 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:all(zero), heap alloc:off, heap free:off [ 0.000000] Memory: 369104K/458752K available (9243K kernel code, 1451K rwdata, 2736K rodata, 424K init, 588K bss, 24112K reserved, 65536K cma-reserved) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] ftrace: allocating 32263 entries in 95 pages [ 0.000000] ftrace: allocated 95 pages with 6 groups [ 0.000000] trace event string verifier disabled [ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16 [ 0.000006] sched_clock: 32 bits at 1000kHz, resolution 1000ns, wraps every 2147483647500ns [ 0.000077] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 1911260446275 ns [ 0.000176] bcm2835: system timer (irq = 27) [ 0.001038] Console: colour dummy device 80x30 [ 0.001147] printk: console [tty1] enabled [ 0.001219] Calibrating delay loop... 697.95 BogoMIPS (lpj=3489792) [ 0.060301] pid_max: default: 32768 minimum: 301 [ 0.060517] LSM: Security Framework initializing [ 0.060828] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.060871] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.062653] cgroup: Disabling memory control group subsystem [ 0.063060] CPU: Testing write buffer coherency: ok [ 0.064864] cblist_init_generic: Setting adjustable number of callback queues. [ 0.064898] cblist_init_generic: Setting shift to 0 and lim to 1. [ 0.065181] cblist_init_generic: Setting shift to 0 and lim to 1. [ 0.065462] Setting up static identity map for 0x8220 - 0x8258 [ 0.066919] devtmpfs: initialized [ 0.078980] VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 5 [ 0.079365] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.079425] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.089981] pinctrl core: initialized pinctrl subsystem [ 0.092241] NET: Registered PF_NETLINK/PF_ROUTE protocol family [ 0.094964] DMA: preallocated 1024 KiB pool for atomic coherent allocations [ 0.101166] audit: initializing netlink subsys (disabled) [ 0.102792] thermal_sys: Registered thermal governor 'step_wise' [ 0.103181] hw-breakpoint: found 6 breakpoint and 1 watchpoint registers. [ 0.103214] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.103464] Serial: AMBA PL011 UART driver [ 0.110635] audit: type=2000 audit(0.100:1): state=initialized audit_enabled=0 res=1 [ 0.112114] bcm2835-mbox 2000b880.mailbox: mailbox enabled [ 0.130689] raspberrypi-firmware soc:firmware: Attached to firmware from 2023-04-25T18:32:05, variant start [ 0.140714] raspberrypi-firmware soc:firmware: Firmware hash is d7f9c2b4ef7e4a8c0b04374a879ce89d7a948453 [ 0.192481] kprobes: kprobe jump-optimization is enabled. All kprobes are optimized if possible. [ 2.165311] bcm2835-dma 20007000.dma: DMA legacy API manager, dmachans=0x1 [ 2.168103] SCSI subsystem initialized [ 2.168571] usbcore: registered new interface driver usbfs [ 2.168704] usbcore: registered new interface driver hub [ 2.168816] usbcore: registered new device driver usb [ 2.169174] usb_phy_generic phy: supply vcc not found, using dummy regulator [ 2.169494] usb_phy_generic phy: dummy supplies not allowed for exclusive requests [ 2.170027] pps_core: LinuxPPS API ver. 1 registered [ 2.170053] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 2.170107] PTP clock support registered [ 2.172597] clocksource: Switched to clocksource timer [ 2.290224] VFS: Disk quotas dquot_6.6.0 [ 2.290365] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 2.290632] FS-Cache: Loaded [ 2.291040] CacheFiles: Loaded [ 2.311264] NET: Registered PF_INET protocol family [ 2.311622] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear) [ 2.314235] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 2.314330] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 2.314383] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 2.314483] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear) [ 2.314604] TCP: Hash tables configured (established 4096 bind 4096) [ 2.314764] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 2.314817] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 2.315242] NET: Registered PF_UNIX/PF_LOCAL protocol family [ 2.316309] RPC: Registered named UNIX socket transport module. [ 2.316346] RPC: Registered udp transport module. [ 2.316360] RPC: Registered tcp transport module. [ 2.316371] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 2.316985] armv6-pmu arm-pmu: hw perfevents: no irqs for PMU, sampling events not supported [ 2.317067] hw perfevents: enabled with armv6_1176 PMU driver, 3 counters available [ 2.321482] Initialise system trusted keyrings [ 2.322346] Trying to unpack rootfs image as initramfs... [ 2.333293] workingset: timestamp_bits=14 max_order=17 bucket_order=3 [ 2.356978] zbud: loaded [ 2.374512] NFS: Registering the id_resolver key type [ 2.374599] Key type id_resolver registered [ 2.374617] Key type id_legacy registered [ 2.374831] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 2.374859] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering... [ 2.377154] Key type asymmetric registered [ 2.377198] Asymmetric key parser 'x509' registered [ 2.377530] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247) [ 2.377563] io scheduler mq-deadline registered [ 2.377583] io scheduler kyber registered [ 2.382571] bcm2708_fb soc:fb: FB found 1 display(s) [ 2.423714] Console: switching to colour frame buffer device 210x65 [ 2.482898] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1680x1050 [ 2.504890] bcm2835-rng 20104000.rng: hwrng registered [ 2.505550] vc-mem: phys_addr:0x00000000 mem_base=0x1ec00000 mem_size:0x20000000(512 MiB) [ 2.507671] gpiomem-bcm2835 20200000.gpiomem: Initialised: Registers at 0x20200000 [ 2.556327] brd: module loaded [ 2.585906] loop: module loaded [ 2.593382] Loading iSCSI transport class v2.0-870. [ 2.595931] usbcore: registered new interface driver smsc95xx [ 2.595999] dwc_otg: version 3.00a 10-AUG-2012 (platform bus) [ 3.357196] Freeing initrd memory: 4692K [ 3.357988] Core Release: 2.80a [ 3.358038] Setting default values for core params [ 3.358083] Finished setting default values for core params [ 3.558448] Using Buffer DMA mode [ 3.558481] Periodic Transfer Interrupt Enhancement - disabled [ 3.558499] Multiprocessor Interrupt Enhancement - disabled [ 3.558514] OTG VER PARAM: 0, OTG VER FLAG: 0 [ 3.558704] Dedicated Tx FIFOs mode [ 3.559765] [ 3.559792] WARN::dwc_otg_hcd_init:1072: FIQ DMA bounce buffers: virt = d7914000 dma = 0x97914000 len=9024 [ 3.559856] FIQ FSM acceleration enabled for : [ 3.559856] Non-periodic Split Transactions [ 3.559856] Periodic Split Transactions [ 3.559856] High-Speed Isochronous Endpoints [ 3.559856] Interrupt/Control Split Transaction hack enabled [ 3.559886] dwc_otg: Microframe scheduler enabled [ 3.560046] [ 3.560062] WARN::hcd_init_fiq:457: FIQ on core 0 [ 3.560090] [ 3.560097] WARN::hcd_init_fiq:458: FIQ ASM at c068a2e8 length 36 [ 3.560125] [ 3.560143] WARN::hcd_init_fiq:496: MPHI regs_base at dc810000 [ 3.560192] dwc_otg 20980000.usb: DWC OTG Controller [ 3.560274] dwc_otg 20980000.usb: new USB bus registered, assigned bus number 1 [ 3.560367] dwc_otg 20980000.usb: irq 56, io mem 0x00000000 [ 3.560447] Init: Port Power? op_state=1 [ 3.560466] Init: Power Port (0) [ 3.560935] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01 [ 3.560983] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 3.561013] usb usb1: Product: DWC OTG Controller [ 3.561037] usb usb1: Manufacturer: Linux 6.1.25-piCore dwc_otg_hcd [ 3.561060] usb usb1: SerialNumber: 20980000.usb [ 3.562443] hub 1-0:1.0: USB hub found [ 3.562555] hub 1-0:1.0: 1 port detected [ 3.563978] dwc_otg: FIQ enabled [ 3.564014] dwc_otg: NAK holdoff enabled [ 3.564030] dwc_otg: FIQ split-transaction FSM enabled [ 3.564066] Module dwc_common_port init [ 3.564702] usbcore: registered new interface driver usb-storage [ 3.565281] mousedev: PS/2 mouse device common for all mice [ 3.569107] sdhci: Secure Digital Host Controller Interface driver [ 3.569146] sdhci: Copyright(c) Pierre Ossman [ 3.569601] sdhci-pltfm: SDHCI platform and OF driver helper [ 3.571253] ledtrig-cpu: registered to indicate activity on CPUs [ 3.571884] hid: raw HID events driver (C) Jiri Kosina [ 3.572237] usbcore: registered new interface driver usbhid [ 3.572267] usbhid: USB HID core driver [ 3.572529] bcm2835_vchiq 2000b840.mailbox: there is not valid maps for state default [ 3.579256] Initializing XFRM netlink socket [ 3.579411] NET: Registered PF_PACKET protocol family [ 3.579687] Key type dns_resolver registered [ 3.580843] registered taskstats version 1 [ 3.580983] Loading compiled-in X.509 certificates [ 3.605927] uart-pl011 20201000.serial: cts_event_workaround enabled [ 3.606202] 20201000.serial: ttyAMA1 at MMIO 0x20201000 (irq = 81, base_baud = 0) is a PL011 rev2 [ 3.606679] serial serial0: tty port ttyAMA1 registered [ 3.610025] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer [ 3.610696] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver [ 3.613404] mmc-bcm2835 20300000.mmcnr: mmc_debug:0 mmc_debug2:0 [ 3.613464] mmc-bcm2835 20300000.mmcnr: DMA channel allocated [ 3.643226] sdhost: log_buf @ 672143f6 (97913000) [ 3.692936] Indeed it is in host mode hprt0 = 00021501 [ 3.753049] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1) [ 3.757239] of_cfs_init [ 3.757577] of_cfs_init: OK [ 3.771833] Freeing unused kernel image (initmem) memory: 424K [ 3.771910] Kernel memory protection not selected by kernel config. [ 3.772096] Run /init as init process [ 3.772123] with arguments: [ 3.772133] /init [ 3.772170] nortc [ 3.772185] noembed [ 3.772197] with environment: [ 3.772206] HOME=/ [ 3.772217] TERM=linux [ 3.819357] mmc0: host does not support reading read-only switch, assuming write-enable [ 3.820934] mmc0: new SD card at address c990 [ 3.824956] mmcblk0: mmc0:c990 SU02G 1.84 GiB [ 3.836120] mmcblk0: p1 p2 [ 3.838202] mmcblk0: mmc0:c990 SU02G 1.84 GiB (quirks 0x00004000) [ 3.879875] mmc1: new high speed SDIO card at address 0001 [ 3.912751] usb 1-1: new high-speed USB device number 2 using dwc_otg [ 3.913169] Indeed it is in host mode hprt0 = 00001101 [ 4.153313] usb 1-1: New USB device found, idVendor=050d, idProduct=0234, bcdDevice= 0.00 [ 4.153383] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 [ 4.154819] hub 1-1:1.0: USB hub found [ 4.155052] hub 1-1:1.0: 4 ports detected [ 4.472776] usb 1-1.1: new full-speed USB device number 3 using dwc_otg [ 4.616826] usb 1-1.1: New USB device found, idVendor=0a12, idProduct=0001, bcdDevice=88.91 [ 4.616902] usb 1-1.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 4.616934] usb 1-1.1: Product: BT DONGLE10 [ 4.712825] usb 1-1.2: new low-speed USB device number 4 using dwc_otg [ 4.865194] usb 1-1.2: New USB device found, idVendor=413c, idProduct=2113, bcdDevice= 1.10 [ 4.865270] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0 [ 4.865302] usb 1-1.2: Product: Dell KB216 Wired Keyboard [ 4.879939] input: Dell KB216 Wired Keyboard as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:413C:2113.0001/input/input0 [ 4.944693] hid-generic 0003:413C:2113.0001: input,hidraw0: USB HID v1.11 Keyboard [Dell KB216 Wired Keyboard] on usb-20980000.usb-1.2/input0 [ 4.953735] input: Dell KB216 Wired Keyboard Consumer Control as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:413C:2113.0002/input/input1 [ 5.023655] input: Dell KB216 Wired Keyboard System Control as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:413C:2113.0002/input/input2 [ 5.024447] hid-generic 0003:413C:2113.0002: input,hidraw1: USB HID v1.11 Device [Dell KB216 Wired Keyboard] on usb-20980000.usb-1.2/input1 [ 5.122760] usb 1-1.3: new full-speed USB device number 5 using dwc_otg [ 5.268937] usb 1-1.3: New USB device found, idVendor=04f2, idProduct=0976, bcdDevice= 1.20 [ 5.269008] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 [ 5.269045] usb 1-1.3: Product: Wireless Device [ 5.269069] usb 1-1.3: Manufacturer: Chicony [ 5.277886] input: Chicony Wireless Device as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.0/0003:04F2:0976.0003/input/input3 [ 5.344291] hid-generic 0003:04F2:0976.0003: input,hidraw2: USB HID v1.11 Keyboard [Chicony Wireless Device] on usb-20980000.usb-1.3/input0 [ 5.359246] input: Chicony Wireless Device Consumer Control as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0976.0004/input/input4 [ 5.423733] input: Chicony Wireless Device System Control as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0976.0004/input/input5 [ 5.424519] input: Chicony Wireless Device as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.1/0003:04F2:0976.0004/input/input6 [ 5.425911] hid-generic 0003:04F2:0976.0004: input,hiddev96,hidraw3: USB HID v1.11 Device [Chicony Wireless Device] on usb-20980000.usb-1.3/input1 [ 5.434482] input: Chicony Wireless Device as /devices/platform/soc/20980000.usb/usb1/1-1/1-1.3/1-1.3:1.2/0003:04F2:0976.0005/input/input7 [ 5.438912] hid-generic 0003:04F2:0976.0005: input,hidraw4: USB HID v1.11 Mouse [Chicony Wireless Device] on usb-20980000.usb-1.3/input2 [ 6.523344] zram: Added device: zram0 [ 8.509436] zram0: detected capacity change from 0 to 204120 [ 8.541814] Adding 102056k swap on /dev/zram0. Priority:-2 extents:1 across:102056k SSFS [ 8.916136] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 10.499744] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none. [ 10.511930] EXT4-fs (mmcblk0p2): unmounting filesystem. [ 10.638428] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Quota mode: none. [ 32.814254] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned. [ 34.767540] i2c_dev: i2c /dev entries driver [ 34.889514] Bluetooth: Core ver 2.22 [ 34.889706] NET: Registered PF_BLUETOOTH protocol family [ 34.889726] Bluetooth: HCI device and connection manager initialized [ 34.889765] Bluetooth: HCI socket layer initialized [ 34.889785] Bluetooth: L2CAP socket layer initialized [ 34.889828] Bluetooth: SCO socket layer initialized [ 35.464835] Bluetooth: HCI UART driver ver 2.3 [ 35.464913] Bluetooth: HCI UART protocol H4 registered [ 35.465073] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 35.465628] hci_uart_bcm serial0-0: supply vbat not found, using dummy regulator [ 35.465983] hci_uart_bcm serial0-0: supply vddio not found, using dummy regulator [ 35.466255] Bluetooth: HCI UART protocol Broadcom registered [ 35.562349] cfg80211: Loading compiled-in X.509 certificates for regulatory database [ 35.583093] uart-pl011 20201000.serial: no DMA platform data [ 35.826662] usbcore: registered new interface driver btusb [ 35.828068] Bluetooth: hci1: CSR: Setting up dongle with HCI ver=6 rev=3120; LMP ver=6 subver=22bb; manufacturer=10 [ 35.828126] Bluetooth: hci1: CSR: Unbranded CSR clone detected; adding workarounds and force-suspending once... [ 35.828166] Bluetooth: hci1: CSR: Couldn't suspend the device for our Barrot 8041a02 receive-issue workaround [ 35.828189] Bluetooth: hci1: HCI Delete Stored Link Key command is advertised, but not supported. [ 35.828205] Bluetooth: hci1: HCI Read Default Erroneous Data Reporting command is advertised, but not supported. [ 35.828221] Bluetooth: hci1: HCI Set Event Filter command not supported. [ 35.833948] Bluetooth: hci0: BCM: chip id 94 [ 35.834460] Bluetooth: hci0: BCM: features 0x2e [ 35.835862] Bluetooth: hci0: BCM43430A1 [ 35.835897] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0000 [ 35.851767] Bluetooth: hci0: BCM43430A1 'brcm/BCM43430A1.hcd' Patch [ 36.288054] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7' [ 36.464147] Bluetooth: hci0: BCM: features 0x2e [ 36.465639] Bluetooth: hci0: BCM43438A1 37.4MHz Raspberry Pi 3-0141 [ 36.465675] Bluetooth: hci0: BCM43430A1 (001.002.009) build 0508 [ 36.727453] brcmfmac: F1 signature read @0x18000000=0x1541a9a6 [ 36.869665] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 36.869707] Bluetooth: BNEP filters: protocol multicast [ 36.869773] Bluetooth: BNEP socket layer initialized [ 36.880426] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43430-sdio for chip BCM43430/1 [ 36.884365] usbcore: registered new interface driver brcmfmac [ 36.972322] Bluetooth: MGMT ver 1.22 [ 37.377450] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM43430/1 wl0: Jul 19 2021 03:24:18 version 7.45.98 (TOB) (56df937 CY) FWID 01-8e14b897 [ 37.453155] Bluetooth: RFCOMM TTY layer initialized [ 37.453219] Bluetooth: RFCOMM socket layer initialized [ 37.453287] Bluetooth: RFCOMM ver 1.11 [ 37.607331] Bluetooth: MGMT ver 1.22 ```

vclog --msg

``` 001131.104: brfs: File read: /mfs/sd/config.txt 001131.786: brfs: File read: 1236 bytes 001209.211: brfs: File read: /mfs/sd/config.txt 001209.958: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 001395.887: gpioman: gpioman_get_pin_num: pin LEDS_PWR_OK not defined 001395.942: *** Restart logging 001395.968: brfs: File read: 1236 bytes 001429.642: gpioman: gpioman_get_pin_num: pin EMMC_ENABLE not defined 001438.405: HDMI0: hdmi_pixel_encoding: 162000000 001770.373: brfs: File read: /mfs/sd/rootfs-piCore-14.0.gz 001770.399: Loaded 'rootfs-piCore-14.0.gz' to 0x0 size 0x341af7 001770.450: brfs: File read: 3414775 bytes 001898.751: brfs: File read: /mfs/sd/modules-6.1.25-piCore.gz 001898.776: Loaded 'modules-6.1.25-piCore.gz' to 0x341af8 size 0x153024 001906.605: initramfs loaded to 0x1bb5b000 (size 0x494b1b) 001906.629: kernel=kernel6125.img 001906.655: brfs: File read: 1388580 bytes 001911.268: dtb_file 'bcm2708-rpi-zero-w.dtb' 001916.353: brfs: File read: /mfs/sd/bcm2708-rpi-zero-w.dtb 001916.375: Loaded 'bcm2708-rpi-zero-w.dtb' to 0x100 size 0x7690 001930.182: brfs: File read: 30352 bytes 001984.315: brfs: File read: /mfs/sd/config.txt 001984.632: dtparam: i2c_arm=on 001993.567: brfs: File read: 1236 bytes 002000.707: brfs: File read: /mfs/sd/overlays/hifiberry-dac.dtbo 002011.005: Loaded overlay 'hifiberry-dac' 002042.356: brfs: File read: 655 bytes 002048.136: brfs: File read: /mfs/sd/cmdline.txt 002048.173: Read command line from file 'cmdline.txt': 002048.190: 'zswap.compressor=lz4 zswap.zpool=z3fold console=tty1 root=/dev/ram0 rootwait quiet nortc loglevel=3 noembed' 002507.190: brfs: File read: 108 bytes 003115.582: brfs: File read: /mfs/sd/kernel6125.img 003115.608: Loaded 'kernel6125.img' to 0x8000 size 0x5f9900 003115.644: Device tree loaded to 0x1bb53500 (size 0x7aa3) 003117.514: gpioman: gpioman_get_pin_num: pin SDCARD_CONTROL_POWER not defined 007639.850: vchiq_core: vchiq_init_state: slot_zero = 0x97980000, is_master = 1 007645.050: hdmi: HDMI:hdmi_get_state is deprecated, use hdmi_get_display_state instead 007651.315: TV service:host side not connected, dropping notification 0x00000002, 0x00000002, 0x0000003a ```

aplay -l

``` **** List of PLAYBACK Hardware Devices **** ALSA lib conf.c:4556:(snd_config_update_r) Cannot access file /usr/local/share/alsa/alsa.conf ALSA lib control.c:1529:(snd_ctl_open_noupdate) Invalid CTL hw:0 aplay: device_list:286: control open (0): No such file or directory ```

Full config.txt

```config dtoverlay= # Discard HAT overlays # For more options and information see # http://www.raspberrypi.org/documentation/configuration/config-txt.md # Some settings may impact device functionality. See link above for details # # For Device-tree overlays, please reference overlays/README on the boot partition. [PI0] initramfs rootfs-piCore-14.0.gz,modules-6.1.25-piCore.gz followkernel kernel kernel6125.img [ALL] cmdline cmdline.txt # If you are experiencing device tree problems, set this and reboot. # Check dmesg and sudo vclog --msg. dtdebug=on # Linux >= 5.4 changed some internal structures that make it incompatible # with device-tree overlays of previous versions. Therefore, the hardware # configuration that is stored in the onboard EEPROM of some DAC cards might # not load correctly. You can read more at the HiFiBerry blog: # www.hifiberry.com/blog/configuration-changes-in-linux-5-4 #force_eeprom_read=0 # DEBUG: Enable i2c explicitly for probing with i2cdetect. dtparam=i2c_arm=on # Additional overlays and parameters are documented /boot/overlays/README # Enable audio (loads snd_bcm2835) # Commented out as we're wearing a DAC hat. #dtparam=audio=on # Add overlay for HiFi DAC hat. dtoverlay=hifiberry-dac ```

Additional context

Other overlays of the same vintage likely also need to be updated, such as hifiberry-dacplus and i2c-dac.

pelwell commented 11 months ago

Install RPiOS on a spare SD card and confirm that it also doesn't work, then we'll look at it.

j-schambacher commented 11 months ago

The standard Hifiberry DAC does not have any I2C controlled device therefore i2cdetect won't show any DAC device. The aplay -l messages seem strange and may lead to some broken installation. Please follow pelwell's advice and make a clean install.

hackerb9 commented 11 months ago

My apologies. I misunderstood #4898 to say that an i2s device should be expected to show up on the i2c bus with i2cdetect. That is not the case as my DAC is now working and it still does not show up with i2cdetect. (For anyone else who is using piCore and has the same problem, it was fixed by running tce-load -wi alsa.tcz).

pelwell commented 11 months ago

No problem - thanks for letting us know.