2018-08-27 12:34:34

by Leonard Crestez

[permalink] [raw]
Subject: [PATCH] ARM: imx_v6_v7_defconfig: Make usbnet drivers builtin for boot

Chips such as imx6sll and imx7ulp have no ethernet support so the common
development usecase of nfs boot is supported via usb ethernet dongles.

Add drivers for additional usbnet device directly into the kernel image
image produced by the imx defconfig.

This list is based on the usbnet devices supported by uboot.

Signed-off-by: Leonard Crestez <[email protected]>

---
This is not a very pretty solution but very convenient.
---
arch/arm/configs/imx_v6_v7_defconfig | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
index e2c127608bcc..7474bb5b3a6f 100644
--- a/arch/arm/configs/imx_v6_v7_defconfig
+++ b/arch/arm/configs/imx_v6_v7_defconfig
@@ -147,13 +147,16 @@ CONFIG_SMSC911X=y
CONFIG_AT803X_PHY=y
CONFIG_MICREL_PHY=y
CONFIG_SMSC_PHY=y
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
-CONFIG_USB_RTL8152=m
+CONFIG_USB_RTL8152=y
+CONFIG_USB_LAN78XX=y
CONFIG_USB_USBNET=y
CONFIG_USB_NET_CDC_EEM=m
+CONFIG_USB_NET_SMSC95XX=y
+CONFIG_USB_NET_MCS7830=y
CONFIG_BRCMFMAC=m
CONFIG_MWIFIEX=m
CONFIG_MWIFIEX_SDIO=m
CONFIG_MWIFIEX_PCIE=m
CONFIG_WL12XX=m
--
2.17.1



2018-08-29 14:57:44

by Shawn Guo

[permalink] [raw]
Subject: Re: [PATCH] ARM: imx_v6_v7_defconfig: Make usbnet drivers builtin for boot

On Mon, Aug 27, 2018 at 03:32:39PM +0300, Leonard Crestez wrote:
> Chips such as imx6sll and imx7ulp have no ethernet support so the common
> development usecase of nfs boot is supported via usb ethernet dongles.
>
> Add drivers for additional usbnet device directly into the kernel image
> image produced by the imx defconfig.
^^^^^

Redundant 'image'. I fixed it up and applied the patch.

Shawn

>
> This list is based on the usbnet devices supported by uboot.
>
> Signed-off-by: Leonard Crestez <[email protected]>
>
> ---
> This is not a very pretty solution but very convenient.
> ---
> arch/arm/configs/imx_v6_v7_defconfig | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/arch/arm/configs/imx_v6_v7_defconfig b/arch/arm/configs/imx_v6_v7_defconfig
> index e2c127608bcc..7474bb5b3a6f 100644
> --- a/arch/arm/configs/imx_v6_v7_defconfig
> +++ b/arch/arm/configs/imx_v6_v7_defconfig
> @@ -147,13 +147,16 @@ CONFIG_SMSC911X=y
> CONFIG_AT803X_PHY=y
> CONFIG_MICREL_PHY=y
> CONFIG_SMSC_PHY=y
> CONFIG_USB_PEGASUS=m
> CONFIG_USB_RTL8150=m
> -CONFIG_USB_RTL8152=m
> +CONFIG_USB_RTL8152=y
> +CONFIG_USB_LAN78XX=y
> CONFIG_USB_USBNET=y
> CONFIG_USB_NET_CDC_EEM=m
> +CONFIG_USB_NET_SMSC95XX=y
> +CONFIG_USB_NET_MCS7830=y
> CONFIG_BRCMFMAC=m
> CONFIG_MWIFIEX=m
> CONFIG_MWIFIEX_SDIO=m
> CONFIG_MWIFIEX_PCIE=m
> CONFIG_WL12XX=m
> --
> 2.17.1
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> [email protected]
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel