2 * (C) Copyright 2011 - 2012 Samsung Electronics
3 * EXT4 filesystem implementation in Uboot by
4 * Uma Shankar <uma.shankar@samsung.com>
5 * Manjunatha C Achar <a.manjunatha@samsung.com>
8 * esd gmbh <www.esd-electronics.com>
9 * Reinhard Arlt <reinhard.arlt@esd-electronics.com>
11 * made from cmd_reiserfs by
13 * (C) Copyright 2003 - 2004
14 * Sysgo Real-Time Solutions, AG <www.elinos.com>
15 * Pavel Bartusek <pba@sysgo.com>
17 * See file CREDITS for list of people who contributed to this
20 * This program is free software; you can redistribute it and/or
21 * modify it under the terms of the GNU General Public License as
22 * published by the Free Software Foundation; either version 2 of
23 * the License, or (at your option) any later version.
25 * This program is distributed in the hope that it will be useful,
26 * but WITHOUT ANY WARRANTY; without even the implied warranty of
27 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28 * GNU General Public License for more details.
30 * You should have received a copy of the GNU General Public License
31 * along with this program; if not, write to the Free Software
32 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
42 int do_ext2ls (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
44 return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT);
47 /******************************************************************************
48 * Ext2fs boot command intepreter. Derived from diskboot
50 int do_ext2load (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
52 return do_fsload(cmdtp, flag, argc, argv, FS_TYPE_EXT, 16);
56 ext2ls, 4, 1, do_ext2ls,
57 "list files in a directory (default /)",
58 "<interface> <dev[:part]> [directory]\n"
59 " - list files from 'dev' on 'interface' in a 'directory'"
63 ext2load, 6, 0, do_ext2load,
64 "load binary file from a Ext2 filesystem",
65 "<interface> <dev[:part]> [addr] [filename] [bytes]\n"
66 " - load binary file 'filename' from 'dev' on 'interface'\n"
67 " to address 'addr' from ext2 filesystem.\n"
68 " All numeric parameters are assumed to be hex."