2 * Copyright (c) 2012, Google Inc.
4 * SPDX-License-Identifier: GPL-2.0+
10 static int do_sandbox_load(cmd_tbl_t *cmdtp, int flag, int argc,
13 return do_load(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX, 16);
16 static int do_sandbox_ls(cmd_tbl_t *cmdtp, int flag, int argc,
19 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX);
22 static int do_sandbox_save(cmd_tbl_t *cmdtp, int flag, int argc,
25 return do_save(cmdtp, flag, argc, argv, FS_TYPE_SANDBOX, 16);
28 static cmd_tbl_t cmd_sandbox_sub[] = {
29 U_BOOT_CMD_MKENT(load, 7, 0, do_sandbox_load, "", ""),
30 U_BOOT_CMD_MKENT(ls, 3, 0, do_sandbox_ls, "", ""),
31 U_BOOT_CMD_MKENT(save, 6, 0, do_sandbox_save, "", ""),
34 static int do_sandbox(cmd_tbl_t *cmdtp, int flag, int argc,
39 /* Skip past 'sandbox' */
43 c = find_cmd_tbl(argv[0], cmd_sandbox_sub,
44 ARRAY_SIZE(cmd_sandbox_sub));
47 return c->cmd(cmdtp, flag, argc, argv);
54 "Miscellaneous sandbox commands",
55 "load host <dev> <addr> <filename> [<bytes> <offset>] - "
56 "load a file from host\n"
57 "sb ls host <filename> - list files on host\n"
58 "sb save host <dev> <filename> <addr> <bytes> [<offset>] - "
59 "save a file to host\n"