public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location
@ 2016-04-04 18:06 Michal Simek
  2016-04-04 18:29 ` Stephen Warren
  2016-04-12  2:29 ` [U-Boot] [U-Boot, " Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Michal Simek @ 2016-04-04 18:06 UTC (permalink / raw)
  To: u-boot

For example this setting:

env__net_tftp_readable_file = {
    "fn": "ep108/image.ub",
    "addr": 0x10000000,
    "size": 25846296,
    "crc32": "b726f9de",
}

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

Changes in v2:
- Remove quotes from addr field
- Remove int conversion
- Update example at the top of file

 test/py/tests/test_net.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py
index 07393eb1fdf8..4ab58b44248a 100644
--- a/test/py/tests/test_net.py
+++ b/test/py/tests/test_net.py
@@ -43,6 +43,7 @@ env__net_static_env_vars = [
 # may be omitted or set to None if TFTP testing is not possible or desired.
 env__net_tftp_readable_file = {
     "fn": "ubtest-readable.bin",
+    "addr": 0x10000000,
     "size": 5058624,
     "crc32": "c2244b26",
 }
@@ -135,7 +136,10 @@ def test_net_tftpboot(u_boot_console):
     if not f:
         pytest.skip('No TFTP readable file to read')
 
-    addr = u_boot_utils.find_ram_base(u_boot_console)
+    addr = f.get('addr', None)
+    if not addr:
+        addr = u_boot_utils.find_ram_base(u_boot_console)
+
     fn = f['fn']
     output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn))
     expected_text = 'Bytes transferred = '
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location
  2016-04-04 18:06 [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location Michal Simek
@ 2016-04-04 18:29 ` Stephen Warren
  2016-04-12  2:29 ` [U-Boot] [U-Boot, " Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Stephen Warren @ 2016-04-04 18:29 UTC (permalink / raw)
  To: u-boot

On 04/04/2016 12:06 PM, Michal Simek wrote:
> For example this setting:
>
> env__net_tftp_readable_file = {
>      "fn": "ep108/image.ub",
>      "addr": 0x10000000,
>      "size": 25846296,
>      "crc32": "b726f9de",
> }

Acked-by: Stephen Warren <swarren@nvidia.com>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] [U-Boot, v2] test/py: Add support for loading image via tftp to specified location
  2016-04-04 18:06 [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location Michal Simek
  2016-04-04 18:29 ` Stephen Warren
@ 2016-04-12  2:29 ` Tom Rini
  1 sibling, 0 replies; 3+ messages in thread
From: Tom Rini @ 2016-04-12  2:29 UTC (permalink / raw)
  To: u-boot

On Mon, Apr 04, 2016 at 08:06:14PM +0200, Michal Simek wrote:

> For example this setting:
> 
> env__net_tftp_readable_file = {
>     "fn": "ep108/image.ub",
>     "addr": 0x10000000,
>     "size": 25846296,
>     "crc32": "b726f9de",
> }
> 
> Signed-off-by: Michal Simek <michal.simek@xilinx.com>
> Acked-by: Stephen Warren <swarren@nvidia.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160411/ca942623/attachment.sig>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-04-12  2:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-04 18:06 [U-Boot] [PATCH v2] test/py: Add support for loading image via tftp to specified location Michal Simek
2016-04-04 18:29 ` Stephen Warren
2016-04-12  2:29 ` [U-Boot] [U-Boot, " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox