nix-community / nixos-generators

Collection of image builders [maintainer=@Lassulus]
MIT License
1.76k stars 136 forks source link

Building on raspberrypi4 failed: Module sun4i-drm not found #266

Open Just-Ch33s3 opened 1 year ago

Just-Ch33s3 commented 1 year ago

i gave nixos-generators a try with:

nix-shell -p nixos-generators and (sudo) nixos-generate -f sd-aarch64 -c /etc/nixos/configuration.nix -o ~/nixos-sd-card.img

it resulted in the following error, would anyone be so kind an lead me to the correct path to solve the sun4i-drm module not beeing found ? Thanks in advance!

root module: sun4i-drm
modprobe: FATAL: Module sun4i-drm not found in directory /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21
building '/nix/store/i9xpv9gablyka8c3ycslcb3nnkpvj805-X-Restart-Triggers.drv'...
error: builder for '/nix/store/h4c30msxvjbwhnkmx6vnyn8djxm49zmk-linux-6.1.21-1.20230405-modules-shrunk.drv' failed with exit code 1;
       last 10 log lines:
       >   copying dependency: /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21/kernel/drivers/message/fusion/mptscsih.ko.xz
       >   copying dependency: /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21/kernel/drivers/message/fusion/mptspi.ko.xz
       > root module: vmxnet3
       >   copying dependency: /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21/kernel/drivers/net/vmxnet3/vmxnet3.ko.xz
       > root module: vsock
       >   copying dependency: /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21/kernel/net/vmw_vsock/vsock.ko.xz
       > root module: simplefb
       >   builtin dependency: simplefb
       > root module: sun4i-drm
       > modprobe: FATAL: Module sun4i-drm not found in directory /nix/store/0mh4d4v309arzf25w6b6k6if6knnmrr6-linux-6.1.21-1.20230405-modules/lib/modules/6.1.21
       For full logs, run 'nix-store -l /nix/store/h4c30msxvjbwhnkmx6vnyn8djxm49zmk-linux-6.1.21-1.20230405-modules-shrunk.drv'.
error: 1 dependencies of derivation '/nix/store/6fnqlhxz3nlsf6h44bb66ldkifld4lbs-stage-1-init.sh.drv' failed to build
error: 1 dependencies of derivation '/nix/store/ynds222r4m2vidf360hjpgmac92n0ivx-initrd-linux-6.1.21-1.20230405.drv' failed to build
error: 1 dependencies of derivation '/nix/store/i4kvw67skc4qnjsqy3862n1iapvf39ff-nixos-system-oisplayer-23.11pre512200.41c760571839.drv' failed to build
error: 1 dependencies of derivation '/nix/store/k49wrcnv9y61wq8w1yvl7bkjhfc78jfb-ext4-fs.img.zst.drv' failed to build
error: 1 dependencies of derivation '/nix/store/9sp8b70lbycqq9whl6yiniwvpy9h0yvp-nixos-sd-image-23.11pre512200.41c760571839-aarch64-linux.img.drv' failed to build
Just-Ch33s3 commented 1 year ago

solved it by adding a layer to my config; .... let ...

overlay = final: super: { makeModulesClosure = x: super.makeModulesClosure (x // { allowMissing = true; }); };

in { ...

add overlay

nixpkgs.overlays = [ overlay ]; }