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