seama.rst 1.3 KB

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