hc
2024-03-22 a0752693d998599af469473b8dc239ef973a012f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
/*******************************************************************************
Copyright (C) 2016 Marvell International Ltd.
 
SPDX-License-Identifier: BSD-2-Clause-Patent
 
*******************************************************************************/
 
/=#
 
#langdef   en-US "english"
 
#string STR_GET_HELP_EEPROM            #language en-US ""
".TH eeprom 0 "Basic EEPROM command."\r\n"
".SH NAME\r\n"
"Read/write data from/into Eeprom memory\r\n"
".SH SYNOPSIS\r\n"
" \r\n"
"eeprom [read] [write] [list] [-m] [<Chip>] [<Address>]\r\n"
"       [<Length>] [-d <Data>] [-s <Source>]\r\n"
".SH OPTIONS\r\n"
" \r\n"
"  read           - read from EEPROM\n"
"  write          - write Data to EEPROM, requires -d\n"
"  list           - list available EEPROM devices\n\n"
"  -m             - transfer from/to RAM memory, requires -s\n\n"
"  Chip           - EEPROM bus address\n"
"  Address        - address in EEPROM to read/write\n"
"  Data           - data byte to be written\n"
"  Length         - length of data to read/write/copy\n"
"  Source         - address of data in RAM to be copied\n"
".SH EXAMPLES\r\n"
" \r\n"
"EXAMPLES:\r\n"
"List devices:\r\n"
" eeprom list\r\n"
"Read 16 bytes from address 0x0 in chip 0x57:\r\n"
" eeprom read 0x57 0x0 0x10\r\n"
"Fill 16 bytes with 0xab at address 0x0 in chip 0x57:\r\n"
" eeprom write 0x57 0x0 0x10 -d 0xab\r\n"
"Copy 32 bytes from 0x2000000 in RAM to EEPROM:\r\n"
" eeprom write 0x57 0x0 0x20 -m 0x2000000\r\n"
"Copy 32 bytes from EEPROM to RAM:\r\n"
" eeprom read 0x57 0x0 0x20 -m 0x2000000\r\n"
".SH RETURNVALUES\r\n"
" \r\n"
"RETURN VALUES:\r\n"
"  SHELL_SUCCESS        The action was completed as requested.\r\n"
"  SHELL_ABORTED        Error while processing command\r\n"