mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
platforms.nix: Add some aarch64-specific kernel config
This makes Raspberry Pi 3 and some Cavium ThunderX server hardware work.
This commit is contained in:
parent
3519244c72
commit
2bfd83ab6d
@ -45,7 +45,7 @@ with stdenv.lib;
|
||||
|
||||
# Bump the maximum number of CPUs to support systems like EC2 x1.*
|
||||
# instances and Xeon Phi.
|
||||
${optionalString (stdenv.system == "x86_64-linux") ''
|
||||
${optionalString (stdenv.system == "x86_64-linux" || stdenv.system == "aarch64-linux") ''
|
||||
NR_CPUS 384
|
||||
''}
|
||||
|
||||
|
@ -451,7 +451,32 @@ rec {
|
||||
kernelArch = "arm64";
|
||||
kernelDTB = true;
|
||||
kernelAutoModules = false;
|
||||
kernelExtraConfig = "";
|
||||
kernelExtraConfig = ''
|
||||
# Raspberry Pi 3 stuff. Not needed for kernels >= 4.10.
|
||||
ARCH_BCM2835 y
|
||||
BCM2835_MBOX y
|
||||
BCM2835_WDT y
|
||||
BRCMFMAC m
|
||||
DMA_BCM2835 m
|
||||
DRM_VC4 m
|
||||
I2C_BCM2835 m
|
||||
PWM_BCM2835 m
|
||||
RASPBERRYPI_FIRMWARE y
|
||||
RASPBERRYPI_POWER y
|
||||
SERIAL_8250_BCM2835AUX y
|
||||
SERIAL_8250_EXTENDED y
|
||||
SERIAL_8250_SHARE_IRQ y
|
||||
SND_BCM2835_SOC_I2S m
|
||||
SPI_BCM2835AUX m
|
||||
SPI_BCM2835 m
|
||||
|
||||
# Cavium ThunderX stuff.
|
||||
PCI_HOST_THUNDER_ECAM y
|
||||
THUNDER_NIC_RGX y
|
||||
THUNDER_NIC_BGX y
|
||||
THUNDER_NIC_PF y
|
||||
THUNDER_NIC_VF y
|
||||
'';
|
||||
uboot = null;
|
||||
kernelTarget = "Image";
|
||||
gcc = {
|
||||
|
Loading…
Reference in New Issue
Block a user