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

apply-overlays-dtmerge for Pi4 seems to fail on 22.05 #503

Closed
WizardUli opened this issue Nov 15, 2022 · 3 comments
Closed

apply-overlays-dtmerge for Pi4 seems to fail on 22.05 #503

WizardUli opened this issue Nov 15, 2022 · 3 comments

Comments

@WizardUli
Copy link

{
  hardware = {
    raspberry-pi."4".apply-overlays-dtmerge.enable = true;

    deviceTree = {
      overlays = [
        {
          name = "vc4-kms-v3d-pi4";
          dtboFile = "${config.boot.kernelPackages.kernel}/dtbs/overlays/vc4-kms-v3d-pi4.dtbo";
        }
      ];
    };
  };
}

where kernelPackages = pkgs.linuxKernel.packages.linux_rpi4;
fails with

./broadcom -> /nix/store/pc46arc6g6bkx9ny2lsi9hparhizis0q-device-tree-overlays/./broadcom
'./broadcom/bcm2711-rpi-400.dtb' -> '/nix/store/pc46arc6g6bkx9ny2lsi9hparhizis0q-device-tree-overlays/./broadcom/bcm2711-rpi-400.dtb'
'./broadcom/bcm2711-rpi-4-b.dtb' -> '/nix/store/pc46arc6g6bkx9ny2lsi9hparhizis0q-device-tree-overlays/./broadcom/bcm2711-rpi-4-b.dtb'
'./broadcom/bcm2711-rpi-cm4.dtb' -> '/nix/store/pc46arc6g6bkx9ny2lsi9hparhizis0q-device-tree-overlays/./broadcom/bcm2711-rpi-cm4.dtb'
Applying overlay vc4-kms-v3d-pi4 to bcm2711-rpi-400.dtb
cp: cannot create regular file '/nix/store/vrs5pi8qi943svd9l4vmz2bmz984klcj-linux-5.15.32-1.20220331/dtbs/overlays/vc4-kms-v3d-pi4.dtbo.dtbo': Permission denied

Is this a regression or am I doing something wrong?
Thanks.

@Mic92
Copy link
Member

Mic92 commented Nov 16, 2022

cc @carlossless @ettom

@carlossless
Copy link
Contributor

carlossless commented Dec 17, 2022

Hey @WizardUli, I've reproduced the issue and verified that the fix works in #518, hoping to get it merged soon It's merged.

Can you verify it works now?

@Mic92
Copy link
Member

Mic92 commented Jan 24, 2023

close for now, we can re-open if it does not work.

@Mic92 Mic92 closed this as completed Jan 24, 2023
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

3 participants