mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-08 19:46:03 +01:00
set default kernel
This commit is contained in:
parent
9cac87a79c
commit
defb166e1e
5 changed files with 11 additions and 39 deletions
|
|
@ -3,22 +3,10 @@ rpi:
|
|||
|
||||
{
|
||||
imports = [ rpi ];
|
||||
nixpkgs = {
|
||||
overlays = [
|
||||
(final: prev: {
|
||||
raspberrypiWirelessFirmware =
|
||||
final.rpi-kernels.v5_15_87.wireless-firmware;
|
||||
raspberrypifw = final.rpi-kernels.v5_15_87.firmware;
|
||||
})
|
||||
];
|
||||
};
|
||||
boot.kernelPackages =
|
||||
pkgs.linuxPackagesFor (pkgs.rpi-kernels.v5_15_87.kernel);
|
||||
hardware.raspberry-pi.deviceTree = {
|
||||
base-dtb = "bcm2710-rpi-3-b-plus.dtb";
|
||||
# u-boot expects bcm2837-rpi-3-b-plus.dtb for the 3b+ (as of
|
||||
# 2020.04), although the kernel has 2710. We rename it to satisfy
|
||||
# u-boot for now.
|
||||
# u-boot expects bcm2837-rpi-3-b-plus.dtb for the 3b+ Rename the
|
||||
# raspberry pi dtb to match mainline linux and satisfy u-boot.
|
||||
postInstall = ''
|
||||
mv $out/broadcom/bcm2710-rpi-3-b-plus.dtb $out/broadcom/bcm2837-rpi-3-b-plus.dtb
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue