public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Bernhard Nortmann <bernhard.nortmann@web.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 1/3] expose eth_is_active() function to test network device state
Date: Tue, 25 Aug 2015 11:53:40 +0200	[thread overview]
Message-ID: <55DC3B24.7010508@web.de> (raw)
In-Reply-To: <CANr=Z=ZSWBguO-p3iphfoJ89L2Q7RE2BmYaZVS-zkc46MQqHuQ@mail.gmail.com>

Am 24.08.2015 um 19:02 schrieb Joe Hershberger:
> Hi Simon,
>
> On Mon, Aug 24, 2015 at 11:59 AM, Simon Glass <sjg@chromium.org> wrote:
>> Hi Bernhard,
>>
>> [...]
>> i.e. sunxi GMAC (by simply adding #define CONFIG_NETCONSOLE).
>> In that case how about adding that config to that board? Does it cause
>> problems for other people?
> I'll pile on and agree that it would be great to have at least one
> board with this enabled, and even better to have one that supports
> DM_ETH and one that does not.
>
> -Joe

grep "#define CONFIG_NETCONSOLE" include/configs/*
lists a considerable number of boards where NETCONSOLE seems to be active
by default. I guess none of these has moved to DM_ETH yet, or I'd have
expected reports of "broken" builds.

If you're all for it, I can of course enable NETCONSOLE for the Banana
Pi/Pro. (It may even be done across-the-board for all SUNXI_[EG]MAC
configs?)

Personally, I'm a bit reluctant to "enforce" this setting, because until
now my understanding was that NETCONSOLE is supposed to be mostly
optional, i.e. at user's choice - especially for boards where other
means of input/output are readily available (serial console, vga, usb
keyboard).

I don't expect this to create problems, it just adds code that probably
won't be used most of the time (as long as "nc" doesn't get used for
stdin/stdout).

I guess the proper way to do it would be to introduce Kconfig support;
will this do?

diff --git a/net/Kconfig b/net/Kconfig
index 915371d..87c1729 100644
--- a/net/Kconfig
+++ b/net/Kconfig
@@ -16,4 +16,10 @@ config NET_RANDOM_ETHADDR
           A new MAC address will be generated on every boot and it will
           not be added to the environment.

+config NETCONSOLE
+       bool "Netconsole support"
+       help
+         Support the 'nc' input/output device for networked console.
+         See README.NetConsole for details.
+
  endif   # if NET


In case this gets a "go", I'd prepare a v2 patch set that includes enabling
CONFIG_NETCONSOLE via Bananapi_defconfig / Bananapro_defconfig.

Regards, B. Nortmann

  reply	other threads:[~2015-08-25  9:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-21 22:30 [U-Boot] [RFC PATCH 0/3] fix netconsole for CONFIG_DM_ETH Bernhard Nortmann
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 1/3] expose eth_is_active() function to test network device state Bernhard Nortmann
2015-08-23 21:21   ` Simon Glass
2015-08-24 10:20     ` Bernhard Nortmann
2015-08-24 16:59       ` Simon Glass
2015-08-24 17:02         ` Joe Hershberger
2015-08-25  9:53           ` Bernhard Nortmann [this message]
2015-08-25 15:55             ` Joe Hershberger
2015-08-25 18:01               ` Bernhard Nortmann
2015-08-25 18:13                 ` Joe Hershberger
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 2/3] fix netconsole when CONFIG_DM_ETH is set Bernhard Nortmann
2015-08-21 22:30 ` [U-Boot] [RFC PATCH 3/3] avoid eth_unregister() call when function is unavailable Bernhard Nortmann
2015-08-23 21:21   ` Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=55DC3B24.7010508@web.de \
    --to=bernhard.nortmann@web.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox