I took a stab at this, there are many more options to decide on than
mentioned here. I enabled these as modules when possible, and generally
took the default for the rest. Please look over the options below and
let me know if they look reasonable.

Regarding CONFIG_PHY_SUN4I_USB, you've indicated that it should be =y
but it is also available as a module. Is there any reason it cannot be
=m instead?

Note that this is with a 4.12-based kernel.

CONFIG_ARCH_SUNXI=y
CONFIG_AHCI_SUNXI=m
CONFIG_DMA_SUN6I=m
CONFIG_DWMAC_SUNXI=m
CONFIG_IR_SUNXI=m
CONFIG_KEYBOARD_SUN4I_LRADC=m
CONFIG_MDIO_SUN4I=m
CONFIG_MFD_AC100=m
CONFIG_MFD_AXP20X_RSB=m
CONFIG_MFD_SUN4I_GPADC=m
CONFIG_MFD_SUN6I_PRCM=y
CONFIG_MMC_SUNXI=m
CONFIG_MTD_NAND_SUNXI=m
CONFIG_NET_VENDOR_ALLWINNER=y
CONFIG_NVMEM_SUNXI_SID=m
CONFIG_PHY_SUN4I_USB=m
CONFIG_PHY_SUN9I_USB=m
# CONFIG_PINCTRL_SUN4I_A10 is not set
CONFIG_PINCTRL_SUN50I_A64=y
CONFIG_PINCTRL_SUN50I_A64_R=y                             
CONFIG_PINCTRL_SUN50I_H5=y  
# CONFIG_PINCTRL_SUN5I is not set
# CONFIG_PINCTRL_SUN6I_A31 is not set
# CONFIG_PINCTRL_SUN6I_A31_R is not set
# CONFIG_PINCTRL_SUN7I_A20 is not set
# CONFIG_PINCTRL_SUN8I_A23 is not set
# CONFIG_PINCTRL_SUN8I_A23_R is not set
# CONFIG_PINCTRL_SUN8I_A33 is not set
# CONFIG_PINCTRL_SUN8I_A83T is not set
# CONFIG_PINCTRL_SUN8I_H3 is not set
CONFIG_PINCTRL_SUN8I_H3_R=y 
# CONFIG_PINCTRL_SUN8I_V3S is not set
# CONFIG_PINCTRL_SUN9I_A80 is not set
# CONFIG_PINCTRL_SUN9I_A80_R is not set
CONFIG_PINCTRL_SUNXI=y
CONFIG_PWM_SUN4I=m
CONFIG_RESET_SUNXI=y
CONFIG_RTC_DRV_AC100=m
CONFIG_RTC_DRV_SUN6I=y
CONFIG_SERIO_SUN4I_PS2=m
CONFIG_SND_SUN4I_CODEC=m
CONFIG_SND_SUN4I_I2S=m
CONFIG_SND_SUN4I_SPDIF=m
CONFIG_SND_SUN8I_CODEC_ANALOG=m
CONFIG_SPI_SUN4I=m
CONFIG_SPI_SUN6I=m
CONFIG_SUN4I_EMAC=m
CONFIG_SUN4I_GPADC=m        
CONFIG_SUN50I_A64_CCU=y
# CONFIG_SUN8I_H3_CCU is not set
CONFIG_SUN8I_R_CCU=y
CONFIG_SUNXI_CCU=y
CONFIG_SUNXI_CCU_DIV=y
CONFIG_SUNXI_CCU_FRAC=y
CONFIG_SUNXI_CCU_GATE=y
CONFIG_SUNXI_CCU_MP=y
CONFIG_SUNXI_CCU_MUX=y
CONFIG_SUNXI_CCU_NK=y
CONFIG_SUNXI_CCU_NKM=y
CONFIG_SUNXI_CCU_NKMP=y
CONFIG_SUNXI_CCU_NM=y
CONFIG_SUNXI_CCU_PHASE=y
CONFIG_SUNXI_RSB=m
CONFIG_SUNXI_SRAM=y
CONFIG_SUNXI_WATCHDOG=m
CONFIG_TOUCHSCREEN_SUN4I=m
CONFIG_USB_MUSB_SUNXI=m

** Changed in: linux (Ubuntu Artful)
       Status: Triaged => Incomplete

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1701137

Title:
  enable ARCH_SUNXI (and friends) in arm64 kernel .config

Status in linux package in Ubuntu:
  Incomplete
Status in linux source package in Artful:
  Incomplete

Bug description:
  The mainline support for the ARM64 Allwinner SoCs (featured on the Pine64 
boards and the Pinebook notebook, for instance, as well as other development 
boards like the BananaPi-M64) has come a long way by now, since 4.11 we have 
MMC and USB support working.
  Now can we just enable the proper .config bits to make the official Ubuntu 
kernel support those boards? The latest mainline U-Boot can load an EFI grub 
from some UEFI ESP partition, so any standard EFI installer should work.
  Apart from some minor hiccup (a missing MBR bootable flag/MBR at all) this 
works already with the Debian-testing netinst installer.
  The config symbols needed for decent support are (all enabled by the latest 
Debian kernel and the official mainline defconfig):
  ARCH_SUNXI=y
  CONFIG_USB_MUSB_SUNXI=m
  CONFIG_MMC_SUNXI=m
  CONFIG_RTC_DRV_SUN6I=y
  CONFIG_PHY_SUN4I_USB=y

  Those enable MMC and USB (the mandatory clocks, pinctrl and UART are enabled 
by default) and make those boards quite usable already. The on-SoC Ethernet 
driver will probably be merged into 4.13-rc1.
  Optionally:
  CONFIG_I2C_MV64XXX=m
  CONFIG_SPI_SUN6I=m
  give us I2C and SPI support as well.

  So can we add those symbols to the Ubuntu kernel .config to give users
  an out-of-the-box experience?

  Cheers,
  Andre.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1701137/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to