rpi-netboot: doc kernel, clean up initrd, disable deviceTree

This commit is contained in:
Astro 2022-03-17 00:46:17 +01:00
parent 6c38f4e4f1
commit 1f511243da
2 changed files with 5 additions and 6 deletions

View File

@ -26,7 +26,6 @@
'';
};
};
# kernelPackages = lib.mkForce pkgs.linuxPackages_latest;
kernelParams = lib.mkForce [
"snd_bcm2835.enable_headphones=1"

View File

@ -8,6 +8,8 @@
gpu_mem=256
'';
};
# linuxPackages_latest doesn't boot
# FIXME: needs u-boot or .dtb?
kernelPackages = pkgs.linuxPackages_rpi4;
kernelParams = [
"verbose" "shell_on_fail"
@ -21,11 +23,6 @@
supportedFilesystems = lib.mkForce [
"nfs"
];
# TODO: still needed?
extraUtilsCommands = ''
cp -v ${pkgs.klibc}/lib/klibc/bin.static/nfsmount $out/bin
cp -v ${pkgs.glibc}/lib/libresolv.so.* $out/lib
'';
# keyboard support for debugging
availableKernelModules = [ "usb_storage" "usbhid" ];
};
@ -40,6 +37,9 @@
neededForBoot = true;
};
# don't build .dtb files as long as we don't use them
hardware.deviceTree.enable = false;
environment.systemPackages = with pkgs; [
libraspberrypi
raspberrypi-eeprom