moby: remove most kernel config overrides
PPP still boots -- but only using my patched u-boot. stock u-boot will fail to load it, because its slightly greater than the limit of 63.5 MiB.
This commit is contained in:
@@ -28,8 +28,8 @@ in
|
||||
# - cameras, sound, etc untested
|
||||
# - linux-sane-pinephonepro (6.11.0; pmos config + nixpkgs config): FAILS TO BOOT
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-postmarketos-pinephonepro;
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-sane-pinephonepro;
|
||||
boot.kernelPackages = pkgs.linuxPackagesFor myCustomKernel;
|
||||
boot.kernelPackages = pkgs.linuxPackagesFor pkgs.linux-sane-pinephonepro;
|
||||
# boot.kernelPackages = pkgs.linuxPackagesFor myCustomKernel;
|
||||
|
||||
boot.initrd.availableKernelModules = [
|
||||
# see <repo:postmarketOS/pmaports:device/community/device-pine64-pinephonepro/modules-initfs>
|
||||
|
@@ -101,43 +101,43 @@ linux_latest.override {
|
||||
VIDEO_SUNXI = yes;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "reset-nixpkgs-overrides";
|
||||
patch = null;
|
||||
extraStructuredConfig = with lib.kernel; {
|
||||
# this is required for boot (but why??)
|
||||
ACPI_FPDT = lib.mkForce no;
|
||||
# {
|
||||
# name = "reset-nixpkgs-overrides";
|
||||
# patch = null;
|
||||
# extraStructuredConfig = with lib.kernel; {
|
||||
# # this is required for boot (but why??)
|
||||
# ACPI_FPDT = lib.mkForce no;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
SHUFFLE_PAGE_ALLOCATOR = lib.mkForce no;
|
||||
# # this is required for boot (but why??)
|
||||
# SHUFFLE_PAGE_ALLOCATOR = lib.mkForce no;
|
||||
|
||||
# this is required for boot (but autoModules gets that for us)
|
||||
# TRANSPARENT_HUGEPAGE_ALWAYS = lib.mkForce yes;
|
||||
# # this is required for boot (but autoModules gets that for us)
|
||||
# # TRANSPARENT_HUGEPAGE_ALWAYS = lib.mkForce yes;
|
||||
|
||||
# this is required for boot
|
||||
SYSFB_SIMPLEFB = lib.mkForce no;
|
||||
# # this is required for boot
|
||||
# SYSFB_SIMPLEFB = lib.mkForce no;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
IO_STRICT_DEVMEM = no;
|
||||
# # this is required for boot (but why??)
|
||||
# IO_STRICT_DEVMEM = no;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
PRINTK_INDEX = lib.mkForce no;
|
||||
# # this is required for boot (but why??)
|
||||
# PRINTK_INDEX = lib.mkForce no;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
CRASH_RESERVE = yes;
|
||||
# # this is required for boot (but why??)
|
||||
# CRASH_RESERVE = yes;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
PREEMPT = lib.mkForce yes;
|
||||
# this is required for boot (but why??)
|
||||
PREEMPT_VOLUNTARY_BUILD = no;
|
||||
# # this is required for boot (but why??)
|
||||
# PREEMPT = lib.mkForce yes;
|
||||
# # this is required for boot (but why??)
|
||||
# PREEMPT_VOLUNTARY_BUILD = no;
|
||||
|
||||
# this is required for boot (but why??)
|
||||
MMC_BLOCK_MINORS = lib.mkForce (freeform "256");
|
||||
# # this is required for boot (but why??)
|
||||
# MMC_BLOCK_MINORS = lib.mkForce (freeform "256");
|
||||
|
||||
# this is required for boot (but why??)
|
||||
MEDIA_PCI_SUPPORT = lib.mkForce no;
|
||||
};
|
||||
}
|
||||
# # this is required for boot (but why??)
|
||||
# MEDIA_PCI_SUPPORT = lib.mkForce no;
|
||||
# };
|
||||
# }
|
||||
{
|
||||
# i suspect that u-boot can only load a (decompressed) image up to 64 MiB in size for this platform.
|
||||
# i say that because `CONFIG_DEBUG_INFO=y` seemed to break the boot,
|
||||
@@ -171,133 +171,133 @@ linux_latest.override {
|
||||
SUNRPC_DEBUG = lib.mkForce no;
|
||||
};
|
||||
}
|
||||
{
|
||||
name = "reset-automodules-overrides";
|
||||
patch = null;
|
||||
extraStructuredConfig = with lib.kernel; {
|
||||
# NR_CPUS = lib.mkForce (freeform "64");
|
||||
# RANDOM_KMALLOC_CACHES = lib.mkForce no;
|
||||
# HOTPLUG_PCI_PCIE = lib.mkForce no;
|
||||
# DRM_ACCEL = lib.mkForce no;
|
||||
# KFENCE = lib.mkForce no;
|
||||
# {
|
||||
# name = "reset-automodules-overrides";
|
||||
# patch = null;
|
||||
# extraStructuredConfig = with lib.kernel; {
|
||||
# # NR_CPUS = lib.mkForce (freeform "64");
|
||||
# # RANDOM_KMALLOC_CACHES = lib.mkForce no;
|
||||
# # HOTPLUG_PCI_PCIE = lib.mkForce no;
|
||||
# # DRM_ACCEL = lib.mkForce no;
|
||||
# # KFENCE = lib.mkForce no;
|
||||
|
||||
BLK_INLINE_ENCRYPTION = lib.mkForce no;
|
||||
# BLK_INLINE_ENCRYPTION = lib.mkForce no;
|
||||
|
||||
CRASH_DUMP = lib.mkForce yes;
|
||||
PREEMPTION = yes;
|
||||
PREEMPT_BUILD = yes;
|
||||
PREEMPT_COUNT = yes;
|
||||
PREEMPT_RCU = yes;
|
||||
# CRASH_DUMP = lib.mkForce yes;
|
||||
# PREEMPTION = yes;
|
||||
# PREEMPT_BUILD = yes;
|
||||
# PREEMPT_COUNT = yes;
|
||||
# PREEMPT_RCU = yes;
|
||||
|
||||
RUNTIME_TESTING_MENU = lib.mkForce yes;
|
||||
# RUNTIME_TESTING_MENU = lib.mkForce yes;
|
||||
|
||||
# TODO: one of these is required for boot?
|
||||
BT_HCIUART_BCSP = lib.mkForce no;
|
||||
DRM_NOUVEAU_GSP_DEFAULT = lib.mkForce no;
|
||||
PINCTRL_AMD = lib.mkForce no;
|
||||
# # TODO: one of these is required for boot?
|
||||
# BT_HCIUART_BCSP = lib.mkForce no;
|
||||
# DRM_NOUVEAU_GSP_DEFAULT = lib.mkForce no;
|
||||
# PINCTRL_AMD = lib.mkForce no;
|
||||
|
||||
# TODO: at least one of these is required for boot
|
||||
NO_HZ_IDLE = yes;
|
||||
NO_HZ_FULL = lib.mkForce no;
|
||||
# CONTEXT_TRACKING_USER = no;
|
||||
TICK_CPU_ACCOUNTING = yes;
|
||||
VIRT_CPU_ACCOUNTING = no;
|
||||
TASKS_RCU = yes;
|
||||
STANDALONE = lib.mkForce yes;
|
||||
# # TODO: at least one of these is required for boot
|
||||
# NO_HZ_IDLE = yes;
|
||||
# NO_HZ_FULL = lib.mkForce no;
|
||||
# # CONTEXT_TRACKING_USER = no;
|
||||
# TICK_CPU_ACCOUNTING = yes;
|
||||
# VIRT_CPU_ACCOUNTING = no;
|
||||
# TASKS_RCU = yes;
|
||||
# STANDALONE = lib.mkForce yes;
|
||||
|
||||
# TODO: one of these is required for boot?
|
||||
ATH10K_DFS_CERTIFIED = lib.mkForce no;
|
||||
CHROMEOS_TBMC = lib.mkForce no;
|
||||
MOUSE_ELAN_I2C_SMBUS = lib.mkForce no;
|
||||
XFRM_ESPINTCP = no;
|
||||
# # TODO: one of these is required for boot?
|
||||
# ATH10K_DFS_CERTIFIED = lib.mkForce no;
|
||||
# CHROMEOS_TBMC = lib.mkForce no;
|
||||
# MOUSE_ELAN_I2C_SMBUS = lib.mkForce no;
|
||||
# XFRM_ESPINTCP = no;
|
||||
|
||||
# AUXDISPLAY = lib.mkForce no;
|
||||
# DRM_DISPLAY_DP_AUX_CEC = lib.mkForce no;
|
||||
# DRM_DISPLAY_DP_AUX_CHARDEV = lib.mkForce no;
|
||||
# DRM_VC4_HDMI_CEC = lib.mkForce no;
|
||||
# # AUXDISPLAY = lib.mkForce no;
|
||||
# # DRM_DISPLAY_DP_AUX_CEC = lib.mkForce no;
|
||||
# # DRM_DISPLAY_DP_AUX_CHARDEV = lib.mkForce no;
|
||||
# # DRM_VC4_HDMI_CEC = lib.mkForce no;
|
||||
|
||||
# TODO: one of these is required for boot?
|
||||
SLAB_BUCKETS = lib.mkForce no;
|
||||
DEFAULT_MMAP_MIN_ADDR = lib.mkForce (freeform "4096");
|
||||
TRANSPARENT_HUGEPAGE_MADVISE = lib.mkForce no;
|
||||
ZONE_DEVICE = lib.mkForce no;
|
||||
UEVENT_HELPER = lib.mkForce yes;
|
||||
LOGO = lib.mkForce yes;
|
||||
LOGO_LINUX_CLUT224 = yes;
|
||||
POWERCAP = lib.mkForce no;
|
||||
# CPUMASK_OFFSTACK = no;
|
||||
# or maybe this?
|
||||
HID_BPF = lib.mkForce no;
|
||||
# # TODO: one of these is required for boot?
|
||||
# SLAB_BUCKETS = lib.mkForce no;
|
||||
# DEFAULT_MMAP_MIN_ADDR = lib.mkForce (freeform "4096");
|
||||
# TRANSPARENT_HUGEPAGE_MADVISE = lib.mkForce no;
|
||||
# ZONE_DEVICE = lib.mkForce no;
|
||||
# UEVENT_HELPER = lib.mkForce yes;
|
||||
# LOGO = lib.mkForce yes;
|
||||
# LOGO_LINUX_CLUT224 = yes;
|
||||
# POWERCAP = lib.mkForce no;
|
||||
# # CPUMASK_OFFSTACK = no;
|
||||
# # or maybe this?
|
||||
# HID_BPF = lib.mkForce no;
|
||||
|
||||
# TODO: one of these is required for boot?
|
||||
USB_SERIAL = lib.mkForce module;
|
||||
FSL_MC_UAPI_SUPPORT = lib.mkForce no;
|
||||
NET_FC = lib.mkForce no;
|
||||
NET_VENDOR_MEDIATEK = lib.mkForce no;
|
||||
WAN = lib.mkForce no;
|
||||
# or maybe one of these?
|
||||
HARDLOCKUP_DETECTOR = lib.mkForce no;
|
||||
U_SERIAL_CONSOLE = lib.mkForce no;
|
||||
WATCH_QUEUE = lib.mkForce no;
|
||||
SCHED_CORE = lib.mkForce no;
|
||||
BPF_JIT_ALWAYS_ON = lib.mkForce yes;
|
||||
PARAVIRT_TIME_ACCOUNTING = lib.mkForce no;
|
||||
ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION = yes; #< does not take effect
|
||||
COMPAT_ALIGNMENT_FIXUPS = lib.mkForce no;
|
||||
IDLE_PAGE_TRACKING = lib.mkForce no;
|
||||
PAGE_IDLE_FLAG = no;
|
||||
EFI_ZBOOT = lib.mkForce no;
|
||||
ZRAM_MULTI_COMP = lib.mkForce no;
|
||||
# # TODO: one of these is required for boot?
|
||||
# USB_SERIAL = lib.mkForce module;
|
||||
# FSL_MC_UAPI_SUPPORT = lib.mkForce no;
|
||||
# NET_FC = lib.mkForce no;
|
||||
# NET_VENDOR_MEDIATEK = lib.mkForce no;
|
||||
# WAN = lib.mkForce no;
|
||||
# # or maybe one of these?
|
||||
# HARDLOCKUP_DETECTOR = lib.mkForce no;
|
||||
# U_SERIAL_CONSOLE = lib.mkForce no;
|
||||
# WATCH_QUEUE = lib.mkForce no;
|
||||
# SCHED_CORE = lib.mkForce no;
|
||||
# BPF_JIT_ALWAYS_ON = lib.mkForce yes;
|
||||
# PARAVIRT_TIME_ACCOUNTING = lib.mkForce no;
|
||||
# ARCH_HAS_GENERIC_CRASHKERNEL_RESERVATION = yes; #< does not take effect
|
||||
# COMPAT_ALIGNMENT_FIXUPS = lib.mkForce no;
|
||||
# IDLE_PAGE_TRACKING = lib.mkForce no;
|
||||
# PAGE_IDLE_FLAG = no;
|
||||
# EFI_ZBOOT = lib.mkForce no;
|
||||
# ZRAM_MULTI_COMP = lib.mkForce no;
|
||||
|
||||
# upgrade `m` -> `y`
|
||||
# INPUT_MATRIXKMAP = lib.mkForce yes;
|
||||
# I2C_CROS_EC_TUNNEL = yes;
|
||||
# CHARGER_CROS_PCHG = yes;
|
||||
# CHARGER_CROS_CONTROL = yes;
|
||||
# SENSORS_CROS_EC = yes;
|
||||
# MFD_CROS_EC_DEV = yes;
|
||||
# REGULATOR_CROS_EC = yes;
|
||||
# RTC_DRV_CROS_EC = yes;
|
||||
# CROS_EC = lib.mkForce yes;
|
||||
# CROS_EC_I2C = lib.mkForce yes;
|
||||
# CROS_EC_SPI = lib.mkForce yes;
|
||||
# EXTCON_USBC_CROS_EC = yes;
|
||||
# # upgrade `m` -> `y`
|
||||
# # INPUT_MATRIXKMAP = lib.mkForce yes;
|
||||
# # I2C_CROS_EC_TUNNEL = yes;
|
||||
# # CHARGER_CROS_PCHG = yes;
|
||||
# # CHARGER_CROS_CONTROL = yes;
|
||||
# # SENSORS_CROS_EC = yes;
|
||||
# # MFD_CROS_EC_DEV = yes;
|
||||
# # REGULATOR_CROS_EC = yes;
|
||||
# # RTC_DRV_CROS_EC = yes;
|
||||
# # CROS_EC = lib.mkForce yes;
|
||||
# # CROS_EC_I2C = lib.mkForce yes;
|
||||
# # CROS_EC_SPI = lib.mkForce yes;
|
||||
# # EXTCON_USBC_CROS_EC = yes;
|
||||
|
||||
# TODO: at least one of these is required for boot
|
||||
# UNINLINE_SPIN_UNLOCK = yes; #< DOESN'T TAKE EFFECT
|
||||
# CMA_SIZE_MBYTES = lib.mkForce (freeform "256");
|
||||
SOFTLOCKUP_DETECTOR_INTR_STORM = no;
|
||||
LDM_PARTITION = lib.mkForce no;
|
||||
DAMON = lib.mkForce no;
|
||||
SKB_DECRYPTED = no; #< does not take effect
|
||||
CFG80211_CERTIFICATION_ONUS = lib.mkForce no;
|
||||
MAC80211_DEBUGFS = lib.mkForce no;
|
||||
SOCK_VALIDATE_XMIT = no; #< does not take effect
|
||||
ACCESSIBILITY = lib.mkForce no;
|
||||
VIRTIO_MMIO_CMDLINE_DEVICES = lib.mkForce no;
|
||||
DEBUG_INFO = no;
|
||||
SCHED_DEBUG = lib.mkForce no;
|
||||
FUNCTION_PROFILER = lib.mkForce no;
|
||||
SCHED_TRACER = lib.mkForce no;
|
||||
DEBUG_INFO_NONE = yes;
|
||||
TLS = lib.mkForce no;
|
||||
XDP_SOCKETS_DIAG = lib.mkForce no;
|
||||
IP_PNP = lib.mkForce yes;
|
||||
# IP_PNP_DHCP = yes;
|
||||
# IP_PNP_BOOTP = yes;
|
||||
IP_DCCP_CCID3 = lib.mkForce yes;
|
||||
# IP_DCCP_TFRC_LIB = yes;
|
||||
RTW88 = lib.mkForce no;
|
||||
MEDIA_CEC_RC = lib.mkForce no;
|
||||
CRYPTO_TEST = lib.mkForce module;
|
||||
PROC_VMCORE = yes; #< does not take effect ??
|
||||
# or maybe it's one of these?
|
||||
FUSION = lib.mkForce no;
|
||||
HIPPI = lib.mkForce no;
|
||||
BRCMFMAC_PCIE = lib.mkForce no;
|
||||
MOUSE_PS2_ELANTECH = lib.mkForce no;
|
||||
INFINIBAND = lib.mkForce no;
|
||||
};
|
||||
}
|
||||
# # TODO: at least one of these is required for boot
|
||||
# # UNINLINE_SPIN_UNLOCK = yes; #< DOESN'T TAKE EFFECT
|
||||
# # CMA_SIZE_MBYTES = lib.mkForce (freeform "256");
|
||||
# SOFTLOCKUP_DETECTOR_INTR_STORM = no;
|
||||
# LDM_PARTITION = lib.mkForce no;
|
||||
# DAMON = lib.mkForce no;
|
||||
# SKB_DECRYPTED = no; #< does not take effect
|
||||
# CFG80211_CERTIFICATION_ONUS = lib.mkForce no;
|
||||
# MAC80211_DEBUGFS = lib.mkForce no;
|
||||
# SOCK_VALIDATE_XMIT = no; #< does not take effect
|
||||
# ACCESSIBILITY = lib.mkForce no;
|
||||
# VIRTIO_MMIO_CMDLINE_DEVICES = lib.mkForce no;
|
||||
# DEBUG_INFO = no;
|
||||
# SCHED_DEBUG = lib.mkForce no;
|
||||
# FUNCTION_PROFILER = lib.mkForce no;
|
||||
# SCHED_TRACER = lib.mkForce no;
|
||||
# DEBUG_INFO_NONE = yes;
|
||||
# TLS = lib.mkForce no;
|
||||
# XDP_SOCKETS_DIAG = lib.mkForce no;
|
||||
# IP_PNP = lib.mkForce yes;
|
||||
# # IP_PNP_DHCP = yes;
|
||||
# # IP_PNP_BOOTP = yes;
|
||||
# IP_DCCP_CCID3 = lib.mkForce yes;
|
||||
# # IP_DCCP_TFRC_LIB = yes;
|
||||
# RTW88 = lib.mkForce no;
|
||||
# MEDIA_CEC_RC = lib.mkForce no;
|
||||
# CRYPTO_TEST = lib.mkForce module;
|
||||
# PROC_VMCORE = yes; #< does not take effect ??
|
||||
# # or maybe it's one of these?
|
||||
# FUSION = lib.mkForce no;
|
||||
# HIPPI = lib.mkForce no;
|
||||
# BRCMFMAC_PCIE = lib.mkForce no;
|
||||
# MOUSE_PS2_ELANTECH = lib.mkForce no;
|
||||
# INFINIBAND = lib.mkForce no;
|
||||
# };
|
||||
# }
|
||||
];
|
||||
}
|
||||
|
Reference in New Issue
Block a user