Skip to content
Snippets Groups Projects
Commit b5493d17 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

sandbox: Correct ordering of 'sb save' commands


Prior to commit d455d878 there was an inconsistency between the position of
the 'address' parameter in 'sb load' and 'sb save'. This was corrected but
it broke some tests. Fix the tests and also the help for 'sb save'.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 40e5975f
No related branches found
No related tags found
No related merge requests found
...@@ -117,7 +117,7 @@ U_BOOT_CMD( ...@@ -117,7 +117,7 @@ U_BOOT_CMD(
"load hostfs - <addr> <filename> [<bytes> <offset>] - " "load hostfs - <addr> <filename> [<bytes> <offset>] - "
"load a file from host\n" "load a file from host\n"
"sb ls hostfs - <filename> - list files on host\n" "sb ls hostfs - <filename> - list files on host\n"
"sb save hostfs - <filename> <addr> <bytes> [<offset>] - " "sb save hostfs - <addr> <filename> <bytes> [<offset>] - "
"save a file to host\n" "save a file to host\n"
"sb bind <dev> [<filename>] - bind \"host\" device to file\n" "sb bind <dev> [<filename>] - bind \"host\" device to file\n"
"sb info [<dev>] - show device binding & info\n" "sb info [<dev>] - show device binding & info\n"
......
...@@ -29,7 +29,7 @@ static int dm_test_spi_flash(struct dm_test_state *dms) ...@@ -29,7 +29,7 @@ static int dm_test_spi_flash(struct dm_test_state *dms)
* benefit is worth the extra complexity. * benefit is worth the extra complexity.
*/ */
ut_asserteq(0, run_command_list( ut_asserteq(0, run_command_list(
"sb save hostfs - spi.bin 0 200000;" "sb save hostfs - 0 spi.bin 200000;"
"sf probe;" "sf probe;"
"sf test 0 10000", -1, 0)); "sf test 0 10000", -1, 0));
/* /*
......
...@@ -97,9 +97,9 @@ sb load hostfs 0 %(fit_addr)x %(fit)s ...@@ -97,9 +97,9 @@ sb load hostfs 0 %(fit_addr)x %(fit)s
fdt addr %(fit_addr)x fdt addr %(fit_addr)x
bootm start %(fit_addr)x bootm start %(fit_addr)x
bootm loados bootm loados
sb save hostfs 0 %(kernel_out)s %(kernel_addr)x %(kernel_size)x sb save hostfs 0 %(kernel_addr)x %(kernel_out)s %(kernel_size)x
sb save hostfs 0 %(fdt_out)s %(fdt_addr)x %(fdt_size)x sb save hostfs 0 %(fdt_addr)x %(fdt_out)s %(fdt_size)x
sb save hostfs 0 %(ramdisk_out)s %(ramdisk_addr)x %(ramdisk_size)x sb save hostfs 0 %(ramdisk_addr)x %(ramdisk_out)s %(ramdisk_size)x
reset reset
''' '''
......
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