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