set default kernel

This commit is contained in:
Travis Staton 2023-01-27 23:21:47 -05:00
parent 9cac87a79c
commit defb166e1e
5 changed files with 11 additions and 39 deletions

View file

@ -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
'';