Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit f872d77

Browse files
committed
shuffle kernel params
1 parent ee53143 commit f872d77

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

rpi/default.nix

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -315,14 +315,8 @@ in
315315
kernelParams =
316316
if cfg.uboot.enable then [ ]
317317
else [
318-
# This is ugly and fragile, but the sdImage image has an msdos
319-
# table, so the partition table id is a 1-indexed hex
320-
# number. So, we drop the hex prefix and stick on a "02" to
321-
# refer to the root partition.
322-
# "root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
323-
# "rootfstype=ext4"
324-
"fsck.repair=yes"
325-
"rootwait"
318+
"console=tty1"
319+
"console=serial0,115200n8"
326320
"init=/sbin/init"
327321
];
328322
initrd = {

sd-image/default.nix

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,16 @@
99
boot.consoleLogLevel = lib.mkDefault 7;
1010

1111
# https://github.com/raspberrypi/firmware/issues/1539#issuecomment-784498108
12-
boot.kernelParams = [ "console=serial0,115200n8" "console=tty1" ];
12+
boot.kernelParams = [
13+
# This is ugly and fragile, but the sdImage image has an msdos
14+
# table, so the partition table id is a 1-indexed hex
15+
# number. So, we drop the hex prefix and stick on a "02" to
16+
# refer to the root partition.
17+
"root=PARTUUID=${lib.strings.removePrefix "0x" config.sdImage.firmwarePartitionID}-02"
18+
"rootfstype=ext4"
19+
"fsck.repair=yes"
20+
"rootwait"
21+
];
1322

1423
sdImage =
1524
let

0 commit comments

Comments
 (0)