kernel.config 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # Banana Pi M2 Berry/Ultra (V40/R40): marlena and banana-backup. Merged after
  2. # files/kernel-common.config (sunxi_defconfig + common + this).
  3. # build-kernel.sh checks that every option here ended up in the final .config
  4. # with the requested value. Evidence for the options:
  5. # /mnt/d/SBC/bananapi-build/M2U/2026/kernel-options-report.md and
  6. # BANANA-V40-notes.md.
  7. CONFIG_LOCALVERSION="-k4be"
  8. # R40 pin controller (in the A10/A20 driver) and clocks; no R_PIO/R_CCU on the
  9. # R40, and the H3 ones are not needed
  10. CONFIG_PINCTRL_SUN4I_A10=y
  11. CONFIG_SUN8I_R40_CCU=y
  12. CONFIG_SUN8I_DE2_CCU=y
  13. # CONFIG_PINCTRL_SUN8I_H3 is not set
  14. # CONFIG_PINCTRL_SUN8I_H3_R is not set
  15. # CONFIG_SUN8I_H3_CCU is not set
  16. # CONFIG_SUN8I_R_CCU is not set
  17. # ---- PMIC: AXP221 on i2c0; its regulators feed SATA, the PHY, Wi-Fi, CPU ----
  18. CONFIG_MFD_AXP20X_I2C=y
  19. # CONFIG_MFD_AXP20X_RSB is not set
  20. CONFIG_REGULATOR_AXP20X=y
  21. CONFIG_AXP20X_POWER=y
  22. CONFIG_CHARGER_AXP20X=y
  23. CONFIG_BATTERY_AXP20X=y
  24. CONFIG_AXP20X_ADC=y
  25. # power button on the PMIC
  26. CONFIG_INPUT_AXP20X_PEK=y
  27. # no GPIO regulators and nothing on the SPI header
  28. # CONFIG_REGULATOR_GPIO is not set
  29. # CONFIG_SPI_SUN6I is not set
  30. # ---- RTC: battery-backed DS1307 at 0x68 on i2c2 is rtc0 (DT alias) ----
  31. CONFIG_RTC_DRV_DS1307=y
  32. CONFIG_RTC_HCTOSYS=y
  33. CONFIG_RTC_HCTOSYS_DEVICE="rtc0"
  34. # chrony's rtcsync (kernel 11-minute mode)
  35. CONFIG_RTC_SYSTOHC=y
  36. CONFIG_RTC_SYSTOHC_DEVICE="rtc0"
  37. # ---- SATA: /home and swap on both boards ----
  38. CONFIG_ATA=y
  39. CONFIG_SATA_AHCI_PLATFORM=y
  40. CONFIG_AHCI_SUNXI=y
  41. CONFIG_BLK_DEV_SD=y
  42. CONFIG_LEDS_TRIGGER_DISK=y
  43. # ---- ethernet: dwmac-sun8i (common fragment) with a Realtek RGMII PHY ----
  44. CONFIG_REALTEK_PHY=y
  45. # ---- file serving: NFS export of /home (marlena), samba is userspace ----
  46. CONFIG_NFSD=y
  47. CONFIG_NFSD_V4=y
  48. CONFIG_CIFS=y
  49. CONFIG_BRIDGE=y
  50. CONFIG_OVERLAY_FS=y
  51. CONFIG_ISO9660_FS=y
  52. CONFIG_JOLIET=y
  53. CONFIG_LEDS_TRIGGER_ACTIVITY=y
  54. # ---- HDMI console (local recovery without the serial cable) ----
  55. CONFIG_DRM=y
  56. CONFIG_DRM_SUN4I=y
  57. CONFIG_DRM_SUN8I_DW_HDMI=y
  58. CONFIG_DRM_FBDEV_EMULATION=y
  59. CONFIG_FRAMEBUFFER_CONSOLE=y
  60. # A10/A20 HDMI CEC; VGA bridges; PWM backlights (no panel)
  61. # CONFIG_DRM_SUN4I_HDMI_CEC is not set
  62. # CONFIG_DRM_SIMPLE_BRIDGE is not set
  63. # CONFIG_BACKLIGHT_PWM is not set
  64. # ---- diagnosing silent lockups (2026-11-18/19, see BANANA-V40-notes.md) ----
  65. # Both boards hung under sustained multi-core load with nothing in the logs.
  66. # netconsole (dynamic: target set up from userspace via configfs) sends kernel
  67. # messages over UDP even when userspace is frozen; the detectors print what
  68. # a stuck CPU or task is doing. The hard-lockup detector is the "buddy" one
  69. # (CPUs watch each other), the only kind available on 32-bit ARM.
  70. # DEBUG_KERNEL only makes the detectors selectable; it costs nothing itself.
  71. CONFIG_DEBUG_KERNEL=y
  72. CONFIG_NETCONSOLE=y
  73. CONFIG_NETCONSOLE_DYNAMIC=y
  74. CONFIG_SOFTLOCKUP_DETECTOR=y
  75. CONFIG_HARDLOCKUP_DETECTOR=y
  76. CONFIG_DETECT_HUNG_TASK=y
  77. # ---- not used on these servers ----
  78. # Sound: no speakers, HDMI audio unused.
  79. # CONFIG_SOUND is not set
  80. # OTG port: not enabled in either board DT (no usb_otg node), so neither
  81. # MUSB host mode nor gadgets can work.
  82. # CONFIG_USB_MUSB_HDRC is not set
  83. # CONFIG_USB_GADGET is not set
  84. # AP6212 Wi-Fi/BT: unused (no wlan config on either board, no firmware on
  85. # banana-backup). To use it: CONFIG_WIRELESS, CONFIG_WLAN, CONFIG_CFG80211,
  86. # CONFIG_BRCMFMAC=m (a module: its firmware comes from the rootfs).
  87. # CONFIG_WIRELESS is not set
  88. # CONFIG_WLAN is not set
  89. # CONFIG_BT is not set
  90. # banana-backup's 5.4 had 1-Wire (W1_SLAVE_THERM), but neither DT has a
  91. # w1-gpio master and /sys/bus/w1 has no devices: left out.