Blame view
common/cmd_ext2.c
1.37 KB
bcd0be5cf
|
1 |
/* |
a1596438a
|
2 3 4 5 |
* (C) Copyright 2011 - 2012 Samsung Electronics * EXT4 filesystem implementation in Uboot by * Uma Shankar <uma.shankar@samsung.com> * Manjunatha C Achar <a.manjunatha@samsung.com> |
bcd0be5cf
|
6 7 8 9 10 11 12 13 14 15 |
* (C) Copyright 2004 * esd gmbh <www.esd-electronics.com> * Reinhard Arlt <reinhard.arlt@esd-electronics.com> * * made from cmd_reiserfs by * * (C) Copyright 2003 - 2004 * Sysgo Real-Time Solutions, AG <www.elinos.com> * Pavel Bartusek <pba@sysgo.com> * |
1a4596601
|
16 |
* SPDX-License-Identifier: GPL-2.0+ |
bcd0be5cf
|
17 18 19 20 21 |
*/ /* * Ext2fs support */ |
045fa1e11
|
22 |
#include <fs.h> |
bcd0be5cf
|
23 |
|
0e350f81e
|
24 |
static int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
bcd0be5cf
|
25 |
{ |
045fa1e11
|
26 |
return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT); |
bcd0be5cf
|
27 |
} |
bcd0be5cf
|
28 29 30 |
/****************************************************************************** * Ext2fs boot command intepreter. Derived from diskboot */ |
0e350f81e
|
31 |
int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
bcd0be5cf
|
32 |
{ |
b770e88a6
|
33 |
return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT); |
bcd0be5cf
|
34 35 36 |
} U_BOOT_CMD( |
a1596438a
|
37 38 39 40 41 |
ext2ls, 4, 1, do_ext2ls, "list files in a directory (default /)", "<interface> <dev[:part]> [directory] " " - list files from 'dev' on 'interface' in a 'directory'" |
0e350f81e
|
42 |
) |
a1596438a
|
43 44 |
U_BOOT_CMD( |
bcd0be5cf
|
45 |
ext2load, 6, 0, do_ext2load, |
2fb2604d5
|
46 |
"load binary file from a Ext2 filesystem", |
6b367467f
|
47 48 |
"<interface> [<dev[:part]> [addr [filename [bytes [pos]]]]] " |
bcd0be5cf
|
49 50 |
" - load binary file 'filename' from 'dev' on 'interface' " |
b770e88a6
|
51 |
" to address 'addr' from ext2 filesystem." |
0e350f81e
|
52 |
) |