[PATCH v4 2/6] at91: enable specific sam9x kernel config flags
Hauke Mehrtens
hauke at hauke-m.de
Sun Oct 3 15:52:05 PDT 2021
On 9/20/21 11:27 AM, Claudiu Beznea wrote:
> Enable specific sam9x kernel config flags.
>
> Signed-off-by: Claudiu Beznea <claudiu.beznea at microchip.com>
> ---
> target/linux/at91/sam9x/config-default | 168 +++++++++++++++++++++++--
> 1 file changed, 159 insertions(+), 9 deletions(-)
>
> diff --git a/target/linux/at91/sam9x/config-default b/target/linux/at91/sam9x/config-default
> index d8b5c31dc7e5..a9f66766b1f2 100644
> --- a/target/linux/at91/sam9x/config-default
> +++ b/target/linux/at91/sam9x/config-default
> @@ -1,7 +1,6 @@
.....
> CONFIG_INITRAMFS_SOURCE=""
> +CONFIG_INPUT=y
> +CONFIG_INPUT_KEYBOARD=y
Do you really need keyboard support in OpenWrt?
OpenWrt uses some patches to hanlde buttons like a wifi on / off switch.
> CONFIG_IRQCHIP=y
> CONFIG_IRQ_DOMAIN=y
> CONFIG_IRQ_FORCED_THREADING=y
> CONFIG_IRQ_WORK=y
> +CONFIG_JBD2=y
> +CONFIG_LEDS_GPIO=y
> +CONFIG_LEDS_PWM=y
> +CONFIG_LEDS_TRIGGER_CPU=y
> +CONFIG_LEDS_TRIGGER_GPIO=y
.....
> +CONFIG_USB=y
> +CONFIG_USB_ACM=y
> +CONFIG_USB_AT91=y
> +CONFIG_USB_ATMEL_USBA=y
> +CONFIG_USB_COMMON=y
> +CONFIG_USB_CONFIGFS=y
I would prefer if you put the USB gadget stuff into a optional openwrt
kmod kernel package instead of compiling this into the kernel.
> +CONFIG_USB_CONFIGFS_ACM=y
> +# CONFIG_USB_CONFIGFS_ECM is not set
> +# CONFIG_USB_CONFIGFS_ECM_SUBSET is not set
> +# CONFIG_USB_CONFIGFS_EEM is not set
> +# CONFIG_USB_CONFIGFS_F_FS is not set
> +# CONFIG_USB_CONFIGFS_F_HID is not set
> +# CONFIG_USB_CONFIGFS_F_LB_SS is not set
> +# CONFIG_USB_CONFIGFS_F_PRINTER is not set
> +CONFIG_USB_CONFIGFS_MASS_STORAGE=y
> +# CONFIG_USB_CONFIGFS_NCM is not set
> +# CONFIG_USB_CONFIGFS_OBEX is not set
> +# CONFIG_USB_CONFIGFS_RNDIS is not set
> +# CONFIG_USB_CONFIGFS_SERIAL is not set
> +CONFIG_USB_EHCI_HCD=y
> +CONFIG_USB_EHCI_HCD_AT91=y
> +# CONFIG_USB_EHCI_HCD_PLATFORM is not set
> +CONFIG_USB_ETH=y
> +# CONFIG_USB_ETH_EEM is not set
> +CONFIG_USB_ETH_RNDIS=y
> +CONFIG_USB_F_ACM=y
> +CONFIG_USB_F_ECM=y
> +CONFIG_USB_F_MASS_STORAGE=y
> +CONFIG_USB_F_RNDIS=y
> +CONFIG_USB_F_SUBSET=y
> +CONFIG_USB_GADGET=y
> +CONFIG_USB_LIBCOMPOSITE=y
> +CONFIG_USB_OHCI_HCD=y
> +CONFIG_USB_OHCI_HCD_AT91=y
> +CONFIG_USB_OHCI_HCD_PLATFORM=y
> +CONFIG_USB_SERIAL=y
> +# CONFIG_USB_SERIAL_CONSOLE is not set
> +CONFIG_USB_SERIAL_FTDI_SIO=y
.....
More information about the openwrt-devel
mailing list