summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>2016-07-06 12:44:22 +0200
committerTom Rini <trini@konsulko.com>2016-07-08 17:16:45 -0400
commitd56dd0b1f8eb1dc13d4e6227a485fca5b9e94c1e (patch)
treeab464e01f92c0dad324b0810c1855ce41d26b3c1 /test
parent085e64dd421caeff6ebcdef867e67b99b0942659 (diff)
downloadtalos-obmc-uboot-d56dd0b1f8eb1dc13d4e6227a485fca5b9e94c1e.tar.gz
talos-obmc-uboot-d56dd0b1f8eb1dc13d4e6227a485fca5b9e94c1e.zip
test/py: support 'memstart =' in u_boot_utils.find_ram_base()
Some archs like MIPS or PPC have a different 'bdinfo' output than ARM regarding the memory configuration. Also support 'memstart = 0x*' in u_boot_utils.find_ram_base() to make all tests requiring the RAM base working on those archs. Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'test')
-rw-r--r--test/py/u_boot_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/py/u_boot_utils.py b/test/py/u_boot_utils.py
index 6a6b2ec0e6..e4765e38c1 100644
--- a/test/py/u_boot_utils.py
+++ b/test/py/u_boot_utils.py
@@ -201,7 +201,7 @@ def find_ram_base(u_boot_console):
with u_boot_console.log.section('find_ram_base'):
response = u_boot_console.run_command('bdinfo')
for l in response.split('\n'):
- if '-> start' in l:
+ if '-> start' in l or 'memstart =' in l:
ram_base = int(l.split('=')[1].strip(), 16)
break
if ram_base is None:
OpenPOWER on IntegriCloud