From: Alexander Graf Date: Thu, 17 Nov 2016 17:31:02 +0000 (+0100) Subject: tests: net: Offset downloads to 4MB X-Git-Tag: v2017.01-rc1~209 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1bce3ad5f32532de3b354a5883cffbb2606ce19a;p=u-boot tests: net: Offset downloads to 4MB The network test currently downloads files at 0MB offset of RAM start. This works for most ARM systems, but x86 has weird memory layout constraints on the first MB of RAM. To not get caught into any of these, let's add a 4MB pad from start of RAM to the default memory offset. Signed-off-by: Alexander Graf Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- diff --git a/test/py/tests/test_net.py b/test/py/tests/test_net.py index 0884051614..293b73a496 100644 --- a/test/py/tests/test_net.py +++ b/test/py/tests/test_net.py @@ -147,7 +147,7 @@ def test_net_tftpboot(u_boot_console): addr = f.get('addr', None) if not addr: - addr = u_boot_utils.find_ram_base(u_boot_console) + addr = u_boot_utils.find_ram_base(u_boot_console) + (1024 * 1024 * 4) fn = f['fn'] output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn)) @@ -187,7 +187,7 @@ def test_net_nfs(u_boot_console): addr = f.get('addr', None) if not addr: - addr = u_boot_utils.find_ram_base(u_boot_console) + addr = u_boot_utils.find_ram_base(u_boot_console) + (1024 * 1024 * 4) fn = f['fn'] output = u_boot_console.run_command('nfs %x %s' % (addr, fn))