config/shared/platform/orangepi5plus.nix
Motiejus Jakštys f952b637d5 Revert "orangepi5+: skip perf only in sdImage"
This reverts commit 7315cbaaac.

    builder for '/nix/store/863lc3ir4ahpxzq6bcjv940xzkbbc04m-perf-linux-aarch64-unknown-linux-gnu-6.8.0.drv' failed with exit code 2;
    last 10 log lines:
    >   149 | #if defined(LIBTRACEEVENT_VERSION) &&  LIBTRACEEVENT_VERSION >= MAKE_LIBTRACEEVENT_VERSION(1, 5, 0)
    >       |                                                              ^~
    > error: command '/nix/store/ffi9k9y0w3sydgp2nk3q1pk0qq02rkb0-aarch64-unknown-linux-gnu-gcc-wrapper-12.3.0/bin/aarch64-unknown-linux-gnu-cc' failed wit>
    >   LD      /build/source/tools/perf/libbpf/staticobjs/libbpf-in.o
    > cp: cannot stat 'python_ext_build/lib/perf*.so': No such file or directory
    > make[2]: *** [Makefile.perf:678: python/perf.cpython-311-aarch64-linux-gnu.so] Error 1
    > make[2]: *** Waiting for unfinished jobs....
    >   LINK    /build/source/tools/perf/libbpf/libbpf.a
    > make[1]: *** [Makefile.perf:261: sub-make] Error 2
    > make: *** [Makefile:70: all] Error 2
2024-03-13 22:29:08 +02:00

61 lines
1.6 KiB
Nix

{
config,
lib,
pkgs,
modulesPath,
...
}: let
crossFast = pkgs.crossArm64.pkgsCross.aarch64-multiplatform;
crossNative = pkgs.pkgsCross.aarch64-multiplatform;
in {
mj.skipPerf = true;
boot = {
kernelPackages = crossNative.linuxPackagesFor (crossFast.buildLinux rec {
version = "6.8.0";
modDirVersion = "6.8.0";
src = builtins.fetchTarball {
#url = "https://git.kernel.org/torvalds/t/linux-6.8-rc7.tar.gz";
url = "https://cdn.kernel.org/pub/linux/kernel/v6.x/linux-6.8.tar.xz";
sha256 = "sha256:1xzi1yhh5k3vzfwvw4f2rzaas6dh4qara33vzj77xiz2zmks2y5d";
};
kernelPatches = [
{
name = "orangepi-5-plus-collabora-${version}";
patch = ./orangepi5plus/rk3588-v6.8.patch;
}
{
name = "rk3588-crypto";
patch = ./orangepi5plus/rk3588-crypto.patch;
}
];
extraConfig = ''
CRYPTO_DEV_ROCKCHIP2 m
CRYPTO_DEV_ROCKCHIP2_DEBUG y
'';
extraMeta.branch = "6.8";
});
loader = {
grub.enable = false;
generic-extlinux-compatible.enable = true;
};
initrd.kernelModules = ["ahci_dwc" "phy_rockchip_naneng_combphy" "rockchip-cpufreq"];
consoleLogLevel = 7;
};
hardware.deviceTree.name = "rockchip/rk3588-orangepi-5-plus.dtb";
system.build = {
sdImage = import "${modulesPath}/../lib/make-disk-image.nix" {
name = "orangepi5-sd-image";
copyChannel = false;
inherit config lib pkgs;
};
uboot = crossFast.callPackage ../../hacks/orangepi5plus/uboot {};
};
}