Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove ignoreConfigErrors = true; from kernel expression #84

Open
kuruczgy opened this issue Feb 10, 2025 · 2 comments
Open

Remove ignoreConfigErrors = true; from kernel expression #84

kuruczgy opened this issue Feb 10, 2025 · 2 comments

Comments

@kuruczgy
Copy link
Owner

No description provided.

@kuruczgy
Copy link
Owner Author

kuruczgy commented Feb 21, 2025

Here is the error list for reference:

warning: unused option: 9P_FSCACHE
warning: unused option: 9P_FS_POSIX_ACL
warning: unused option: ACPI_APEI
warning: unused option: ACPI_APEI_GHES
warning: unused option: ACPI_FPDT
warning: unused option: ACPI_HMAT
error: unused option: ACPI_HOTPLUG_CPU
error: unused option: ACPI_HOTPLUG_MEMORY
error: unused option: ARCH_BCM2835
warning: unused option: B43_PHY_HT
error: unused option: BCM2835_MBOX
error: unused option: BCM2835_WDT
warning: unused option: BRCMFMAC_PCIE
warning: unused option: BRCMFMAC_USB
error: unused option: CEPH_FSCACHE
error: unused option: CEPH_FS_POSIX_ACL
error: unused option: CHROMEOS_TBMC
error: unused option: CIFS_DFS_UPCALL
error: unused option: CIFS_FSCACHE
warning: unused option: CIFS_POSIX
error: unused option: CIFS_UPCALL
error: unused option: CIFS_XATTR
warning: unused option: CRC32_SELFTEST
warning: unused option: DRM_VBOXVIDEO
error: unused option: DRM_VC4_HDMI_CEC
error: unused option: FSCACHE_STATS
error: unused option: FSL_MC_UAPI_SUPPORT
error: unused option: HOTPLUG_PCI_ACPI
error: unused option: HOTPLUG_PCI_PCIE
warning: unused option: IPW2100_MONITOR
warning: unused option: IPW2200_MONITOR
warning: unused option: KEXEC_JUMP
error: unused option: MOUSE_ELAN_I2C_SMBUS
error: unused option: MOUSE_PS2_ELANTECH
error: unused option: MT798X_WMAC
error: unused option: NET_ACT_BPF
error: unused option: NET_VENDOR_MEDIATEK
error: unused option: NFSD_V3_ACL
error: unused option: NFSD_V4
error: unused option: NFSD_V4_SECURITY_LABEL
error: unused option: NFS_FS
error: unused option: NFS_FSCACHE
error: unused option: NFS_LOCALIO
error: unused option: NFS_SWAP
error: unused option: NFS_V3_ACL
error: unused option: NFS_V4_1
error: unused option: NFS_V4_2
error: unused option: NFS_V4_SECURITY_LABEL
warning: unused option: PARAVIRT_SPINLOCKS
error: unused option: PCI_TEGRA
warning: unused option: PCI_XEN
warning: unused option: PERF_EVENTS_AMD_BRS
error: unused option: PINCTRL_AMD
error: unused option: RASPBERRYPI_FIRMWARE
error: unused option: RASPBERRYPI_POWER
warning: unused option: REISERFS_FS_POSIX_ACL
warning: unused option: REISERFS_FS_SECURITY
warning: unused option: REISERFS_FS_XATTR
error: unused option: ROCKCHIP_DW_HDMI_QP
error: unused option: RT2800USB_RT53XX
error: unused option: RT2800USB_RT55XX
error: unused option: RTW88
error: unused option: RTW88_8822BE
error: unused option: RTW88_8822CE
error: unused option: SERIAL_8250_BCM2835AUX
error: unused option: SND_AC97_POWER_SAVE
error: unused option: SND_AC97_POWER_SAVE_DEFAULT
error: unused option: SUN8I_DE2_CCU
error: unused option: SUNRPC_DEBUG
error: unused option: USB_XHCI_TEGRA
error: unused option: VIRTIO_MMIO_CMDLINE_DEVICES
warning: unused option: XEN_HAVE_PVMMU
warning: unused option: XEN_MCE_LOG
warning: unused option: XEN_PVH
warning: unused option: XEN_PVHVM
warning: unused option: XEN_SAVE_RESTORE

It seems that a bunch of these are just enabled by nixpkgs by default... I guess the solution is to simply = lib.mkForce unset all of these? Does not seem very elegant...

@kuruczgy
Copy link
Owner Author

Nope, = lib.mkForce unset does not work for everything because apparently it cannot override non-modular configs like this: https://github.com/NixOS/nixpkgs/blob/798e8fcf0ea3f571cdc664869bf81d5aa69a38ef/lib/systems/platforms.nix#L366

I see two paths forward:

  • Switch away from using johan_defconfig and use the modular config system to enable everything needed for x1e. As long as kernel compile times don't go up too much this should be fine. We could even try upstreaming the x1e support enabling to nixpkgs, stock upstream kernel should already be working well enough and provide basic functionality on x1e.
  • Try to get a much more minimal kernel config, as proposed in Slim down kernel config by removing unnecessary drivers and modules #26. I could see both the "fat" and "slim" kernel configs having uses, one for being well integrated with upstream nixpkgs and one for quick iteration/testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant