]>
Commit | Line | Data |
---|---|---|
83d290c5 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
bcd0be5c | 2 | /* |
a1596438 US |
3 | * (C) Copyright 2011 - 2012 Samsung Electronics |
4 | * EXT4 filesystem implementation in Uboot by | |
5 | * Uma Shankar <[email protected]> | |
6 | * Manjunatha C Achar <[email protected]> | |
7 | ||
bcd0be5c SR |
8 | * (C) Copyright 2004 |
9 | * esd gmbh <www.esd-electronics.com> | |
10 | * Reinhard Arlt <[email protected]> | |
11 | * | |
12 | * made from cmd_reiserfs by | |
13 | * | |
14 | * (C) Copyright 2003 - 2004 | |
15 | * Sysgo Real-Time Solutions, AG <www.elinos.com> | |
16 | * Pavel Bartusek <[email protected]> | |
bcd0be5c SR |
17 | */ |
18 | ||
19 | /* | |
20 | * Ext2fs support | |
21 | */ | |
045fa1e1 | 22 | #include <fs.h> |
bcd0be5c | 23 | |
0e350f81 | 24 | static int do_ext2ls(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
bcd0be5c | 25 | { |
045fa1e1 | 26 | return do_ls(cmdtp, flag, argc, argv, FS_TYPE_EXT); |
bcd0be5c SR |
27 | } |
28 | ||
bcd0be5c SR |
29 | /****************************************************************************** |
30 | * Ext2fs boot command intepreter. Derived from diskboot | |
31 | */ | |
0e350f81 | 32 | int do_ext2load(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) |
bcd0be5c | 33 | { |
b770e88a | 34 | return do_load(cmdtp, flag, argc, argv, FS_TYPE_EXT); |
bcd0be5c SR |
35 | } |
36 | ||
a1596438 US |
37 | U_BOOT_CMD( |
38 | ext2ls, 4, 1, do_ext2ls, | |
39 | "list files in a directory (default /)", | |
40 | "<interface> <dev[:part]> [directory]\n" | |
41 | " - list files from 'dev' on 'interface' in a 'directory'" | |
0e350f81 | 42 | ) |
a1596438 | 43 | |
bcd0be5c SR |
44 | U_BOOT_CMD( |
45 | ext2load, 6, 0, do_ext2load, | |
2fb2604d | 46 | "load binary file from a Ext2 filesystem", |
6b367467 | 47 | "<interface> [<dev[:part]> [addr [filename [bytes [pos]]]]]\n" |
bcd0be5c | 48 | " - load binary file 'filename' from 'dev' on 'interface'\n" |
b770e88a | 49 | " to address 'addr' from ext2 filesystem." |
0e350f81 | 50 | ) |