Compare commits

...

5 commits

Author SHA1 Message Date
Aaron de0045bcec
Merge cafc32e82b into 52113c4f5c 2025-11-07 08:29:59 -05:00
Jörg Thalheim 52113c4f5c
Merge pull request #1668 from concatime/fix/rename-modules
Rename some modules to their correct names
2025-11-06 21:07:11 +00:00
Issam E. Maghni fc4c7c6ec7 meta: rename module to pcie-brcmstb
https://github.com/torvalds/linux/blob/v6.17/drivers/pci/controller/Makefile#L37
2025-11-06 15:05:04 -05:00
Issam E. Maghni 744975050f meta: rename module to usb-storage
https://github.com/torvalds/linux/blob/v6.17/drivers/usb/storage/Kconfig#L23-L24
> To compile this driver as a module, choose M here: the
> module will be called usb-storage.
2025-11-06 15:05:04 -05:00
aarontrom cafc32e82b FaceTimeHD-Camera and WiFi 2025-07-17 16:32:45 +02:00
8 changed files with 71 additions and 8 deletions

View file

@ -3,3 +3,34 @@
### For wifi driver ### For wifi driver
broadcomt_sta was the best working driver I could find, however on the normal kernel, you need to `sudo modprobe -r wl` and `sudo modprobe wl`, however it was fully working on the zen kernel. broadcomt_sta was the best working driver I could find, however on the normal kernel, you need to `sudo modprobe -r wl` and `sudo modprobe wl`, however it was fully working on the zen kernel.
# MacBook Air 7,2
## Issues
> Wifi Driver doesn't work
### Solution
* generated NixOS-Configuration via nixos-generate config on MacBook to load following modules:
```nix
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
```
> Camera doesn't work
### Solution
```nix
hardware.facetimehd.enable = true;
```
* when added this line of code, another driver was loaded for the network controller, so wifi stopped working.
* by adding the modules to boot.initrd. both wifi and camera was working:
### Solution
```nix
boot.initrd.kernelModules = [ "kvm-intel" "wl" ];
```

View file

@ -0,0 +1,32 @@
# Do not modify this file! It was generated by nixos-generate-config
# and may be overwritten by future invocations. Please make changes
# to /etc/nixos/configuration.nix instead.
{ config, lib, pkgs, modulesPath, ... }:
{
imports =
[ (modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ "kvm-intel" "wl" ]; # is needed for wifi to work
boot.kernelModules = [ "kvm-intel" "wl" ];
boot.extraModulePackages = [ config.boot.kernelPackages.broadcom_sta ];
## generated Filesystem configuration was removed here!!!
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
## Webcam
hardware.facetimehd.enable = true;
}

View file

@ -15,7 +15,7 @@
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [
"xhci_pci" "xhci_pci"
"ahci" "ahci"
"usb_storage" "usb-storage"
"sd_mod" "sd_mod"
"rtsx_pci_sdmmc" "rtsx_pci_sdmmc"
]; ];

View file

@ -13,7 +13,7 @@
"xhci_pci" "xhci_pci"
"ahci" "ahci"
"nvme" "nvme"
"usb_storage" "usb-storage"
"sd_mod" "sd_mod"
"rtsx_pci_sdmmc" "rtsx_pci_sdmmc"
]; ];

View file

@ -14,7 +14,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
"tps6598x" "tps6598x"
"xhci_hcd" "xhci_hcd"
"usbcore" "usbcore"
"usb_storage" "usb-storage"
"uas" "uas"
"xhci_plat_hcd" "xhci_plat_hcd"
]; ];
@ -56,7 +56,7 @@ lib.mkIf config.hardware.librem5.customInitrdModules {
"tps6598x" "tps6598x"
"xhci_hcd" "xhci_hcd"
"usbcore" "usbcore"
"usb_storage" "usb-storage"
"uas" "uas"
"xhci_plat_hcd" "xhci_plat_hcd"
]; ];

View file

@ -9,7 +9,7 @@
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3; kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi3;
initrd.availableKernelModules = [ initrd.availableKernelModules = [
"usbhid" "usbhid"
"usb_storage" "usb-storage"
]; ];
}; };

View file

@ -31,9 +31,9 @@
kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4; kernelPackages = lib.mkDefault pkgs.linuxKernel.packages.linux_rpi4;
initrd.availableKernelModules = [ initrd.availableKernelModules = [
"usbhid" "usbhid"
"usb_storage" "usb-storage"
"vc4" "vc4"
"pcie_brcmstb" # required for the pcie bus to work "pcie-brcmstb" # required for the pcie bus to work
"reset-raspberrypi" # required for vl805 firmware to load "reset-raspberrypi" # required for vl805 firmware to load
] ]
++ lib.optional config.boot.initrd.network.enable "genet"; ++ lib.optional config.boot.initrd.network.enable "genet";

View file

@ -16,7 +16,7 @@ in
initrd.availableKernelModules = [ initrd.availableKernelModules = [
"nvme" "nvme"
"usbhid" "usbhid"
"usb_storage" "usb-storage"
]; ];
}; };