mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 03:56:03 +01:00
remove outdated comment
This commit is contained in:
parent
3375c37c2c
commit
336a0cf070
1 changed files with 22 additions and 23 deletions
|
|
@ -73,19 +73,6 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
boot.kernelParams =
|
|
||||||
if cfg.uboot.enable then [ ]
|
|
||||||
else [
|
|
||||||
# This is ugly and fragile, but the sdImage image has an msdos
|
|
||||||
# table, so the partition table id is a 1-indexed hex
|
|
||||||
# number. So, we drop the hex prefix and stick on a "02" to
|
|
||||||
# refer to the root partition.
|
|
||||||
"root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
|
|
||||||
"rootfstype=ext4"
|
|
||||||
"fsck.repair=yes"
|
|
||||||
"rootwait"
|
|
||||||
"init=/sbin/init"
|
|
||||||
];
|
|
||||||
systemd.services = {
|
systemd.services = {
|
||||||
"raspberry-pi-firmware-migrate" =
|
"raspberry-pi-firmware-migrate" =
|
||||||
{
|
{
|
||||||
|
|
@ -309,16 +296,28 @@ in
|
||||||
else [ rpi-overlay ];
|
else [ rpi-overlay ];
|
||||||
};
|
};
|
||||||
boot = {
|
boot = {
|
||||||
initrd.availableKernelModules = [
|
kernelParams =
|
||||||
|
if cfg.uboot.enable then [ ]
|
||||||
|
else [
|
||||||
|
# This is ugly and fragile, but the sdImage image has an msdos
|
||||||
|
# table, so the partition table id is a 1-indexed hex
|
||||||
|
# number. So, we drop the hex prefix and stick on a "02" to
|
||||||
|
# refer to the root partition.
|
||||||
|
"root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
|
||||||
|
"rootfstype=ext4"
|
||||||
|
"fsck.repair=yes"
|
||||||
|
"rootwait"
|
||||||
|
"init=/sbin/init"
|
||||||
|
];
|
||||||
|
initrd = {
|
||||||
|
availableKernelModules = [
|
||||||
"usbhid"
|
"usbhid"
|
||||||
"usb_storage"
|
"usb_storage"
|
||||||
"vc4"
|
"vc4"
|
||||||
"pcie_brcmstb" # required for the pcie bus to work
|
"pcie_brcmstb" # required for the pcie bus to work
|
||||||
"reset-raspberrypi" # required for vl805 firmware to load
|
"reset-raspberrypi" # required for vl805 firmware to load
|
||||||
];
|
];
|
||||||
# This pin is not necessary, it would be fine to replace it with
|
};
|
||||||
# `kernel`. It is helpful to ensure
|
|
||||||
# cache hits for kernel builds though.
|
|
||||||
kernelPackages = pkgs.linuxPackagesFor kernel;
|
kernelPackages = pkgs.linuxPackagesFor kernel;
|
||||||
loader = {
|
loader = {
|
||||||
grub.enable = lib.mkDefault false;
|
grub.enable = lib.mkDefault false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue