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