Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | // SPDX-License-Identifier: GPL-2.0+ |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 2 | /* |
| 3 | * (C) Copyright 2000-2004 |
| 4 | * Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
| 5 | * |
| 6 | * (C) Copyright 2003 |
| 7 | * Kai-Uwe Bloem, Auerswald GmbH & Co KG, <linux-development@auerswald.de> |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 8 | */ |
| 9 | |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 10 | |
| 11 | /* |
| 12 | * Multi Image extract |
| 13 | */ |
| 14 | #include <common.h> |
| 15 | #include <command.h> |
Simon Glass | 313112a | 2019-08-01 09:46:46 -0600 | [diff] [blame] | 16 | #include <env.h> |
Simon Glass | 1a974af | 2019-08-01 09:46:36 -0600 | [diff] [blame] | 17 | #include <gzip.h> |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 18 | #include <image.h> |
Joe Hershberger | 65b905b | 2015-03-22 17:08:59 -0500 | [diff] [blame] | 19 | #include <mapmem.h> |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 20 | #include <watchdog.h> |
| 21 | #if defined(CONFIG_BZIP2) |
| 22 | #include <bzlib.h> |
| 23 | #endif |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 24 | #include <asm/byteorder.h> |
Simon Glass | 208d8e8 | 2013-08-30 11:00:09 -0600 | [diff] [blame] | 25 | #include <asm/io.h> |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 26 | |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 27 | #ifndef CONFIG_SYS_XIMG_LEN |
| 28 | /* use 8MByte as default max gunzip size */ |
| 29 | #define CONFIG_SYS_XIMG_LEN 0x800000 |
| 30 | #endif |
| 31 | |
Kim Phillips | dc00a68 | 2012-10-29 13:34:31 +0000 | [diff] [blame] | 32 | static int |
Wolfgang Denk | 6262d021 | 2010-06-28 22:00:46 +0200 | [diff] [blame] | 33 | do_imgextract(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[]) |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 34 | { |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 35 | ulong addr = load_addr; |
| 36 | ulong dest = 0; |
Heiko Schocher | 515eb12 | 2014-05-28 11:33:33 +0200 | [diff] [blame] | 37 | ulong data, len; |
Bartlomiej Sieka | 3b8cc71 | 2008-03-20 19:38:45 +0100 | [diff] [blame] | 38 | int verify; |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 39 | int part = 0; |
Tom Rini | c220bd9 | 2019-05-23 07:14:07 -0400 | [diff] [blame] | 40 | #if defined(CONFIG_LEGACY_IMAGE_FORMAT) |
Heiko Schocher | 515eb12 | 2014-05-28 11:33:33 +0200 | [diff] [blame] | 41 | ulong count; |
Simon Glass | 208d8e8 | 2013-08-30 11:00:09 -0600 | [diff] [blame] | 42 | image_header_t *hdr = NULL; |
Heiko Schocher | 515eb12 | 2014-05-28 11:33:33 +0200 | [diff] [blame] | 43 | #endif |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 44 | #if defined(CONFIG_FIT) |
Bartlomiej Sieka | 3b8cc71 | 2008-03-20 19:38:45 +0100 | [diff] [blame] | 45 | const char *uname = NULL; |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 46 | const void* fit_hdr; |
| 47 | int noffset; |
| 48 | const void *fit_data; |
| 49 | size_t fit_len; |
| 50 | #endif |
Simon Glass | a039527 | 2013-04-17 16:13:45 +0000 | [diff] [blame] | 51 | #ifdef CONFIG_GZIP |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 52 | uint unc_len = CONFIG_SYS_XIMG_LEN; |
Simon Glass | a039527 | 2013-04-17 16:13:45 +0000 | [diff] [blame] | 53 | #endif |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 54 | uint8_t comp; |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 55 | |
Simon Glass | 22c34c2 | 2017-08-03 12:22:13 -0600 | [diff] [blame] | 56 | verify = env_get_yesno("verify"); |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 57 | |
| 58 | if (argc > 1) { |
| 59 | addr = simple_strtoul(argv[1], NULL, 16); |
| 60 | } |
| 61 | if (argc > 2) { |
| 62 | part = simple_strtoul(argv[2], NULL, 16); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 63 | #if defined(CONFIG_FIT) |
| 64 | uname = argv[2]; |
| 65 | #endif |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 66 | } |
| 67 | if (argc > 3) { |
| 68 | dest = simple_strtoul(argv[3], NULL, 16); |
| 69 | } |
| 70 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 71 | switch (genimg_get_format((void *)addr)) { |
Tom Rini | c220bd9 | 2019-05-23 07:14:07 -0400 | [diff] [blame] | 72 | #if defined(CONFIG_LEGACY_IMAGE_FORMAT) |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 73 | case IMAGE_FORMAT_LEGACY: |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 74 | |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 75 | printf("## Copying part %d from legacy image " |
| 76 | "at %08lx ...\n", part, addr); |
| 77 | |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 78 | hdr = (image_header_t *)addr; |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 79 | if (!image_check_magic(hdr)) { |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 80 | printf("Bad Magic Number\n"); |
| 81 | return 1; |
| 82 | } |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 83 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 84 | if (!image_check_hcrc(hdr)) { |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 85 | printf("Bad Header Checksum\n"); |
| 86 | return 1; |
| 87 | } |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 88 | #ifdef DEBUG |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 89 | image_print_contents(hdr); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 90 | #endif |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 91 | |
Pierre Aubert | de4e949 | 2015-09-16 08:29:11 +0200 | [diff] [blame] | 92 | if (!image_check_type(hdr, IH_TYPE_MULTI) && |
| 93 | !image_check_type(hdr, IH_TYPE_SCRIPT)) { |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 94 | printf("Wrong Image Type for %s command\n", |
| 95 | cmdtp->name); |
| 96 | return 1; |
| 97 | } |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 98 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 99 | comp = image_get_comp(hdr); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 100 | if ((comp != IH_COMP_NONE) && (argc < 4)) { |
| 101 | printf("Must specify load address for %s command " |
| 102 | "with compressed image\n", |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 103 | cmdtp->name); |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 104 | return 1; |
| 105 | } |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 106 | |
| 107 | if (verify) { |
| 108 | printf(" Verifying Checksum ... "); |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 109 | if (!image_check_dcrc(hdr)) { |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 110 | printf("Bad Data CRC\n"); |
| 111 | return 1; |
| 112 | } |
| 113 | printf("OK\n"); |
| 114 | } |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 115 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 116 | count = image_multi_count(hdr); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 117 | if (part >= count) { |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 118 | printf("Bad Image Part\n"); |
| 119 | return 1; |
| 120 | } |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 121 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 122 | image_multi_getimg(hdr, part, &data, &len); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 123 | break; |
Heiko Schocher | 515eb12 | 2014-05-28 11:33:33 +0200 | [diff] [blame] | 124 | #endif |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 125 | #if defined(CONFIG_FIT) |
| 126 | case IMAGE_FORMAT_FIT: |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 127 | if (uname == NULL) { |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 128 | puts("No FIT subimage unit name\n"); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 129 | return 1; |
| 130 | } |
| 131 | |
| 132 | printf("## Copying '%s' subimage from FIT image " |
| 133 | "at %08lx ...\n", uname, addr); |
| 134 | |
| 135 | fit_hdr = (const void *)addr; |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 136 | if (!fit_check_format(fit_hdr)) { |
| 137 | puts("Bad FIT image format\n"); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 138 | return 1; |
| 139 | } |
| 140 | |
| 141 | /* get subimage node offset */ |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 142 | noffset = fit_image_get_node(fit_hdr, uname); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 143 | if (noffset < 0) { |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 144 | printf("Can't find '%s' FIT subimage\n", uname); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 145 | return 1; |
| 146 | } |
| 147 | |
Stefan Theil | 69b0ef5 | 2019-01-07 10:25:52 +0100 | [diff] [blame] | 148 | if (!fit_image_check_comp(fit_hdr, noffset, IH_COMP_NONE) |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 149 | && (argc < 4)) { |
| 150 | printf("Must specify load address for %s command " |
| 151 | "with compressed image\n", |
| 152 | cmdtp->name); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 153 | return 1; |
| 154 | } |
| 155 | |
| 156 | /* verify integrity */ |
| 157 | if (verify) { |
Simon Glass | 7428ad1 | 2013-05-07 06:11:57 +0000 | [diff] [blame] | 158 | if (!fit_image_verify(fit_hdr, noffset)) { |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 159 | puts("Bad Data Hash\n"); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 160 | return 1; |
| 161 | } |
| 162 | } |
| 163 | |
Tien Fong Chee | 8a86958 | 2019-02-12 20:49:30 +0800 | [diff] [blame] | 164 | /* get subimage/external data address and length */ |
| 165 | if (fit_image_get_data_and_size(fit_hdr, noffset, |
| 166 | &fit_data, &fit_len)) { |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 167 | puts("Could not find script subimage data\n"); |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 168 | return 1; |
| 169 | } |
| 170 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 171 | if (fit_image_get_comp(fit_hdr, noffset, &comp)) { |
| 172 | puts("Could not find script subimage " |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 173 | "compression type\n"); |
| 174 | return 1; |
| 175 | } |
| 176 | |
Bartlomiej Sieka | 3b8cc71 | 2008-03-20 19:38:45 +0100 | [diff] [blame] | 177 | data = (ulong)fit_data; |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 178 | len = (ulong)fit_len; |
| 179 | break; |
Marian Balakowicz | dbdd16a | 2008-02-04 08:28:09 +0100 | [diff] [blame] | 180 | #endif |
| 181 | default: |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 182 | puts("Invalid image type for imxtract\n"); |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 183 | return 1; |
| 184 | } |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 185 | |
| 186 | if (argc > 3) { |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 187 | switch (comp) { |
| 188 | case IH_COMP_NONE: |
| 189 | #if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG) |
| 190 | { |
| 191 | size_t l = len; |
| 192 | size_t tail; |
| 193 | void *to = (void *) dest; |
| 194 | void *from = (void *)data; |
| 195 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 196 | printf(" Loading part %d ... ", part); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 197 | |
| 198 | while (l > 0) { |
| 199 | tail = (l > CHUNKSZ) ? CHUNKSZ : l; |
| 200 | WATCHDOG_RESET(); |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 201 | memmove(to, from, tail); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 202 | to += tail; |
| 203 | from += tail; |
| 204 | l -= tail; |
| 205 | } |
| 206 | } |
| 207 | #else /* !(CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG) */ |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 208 | printf(" Loading part %d ... ", part); |
| 209 | memmove((char *) dest, (char *)data, len); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 210 | #endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */ |
| 211 | break; |
Matthew McClintock | c93a754 | 2011-05-24 05:48:26 +0000 | [diff] [blame] | 212 | #ifdef CONFIG_GZIP |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 213 | case IH_COMP_GZIP: |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 214 | printf(" Uncompressing part %d ... ", part); |
| 215 | if (gunzip((void *) dest, unc_len, |
| 216 | (uchar *) data, &len) != 0) { |
| 217 | puts("GUNZIP ERROR - image not loaded\n"); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 218 | return 1; |
| 219 | } |
| 220 | break; |
Matthew McClintock | c93a754 | 2011-05-24 05:48:26 +0000 | [diff] [blame] | 221 | #endif |
Tom Rini | c220bd9 | 2019-05-23 07:14:07 -0400 | [diff] [blame] | 222 | #if defined(CONFIG_BZIP2) && defined(CONFIG_LEGACY_IMAGE_FORMAT) |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 223 | case IH_COMP_BZIP2: |
Wolfgang Denk | 3207afd | 2010-01-31 21:51:43 +0100 | [diff] [blame] | 224 | { |
| 225 | int i; |
| 226 | |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 227 | printf(" Uncompressing part %d ... ", part); |
Wolfgang Denk | 3207afd | 2010-01-31 21:51:43 +0100 | [diff] [blame] | 228 | /* |
Wolfgang Denk | a2cfb24 | 2010-03-12 23:06:04 +0100 | [diff] [blame] | 229 | * If we've got less than 4 MB of malloc() |
Wolfgang Denk | 3207afd | 2010-01-31 21:51:43 +0100 | [diff] [blame] | 230 | * space, use slower decompression algorithm |
| 231 | * which requires at most 2300 KB of memory. |
| 232 | */ |
| 233 | i = BZ2_bzBuffToBuffDecompress( |
Simon Glass | 208d8e8 | 2013-08-30 11:00:09 -0600 | [diff] [blame] | 234 | map_sysmem(ntohl(hdr->ih_load), 0), |
Wolfgang Denk | 3207afd | 2010-01-31 21:51:43 +0100 | [diff] [blame] | 235 | &unc_len, (char *)data, len, |
| 236 | CONFIG_SYS_MALLOC_LEN < (4096 * 1024), |
| 237 | 0); |
| 238 | if (i != BZ_OK) { |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 239 | printf("BUNZIP2 ERROR %d - " |
Wolfgang Denk | 3207afd | 2010-01-31 21:51:43 +0100 | [diff] [blame] | 240 | "image not loaded\n", i); |
| 241 | return 1; |
| 242 | } |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 243 | } |
| 244 | break; |
| 245 | #endif /* CONFIG_BZIP2 */ |
| 246 | default: |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 247 | printf("Unimplemented compression type %d\n", comp); |
Wolfgang Wegner | 781afa9 | 2009-12-10 10:11:21 +0100 | [diff] [blame] | 248 | return 1; |
| 249 | } |
Stephen Warren | 6904b6e | 2011-10-18 11:11:49 +0000 | [diff] [blame] | 250 | puts("OK\n"); |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 251 | } |
| 252 | |
Mario Six | 7feefe4 | 2018-03-28 14:39:10 +0200 | [diff] [blame] | 253 | flush_cache(dest, ALIGN(len, ARCH_DMA_MINALIGN)); |
Pieter Voorthuijsen | f52d281 | 2015-01-12 16:23:18 +0100 | [diff] [blame] | 254 | |
Simon Glass | 4d949a2 | 2017-08-03 12:22:10 -0600 | [diff] [blame] | 255 | env_set_hex("fileaddr", data); |
| 256 | env_set_hex("filesize", len); |
wdenk | 0359dde | 2004-06-09 10:15:00 +0000 | [diff] [blame] | 257 | |
| 258 | return 0; |
| 259 | } |
| 260 | |
Kim Phillips | dc00a68 | 2012-10-29 13:34:31 +0000 | [diff] [blame] | 261 | #ifdef CONFIG_SYS_LONGHELP |
| 262 | static char imgextract_help_text[] = |
Wolfgang Denk | c54781c | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 263 | "addr part [dest]\n" |
| 264 | " - extract <part> from legacy image at <addr> and copy to <dest>" |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 265 | #if defined(CONFIG_FIT) |
Wolfgang Denk | c54781c | 2009-05-24 17:06:54 +0200 | [diff] [blame] | 266 | "\n" |
| 267 | "addr uname [dest]\n" |
| 268 | " - extract <uname> subimage from FIT image at <addr> and copy to <dest>" |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 269 | #endif |
Kim Phillips | dc00a68 | 2012-10-29 13:34:31 +0000 | [diff] [blame] | 270 | ""; |
| 271 | #endif |
| 272 | |
| 273 | U_BOOT_CMD( |
| 274 | imxtract, 4, 1, do_imgextract, |
| 275 | "extract a part of a multi-image", imgextract_help_text |
Marian Balakowicz | 2321ed0 | 2008-03-12 10:33:00 +0100 | [diff] [blame] | 276 | ); |