1 // SPDX-License-Identifier: GPL-2.0+
3 * (C) Copyright 2011 - 2012 Samsung Electronics
4 * EXT4 filesystem implementation in Uboot by
5 * Uma Shankar <uma.shankar@samsung.com>
6 * Manjunatha C Achar <a.manjunatha@samsung.com>
9 * esd gmbh <www.esd-electronics.com>
10 * Reinhard Arlt <reinhard.arlt@esd-electronics.com>
12 * made from cmd_reiserfs by
14 * (C) Copyright 2003 - 2004
15 * Sysgo Real-Time Solutions, AG <www.elinos.com>
16 * Pavel Bartusek <pba@sysgo.com>
26 static int do_ext2ls(struct cmd_tbl *cmdtp, int flag, int argc,
29 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT);
32 /******************************************************************************
33 * Ext2fs boot command intepreter. Derived from diskboot
35 int do_ext2load(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
37 return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT);
41 ext2ls, 4, 1, do_ext2ls,
42 "list files in a directory (default /)",
43 "<interface> <dev[:part]> [directory]\n"
44 " - list files from 'dev' on 'interface' in a 'directory'"
48 ext2load, 6, 0, do_ext2load,
49 "load binary file from a Ext2 filesystem",
50 "<interface> [<dev[:part]> [addr [filename [bytes [pos]]]]]\n"
51 " - load binary file 'filename' from 'dev' on 'interface'\n"
52 " to address 'addr' from ext2 filesystem."