# Banana Pi M2 Berry/Ultra (V40/R40): marlena and banana-backup. Merged after # files/kernel-common.config (sunxi_defconfig + common + this). # build-kernel.sh checks that every option here ended up in the final .config # with the requested value. Evidence for the options: # /mnt/d/SBC/bananapi-build/M2U/2026/kernel-options-report.md and # BANANA-V40-notes.md. CONFIG_LOCALVERSION="-k4be" # R40 pin controller (in the A10/A20 driver) and clocks; no R_PIO/R_CCU on the # R40, and the H3 ones are not needed CONFIG_PINCTRL_SUN4I_A10=y CONFIG_SUN8I_R40_CCU=y CONFIG_SUN8I_DE2_CCU=y # CONFIG_PINCTRL_SUN8I_H3 is not set # CONFIG_PINCTRL_SUN8I_H3_R is not set # CONFIG_SUN8I_H3_CCU is not set # CONFIG_SUN8I_R_CCU is not set # ---- PMIC: AXP221 on i2c0; its regulators feed SATA, the PHY, Wi-Fi, CPU ---- CONFIG_MFD_AXP20X_I2C=y # CONFIG_MFD_AXP20X_RSB is not set CONFIG_REGULATOR_AXP20X=y CONFIG_AXP20X_POWER=y CONFIG_CHARGER_AXP20X=y CONFIG_BATTERY_AXP20X=y CONFIG_AXP20X_ADC=y # power button on the PMIC CONFIG_INPUT_AXP20X_PEK=y # no GPIO regulators and nothing on the SPI header # CONFIG_REGULATOR_GPIO is not set # CONFIG_SPI_SUN6I is not set # ---- RTC: battery-backed DS1307 at 0x68 on i2c2 is rtc0 (DT alias) ---- CONFIG_RTC_DRV_DS1307=y CONFIG_RTC_HCTOSYS=y CONFIG_RTC_HCTOSYS_DEVICE="rtc0" # chrony's rtcsync (kernel 11-minute mode) CONFIG_RTC_SYSTOHC=y CONFIG_RTC_SYSTOHC_DEVICE="rtc0" # ---- SATA: /home and swap on both boards ---- CONFIG_ATA=y CONFIG_SATA_AHCI_PLATFORM=y CONFIG_AHCI_SUNXI=y CONFIG_BLK_DEV_SD=y CONFIG_LEDS_TRIGGER_DISK=y # ---- ethernet: dwmac-sun8i (common fragment) with a Realtek RGMII PHY ---- CONFIG_REALTEK_PHY=y # ---- file serving: NFS export of /home (marlena), samba is userspace ---- CONFIG_NFSD=y CONFIG_NFSD_V4=y CONFIG_CIFS=y CONFIG_BRIDGE=y CONFIG_OVERLAY_FS=y CONFIG_ISO9660_FS=y CONFIG_JOLIET=y CONFIG_LEDS_TRIGGER_ACTIVITY=y # ---- HDMI console (local recovery without the serial cable) ---- CONFIG_DRM=y CONFIG_DRM_SUN4I=y CONFIG_DRM_SUN8I_DW_HDMI=y CONFIG_DRM_FBDEV_EMULATION=y CONFIG_FRAMEBUFFER_CONSOLE=y # A10/A20 HDMI CEC; VGA bridges; PWM backlights (no panel) # CONFIG_DRM_SUN4I_HDMI_CEC is not set # CONFIG_DRM_SIMPLE_BRIDGE is not set # CONFIG_BACKLIGHT_PWM is not set # ---- diagnosing silent lockups (2026-11-18/19, see BANANA-V40-notes.md) ---- # Both boards hung under sustained multi-core load with nothing in the logs. # netconsole (dynamic: target set up from userspace via configfs) sends kernel # messages over UDP even when userspace is frozen; the detectors print what # a stuck CPU or task is doing. The hard-lockup detector is the "buddy" one # (CPUs watch each other), the only kind available on 32-bit ARM. # DEBUG_KERNEL only makes the detectors selectable; it costs nothing itself. CONFIG_DEBUG_KERNEL=y CONFIG_NETCONSOLE=y CONFIG_NETCONSOLE_DYNAMIC=y CONFIG_SOFTLOCKUP_DETECTOR=y CONFIG_HARDLOCKUP_DETECTOR=y CONFIG_DETECT_HUNG_TASK=y # ---- not used on these servers ---- # Sound: no speakers, HDMI audio unused. # CONFIG_SOUND is not set # OTG port: not enabled in either board DT (no usb_otg node), so neither # MUSB host mode nor gadgets can work. # CONFIG_USB_MUSB_HDRC is not set # CONFIG_USB_GADGET is not set # AP6212 Wi-Fi/BT: unused (no wlan config on either board, no firmware on # banana-backup). To use it: CONFIG_WIRELESS, CONFIG_WLAN, CONFIG_CFG80211, # CONFIG_BRCMFMAC=m (a module: its firmware comes from the rootfs). # CONFIG_WIRELESS is not set # CONFIG_WLAN is not set # CONFIG_BT is not set # banana-backup's 5.4 had 1-Wire (W1_SLAVE_THERM), but neither DT has a # w1-gpio master and /sys/bus/w1 has no devices: left out.