From bf78a7d618fc68caec7f692fe2f65b81f4268b67 Mon Sep 17 00:00:00 2001 From: magic_rb Date: Sat, 9 Nov 2024 17:05:11 +0100 Subject: [PATCH] `hela`: update kernel Signed-off-by: magic_rb --- nixos/common/nixpkgs.nix | 11 ++++++++++- nixos/systems/hela/default.nix | 26 +++++++++----------------- overlays/linux/bpi-r4.nix | 10 +++++----- 3 files changed, 24 insertions(+), 23 deletions(-) diff --git a/nixos/common/nixpkgs.nix b/nixos/common/nixpkgs.nix index 4883438..f5b3e7a 100644 --- a/nixos/common/nixpkgs.nix +++ b/nixos/common/nixpkgs.nix @@ -1,6 +1,7 @@ { inputs', lib, + config, ... }: let inherit @@ -24,6 +25,14 @@ in { trusted-public-keys = [ "redalder-nix-cache-1:8t4zBJWgVtrfAOJ45iNHEqA/dDFV47Sr1sGa8ME9ru0=" ]; - experimental-features = ["flakes" "nix-command" "ca-derivations" "recursive-nix" "dynamic-derivations" "pipe-operators"]; + experimental-features = + [ + "flakes" + "nix-command" + "ca-derivations" + "recursive-nix" + "dynamic-derivations" + ] + ++ (lib.optional (lib.versionAtLeast config.nix.package.version "2.24") "pipe-operators"); }; } diff --git a/nixos/systems/hela/default.nix b/nixos/systems/hela/default.nix index c3e7eab..9637d89 100644 --- a/nixos/systems/hela/default.nix +++ b/nixos/systems/hela/default.nix @@ -81,7 +81,7 @@ in { ppp-slan = mkMtuOption (mtu.slan-vlan - 24); }; ethaddr = { - sw = mkEthAddrOption "5e:f3:21:5a:80:f6"; + sw = mkEthAddrOption "ea:34:07:e4:7c:6a"; sfp0 = mkEthAddrOption "86:a9:22:2c:dd:6c"; sfp1 = mkEthAddrOption "16:5c:7f:42:c7:76"; wan = mkEthAddrOption "fe:39:64:d0:e4:9b"; @@ -153,6 +153,11 @@ in { mac-address = [${config.bananapi.ethaddr.lan1.space}]; label = "lan1"; }; + + port@6 { + mac-address = [${config.bananapi.ethaddr.sw.space}]; + label = "sw"; + }; }; }; @@ -161,14 +166,17 @@ in { __overlay__ { mac@0 { mac-address = [${config.bananapi.ethaddr.sw.space}]; + label = "sw"; }; mac@1 { mac-address = [${config.bananapi.ethaddr.sfp0.space}]; + label = "sfp0"; }; mac@2 { mac-address = [${config.bananapi.ethaddr.sfp1.space}]; + label = "sfp1"; }; }; }; @@ -198,22 +206,6 @@ in { "pstore_blk.kmsg_size=128" "best_effort=y" ]; - boot.kernelPatches = [ - { - name = "Add software padding processing in Ethernet Tx path."; - patch = pkgs.fetchpatch { - url = "https://github.com/frank-w/BPI-Router-Linux/commit/e24807c0681f795246656fed01b9d2d39558f45c.patch"; - hash = "sha256-cOa2KSnjeTTWY2TXim/jeYAyPzDqsNStNXdg4dVwAlI="; - }; - } - { - name = "Fix software padding processing in Ethernet Tx path."; - patch = pkgs.fetchpatch { - url = "https://github.com/frank-w/BPI-Router-Linux/commit/dc4afd4c934f0a3d3c7a0131d6d0d8078565dcb6.patch"; - hash = "sha256-PDB8i/dogBKgH8x7cy4/BZTAgmI5CsGLSBXbvOyMndo="; - }; - } - ]; disko.rootMountPoint = "/mnt/bpi-r4"; disko.devices = { diff --git a/overlays/linux/bpi-r4.nix b/overlays/linux/bpi-r4.nix index fe80fbc..9b61788 100644 --- a/overlays/linux/bpi-r4.nix +++ b/overlays/linux/bpi-r4.nix @@ -5,14 +5,14 @@ ... } @ args: (buildLinux (args // { - version = "6.10-bpi-r4"; - modDirVersion = "6.10.0-bpi-r4"; + version = "6.11-bpi-r4"; + modDirVersion = "6.11.0-bpi-r4"; src = fetchFromGitHub { owner = "frank-w"; repo = "BPI-Router-Linux"; - rev = "a5f209f3f88daf5bacaab883ca30d16d88ff0506"; - hash = "sha256-bcgDdJrmHBWBhoy4TynODwG6BRL38tVKHAO6J8GR7IY="; + rev = "7a99830e634e841ea97796c35bbe0cf8e038ad9f"; + hash = "sha256-6ng5eY8yM01asQjyF6IE1UGuZ6KeEsH2bwkVKwgx1xg="; }; defconfig = "mt7988a_bpi-r4_defconfig"; @@ -33,5 +33,5 @@ NFT_LOG = module; }; - extraMeta.branch = "6.10-main"; + extraMeta.branch = "6.11-main"; }))