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