Commit 1bce3ad5f32532de3b354a5883cffbb2606ce19a
Committed by
Tom Rini
1 parent
8d0898544e
Exists in
v2017.01-smarct4x
and in
25 other branches
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 <agraf@suse.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
test/py/tests/test_net.py
... | ... | @@ -147,7 +147,7 @@ |
147 | 147 | |
148 | 148 | addr = f.get('addr', None) |
149 | 149 | if not addr: |
150 | - addr = u_boot_utils.find_ram_base(u_boot_console) | |
150 | + addr = u_boot_utils.find_ram_base(u_boot_console) + (1024 * 1024 * 4) | |
151 | 151 | |
152 | 152 | fn = f['fn'] |
153 | 153 | output = u_boot_console.run_command('tftpboot %x %s' % (addr, fn)) |
... | ... | @@ -187,7 +187,7 @@ |
187 | 187 | |
188 | 188 | addr = f.get('addr', None) |
189 | 189 | if not addr: |
190 | - addr = u_boot_utils.find_ram_base(u_boot_console) | |
190 | + addr = u_boot_utils.find_ram_base(u_boot_console) + (1024 * 1024 * 4) | |
191 | 191 | |
192 | 192 | fn = f['fn'] |
193 | 193 | output = u_boot_console.run_command('nfs %x %s' % (addr, fn)) |