Posts: 3
Threads: 1
Joined: Sep 2019
Reputation:
0
Hi,
Have a HiFiberry Digi Pro (the one with I2S master mode).
Works great with Rpi 3 + Moode 5.x.
Now I'm updated to Rpi 4, 4GB version (and also to Moode 6.2.1). USB audio with external DAC works great, but cannot get the HiFiberry to work.
If I set it as I2S device, reboot and setup MPD, then it gives an error when I try to play music.
The message is: MPD error: Failed to open "ALSA defaul" [alsa]; Failed to open ALSA device "hw:0,0": No such file or directory
Looks like the HiFiberry driver did not install properly. There could be many reasons for this...
What steps to take to diagnose this?
Anyone got such a setup working?
Thanks ahead!
Rob
Posts: 14,774
Threads: 341
Joined: Mar 2018
Reputation:
608
According to Hifiberry FAQ it should work.
https://www.hifiberry.com/blog/the-raspberry-pi-4/
1. Reseat the board
2. Post the output from the commands below and I'll have a look. Remember to paste the output into code boxes (5th button from right on the toolbar.
Code: cat /boot/config.txt
Posts: 3
Threads: 1
Joined: Sep 2019
Reputation:
0
Hi.
I tried the full version of Rasbian with the Digi Pro on the RPi 4, also there there is a problem (it doesn't show up in the list of audio devices). When I place the same SDCARD in a RPi 3, it works right away on the same board.
Then I installed Moode 6.2.0 on a RPi 3 with the same board, Digi Pro works right away, but RPi 4 does not.
Looks like Moode is not to blame.
The requested info below.
Thanks for looking into this.
Code: pi@moode:~ $ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.19.69-v7l+ (dom@buildbot) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1256 SMP Fri Aug 30 16:37:01 BST 2019
[ 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 64 MiB at 0x0000000037400000
[ 0.000000] On node 0 totalpages: 1012736
[ 0.000000] DMA zone: 1728 pages used for memmap
[ 0.000000] DMA zone: 0 pages reserved
[ 0.000000] DMA zone: 196608 pages, LIFO batch:63
[ 0.000000] HighMem zone: 816128 pages, LIFO batch:63
[ 0.000000] random: get_random_bytes called from start_kernel+0xc0/0x4e8 with crng_init=0
[ 0.000000] percpu: Embedded 17 pages/cpu s39488 r8192 d21952 u69632
[ 0.000000] pcpu-alloc: s39488 r8192 d21952 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: 1011008
[ 0.000000] Kernel command line: coherent_pool=1M 8250.nr_uarts=0 cma=64M bcm2708_fb.fbwidth=1920 bcm2708_fb.fbheight=1280 bcm2708_fb.fbswap=1 smsc95xx.macaddr=DC:A6:32:09:03:CC vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 net.ifnames=0 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=PARTUUID=17869b7d-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
[ 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: 3932708K/4050944K available (8192K kernel code, 661K rwdata, 2348K rodata, 2048K init, 850K bss, 52700K reserved, 65536K cma-reserved, 3198976K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0x(ptrval) - 0x(ptrval) (10208 kB)
.init : 0x(ptrval) - 0x(ptrval) (2048 kB)
.data : 0x(ptrval) - 0x(ptrval) ( 662 kB)
.bss : 0x(ptrval) - 0x(ptrval) ( 851 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 28120 entries in 83 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.000005] sched_clock: 56 bits at 54MHz, resolution 18ns, wraps every 4398046511102ns
[ 0.000022] Switching to timer-based delay loop, resolution 18ns
[ 0.000247] Console: colour dummy device 80x30
[ 0.000714] console [tty1] enabled
[ 0.000765] Calibrating delay loop (skipped), value calculated using timer frequency.. 108.00 BogoMIPS (lpj=540000)
[ 0.000808] pid_max: default: 32768 minimum: 301
[ 0.001082] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001115] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.001875] CPU: Testing write buffer coherency: ok
[ 0.002294] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002940] Setting up static identity map for 0x200000 - 0x20003c
[ 0.003112] rcu: Hierarchical SRCU implementation.
[ 0.003980] smp: Bringing up secondary CPUs ...
[ 0.004873] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.005876] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.006843] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.006976] smp: Brought up 1 node, 4 CPUs
[ 0.007041] SMP: Total of 4 processors activated (432.00 BogoMIPS).
[ 0.007064] CPU: All CPU(s) started in HYP mode.
[ 0.007084] CPU: Virtualization extensions available.
[ 0.007862] devtmpfs: initialized
[ 0.018096] VFP support v0.3: implementor 41 architecture 3 part 40 variant 8 rev 0
[ 0.018331] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.018372] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.020507] pinctrl core: initialized pinctrl subsystem
[ 0.021313] NET: Registered protocol family 16
[ 0.024232] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.025658] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.025689] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.025892] Serial: AMBA PL011 UART driver
[ 0.028826] bcm2835-mbox fe00b880.mailbox: mailbox enabled
[ 0.064322] bcm2835-dma fe007000.dma: DMA legacy API manager at (ptrval), dmachans=0x1
[ 0.066375] vgaarb: loaded
[ 0.066762] SCSI subsystem initialized
[ 0.066963] usbcore: registered new interface driver usbfs
[ 0.067034] usbcore: registered new interface driver hub
[ 0.067144] usbcore: registered new device driver usb
[ 0.080342] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-08-30 16:38, variant start
[ 0.090086] raspberrypi-firmware soc:firmware: Firmware hash is 402eefc3a99027ff9a0b5ebd64b5ddc8d7c8b2f3
[ 0.101688] clocksource: Switched to clocksource arch_sys_counter
[ 0.178776] VFS: Disk quotas dquot_6.6.0
[ 0.178873] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.179038] FS-Cache: Loaded
[ 0.179228] CacheFiles: Loaded
[ 0.188552] NET: Registered protocol family 2
[ 0.189202] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[ 0.189248] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.189333] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.189417] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.189552] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.189597] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.189910] NET: Registered protocol family 1
[ 0.190455] RPC: Registered named UNIX socket transport module.
[ 0.190481] RPC: Registered udp transport module.
[ 0.190503] RPC: Registered tcp transport module.
[ 0.190524] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.190553] PCI: CLS 0 bytes, default 64
[ 0.193484] Initialise system trusted keyrings
[ 0.193695] workingset: timestamp_bits=14 max_order=20 bucket_order=6
[ 0.202574] FS-Cache: Netfs 'nfs' registered for caching
[ 0.203066] NFS: Registering the id_resolver key type
[ 0.203111] Key type id_resolver registered
[ 0.203133] Key type id_legacy registered
[ 0.203164] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.205406] Key type asymmetric registered
[ 0.205432] Asymmetric key parser 'x509' registered
[ 0.205554] bounce: pool size: 64 pages
[ 0.205605] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 0.205783] io scheduler noop registered
[ 0.205807] io scheduler deadline registered (default)
[ 0.205970] io scheduler cfq registered
[ 0.205994] io scheduler mq-deadline registered (default)
[ 0.206017] io scheduler kyber registered
[ 0.252222] brcm-pcie fd500000.pcie: dmabounce: initialised - 32768 kB, threshold 0x00000000c0000000
[ 0.252268] brcm-pcie fd500000.pcie: could not get clock
[ 0.252343] brcm-pcie fd500000.pcie: host bridge /scb/pcie@7d500000 ranges:
[ 0.252394] brcm-pcie fd500000.pcie: MEM 0x600000000..0x603ffffff -> 0xf8000000
[ 0.311718] brcm-pcie fd500000.pcie: link up, 5.0 Gbps x1 (!SSC)
[ 0.311985] brcm-pcie fd500000.pcie: PCI host bridge to bus 0000:00
[ 0.312017] pci_bus 0000:00: root bus resource [bus 00-01]
[ 0.312047] pci_bus 0000:00: root bus resource [mem 0x600000000-0x603ffffff] (bus address [0xf8000000-0xfbffffff])
[ 0.312109] pci 0000:00:00.0: [14e4:2711] type 01 class 0x060400
[ 0.312247] pci 0000:00:00.0: PME# supported from D0 D3hot
[ 0.314981] PCI: bus0: Fast back to back transfers disabled
[ 0.315012] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 0.315189] pci 0000:01:00.0: [1106:3483] type 00 class 0x0c0330
[ 0.315249] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00000fff 64bit]
[ 0.315424] pci 0000:01:00.0: PME# supported from D0 D3cold
[ 0.318052] PCI: bus1: Fast back to back transfers disabled
[ 0.318082] pci_bus 0000:01: busn_res: [bus 01] end is updated to 01
[ 0.318127] pci 0000:00:00.0: BAR 8: assigned [mem 0x600000000-0x6000fffff]
[ 0.318162] pci 0000:01:00.0: BAR 0: assigned [mem 0x600000000-0x600000fff 64bit]
[ 0.318210] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.318240] pci 0000:00:00.0: bridge window [mem 0x600000000-0x6000fffff]
[ 0.318464] pcieport 0000:00:00.0: enabling device (0140 -> 0142)
[ 0.318645] pcieport 0000:00:00.0: Signaling PME with IRQ 54
[ 0.318815] pcieport 0000:00:00.0: AER enabled with IRQ 54
[ 0.318965] pci 0000:01:00.0: enabling device (0140 -> 0142)
[ 0.319355] bcm2708_fb soc:fb: FB found 1 display(s)
[ 0.362288] Console: switching to colour frame buffer device 240x80
[ 0.374225] bcm2708_fb soc:fb: Registered framebuffer for display 0, size 1920x1280
[ 0.377156] iproc-rng200 fe104000.rng: hwrng registered
[ 0.377427] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 0.378012] vc-sm: Videocore shared memory driver
[ 0.378450] gpiomem-bcm2835 fe200000.gpiomem: Initialised: Registers at 0xfe200000
[ 0.388385] brd: module loaded
[ 0.397934] loop: module loaded
[ 0.398707] Loading iSCSI transport class v2.0-870.
[ 0.400360] libphy: Fixed MDIO Bus: probed
[ 0.400831] bcmgenet fd580000.genet: failed to get enet clock
[ 0.400906] bcmgenet fd580000.genet: GENET 5.0 EPHY: 0x0000
[ 0.400978] bcmgenet fd580000.genet: failed to get enet-wol clock
[ 0.401053] bcmgenet fd580000.genet: failed to get enet-eee clock
[ 0.401135] bcmgenet: Skipping UMAC reset
[ 0.401408] unimac-mdio unimac-mdio.-19: DMA mask not set
[ 0.411716] libphy: bcmgenet MII bus: probed
[ 0.452218] unimac-mdio unimac-mdio.-19: Broadcom UniMAC MDIO bus at 0x(ptrval)
[ 0.453143] usbcore: registered new interface driver r8152
[ 0.453259] usbcore: registered new interface driver lan78xx
[ 0.453368] usbcore: registered new interface driver smsc95xx
[ 0.453622] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 0.453707] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 1
[ 0.456068] xhci_hcd 0000:01:00.0: hcc params 0x002841eb hci version 0x100 quirks 0x0000001000000890
[ 0.456318] genirq: irq_chip Brcm_MSI did not update eff. affinity mask of irq 55
[ 0.456998] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.457092] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.457171] usb usb1: Product: xHCI Host Controller
[ 0.457231] usb usb1: Manufacturer: Linux 4.19.69-v7l+ xhci-hcd
[ 0.457299] usb usb1: SerialNumber: 0000:01:00.0
[ 0.457851] hub 1-0:1.0: USB hub found
[ 0.457947] hub 1-0:1.0: 1 port detected
[ 0.458404] xhci_hcd 0000:01:00.0: xHCI Host Controller
[ 0.458481] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[ 0.458570] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[ 0.458965] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.19
[ 0.459057] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.459137] usb usb2: Product: xHCI Host Controller
[ 0.459196] usb usb2: Manufacturer: Linux 4.19.69-v7l+ xhci-hcd
[ 0.459265] usb usb2: SerialNumber: 0000:01:00.0
[ 0.459805] hub 2-0:1.0: USB hub found
[ 0.459899] hub 2-0:1.0: 4 ports detected
[ 0.461019] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.486640] dwc_otg fe980000.usb: base=(ptrval)
[ 0.686986] Core Release: 2.80a
[ 0.687042] Setting default values for core params
[ 0.690115] Finished setting default values for core params
[ 0.893478] Using Buffer DMA mode
[ 0.896490] Periodic Transfer Interrupt Enhancement - disabled
[ 0.899520] Multiprocessor Interrupt Enhancement - disabled
[ 0.902553] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.905556] Dedicated Tx FIFOs mode
[ 0.908779] WARN::dwc_otg_hcd_init:1045: FIQ DMA bounce buffers: virt = f4fe7000 dma = 0x00000000f7544000 len=9024
[ 0.911894] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 0.926998] dwc_otg: Microframe scheduler enabled
[ 0.927073] WARN::hcd_init_fiq:457: FIQ on core 1
[ 0.930116] WARN::hcd_init_fiq:458: FIQ ASM at c07b5be0 length 36
[ 0.933134] WARN::hcd_init_fiq:497: MPHI regs_base at f0810200
[ 0.936152] dwc_otg fe980000.usb: DWC OTG Controller
[ 0.939148] dwc_otg fe980000.usb: new USB bus registered, assigned bus number 3
[ 0.941714] usb 1-1: new high-speed USB device number 2 using xhci_hcd
[ 0.942205] dwc_otg fe980000.usb: irq 38, io mem 0x00000000
[ 0.948198] Init: Port Power? op_state=1
[ 0.951209] Init: Power Port (0)
[ 0.954409] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.19
[ 0.957406] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.960398] usb usb3: Product: DWC OTG Controller
[ 0.963391] usb usb3: Manufacturer: Linux 4.19.69-v7l+ dwc_otg_hcd
[ 0.966377] usb usb3: SerialNumber: fe980000.usb
[ 0.969870] hub 3-0:1.0: USB hub found
[ 0.972926] hub 3-0:1.0: 1 port detected
[ 0.976535] dwc_otg: FIQ enabled
[ 0.976545] dwc_otg: NAK holdoff enabled
[ 0.976554] dwc_otg: FIQ split-transaction FSM enabled
[ 0.976567] Module dwc_common_port init
[ 0.976774] usbcore: registered new interface driver uas
[ 0.979840] usbcore: registered new interface driver usb-storage
[ 0.982961] mousedev: PS/2 mouse device common for all mice
[ 0.987012] bcm2835-wdt bcm2835-wdt: Broadcom BCM2835 watchdog timer
[ 0.990089] bcm2835-cpufreq: min=600000 max=1500000
[ 0.993570] sdhci: Secure Digital Host Controller Interface driver
[ 0.996459] sdhci: Copyright(c) Pierre Ossman
[ 0.999687] mmc-bcm2835 fe300000.mmcnr: could not get clk, deferring probe
[ 1.003036] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.008877] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.011977] hidraw: raw HID events driver (C) Jiri Kosina
[ 1.015124] usbcore: registered new interface driver usbhid
[ 1.018097] usbhid: USB HID core driver
[ 1.021904] vchiq: vchiq_init_state: slot_zero = (ptrval), is_master = 0
[ 1.026472] [vc_sm_connected_init]: start
[ 1.036394] [vc_sm_connected_init]: end - returning 0
[ 1.040447] Initializing XFRM netlink socket
[ 1.043479] NET: Registered protocol family 17
[ 1.046562] Key type dns_resolver registered
[ 1.049803] Registering SWP/SWPB emulation handler
[ 1.053379] registered taskstats version 1
[ 1.056340] Loading compiled-in X.509 certificates
[ 1.067023] uart-pl011 fe201000.serial: cts_event_workaround enabled
[ 1.070085] fe201000.serial: ttyAMA0 at MMIO 0xfe201000 (irq = 34, base_baud = 0) is a PL011 rev2
[ 1.076075] bcm2835-power bcm2835-power: Broadcom BCM2835 power domains driver
[ 1.079558] brcmstb_thermal fd5d2200.thermal: registered AVS TMON of-sensor driver
[ 1.083212] mmc-bcm2835 fe300000.mmcnr: mmc_debug:0 mmc_debug2:0
[ 1.086215] mmc-bcm2835 fe300000.mmcnr: DMA channel allocated
[ 1.114854] sdhci-iproc fe340000.emmc2: Linked as a consumer to regulator.1
[ 1.123126] usb 1-1: New USB device found, idVendor=2109, idProduct=3431, bcdDevice= 4.20
[ 1.126210] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[ 1.129280] usb 1-1: Product: USB2.0 Hub
[ 1.133703] hub 1-1:1.0: USB hub found
[ 1.136954] hub 1-1:1.0: 4 ports detected
[ 1.147406] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 1.150471] mmc0: SDHCI controller on fe340000.emmc2 [fe340000.emmc2] using ADMA
[ 1.154927] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.155903] of_cfs_init
[ 1.159593] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.161011] of_cfs_init: OK
[ 1.166970] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 1.170298] Waiting for root device PARTUUID=17869b7d-02...
[ 1.171655] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 1.215852] random: fast init done
[ 1.265868] mmc0: new ultra high speed DDR50 SDXC card at address aaaa
[ 1.270216] mmcblk0: mmc0:aaaa SC128 119 GiB
[ 1.276080] mmcblk0: p1 p2
[ 1.284013] mmc1: new high speed SDIO card at address 0001
[ 1.308666] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.311869] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.322610] devtmpfs: mounted
[ 1.331947] Freeing unused kernel memory: 2048K
[ 1.335316] Run /sbin/init as init process
[ 1.461734] usb 1-1.3: new high-speed USB device number 3 using xhci_hcd
[ 1.601346] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=0316, bcdDevice= 0.04
[ 1.604552] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 1.607690] usb 1-1.3: Product: Cyenne DSD DAC
[ 1.610842] usb 1-1.3: Manufacturer: Cyenne audio
[ 1.625914] input: Cyenne audio Cyenne DSD DAC as /devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.3/1-1.3:1.2/0003:0D8C:0316.0001/input/input0
[ 1.691931] hid-generic 0003:0D8C:0316.0001: input,hidraw0: USB HID v1.00 Device [Cyenne audio Cyenne DSD DAC] on usb-0000:01:00.0-1.3/input2
[ 1.735084] systemd[1]: System time before build time, advancing clock.
[ 1.827808] NET: Registered protocol family 10
[ 1.832405] Segment Routing with IPv6
[ 1.864208] 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)
[ 1.871989] systemd[1]: Detected architecture arm.
[ 1.900613] systemd[1]: Set hostname to <moode>.
[ 1.911764] systemd[1]: Failed to bump fs.file-max, ignoring: Invalid argument
[ 2.231593] systemd[1]: File /lib/systemd/system/systemd-journald.service:12 configures an IP firewall (IPAddressDeny=any), but the local system does not support BPF/cgroup based firewalling.
[ 2.235418] systemd[1]: Proceeding WITHOUT firewalling in effect! (This warning is only shown for the first loaded unit using IP firewalling.)
[ 2.413203] systemd[1]: /lib/systemd/system/winbind.service:8: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/winbindd.pid → /run/samba/winbindd.pid; please update the unit file accordingly.
[ 2.469604] systemd[1]: /lib/systemd/system/smbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/smbd.pid → /run/samba/smbd.pid; please update the unit file accordingly.
[ 2.497997] systemd[1]: /lib/systemd/system/nmbd.service:9: PIDFile= references path below legacy directory /var/run/, updating /var/run/samba/nmbd.pid → /run/samba/nmbd.pid; please update the unit file accordingly.
[ 2.571553] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.596258] random: systemd: uninitialized urandom read (16 bytes read)
[ 2.600878] systemd[1]: Listening on Journal Socket (/dev/log).
[ 2.610644] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.528824] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 3.640538] systemd-journald[115]: Received request to flush runtime journal from PID 1
[ 4.279269] rpivid-mem feb00000.hevc-decoder: rpivid-hevcmem initialised: Registers at 0xfeb00000 length 0x0000ffff
[ 4.279963] rpivid-mem feb10000.rpivid-local-intc: rpivid-intcmem initialised: Registers at 0xfeb10000 length 0x00000fff
[ 4.280753] rpivid-mem feb20000.h264-decoder: rpivid-h264mem initialised: Registers at 0xfeb20000 length 0x0000ffff
[ 4.285031] rpivid-mem feb30000.vp9-decoder: rpivid-vp9mem initialised: Registers at 0xfeb30000 length 0x0000ffff
[ 4.357365] vc_sm_cma: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.366273] media: Linux media interface: v0.10
[ 4.368350] bcm2835_vc_sm_cma_probe: Videocore shared memory driver
[ 4.372384] [vc_sm_connected_init]: start
[ 4.399307] [vc_sm_connected_init]: installed successfully
[ 4.415978] snd-rpi-wm8804 soc:sound: ASoC: CPU DAI (null) not registered - will retry
[ 4.419428] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 4.421016] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 4.442149] videodev: Linux video capture interface: v2.00
[ 4.518691] bcm2835_mmal_vchiq: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.531040] bcm2835_v4l2: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.564514] cfg80211: Loading compiled-in X.509 certificates for regulatory database
[ 4.612693] bcm2835_codec: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.665852] bcm2835-codec bcm2835-codec: Device registered as /dev/video10
[ 4.665868] bcm2835-codec bcm2835-codec: Loaded V4L2 decode
[ 4.674145] bcm2835-codec bcm2835-codec: Device registered as /dev/video11
[ 4.674160] bcm2835-codec bcm2835-codec: Loaded V4L2 encode
[ 4.683220] bcm2835-codec bcm2835-codec: Device registered as /dev/video12
[ 4.683235] bcm2835-codec bcm2835-codec: Loaded V4L2 isp
[ 4.683709] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 4.733499] cfg80211: Loaded X.509 cert 'sforshee: 00b28ddf47aef9cea7'
[ 4.818492] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 4.819893] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 4.826422] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 4.827161] usbcore: registered new interface driver brcmfmac
[ 4.827588] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 5.046776] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43455-sdio for chip BCM4345/6
[ 5.059261] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/6 wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[ 5.236395] usb 1-1.3: 1:3 : unsupported format bits 0x100000000
[ 5.244716] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 5.245852] snd-rpi-wm8804 soc:sound: ASoC: CODEC DAI wm8804-spdif not registered - will retry
[ 5.246523] usbcore: registered new interface driver snd-usb-audio
[ 5.295101] wm8804 1-003b: Linked as a consumer to regulator.2
[ 5.298471] wm8804 1-003b: Failed to read device ID: -121
[ 5.298803] wm8804: probe of 1-003b failed with error -121
[ 6.910631] random: crng init done
[ 6.910649] random: 7 urandom warning(s) missed due to ratelimiting
[ 6.978916] 8021q: 802.1Q VLAN Support v1.8
[ 7.153867] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 7.230580] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7.230777] brcmfmac: power management disabled
[ 7.443714] bcmgenet: Skipping UMAC reset
[ 7.561929] bcmgenet fd580000.genet: configuring instance for external RGMII (no delay)
[ 7.562181] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.631879] bcmgenet fd580000.genet eth0: Link is Down
[ 12.791901] bcmgenet fd580000.genet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 12.791940] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
Code: pi@moode:~ $ cat /boot/config.txt
disable_splash=1
disable_overscan=1
hdmi_drive=2
dtparam=i2c_arm=on
dtparam=i2s=on
dtparam=audio=off
dtoverlay=hifiberry-digi-pro
#dtoverlay=pi3-disable-wifi
#dtoverlay=pi3-disable-bt
Posts: 54
Threads: 15
Joined: Jun 2018
Reputation:
2
That's very interesting because I had exactly the same situation with a Pi2Design 502DAC Pro, which uses the hifiberry-digi-pro overlay. It works perfectly on a Pi 3b, not at all on a Pi 4b with exactly the same Moode SD card.
When I investigated with Pi2Design they weren't very confident in their design, said it had timing issues which was why they were now working on a follow-up product, and maybe the Pi 4 had just triggered the timing issue.
But if you're seeing the exact same thing with the Hifiberry card then perhaps it points to a more fundamental problem with the driver - both products use the WM8804 chip.
Posts: 14,774
Threads: 341
Joined: Mar 2018
Reputation:
608
I'd suggest testing with plain Raspbian Buster Lite to see if problem still occurs. If it does then post the issue with repro instructions on Hifiberry support Forum.
Try with different Linux kernels.
Code: # Kernel 4.19.69
echo "y" | sudo PRUNE_MODULES=1 rpi-update f8c5a8734cde51ab94e07c204c97563a65a68636
# Kernel 4.19.73
echo "y" | sudo PRUNE_MODULES=1 rpi-update 1507dd40dbaefba172bfac5a2a44e389c135f149
# Cleanup
sudo rm -rf /lib/modules.bak
sudo rm -rf /boot.bak
sudo reboot
Posts: 6,507
Threads: 188
Joined: Apr 2018
Reputation:
266
@ shanghai2004
The smoking gun in your dmesg output is:
Code: [ 5.298471] wm8804 1-003b: Failed to read device ID: -121
[ 5.298803] wm8804: probe of 1-003b failed with error -121
You can search the web on these messages but most of the hits are very old and refer either to the transition to device trees or to early HFB production problems.
I'd agree with @ aknaggbaugh that there's possibly a driver issue since your board works using the same distro on an RPi3B.
I just checked the HiFiBerry Community board. Back in June a user Alex posted
Quote:I did some testing with the rasp 4 and hifiberry digi+ pro.
For now, i used Raspbian Buster and VLC, the digi+ pro works as it should, no problem for music and video (dd and dts)
A lot of tweaks have occurred in the Raspbian distro since then as the RPF finds its footing with the new RPi4B. As @ Tim Curtis suggests, you could try different kernels to see if a regression slipped in recently.
Regards,
Kent
Posts: 3
Threads: 1
Joined: Sep 2019
Reputation:
0
09-23-2019, 06:46 PM
(This post was last modified: 09-23-2019, 06:47 PM by shanghai2004.)
Thanks a lot!
After reading your feedback and a few hours of testing, I think I found an hardware issue.
The WM8804 I'm very familiar with. This chip has hw mode or sw mode. In sw mode, the chip looks at the I2C for instructions. In hw mode, the chip uses config pins for configuration. The HiFiberry driver needs the chip to be in sw mode.
During power-on reset, the WM8804 looks at the I2C lines to see if it needs to be in sw or hw mode. Now I see with the RPi 4, the WM8804 goes into hw mode which makes the driver fail. When I manually reset the WM8804 (momentarily short pin 6 to GND) and then reboot Moode, everything suddenly works until the next power cycle.
I don't know why the WM8804 goes into hw mode with the RPI 4 and works properly with RPi 3. Might be a timing issue at power up. A solution maybe is making the WM8804 reset slower on power up. Still need to try this, requires soldering.
I've heard from one person using the HiFiberry Digi Pro that had absolutely no problem on the RPi 4, I will try to figure out why mine is different.
Thanks to everyone for the help so far!
Posts: 6,507
Threads: 188
Joined: Apr 2018
Reputation:
266
Posts: 54
Threads: 15
Joined: Jun 2018
Reputation:
2
(09-23-2019, 06:46 PM)shanghai2004 Wrote: Thanks a lot!
After reading your feedback and a few hours of testing, I think I found an hardware issue.
The WM8804 I'm very familiar with. This chip has hw mode or sw mode. In sw mode, the chip looks at the I2C for instructions. In hw mode, the chip uses config pins for configuration. The HiFiberry driver needs the chip to be in sw mode.
During power-on reset, the WM8804 looks at the I2C lines to see if it needs to be in sw or hw mode. Now I see with the RPi 4, the WM8804 goes into hw mode which makes the driver fail. When I manually reset the WM8804 (momentarily short pin 6 to GND) and then reboot Moode, everything suddenly works until the next power cycle.
I don't know why the WM8804 goes into hw mode with the RPI 4 and works properly with RPi 3. Might be a timing issue at power up. A solution maybe is making the WM8804 reset slower on power up. Still need to try this, requires soldering.
I've heard from one person using the HiFiberry Digi Pro that had absolutely no problem on the RPi 4, I will try to figure out why mine is different.
Thanks to everyone for the help so far!
Good find! I'll try this with my Pi2Design board when I have some time and see if the same reset works for that. I'd be interested in your hardware mod solution if you get it working.
Posts: 30
Threads: 0
Joined: Mar 2020
Reputation:
1
Hi,
I had the same issue when fitting my HIFiBerry Digi+ Pro onto a newly acquired RPI 4.
It appears that the ‘12S audio device’ setting is being lost after restarting the Pi.
What seems to work, is to set the ‘I2S audio device’ to the Digi+ Pro, then shutdown and pull the power lead.
Then after re-powering the Pi, the Digi+ Pro is set properly. Hope this works for you.
Phil.
|