6.6.31 backup
This commit is contained in:
parent
a07c7d961d
commit
046d4e60a4
80
uconsole/kernel/default.nix-6.6.31
Normal file
80
uconsole/kernel/default.nix-6.6.31
Normal file
@ -0,0 +1,80 @@
|
|||||||
|
{pkgs, ...}: let
|
||||||
|
kernelPackagesCfg = {
|
||||||
|
linuxPackagesFor,
|
||||||
|
linux_rpi4,
|
||||||
|
fetchFromGitHub,
|
||||||
|
}: let
|
||||||
|
# Version picked from the current (as of 8th Oct 2024) nixpkgs-unstable branch
|
||||||
|
modDirVersion = "6.6.31";
|
||||||
|
tag = "stable_20240529";
|
||||||
|
in
|
||||||
|
linuxPackagesFor (linux_rpi4.override {
|
||||||
|
argsOverride = {
|
||||||
|
version = "${modDirVersion}-${tag}-uconsole";
|
||||||
|
inherit modDirVersion;
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "raspberrypi";
|
||||||
|
repo = "linux";
|
||||||
|
rev = tag;
|
||||||
|
hash = "sha256-UWUTeCpEN7dlFSQjog6S3HyEWCCnaqiUqV5KxCjYink=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
});
|
||||||
|
patches = [
|
||||||
|
./patches/001-OCP8178-backlight-driver.patch
|
||||||
|
./patches/002-drm-panel-add-clockwork-cwu50.patch
|
||||||
|
./patches/003-axp20x-power.patch
|
||||||
|
./patches/004-vc4_dsi-update.patch
|
||||||
|
./patches/005-bcm2835-audio-staging.patch
|
||||||
|
./patches/006-vc4_dsi-update-20241008.patch
|
||||||
|
./patches/007-drm-panel-cwu50-expose-dsi-error-status-to-userspace.patch
|
||||||
|
./patches/008-driver-staging-add-uconsole-simple-amplifier-switch.patch
|
||||||
|
./patches/091-ir-rx51-pwm_apply_might_sleep.patch
|
||||||
|
./patches/092-gpio-pwm-pwm_apply_might_sleep.patch
|
||||||
|
];
|
||||||
|
in {
|
||||||
|
boot.kernelPackages = pkgs.callPackages kernelPackagesCfg {};
|
||||||
|
|
||||||
|
boot.initrd.kernelModules = [
|
||||||
|
"ocp8178_bl"
|
||||||
|
"panel_clockwork_cwu50"
|
||||||
|
"vc4"
|
||||||
|
];
|
||||||
|
|
||||||
|
boot.kernelPatches =
|
||||||
|
(
|
||||||
|
builtins.map (patch: {
|
||||||
|
name = patch + "";
|
||||||
|
patch = patch;
|
||||||
|
})
|
||||||
|
patches
|
||||||
|
)
|
||||||
|
++ [
|
||||||
|
{
|
||||||
|
name = "uconsole-config";
|
||||||
|
patch = null;
|
||||||
|
extraStructuredConfig = {
|
||||||
|
BACKLIGHT_CLASS_DEVICE = pkgs.lib.kernel.yes;
|
||||||
|
DRM_PANEL_CLOCKWORK_CWU50 = pkgs.lib.kernel.module;
|
||||||
|
SIMPLE_AMPLIFIER_SWITCH = pkgs.lib.kernel.module;
|
||||||
|
BACKLIGHT_OCP8178 = pkgs.lib.kernel.module;
|
||||||
|
|
||||||
|
REGMAP_I2C = pkgs.lib.kernel.yes;
|
||||||
|
INPUT_AXP20X_PEK = pkgs.lib.kernel.yes;
|
||||||
|
CHARGER_AXP20X = pkgs.lib.kernel.module;
|
||||||
|
BATTERY_AXP20X = pkgs.lib.kernel.module;
|
||||||
|
AXP20X_POWER = pkgs.lib.kernel.module;
|
||||||
|
MFD_AXP20X = pkgs.lib.kernel.yes;
|
||||||
|
MFD_AXP20X_I2C = pkgs.lib.kernel.yes;
|
||||||
|
REGULATOR_AXP20X = pkgs.lib.kernel.yes;
|
||||||
|
AXP20X_ADC = pkgs.lib.kernel.module;
|
||||||
|
TI_ADC081C = pkgs.lib.kernel.module;
|
||||||
|
CRYPTO_LIB_ARC4 = pkgs.lib.kernel.yes;
|
||||||
|
CRC_CCITT = pkgs.lib.kernel.yes;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
|
systemd.services."serial-getty@ttyS0".enable = false;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user