Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspberry-pi."4".audio.enable = true; broken: DTOVERLAY[error]: can't find symbol 'audio' #703

Open
Ramblurr opened this issue Aug 26, 2023 · 7 comments

Comments

@Ramblurr
Copy link

With these options

hardware.raspberry-pi."4".apply-overlays-dtmerge.enable = true;
hardware.raspberry-pi."4".audio.enable = true;
hardware.deviceTree.filter = "bcm2711-rpi-4-*.dtb";
boot.kernelPackages = pkgs.linuxPackages_rpi4;

It fails with:


building Nix...
building the system configuration...
these 3 derivations will be built:
  /nix/store/nziz4xlb0jdf11zxrpxghcr092bp09yw-dtbs-filtered.drv
  /nix/store/ilrh3myjvzdrj1161yy42y0q00fmwryk-device-tree-overlays.drv
  /nix/store/fqy0aj92zra5s20kydph2kg0754p97q6-nixos-system-ovos-23.05.3023.74e5bdc5478e.drv
building '/nix/store/nziz4xlb0jdf11zxrpxghcr092bp09yw-dtbs-filtered.drv'...
./broadcom -> /nix/store/qwjd22886siziv4cfg9yqhpk58arajgh-dtbs-filtered/./broadcom
'./broadcom/bcm2711-rpi-4-b.dtb' -> '/nix/store/qwjd22886siziv4cfg9yqhpk58arajgh-dtbs-filtered/./broadcom/bcm2711-rpi-4-b.dtb'
building '/nix/store/ilrh3myjvzdrj1161yy42y0q00fmwryk-device-tree-overlays.drv'...
./broadcom -> /nix/store/qp09vsgjqmymb3rs8my6n17268j17phv-device-tree-overlays/./broadcom
'./broadcom/bcm2711-rpi-4-b.dtb' -> '/nix/store/qp09vsgjqmymb3rs8my6n17268j17phv-device-tree-overlays/./broadcom/bcm2711-rpi-4-b.dtb'
Applying overlay hifiberry-dacplusadc to bcm2711-rpi-4-b.dtb... ok
Applying overlay rpi4-cpu-revision to bcm2711-rpi-4-b.dtb... ok
Applying overlay audio-on-overlay to bcm2711-rpi-4-b.dtb... DTOVERLAY[error]: can't find symbol 'audio'
error: builder for '/nix/store/ilrh3myjvzdrj1161yy42y0q00fmwryk-device-tree-overlays.drv' failed with exit code 1
error: 1 dependencies of derivation '/nix/store/fqy0aj92zra5s20kydph2kg0754p97q6-nixos-system-ovos-23.05.3023.74e5bdc5478e.drv' failed to build

Version info:

$ sudo nix-channel --list
nixos https://nixos.org/channels/nixos-23.05
nixos-hardware https://github.com/NixOS/nixos-hardware/archive/master.tar.gz
@jmoggr
Copy link

jmoggr commented Sep 4, 2023

I am experiencing the same issue.

@ri0t
Copy link

ri0t commented Oct 5, 2023

Yep, here too. I also don't get any SPI or i2c devices 😿

Edit: i2c-1 now appears. Still no SPI or audio.

@illegalprime
Copy link
Member

same issue. this is because a kernel update broke it. downgrading to a 5.x kernel worked for me:

  # these are pinned so pi kernel is 5.x, which keeps the audio overlay working
  inputs.nixpkgs.url = github:NixOS/nixpkgs/release-22.11;
  inputs.nixos-hardware.url = github:NixOS/nixos-hardware/a6aa8174fa61e55bd7e62d35464d3092aefe0421;

@Mic92
Copy link
Member

Mic92 commented Dec 13, 2023

Does upstream have an updated version of audio-on-overlay?

@vs49688
Copy link
Contributor

vs49688 commented Dec 25, 2023

Knowing virtually nothing about device trees, it looks like the symbol's been removed:
https://github.com/raspberrypi/linux/blob/342c7ee49e862edc30c893f141f55b9211b7a43b/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts#L290

audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_hdmi=0'}";

But if I'm reading this right, then boot.kernelParams = [ "snd_bcm2835.enable_hdmi=1" ]; should be all we need.

@ManOfDiamond
Copy link

Knowing virtually nothing about device trees, it looks like the symbol's been removed:
https://github.com/raspberrypi/linux/blob/342c7ee49e862edc30c893f141f55b9211b7a43b/arch/arm/boot/dts/bcm2711-rpi-cm4s.dts#L290

audio = <&chosen>,"bootargs{on='snd_bcm2835.enable_hdmi=1',off='snd_bcm2835.enable_hdmi=0'}";

But if I'm reading this right, then boot.kernelParams = [ "snd_bcm2835.enable_hdmi=1" ]; should be all we need.

I can confirm that this works

@mzabani
Copy link

mzabani commented Feb 10, 2024

This worked for me as well, with the caveat that you can't keep hardware.raspberry-pi."4".audio.enable = true; in the configuration (perhaps this is obvious to most, but wasn't to me).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants