All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heinrich Schuchardt <xypron.glpk@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] sandbox: dt: sandbox.dts set skip-localhost = <1>
Date: Tue, 16 Oct 2018 18:22:25 +0200	[thread overview]
Message-ID: <1dc564d0-c429-e5a2-046e-8a157d751ef6@gmx.de> (raw)
In-Reply-To: <CANr=Z=aYUb4sFV-DiR15SRda1M2FX7KwCML9AbSzhqTdiZ3qMA@mail.gmail.com>

On 10/16/2018 06:42 AM, Joe Hershberger wrote:
> Hi Heinrich,
> 
> On Mon, Oct 15, 2018 at 7:20 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>
>> On 10/15/2018 11:52 PM, Joe Hershberger wrote:
>>> On Sun, Oct 14, 2018 at 2:27 PM Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:
>>>>
>>>> The local interface is not usable for many network operations. It has been
>>>> disabled in all sandbox device trees except sandbox.dts. Let's disable it
>>>> here too.
>>>>
>>>> 'bootefi selftest' tries to do execute DHCP.  This fails on the lo device.
>>>
>>> Shouldn't the tests be using test.dts?
>>
>> bootefi selftest is a command inside U-Boot. It does not choose a device
>> tree.
>>
>> This is for hand testing, where
>>> it can be available, and people can use it or not by specifying
>>> ethact.
>>>
>>
>> make sandbox_defconfig
>> make
>> ./u-boot -D
>>
>> uses sandbox.dts.
> 
> Sure... and ./u-boot -d test/dm/test.dtb uses that device tree. Or any
> other you choose to build.
>>
>> For all other sandbox*.dts we also set skip-localhost=1. Why should
>> sandbox_dts be inconsistent with those?
> 
> The only one that I may consider inconsistent is sandbox64.dts (I
> assume that is what you mean when you say "all other", you are talking
> about this one file, right?), and I'm not sure where it's used. I've
> never used it that I remember. Unless it's magically picked somehow
> based on something environmental.
> 
> You seem to think that if you don't force the local interface to not
> show up that you have to use it. Instead you can just set the ethact
> U-Boot environment variable to the appropriate interface you want to
> use, and off you go.
> 
>> Why would I want to use the cloned local interface?
> 
> So that you could test against, for instance, a TFTP server on your
> host machine.
> 
>> board/sandbox/README.sandbox does not even mention test.dts. The only
>> reference is in a Python test, see tools/binman/ftest.py.
> 
> You'll notice the message in test/dm/test-main.c that claims the
> requirement to use test.dts.
> 
>> The network devices defined in test.dts do not allow to access the real
>> world. So why should I use it?
> 
> Again, that is for the dm unit tests, not hand testing.
> 
> Cheers,
> -Joe

Thanks Joe for your valuable feedback.

I have set the patch to rejected.

Best regards

Heinrich

  reply	other threads:[~2018-10-16 16:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-14 19:27 [U-Boot] [PATCH 1/1] sandbox: dt: sandbox.dts set skip-localhost = <1> Heinrich Schuchardt
2018-10-15 21:52 ` Joe Hershberger
2018-10-16  0:19   ` Heinrich Schuchardt
2018-10-16  4:36     ` Joe Hershberger
2018-10-16 16:22       ` Heinrich Schuchardt [this message]
2018-10-16 18:27         ` Joe Hershberger

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=1dc564d0-c429-e5a2-046e-8a157d751ef6@gmx.de \
    --to=xypron.glpk@gmx.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.