Linus Walleij | bef3925 | 2023-02-01 00:16:13 +0100 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+: |
| 2 | |
| 3 | seama command |
| 4 | ============= |
| 5 | |
| 6 | Synopsis |
| 7 | -------- |
| 8 | |
| 9 | :: |
| 10 | |
| 11 | seama <dst_addr> <index> |
| 12 | |
| 13 | Description |
| 14 | ----------- |
| 15 | |
| 16 | The seama command is used to load and decode SEAttle iMAges from NAND |
| 17 | flash to memory. |
| 18 | |
| 19 | This type of flash image is found in some D-Link routers such as |
| 20 | DIR-645, DIR-842, DIR-859, DIR-860L, DIR-885L, DIR890L and DCH-M225, |
| 21 | as well as in WD and NEC routers on the ath79 (MIPS), Broadcom |
| 22 | BCM53xx, and RAMIPS platforms. |
| 23 | |
| 24 | This U-Boot command will read and decode a SEAMA image from raw NAND |
| 25 | flash on any platform. As it is always using big endian format for |
| 26 | the data decoding is always necessary on platforms such as ARM. |
| 27 | |
| 28 | dst_addr |
| 29 | destination address of the byte stream to be loaded |
| 30 | |
| 31 | index |
| 32 | the image index (0, 1, 2..) can be omitted |
| 33 | |
| 34 | Example |
| 35 | ------- |
| 36 | |
| 37 | :: |
| 38 | |
| 39 | => seama 0x01000000 |
| 40 | Loading SEAMA image 0 from nand0 |
| 41 | SEMA IMAGE: |
| 42 | metadata size 36 |
| 43 | image size 8781764 |
| 44 | checksum 054859cfb1487b59befda98824e09dd6 |
| 45 | Decoding SEAMA image 0x01000040..0x01860004 to 0x01000000 |
| 46 | |
| 47 | |
| 48 | Configuration |
| 49 | ------------- |
| 50 | |
| 51 | The command is available if CONFIG_CMD_SEAMA=y. |
| 52 | |
| 53 | Return value |
| 54 | ------------ |
| 55 | |
| 56 | The return value $? is set 0 (true) if the loading is succefull, and |
| 57 | is set to 1 (false) in case of error. |
| 58 | |
| 59 | The environment variable $seama_image_size is set to the size of the |
| 60 | loaded SEAMA image. |