mirror of
				https://github.com/NixOS/nixos-hardware.git
				synced 2025-11-04 09:17:14 +08:00 
			
		
		
		
	buggy drivers fixed on a1sri-2758f
This commit is contained in:
		@@ -3,28 +3,18 @@
 | 
				
			|||||||
# This board contains a TPM header, but you must supply your own module.
 | 
					# This board contains a TPM header, but you must supply your own module.
 | 
				
			||||||
#
 | 
					#
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{ pkgs, ... }:
 | 
					{ pkgs, lib, ... }:
 | 
				
			||||||
 | 
					
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
  imports = [ ../lib/hardware-notes.nix ];
 | 
					  imports = [ ../lib/kernel-version.nix ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  environment.systemPackages = [ pkgs.ipmitool ];
 | 
					  environment.systemPackages = [ pkgs.ipmitool ];
 | 
				
			||||||
  boot.kernelModules = [ "ipmi_devintf" "ipmi_si" ];
 | 
					  boot.kernelModules = [ "ipmi_devintf" "ipmi_si" ];
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  networking.dhcpcd.extraConfig = "nolink";
 | 
					  kernelAtleast = lib.singleton
 | 
				
			||||||
 | 
					    { version = "4.4";
 | 
				
			||||||
  hardwareNotes =
 | 
					      msg =
 | 
				
			||||||
    [ { title = "IPMI";
 | 
					        "ethernet driver may be buggy on older kernels, "+
 | 
				
			||||||
        text = "Load IPMI kernel modules and ipmitool to system environment.";
 | 
					        ''try 'networking.dhcpcd.extraConfig = "nolink";' if you encounter loss of link problems'';
 | 
				
			||||||
      }
 | 
					    };
 | 
				
			||||||
      { title = "Nolink";
 | 
					 | 
				
			||||||
        text =
 | 
					 | 
				
			||||||
          ''
 | 
					 | 
				
			||||||
            Interface link state detection is disabled in dhcpcd because
 | 
					 | 
				
			||||||
            the Linux driver seems to send erronous loss of link messages
 | 
					 | 
				
			||||||
            that cause dhcpcd to release every few seconds, which is
 | 
					 | 
				
			||||||
            more annoying than not releasing when a cable is unplugged.
 | 
					 | 
				
			||||||
          '';
 | 
					 | 
				
			||||||
      }
 | 
					 | 
				
			||||||
    ];
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user