From: Graeme Russ <graeme.russ@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] RFC: Testing U-Boot Part 1
Date: Sat, 27 Aug 2011 12:23:27 +1000 [thread overview]
Message-ID: <4E58551F.3080508@gmail.com> (raw)
In-Reply-To: <CAPnjgZ2S4XYH=5Jo-d3=b=wbX=N_WYpfw0ju7nN2pNnAP1Ox5A@mail.gmail.com>
Hi Simon,
On 27/08/11 10:25, Simon Glass wrote:
> Hi Mike,
>
> On Fri, Aug 26, 2011 at 1:55 PM, Mike Frysinger <vapier@gentoo.org> wrote:
>> On Thursday, August 25, 2011 23:32:38 Simon Glass wrote:
[snip]
>>> - I mean that the tftp command will 'obtain' a file when it asks for
>>> one, although the actual Ethernet layer is mocked and doesn't actually
>>> go out on the wire. Imagine an Ethernet driver which has a half-baked
>>> tftp server in it. Yes I also see value in actually using machine
>>> interfaces since the testing can be more thorough.
>>
>> why not just build on top of tun/tap ? then we do get "real" network traffic,
>> and you dont have to write your own tftp server because you can simply use the
>> same exact one on your development machine that the board would connect to.
>> -mike
>
> Because then you need to set up a real tftp server. It's fine to do
> what you suggest, but if possible it would be nice to have
> self-contained tests also, so long as it isn't too much work.
>
I don't consider having to set up a tftp server as a bad thing - Quite the
opposite really. There is plenty of network code in U-Boot that will
benefit from testing under the sandbox target because it is much easier to
debug. And there will be minimal impact on U-Boot code (just a sandbox
'Ethernet' driver is all that will be needed)
I am reminded of when the R&D department that developed to eNET board were
doing the firmware development before the first prototypes were available -
The created a HAL which used pcap from memory. I wasn't part of that team,
so I really don't know the details...
Regards,
Graeme
next prev parent reply other threads:[~2011-08-27 2:23 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-25 12:58 [U-Boot] RFC: Testing U-Boot Part 1 Simon Glass
2011-08-25 13:56 ` Andreas Bießmann
2011-08-25 14:56 ` Mike Frysinger
2011-08-25 22:21 ` Marek Vasut
2011-08-25 14:45 ` Marek Vasut
2011-08-25 15:01 ` Mike Frysinger
2011-08-25 18:04 ` Anton Staaf
2011-08-25 23:35 ` Graeme Russ
2011-08-26 3:32 ` Simon Glass
2011-08-26 4:36 ` Graeme Russ
2011-08-26 20:59 ` Mike Frysinger
2011-08-27 0:29 ` Simon Glass
2011-08-26 20:55 ` Mike Frysinger
2011-08-27 0:25 ` Simon Glass
2011-08-27 2:23 ` Graeme Russ [this message]
2011-08-29 22:04 ` Simon Glass
2011-08-29 23:03 ` Graeme Russ
2011-08-25 20:21 ` Wolfgang Denk
2011-08-25 21:18 ` Mike Frysinger
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=4E58551F.3080508@gmail.com \
--to=graeme.russ@gmail.com \
--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.