~amjoseph/ownerboot

61416b811aff3fd3d2c4186db4ff879aa38b548a — Adam Joseph a month ago fd1ec75
am1i: roll back to kernel 5.10.x temporarily

On am1i, kernel 6.6 busts the 8mbyte limit.  This patch rolls back only that
platform to 5.10.x in order to allow am1i to work with 8mbyte chips.
1 files changed, 15 insertions(+), 5 deletions(-)

M src/platform/am1i/default.nix
M src/platform/am1i/default.nix => src/platform/am1i/default.nix +15 -5
@@ 20,11 20,21 @@
      final.lib.makeOverridable (prev.kernel.override {
        config = ./linux.config;
        buildTargets = [ "bzImage" ];
      }).overrideAttrs (a: {
        postInstall = (a.postInstall or "") + ''
          cp arch/x86_64/boot/bzImage $out/
        '';
      });
      }).overrideAttrs (previousAttrs:
        let
          # held back temporarily because kernel 6.6.x push slightly past the
          # 8mbyte mark
          version = "5.10.148";
        in {
          inherit version;
          src = final.nixpkgsOnBuildForBuild.fetchurl {
            url = "mirror://kernel/linux/kernel/v${lib.versions.major version}.x/linux-${version}.tar.xz";
            hash = "sha256-ElI/a+IhBnCU7FQbGWvOcEk/f0TwMbPEcR2C4pDG6VY=";
          };
          postInstall = (previousAttrs.postInstall or "") + ''
            cp arch/x86_64/boot/bzImage $out/
          '';
        });

    console-device = "ttyS1";
    payload = "${final.kernel}/bzImage";