1 { pkgs, lib, config, modulesPath, ... }:
4 "${modulesPath}/installer/sd-card/sd-image.nix"
9 # Too CPU hungry for this hardware, for too little MiB saved
10 nix.settings.auto-optimise-store = false;
12 powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
14 boot.supportedFilesystems = [
20 #"zfs" # ZFS tools coredump with SIGSEGV
25 # The serial ports listed here are:
26 # - ttyS0: for Tegra (Jetson TK1)
27 # - ttymxc0: for i.MX6 (Wandboard)
28 # - ttyAMA0: for Allwinner (pcDuino3 Nano) and QEMU's -machine virt
29 # - ttyO0: for OMAP (BeagleBone Black)
30 # - ttySAC2: for Exynos (ODROID-XU3)
31 boot.consoleLogLevel = lib.mkDefault 7;
33 "console=ttyS0,115200n8"
34 "console=ttymxc0,115200n8"
35 "console=ttyAMA0,115200n8"
36 "console=ttyO0,115200n8"
37 "console=ttySAC2,115200n8"
40 boot.kernelPatches = [
43 name = "0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE";
44 patch = ../../../nixpkgs/patches/linux/0001-core_pattern-fix-too-small-CORENAME_MAX_SIZE.patch;
52 (finalPkgs: previousPkgs: {
53 # https://linux-sunxi.org/Mali_Open_Source_Driver#Configuration_and_Build
54 mesa = (previousPkgs.mesa.override {
55 eglPlatforms = [ "x11" ];
62 enableGalliumNine = false;
68 }).overrideAttrs (previousAttrs: {
69 mesonFlags = previousAttrs.mesonFlags ++ [
70 # VDPAU state tracker requires at least the following gallium drivers:
71 # r600, radeonsi, nouveau or d3d12
72 "-Dgallium-vdpau=disabled"
73 "-Dgallium-va=disabled"
74 # XA state tracker requires at least one of the following gallium drivers:
75 # nouveau, freedreno, i915, svga.
76 "-Dgallium-xa=disabled"
81 boot.tmp.cleanOnBoot = true;
82 boot.tmp.useTmpfs = lib.mkForce false;
83 # TODO: is that needed?
84 hardware.enableRedistributableFirmware = true;
86 postBuildCommands = ''
87 dd if=${pkgs.ubootCubieboard2}/u-boot-sunxi-with-spl.bin of=$img bs=1024 seek=8 conv=notrunc
92 populateFirmwareCommands = "";
93 populateRootCommands = ''
95 ${config.boot.loader.generic-extlinux-compatible.populateCmd} -c ${config.system.build.toplevel} -d ./files/boot
98 boot.loader.grub.enable = false;
99 boot.loader.generic-extlinux-compatible.enable = true;
100 # nix -L build .#nixosConfigurations.${hostName}.config.boot.kernelPackages.kernel.configfile
101 boot.kernelPackages = lib.mkForce (
102 pkgs.linuxPackages_latest.extend (finalKernel: previousKernel: {
103 kernel = previousKernel.kernel.override {
104 defconfig = "sunxi_defconfig";
105 structuredExtraConfig = with lib.kernel; {
106 # Workaround https://github.com/NixOS/nixpkgs/pull/141942#issuecomment-954301443
107 DEBUG_INFO = lib.mkForce no;
108 DEBUG_INFO_BTF = lib.mkForce no;
113 TORTURE_TEST = no; # TODO: check if it's possible
114 USB_SERIAL_CH341 = module;
115 USB_SERIAL_PL2303 = module;
116 REGULATOR = lib.mkForce no;
124 EXT4_USE_FOR_EXT2 = yes;
127 CONFIGFS_FS = module;
133 DRM_DISPLAY_CONNECTOR = module;
134 NET_SCH_CODEL = module;
135 NET_SCH_FQ_CODEL = module;
139 # Not built in the Cubieboard2, require an USB dongle
143 LIB80211_CRYPT_CCMP = module;
145 MAC80211_HWSIM = module;
148 WLAN_VENDOR_REALTEK = yes;
149 NET_VENDOR_REALTEK = yes;
152 RTL8188EE = module; # For 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
154 RTLWIFI_PCI = module;
159 SND_SOC_ADI_AXI_I2S = no;
160 SND_SOC_ADI_AXI_SPDIF = no;
161 SND_SOC_AMD_ACP = no;
162 SND_SOC_AMD_CZ_RT5645_MACH = no;
164 SND_SOC_MIKROE_PROTO = no;
165 SND_BCM63XX_I2S_WHISTLER = no;
166 SND_DESIGNWARE_I2S = no;
167 SND_SOC_FSL_ASRC = no;
168 SND_SOC_FSL_SAI = no;
169 SND_SOC_FSL_MQS = no;
170 SND_SOC_FSL_AUDMIX = no;
171 SND_SOC_FSL_SSI = no;
172 SND_SOC_FSL_SPDIF = no;
173 SND_SOC_FSL_ESAI = no;
174 SND_SOC_FSL_MICFIL = no;
175 SND_SOC_FSL_EASRC = no;
176 SND_SOC_FSL_XCVR = no;
177 SND_SOC_FSL_RPMSG = no;
178 SND_SOC_IMX_AUDMUX = no;
179 SND_I2S_HI6210_I2S = no;
180 SND_SOC_MTK_BTCVSD = no;
181 SND_SOC_XILINX_I2S = no;
182 SND_SOC_XILINX_AUDIO_FORMATTER = no;
183 SND_SOC_XILINX_SPDIF = no;
184 SND_SOC_XTFPGA_I2S = no;
185 SND_SOC_AC97_CODEC = no;
186 SND_SOC_ADAU_UTILS = no;
187 SND_SOC_ADAU1372 = no;
188 SND_SOC_ADAU1372_I2C = no;
189 SND_SOC_ADAU1372_SPI = no;
190 SND_SOC_ADAU1701 = no;
191 SND_SOC_ADAU17X1 = no;
192 SND_SOC_ADAU1761 = no;
193 SND_SOC_ADAU1761_I2C = no;
194 SND_SOC_ADAU1761_SPI = no;
195 SND_SOC_ADAU7002 = no;
196 SND_SOC_ADAU7118 = no;
197 SND_SOC_ADAU7118_HW = no;
198 SND_SOC_ADAU7118_I2C = no;
207 SND_SOC_ALC5623 = no;
208 SND_SOC_BD28623 = no;
211 SND_SOC_CS35L32 = no;
212 SND_SOC_CS35L33 = no;
213 SND_SOC_CS35L34 = no;
214 SND_SOC_CS35L35 = no;
215 SND_SOC_CS35L36 = no;
216 SND_SOC_CS42L42 = no;
217 SND_SOC_CS42L51 = no;
218 SND_SOC_CS42L51_I2C = no;
219 SND_SOC_CS42L52 = no;
220 SND_SOC_CS42L56 = no;
221 SND_SOC_CS42L73 = no;
226 SND_SOC_CS4271_I2C = no;
227 SND_SOC_CS4271_SPI = no;
228 SND_SOC_CS42XX8 = no;
229 SND_SOC_CS42XX8_I2C = no;
230 SND_SOC_CS43130 = no;
233 SND_SOC_CS53L30 = no;
234 SND_SOC_CX2072X = no;
237 SND_SOC_HDMI_CODEC = no;
242 SND_SOC_ES8328_I2C = no;
243 SND_SOC_ES8328_SPI = no;
245 SND_SOC_INNO_RK3036 = no;
246 SND_SOC_MAX98088 = no;
247 SND_SOC_MAX98357A = no;
248 SND_SOC_MAX98504 = no;
249 SND_SOC_MAX9867 = no;
250 SND_SOC_MAX98927 = no;
251 SND_SOC_MAX98373 = no;
252 SND_SOC_MAX98373_I2C = no;
253 SND_SOC_MAX98373_SDW = no;
254 SND_SOC_MAX98390 = no;
255 SND_SOC_MAX9860 = no;
256 SND_SOC_MSM8916_WCD_ANALOG = no;
257 SND_SOC_MSM8916_WCD_DIGITAL = no;
258 SND_SOC_PCM1681 = no;
259 SND_SOC_PCM1789 = no;
260 SND_SOC_PCM1789_I2C = no;
261 SND_SOC_PCM179X = no;
262 SND_SOC_PCM179X_I2C = no;
263 SND_SOC_PCM179X_SPI = no;
264 SND_SOC_PCM186X = no;
265 SND_SOC_PCM186X_I2C = no;
266 SND_SOC_PCM186X_SPI = no;
267 SND_SOC_PCM3060 = no;
268 SND_SOC_PCM3060_I2C = no;
269 SND_SOC_PCM3060_SPI = no;
270 SND_SOC_PCM3168A = no;
271 SND_SOC_PCM3168A_I2C = no;
272 SND_SOC_PCM3168A_SPI = no;
273 SND_SOC_PCM5102A = no;
274 SND_SOC_PCM512x = no;
275 SND_SOC_PCM512x_I2C = no;
276 SND_SOC_PCM512x_SPI = no;
280 SND_SOC_RT1308_SDW = no;
281 SND_SOC_RT1316_SDW = no;
288 SND_SOC_RT5682_SDW = no;
290 SND_SOC_RT700_SDW = no;
292 SND_SOC_RT711_SDW = no;
293 SND_SOC_RT711_SDCA_SDW = no;
295 SND_SOC_RT715_SDW = no;
296 SND_SOC_RT715_SDCA_SDW = no;
297 SND_SOC_SGTL5000 = no;
298 SND_SOC_SIGMADSP = no;
299 SND_SOC_SIGMADSP_I2C = no;
300 SND_SOC_SIGMADSP_REGMAP = no;
301 SND_SOC_SIMPLE_AMPLIFIER = no;
302 SND_SOC_SIMPLE_MUX = no;
304 SND_SOC_SSM2305 = no;
305 SND_SOC_SSM2518 = no;
306 SND_SOC_SSM2602 = no;
307 SND_SOC_SSM2602_SPI = no;
308 SND_SOC_SSM2602_I2C = no;
309 SND_SOC_SSM4567 = no;
312 SND_SOC_STI_SAS = no;
313 SND_SOC_TAS2552 = no;
314 SND_SOC_TAS2562 = no;
315 SND_SOC_TAS2764 = no;
316 SND_SOC_TAS2770 = no;
317 SND_SOC_TAS5086 = no;
318 SND_SOC_TAS571X = no;
319 SND_SOC_TAS5720 = no;
320 SND_SOC_TAS6424 = no;
321 SND_SOC_TDA7419 = no;
322 SND_SOC_TFA9879 = no;
323 SND_SOC_TFA989X = no;
324 SND_SOC_TLV320AIC23 = no;
325 SND_SOC_TLV320AIC23_I2C = no;
326 SND_SOC_TLV320AIC23_SPI = no;
327 SND_SOC_TLV320AIC31XX = no;
328 SND_SOC_TLV320AIC32X4 = no;
329 SND_SOC_TLV320AIC32X4_I2C = no;
330 SND_SOC_TLV320AIC32X4_SPI = no;
331 SND_SOC_TLV320AIC3X = no;
332 SND_SOC_TLV320AIC3X_I2C = no;
333 SND_SOC_TLV320AIC3X_SPI = no;
334 SND_SOC_TLV320ADCX140 = no;
335 SND_SOC_TS3A227E = no;
336 SND_SOC_TSCS42XX = no;
337 SND_SOC_TSCS454 = no;
338 SND_SOC_UDA1334 = no;
339 SND_SOC_WCD9335 = no;
340 SND_SOC_WCD_MBHC = no;
341 SND_SOC_WCD934X = no;
342 SND_SOC_WCD938X = no;
343 SND_SOC_WCD938X_SDW = no;
359 SND_SOC_WM8804_I2C = no;
360 SND_SOC_WM8804_SPI = no;
368 SND_SOC_WSA881X = no;
369 SND_SOC_ZL38060 = no;
370 SND_SOC_MAX9759 = no;
374 SND_SOC_NAU8315 = no;
375 SND_SOC_NAU8540 = no;
376 SND_SOC_NAU8810 = no;
377 SND_SOC_NAU8822 = no;
378 SND_SOC_NAU8824 = no;
379 SND_SOC_TPA6130A2 = no;
380 SND_SOC_LPASS_WSA_MACRO = no;
381 SND_SOC_LPASS_VA_MACRO = no;
382 SND_SOC_LPASS_RX_MACRO = no;
383 SND_SOC_LPASS_TX_MACRO = no;
384 SND_SIMPLE_CARD_UTILS = no;
385 SND_SIMPLE_CARD = no;
386 SND_AUDIO_GRAPH_CARD = no;
393 TCP_CONG_BBR = module;
395 #PPP_MULTILINK = lib.mkForce no;
396 #PPP_FILTER = lib.mkForce no;
408 IPV6_ROUTER_PREF = yes;
409 IPV6_ROUTE_INFO = yes;
410 IPV6_OPTIMISTIC_DAD = yes;
413 INET6_ESP_OFFLOAD = module;
414 INET6_ESPINTCP = yes;
415 INET6_IPCOMP = module;
418 INET6_XFRM_TUNNEL = module;
419 INET6_TUNNEL = module;
423 IPV6_NDISC_NODETYPE = yes;
424 IPV6_TUNNEL = module;
425 IPV6_MULTIPLE_TABLES = yes;
428 IPV6_MROUTE_MULTIPLE_TABLES = yes;
430 IPV6_SEG6_LWTUNNEL = yes;
431 IPV6_SEG6_HMAC = yes;
432 IPV6_RPL_LWTUNNEL = yes;
433 # CONFIG_MPTCP is not set
434 # CONFIG_NETWORK_SECMARK is not set
435 NET_PTP_CLASSIFY = yes;
436 # CONFIG_NETWORK_PHY_TIMESTAMPING is not set
438 NETFILTER_ADVANCED = yes;
441 # Core Netfilter Configuration
443 NETFILTER_INGRESS = yes;
444 NETFILTER_NETLINK = module;
445 NETFILTER_FAMILY_ARP = yes;
446 NETFILTER_NETLINK_HOOK = module;
447 NETFILTER_NETLINK_ACCT = module;
448 NETFILTER_NETLINK_QUEUE = module;
449 NETFILTER_NETLINK_LOG = module;
450 NETFILTER_NETLINK_OSF = module;
451 NF_CONNTRACK = module;
452 NF_LOG_SYSLOG = module;
453 NETFILTER_CONNCOUNT = module;
454 NF_CONNTRACK_MARK = yes;
455 NF_CONNTRACK_ZONES = yes;
456 NF_CONNTRACK_PROCFS = yes;
457 NF_CONNTRACK_EVENTS = yes;
458 NF_CONNTRACK_TIMEOUT = yes;
459 NF_CONNTRACK_TIMESTAMP = yes;
460 NF_CONNTRACK_LABELS = yes;
461 NF_CT_PROTO_DCCP = yes;
462 NF_CT_PROTO_SCTP = yes;
463 NF_CT_PROTO_UDPLITE = yes;
464 # CONFIG_NF_CONNTRACK_AMANDA is not set
465 # CONFIG_NF_CONNTRACK_FTP is not set
466 # CONFIG_NF_CONNTRACK_H323 is not set
467 # CONFIG_NF_CONNTRACK_IRC is not set
468 # CONFIG_NF_CONNTRACK_NETBIOS_NS is not set
469 # CONFIG_NF_CONNTRACK_SNMP is not set
470 # CONFIG_NF_CONNTRACK_PPTP is not set
471 # CONFIG_NF_CONNTRACK_SANE is not set
472 # CONFIG_NF_CONNTRACK_SIP is not set
473 # CONFIG_NF_CONNTRACK_TFTP is not set
474 NF_CT_NETLINK = module;
475 NF_CT_NETLINK_TIMEOUT = module;
476 NF_CT_NETLINK_HELPER = module;
477 NETFILTER_NETLINK_GLUE_CT = yes;
479 NF_NAT_REDIRECT = yes;
480 NF_NAT_MASQUERADE = yes;
481 NETFILTER_SYNPROXY = module;
483 NF_TABLES_INET = yes;
484 NF_TABLES_NETDEV = yes;
487 NFT_COUNTER = module;
488 NFT_CONNLIMIT = module;
499 NFT_REJECT_INET = module;
503 NFT_FIB_INET = module;
508 NFT_SYNPROXY = module;
509 NF_DUP_NETDEV = module;
510 NFT_DUP_NETDEV = module;
511 NFT_FWD_NETDEV = module;
512 NFT_FIB_NETDEV = module;
513 NFT_REJECT_NETDEV = module;
514 # CONFIG_NF_FLOW_TABLE is not set
515 NETFILTER_XTABLES = module;
518 # Xtables combined modules
520 NETFILTER_XT_MARK = module;
521 NETFILTER_XT_CONNMARK = module;
522 NETFILTER_XT_SET = module;
527 NETFILTER_XT_TARGET_CHECKSUM = module;
528 NETFILTER_XT_TARGET_CLASSIFY = module;
529 NETFILTER_XT_TARGET_CONNMARK = module;
530 NETFILTER_XT_TARGET_CT = module;
531 NETFILTER_XT_TARGET_DSCP = module;
532 NETFILTER_XT_TARGET_HL = module;
533 NETFILTER_XT_TARGET_HMARK = module;
534 NETFILTER_XT_TARGET_IDLETIMER = module;
535 NETFILTER_XT_TARGET_LED = module;
536 NETFILTER_XT_TARGET_LOG = module;
537 NETFILTER_XT_TARGET_MARK = module;
538 NETFILTER_XT_NAT = module;
539 NETFILTER_XT_TARGET_NETMAP = module;
540 NETFILTER_XT_TARGET_NFLOG = module;
541 NETFILTER_XT_TARGET_NFQUEUE = module;
542 NETFILTER_XT_TARGET_NOTRACK = module;
543 NETFILTER_XT_TARGET_RATEEST = module;
544 NETFILTER_XT_TARGET_REDIRECT = module;
545 NETFILTER_XT_TARGET_MASQUERADE = module;
546 NETFILTER_XT_TARGET_TEE = module;
547 NETFILTER_XT_TARGET_TPROXY = module;
548 NETFILTER_XT_TARGET_TRACE = module;
549 NETFILTER_XT_TARGET_TCPMSS = module;
550 NETFILTER_XT_TARGET_TCPOPTSTRIP = module;
555 NETFILTER_XT_MATCH_ADDRTYPE = module;
556 NETFILTER_XT_MATCH_BPF = module;
557 NETFILTER_XT_MATCH_CGROUP = module;
558 NETFILTER_XT_MATCH_CLUSTER = module;
559 NETFILTER_XT_MATCH_COMMENT = module;
560 NETFILTER_XT_MATCH_CONNBYTES = module;
561 NETFILTER_XT_MATCH_CONNLABEL = module;
562 NETFILTER_XT_MATCH_CONNLIMIT = module;
563 NETFILTER_XT_MATCH_CONNMARK = module;
564 NETFILTER_XT_MATCH_CONNTRACK = module;
565 NETFILTER_XT_MATCH_CPU = module;
566 NETFILTER_XT_MATCH_DCCP = module;
567 NETFILTER_XT_MATCH_DEVGROUP = module;
568 NETFILTER_XT_MATCH_DSCP = module;
569 NETFILTER_XT_MATCH_ECN = module;
570 NETFILTER_XT_MATCH_ESP = module;
571 NETFILTER_XT_MATCH_HASHLIMIT = module;
572 NETFILTER_XT_MATCH_HELPER = module;
573 NETFILTER_XT_MATCH_HL = module;
574 NETFILTER_XT_MATCH_IPCOMP = module;
575 NETFILTER_XT_MATCH_IPRANGE = module;
576 NETFILTER_XT_MATCH_L2TP = module;
577 NETFILTER_XT_MATCH_LENGTH = module;
578 NETFILTER_XT_MATCH_LIMIT = module;
579 NETFILTER_XT_MATCH_MAC = module;
580 NETFILTER_XT_MATCH_MARK = module;
581 NETFILTER_XT_MATCH_MULTIPORT = module;
582 NETFILTER_XT_MATCH_NFACCT = module;
583 NETFILTER_XT_MATCH_OSF = module;
584 NETFILTER_XT_MATCH_OWNER = module;
585 # CONFIG_NETFILTER_XT_MATCH_POLICY is not set
586 NETFILTER_XT_MATCH_PKTTYPE = module;
587 NETFILTER_XT_MATCH_QUOTA = module;
588 NETFILTER_XT_MATCH_RATEEST = module;
589 NETFILTER_XT_MATCH_REALM = module;
590 NETFILTER_XT_MATCH_RECENT = module;
591 NETFILTER_XT_MATCH_SCTP = module;
592 NETFILTER_XT_MATCH_SOCKET = module;
593 NETFILTER_XT_MATCH_STATE = module;
594 NETFILTER_XT_MATCH_STATISTIC = module;
595 NETFILTER_XT_MATCH_STRING = module;
596 NETFILTER_XT_MATCH_TCPMSS = module;
597 NETFILTER_XT_MATCH_TIME = module;
598 NETFILTER_XT_MATCH_U32 = module;
599 # end of Core Netfilter Configuration
602 IP_SET_MAX.freeform = "256";
603 IP_SET_BITMAP_IP = module;
604 IP_SET_BITMAP_IPMAC = module;
605 IP_SET_BITMAP_PORT = module;
606 IP_SET_HASH_IP = module;
607 IP_SET_HASH_IPMARK = module;
608 IP_SET_HASH_IPPORT = module;
609 IP_SET_HASH_IPPORTIP = module;
610 IP_SET_HASH_IPPORTNET = module;
611 IP_SET_HASH_IPMAC = module;
612 IP_SET_HASH_MAC = module;
613 IP_SET_HASH_NETPORTNET = module;
614 IP_SET_HASH_NET = module;
615 IP_SET_HASH_NETNET = module;
616 IP_SET_HASH_NETPORT = module;
617 IP_SET_HASH_NETIFACE = module;
618 IP_SET_LIST_SET = module;
619 # CONFIG_IP_VS is not set
622 # IP: Netfilter Configuration
624 NF_DEFRAG_IPV4 = module;
625 NF_SOCKET_IPV4 = module;
626 NF_TPROXY_IPV4 = module;
627 NF_TABLES_IPV4 = yes;
628 NFT_REJECT_IPV4 = module;
629 NFT_DUP_IPV4 = module;
630 NFT_FIB_IPV4 = module;
631 # CONFIG_NF_TABLES_ARP is not set
632 NF_DUP_IPV4 = module;
633 # CONFIG_NF_LOG_ARP is not set
634 # CONFIG_NF_LOG_IPV4 is not set
635 NF_REJECT_IPV4 = module;
636 IP_NF_IPTABLES = module;
637 IP_NF_MATCH_AH = module;
638 IP_NF_MATCH_ECN = module;
639 IP_NF_MATCH_RPFILTER = module;
640 IP_NF_MATCH_TTL = module;
641 IP_NF_FILTER = module;
642 IP_NF_TARGET_REJECT = module;
643 IP_NF_TARGET_SYNPROXY = module;
645 IP_NF_TARGET_MASQUERADE = module;
646 IP_NF_TARGET_NETMAP = module;
647 IP_NF_TARGET_REDIRECT = module;
648 IP_NF_MANGLE = module;
649 IP_NF_TARGET_CLUSTERIP = module;
650 IP_NF_TARGET_ECN = module;
651 IP_NF_TARGET_TTL = module;
652 # CONFIG_IP_NF_RAW is not set
653 # CONFIG_IP_NF_ARPTABLES is not set
654 # end of IP: Netfilter Configuration
657 # IPv6: Netfilter Configuration
659 NF_SOCKET_IPV6 = module;
660 NF_TPROXY_IPV6 = module;
661 NF_TABLES_IPV6 = yes;
662 NFT_REJECT_IPV6 = module;
663 NFT_DUP_IPV6 = module;
664 NFT_FIB_IPV6 = module;
665 NF_DUP_IPV6 = module;
666 NF_REJECT_IPV6 = module;
667 NF_LOG_IPV6 = module;
668 IP6_NF_IPTABLES = module;
669 IP6_NF_MATCH_AH = module;
670 IP6_NF_MATCH_EUI64 = module;
671 IP6_NF_MATCH_FRAG = module;
672 IP6_NF_MATCH_OPTS = module;
673 IP6_NF_MATCH_HL = module;
674 IP6_NF_MATCH_IPV6HEADER = module;
675 IP6_NF_MATCH_MH = module;
676 IP6_NF_MATCH_RPFILTER = module;
677 IP6_NF_MATCH_RT = module;
678 IP6_NF_MATCH_SRH = module;
679 IP6_NF_TARGET_HL = module;
680 IP6_NF_FILTER = module;
681 IP6_NF_TARGET_REJECT = module;
682 IP6_NF_TARGET_SYNPROXY = module;
683 IP6_NF_MANGLE = module;
686 IP6_NF_TARGET_MASQUERADE = module;
687 IP6_NF_TARGET_NPT = module;
688 # end of IPv6: Netfilter Configuration
690 NF_DEFRAG_IPV6 = module;
709 F2FS_FS = lib.mkForce no;
732 MISC_FILESYSTEMS = no;
746 STAGING = lib.mkForce no;
757 DRM_STM = lib.mkForce no;
760 DRM_CHIPONE_ICN6211 = no;
761 DRM_CHRONTEL_CH7033 = no;
762 #DRM_DISPLAY_CONNECTOR = no;
763 DRM_LONTIUM_LT8912B = no;
764 DRM_LONTIUM_LT9611 = no;
765 DRM_LONTIUM_LT9611UXC = no;
766 DRM_ITE_IT66121 = no;
768 DRM_MEGACHIPS_STDPXXXX_GE_B850V3_FW = no;
769 DRM_NWL_MIPI_DSI = no;
770 DRM_NXP_PTN3460 = no;
771 DRM_PARADE_PS8622 = no;
772 DRM_PARADE_PS8640 = no;
773 DRM_SIL_SII8620 = no;
776 DRM_SIMPLE_BRIDGE = no;
777 DRM_THINE_THC63LVD1024 = no;
778 DRM_TOSHIBA_TC358762 = no;
779 DRM_TOSHIBA_TC358764 = no;
780 DRM_TOSHIBA_TC358767 = no;
781 DRM_TOSHIBA_TC358768 = no;
782 DRM_TOSHIBA_TC358775 = no;
784 DRM_TI_SN65DSI83 = no;
785 DRM_TI_SN65DSI86 = no;
786 DRM_TI_TPD12S015 = no;
787 DRM_ANALOGIX_ANX6345 = no;
788 DRM_ANALOGIX_ANX78XX = no;
789 DRM_ANALOGIX_DP = no;
790 DRM_ANALOGIX_ANX7625 = no;
791 DRM_I2C_ADV7511 = no;
792 DRM_I2C_ADV7511_CEC = no;
793 DRM_CDNS_MHDP8546 = no;
795 DRM_DW_HDMI_AHB_AUDIO = no;
796 DRM_DW_HDMI_I2S_AUDIO = no;
797 DRM_DW_HDMI_CEC = no;
800 DRM_IMX_PARALLEL_DISPLAY = no;
805 DRM_ETNAVIV_THERMAL = no;
810 TINYDRM_HX8357D = no;
811 TINYDRM_ILI9225 = no;
812 TINYDRM_ILI9341 = no;
813 TINYDRM_ILI9486 = no;
814 TINYDRM_MI0283QT = no;
815 TINYDRM_REPAPER = no;
817 TINYDRM_ST7735R = no;
820 DRM_EXPORT_FOR_TESTS = no;
821 DRM_FBDEV_EMULATION = yes;
823 DRM_KMS_FB_HELPER = yes;
824 DRM_KMS_HELPER = module;
826 DRM_LIMA = module; # TODO: enable for the Mali 400 of the Cubieboard 2
827 DRM_LVDS_ENCODER = module;
831 DRM_PANEL_BRIDGE = yes;
832 DRM_PANEL_LVDS = module;
833 DRM_PANEL_ORIENTATION_QUIRKS = no;
834 DRM_PANFROST = no; # Not for the hardware of the Cubieboard 2not supported b
839 VIDEOMODE_HELPERS = yes;
843 FB_CFB_FILLRECT = yes;
844 FB_CFB_COPYAREA = yes;
845 FB_CFB_IMAGEBLIT = yes;
846 FB_MODE_HELPERS = yes;
847 FB_TILEBLITTING = yes;
851 FRAMEBUFFER_CONSOLE = yes;
852 FRAMEBUFFER_CONSOLE_DETECT_PRIMARY = yes;
853 FRAMEBUFFER_CONSOLE_ROTATION = yes;
854 FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER = yes;
856 BACKLIGHT_LCD_SUPPORT = yes;
857 LCD_CLASS_DEVICE = module;
858 LCD_PLATFORM = module;
859 BACKLIGHT_CLASS_DEVICE = module;
860 BACKLIGHT_GENERIC = module;
861 BACKLIGHT_PWM = module;
862 BACKLIGHT_GPIO = module;
864 INFINIBAND = lib.mkForce no;
865 INPUT_TOUCHSCREEN = no;
866 MEDIA_ANALOG_TV_SUPPORT = lib.mkForce no;
867 MEDIA_DIGITAL_TV_SUPPORT = lib.mkForce no;
870 MPTCP = lib.mkForce no;
872 NF_TABLES_BRIDGE = lib.mkForce no;
875 PARAVIRT = lib.mkForce no;
877 USB_GSPCA = lib.mkForce no;
878 VIDEO_STK1160_COMMON = lib.mkForce no;
879 XEN = lib.mkForce no;
882 features.debug = false;
883 #ignoreConfigErrors = true;
886 boot.initrd.availableKernelModules = lib.mkForce [