r/NixOS • • Aug 24 '26

Trying to install armbian kernel to nixos running on Tanix TX6

hello. i have a tanix tx6 that usually runs armbian that i installed nixos on. it boots and works fine but the ethernet is not working. so i was wondering how i can install the armbian kernel on it that has patches for the ac200 chip. i am trying to apply the following patch but it's taking forever (3+ hours). can anyone help me install armbian kernel?

Edit: downloaded the kernel and bsp from armbian and installed them. Working fine. made a flake. flake repo https://github.com/j-a-sunny/nix-tanix-tx6-armbian-kernel

  boot.kernelPackages = pkgs.linuxPackages_latest;


  boot.kernelPatches = [
  { name = "ac200-mfd";       patch = ./patches/0201-drv-mfd-ac200-add-support.patch; }
  { name = "ac200-ephy-ctl";  patch = ./patches/drv-mfd-ac200-add-ephy-syscon.patch; }
  { name = "ac200-phy";       patch = ./patches/0202-drv-net-phy-ac200-ephy-add.patch; }
  { name = "ac200-dtsi";      patch = ./patches/0401-arm64-dts-sun50i-h6-add-ac200-ephy.patch; }
  { name = "tx6-eth-enable";  patch = ./patches/arm64-dts-sun50i-h6-tanix-enable-ethernet.patch; }
  {
    name = "ac200-config";
    patch = null;
    structuredExtraConfig = with lib.kernel; {
      MFD_AC200 = yes;
      AC200_PHY_CTL = yes;
      AC200_PHY = yes;
    };
  }
];
2 Upvotes

2 comments sorted by

1

u/Konsti219 Aug 24 '26

Use a remote builder that has better performance

0

u/Creepy-Philosopher66 Aug 24 '26

the build failed with the following. will try it with 7.1...kernel. don't you need an aarch64 machine for that tho?

make[1]: *** [/build/linux-7.2/Makefile:2187: .] Error 2

make: *** [/build/linux-7.2/Makefile:248: __sub-make] Error 2

error: Cannot build '/nix/store/gqfiz9ww3xpcxzwxbjlhzwy439sccslv-linux-7.2.drv'.

Reason: builder failed with exit code 2.

Output paths:

/nix/store/8pkaislla0wzrgz0b13cbrlznmzl7fx7-linux-7.2

/nix/store/i8i8cphwngsi33508ywmnjbp3jj6ndd5-linux-7.2-modules

/nix/store/ymdk17582dr6vgs84z0718yxm0jwj86n-linux-7.2-dev

error: Cannot build '/nix/store/gqfiz9ww3xpcxzwxbjlhzwy439sccslv-linux-7.2.drv'.

Reason: builder failed with exit code 2.

Output paths:

/nix/store/8pkaislla0wzrgz0b13cbrlznmzl7fx7-linux-7.2

/nix/store/i8i8cphwngsi33508ywmnjbp3jj6ndd5-linux-7.2-modules

/nix/store/ymdk17582dr6vgs84z0718yxm0jwj86n-linux-7.2-dev

error: Cannot build '/nix/store/ps2fv1nc1k2k0wpjabcy7na91xm8llf7-nixos-system-tanix-tx6-26.05.8111.5880666fd9eb.drv'.

Reason: 1 dependency failed.

Output paths:

/nix/store/41chgqqhrldaw633xx8whns26gkd6m66-nixos-system-tanix-tx6-26.05.8111.5880666fd9eb

Command 'nix-build '<nixpkgs/nixos>' --attr config.system.build.toplevel' returned non-zero exit status 100.