Skip to content
Snippets Groups Projects
Commit d56dd0b1 authored by Daniel Schwierzeck's avatar Daniel Schwierzeck Committed by Tom Rini
Browse files

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: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Acked-by: default avatarStephen Warren <swarren@nvidia.com>
parent 085e64dd
No related branches found
No related tags found
No related merge requests found
...@@ -201,7 +201,7 @@ def find_ram_base(u_boot_console): ...@@ -201,7 +201,7 @@ def find_ram_base(u_boot_console):
with u_boot_console.log.section('find_ram_base'): with u_boot_console.log.section('find_ram_base'):
response = u_boot_console.run_command('bdinfo') response = u_boot_console.run_command('bdinfo')
for l in response.split('\n'): 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) ram_base = int(l.split('=')[1].strip(), 16)
break break
if ram_base is None: if ram_base is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment