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

Commit cb52699

Browse files
authored
Merge branch 'nix-community:master' into master
2 parents d3c6ae3 + 3bfda6a commit cb52699

File tree

5 files changed

+65
-49
lines changed

5 files changed

+65
-49
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: update-flake-lock
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 0 * * 0'
7+
8+
permissions:
9+
contents: write
10+
pull-requests: write
11+
12+
jobs:
13+
lockfile:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
18+
19+
- name: Install nix
20+
uses: DeterminateSystems/nix-installer-action@e50d5f73bfe71c2dd0aa4218de8f4afa59f8f81d # v16
21+
22+
- name: Update flake.lock
23+
uses: DeterminateSystems/update-flake-lock@a2bbe0274e3a0c4194390a1e445f734c597ebc37 # v24

flake.lock

Lines changed: 11 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flake.nix

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,15 @@
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
6-
u-boot-src = {
7-
flake = false;
8-
url = "https://ftp.denx.de/pub/u-boot/u-boot-2024.07.tar.bz2";
9-
};
106
rpi-linux-stable-src = {
117
flake = false;
128
url = "github:raspberrypi/linux/stable_20241008";
139
};
14-
rpi-linux-6_6_67-src = {
10+
rpi-linux-6_6_78-src = {
1511
flake = false;
1612
url = "github:raspberrypi/linux/rpi-6.6.y";
1713
};
18-
rpi-linux-6_12_11-src = {
14+
rpi-linux-6_12_17-src = {
1915
flake = false;
2016
url = "github:raspberrypi/linux/rpi-6.12.y";
2117
};

overlays/default.nix

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
1-
{ u-boot-src
2-
, rpi-linux-stable-src
3-
, rpi-linux-6_6_67-src
4-
, rpi-linux-6_12_11-src
1+
{ rpi-linux-stable-src
2+
, rpi-linux-6_6_78-src
3+
, rpi-linux-6_12_17-src
54
, rpi-firmware-src
65
, rpi-firmware-nonfree-src
76
, rpi-bluez-firmware-src
@@ -11,9 +10,9 @@ final: prev:
1110
let
1211
versions = {
1312
v6_6_51.src = rpi-linux-stable-src;
14-
v6_6_67.src = rpi-linux-6_6_67-src;
15-
v6_12_11 = {
16-
src = rpi-linux-6_12_11-src;
13+
v6_6_78.src = rpi-linux-6_6_78-src;
14+
v6_12_17 = {
15+
src = rpi-linux-6_12_17-src;
1716
patches = [
1817
{
1918
name = "remove-readme-target.patch";
@@ -63,6 +62,7 @@ let
6362
features.efiBootStub = false;
6463
kernelPatches =
6564
if kernel ? "patches" then kernel.patches else [ ];
65+
ignoreConfigErrors = true;
6666
}).overrideAttrs
6767
(oldAttrs: {
6868
postConfigure = ''
@@ -83,14 +83,10 @@ in
8383
compressFirmwareZstd = x: x;
8484

8585
# provide generic rpi arm64 u-boot
86-
uboot-rpi-arm64 = final.buildUBoot rec {
86+
uboot-rpi-arm64 = final.buildUBoot {
8787
defconfig = "rpi_arm64_defconfig";
8888
extraMeta.platforms = [ "aarch64-linux" ];
8989
filesToInstall = [ "u-boot.bin" ];
90-
version = "2024.04";
91-
patches = [ ];
92-
makeFlags = [ ];
93-
src = u-boot-src;
9490
# In raspberry pi sbcs the firmware manipulates the device tree in
9591
# a variety of ways before handing it off to the linux kernel. [1]
9692
# Since we have installed u-boot in place of a linux kernel we may
@@ -118,7 +114,7 @@ in
118114
# rpi kernels and firmware are available at
119115
# `pkgs.rpi-kernels.<VERSION>.<BOARD>'.
120116
#
121-
# For example: `pkgs.rpi-kernels.v6_6_67.bcm2712'
117+
# For example: `pkgs.rpi-kernels.v6_6_78.bcm2712'
122118
rpi-kernels = rpi-kernels (
123119
final.lib.cartesianProduct
124120
{ board = boards; version = (builtins.attrNames versions); }

rpi/default.nix

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ in
7777

7878
package = mkPackageOption pkgs "uboot-rpi-arm64" { };
7979
};
80+
serial-console = {
81+
enable = mkOption {
82+
default = true;
83+
type = types.bool;
84+
description = ''
85+
Whether to enable a console on serial0.
86+
87+
Corresponds with raspi-config's setting
88+
"Would you like a login shell to be accessible over serial?"
89+
'';
90+
};
91+
};
8092
};
8193
};
8294

@@ -319,11 +331,14 @@ in
319331
boot = {
320332
kernelParams =
321333
if cfg.uboot.enable then [ ]
322-
else [
323-
"console=tty1"
324-
# https://github.com/raspberrypi/firmware/issues/1539#issuecomment-784498108
325-
"console=serial0,115200n8"
326-
"init=/sbin/init"
334+
else builtins.concatLists [
335+
[ "console=tty1" ]
336+
(if cfg.serial-console.enable then [
337+
# https://github.com/raspberrypi/firmware/issues/1539#issuecomment-784498108
338+
"console=serial0,115200n8"
339+
] else [ ]
340+
)
341+
[ "init=/sbin/init" ]
327342
];
328343
initrd = {
329344
availableKernelModules = [

0 commit comments

Comments
 (0)