From: Stephen Warren <swarren@wwwdotorg.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] test/py main_signon
Date: Wed, 17 Feb 2016 11:38:42 -0700 [thread overview]
Message-ID: <56C4BE32.40703@wwwdotorg.org> (raw)
In-Reply-To: <56C43272.9020709@monstr.eu>
On 02/17/2016 01:42 AM, Michal Simek wrote:
...
> Stephen: Do you have your u-boot-test-hooks for qemu?
I only have some local hacks that aren't at all generic. They're on my
laptop at home so I can't share them right now, but I can describe them
from memory:
u-boot-test-flash: Does nothing
u-boot-test-reset: Does nothing (I assume the test/py code will kill and
restart the u-boot-test-console process each time it executes
u-boot-test-reset).
u-boot-test-console: exec()s qemu with whatever target-specific options
are required to make it execute the appropriate U-Boot binary as
firmware (rather than the more common option of booting a Linux kernel
for example), and with the emulated serial port connected to qemu's
stdin/stdout. Something like:
exec qemu-system-arm -M raspi2 -serial stdio -fw /path/to/u-boot.bin ...
I had considered a new u_boot_console_qemu to standardize this a bit
more. I'm not sure how useful this is since the user will still need to
provide some configuration e.g. where the qemu binary is located, if
there's a disk image to use for the emulated SD card, whether their
system can support emulated Ethernet in qemu, etc. So, they may as well
use u_boot_console_exec_attach, and implement the same hook scripts as
any other system.
I had also wondered about updating .travis.yml to test via qemu too.
Maybe that's better done by an external test system though.
next prev parent reply other threads:[~2016-02-17 18:38 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-16 12:12 [U-Boot] test/py main_signon Michal Simek
2016-02-16 13:32 ` Heiko Schocher
2016-02-16 16:04 ` Michal Simek
2016-02-16 16:39 ` Stephen Warren
2016-02-16 19:08 ` Michal Simek
2016-02-16 21:38 ` Stephen Warren
2016-02-17 8:42 ` Michal Simek
2016-02-17 9:05 ` Heiko Schocher
2016-02-17 18:38 ` Stephen Warren [this message]
2016-02-17 6:34 ` Heiko Schocher
2016-02-17 7:24 ` Michal Simek
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=56C4BE32.40703@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--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