Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1346804

Re: [PATCH v3 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig

Path csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod
From Maxime Coquelin <mcoquelin.stm32@gmail.com>
Newsgroups linux.kernel
Subject Re: [PATCH v3 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig
Date Tue, 01 Mar 2016 18:40:02 +0100
Message-ID <r7Wr8-3Ko-17@gated-at.bofh.it> (permalink)
References <r6ohR-1Wt-37@gated-at.bofh.it> <r6ohR-1Wt-41@gated-at.bofh.it>
X-Original-To Alexandre TORGUE <alexandre.torgue@gmail.com>, Arnd Bergmann <arnd@arndb.de>
Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=e2VJ4KAWdWhmUuuFn6quKKbslXO1Bdy1YmWRVt+IqOk=; b=t1zSAgowDXULPMBTSu9D54gnviYRADKhkLg0/fZ3zSlsLIk5tnTh4Z57Q4u5AFrFU2 AWivtMVBrJ2JRwWuHikw5mChF+55pS5UoIFc43L2qbLiiFmGWZ9+QFPwAI1yYt+tcXnn 9P9feqkOF73Pw0uqV5CM1uKnIYTlNooM/jPi6yArLg0wgLJyciQRARi2LPTRfJ2KK2Ex LfNU9gssilhdN/bd7ElDiIfsn+/JHXK/+y8mxS940fgJbUv/kg4iJNPm6QsA1bLlzgV1 m8sq9LXNb9ass0cenPWZuDep6Bk6MuMOdguqocdWXZM4f95jq5/+6g9jiPMxCTpcoVae Lvdw==
X-Google-Dkim-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=e2VJ4KAWdWhmUuuFn6quKKbslXO1Bdy1YmWRVt+IqOk=; b=gKbO04H7Xj7uLLfsPpodTw8hWDNSuIb4rKC6COCfj2QX9lIsj7MMaIHNrvNHcoHT1i k3rOXyaPmpSz+3Zn0Aa34PNINd3M+i+jS3CgcSq5wkXZ74ta06fVRj2cZFla5EQE/S4Y 18KkFGzPM0fo53v6SISc0aOp7bu6kz85oqfgNLPbOJFMZxg6k5xZ1g40LySXipy4I6Nu G05RtCeumJxW+J4fIWkavFXMLJGRWvNLa1qG3VAyllI1Cw/ayRFi0/MAzfwc+8+tMZ9z m/QNjhLiJWpKPHHS9kY342TblRjZZVAaLynmR2bpoCeDLQnlN9/w0svQ8fVXs40i5I+B nagw==
X-Gm-Message-State AD7BkJLYJFveKholSp2oUk8Nctuy98YrWNeSHdnWYbjs89RHc9N7tnyLNeK7OKJ5SO5xug==
X-Received by 10.194.85.193 with SMTP id j1mr21614705wjz.122.1456853809580; Tue, 01 Mar 2016 09:36:49 -0800 (PST)
User-Agent Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1
MIME-Version 1.0
Content-Type text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding 7bit
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 60
Organization linux.* mail to news gateway
X-Original-Cc Giuseppe Cavallaro <peppe.cavallaro@st.com>, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org
X-Original-Date Tue, 1 Mar 2016 18:36:28 +0100
X-Original-Message-ID <56D5D31C.7050908@gmail.com>
X-Original-References <1456483912-32090-1-git-send-email-alexandre.torgue@gmail.com> <1456483912-32090-5-git-send-email-alexandre.torgue@gmail.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1346804

Show key headers only | View raw


Hi Alex, Arnd,

On 02/26/2016 11:51 AM, Alexandre TORGUE wrote:
> Enable basic Ethernet support (IPV4) for stm32 defconfig.
>
> Signed-off-by: Alexandre TORGUE <alexandre.torgue@gmail.com>
>
> diff --git a/arch/arm/configs/stm32_defconfig b/arch/arm/configs/stm32_defconfig
> index ec52505..8b8abe0 100644
> --- a/arch/arm/configs/stm32_defconfig
> +++ b/arch/arm/configs/stm32_defconfig
> @@ -33,11 +33,20 @@ CONFIG_XIP_PHYS_ADDR=0x08008000
>   CONFIG_BINFMT_FLAT=y
>   CONFIG_BINFMT_SHARED_FLAT=y
>   # CONFIG_COREDUMP is not set
> +CONFIG_NET=y
> +CONFIG_INET=y
> +# CONFIG_INET_XFRM_MODE_TRANSPORT is not set
> +# CONFIG_INET_XFRM_MODE_TUNNEL is not set
> +# CONFIG_INET_XFRM_MODE_BEET is not set
> +# CONFIG_IPV6 is not set
>   CONFIG_DEVTMPFS=y
>   CONFIG_DEVTMPFS_MOUNT=y
>   # CONFIG_FW_LOADER is not set
>   # CONFIG_BLK_DEV is not set
>   CONFIG_EEPROM_93CX6=y
> +CONFIG_NETDEVICES=y
> +CONFIG_STMMAC_ETH=y
> +# CONFIG_WLAN is not set
>   # CONFIG_INPUT is not set
>   # CONFIG_SERIO is not set
>   # CONFIG_VT is not set
>

The patch looks good, but I'm not sure I should apply it.
Indeed, not all the stm32 boards have Ethernet interface, and stm32 
internal flash size is rather limited (2MB).
Note that your glue layer can be compiled with COMPILE_TEST, so its 
build will be covered anyway.

Arnd, do you think we could use Kconfig fragments to enable features 
like USB, Ethernet, MTD, etc...?
Maybe we could have a subdirectory in arch/arm/configs where these stm32 
specifics fragments could leave?

For example, we could have:
arch/arm/configs/stm32/eth.config
arch/arm/configs/stm32/usb.config

For configuring the Discovery board we would use:
make stm32_defconfig stm32/usb.config

For the Eval board, we cwould use:
make stm32_defconfig eth.config

It would make easy to be able to boot every boards without multiplying 
the defconfigs.

Regards,
Maxime

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH v3 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig Alexandre TORGUE <alexandre.torgue@gmail.com> - 2016-02-26 12:00 +0100
  Re: [PATCH v3 4/4] ARM: STM32: Enable Ethernet in stm32_defconfig Maxime Coquelin <mcoquelin.stm32@gmail.com> - 2016-03-01 18:40 +0100

csiph-web