blob: fd84fa08bd3efc2569ac4200684f26abca5ac205 [file] [log] [blame]
Masahiro Yamadaed363232014-09-16 16:32:58 +09001menu "Command line interface"
2 depends on !SPL_BUILD
3
Masahiro Yamada6c775092014-11-13 19:29:07 +09004config HUSH_PARSER
5 bool "Use hush shell"
6 select SYS_HUSH_PARSER
7 help
8 This option enables the "hush" shell (from Busybox) as command line
9 interpreter, thus enabling powerful command line syntax like
10 if...then...else...fi conditionals or `&&' and '||'
11 constructs ("shell scripts").
12
13 If disabled, you get the old, much simpler behaviour with a somewhat
14 smaller memory footprint.
15
16config SYS_HUSH_PARSER
17 bool
18 help
19 Backward compatibility.
20
Masahiro Yamada60296a82014-11-13 19:29:08 +090021comment "Commands"
22
23menu "Info commands"
24
25config CMD_BDI
26 bool "bdinfo"
27 help
28 Print board info
29
30config CMD_CONSOLE
31 bool "coninfo"
32 help
33 Print console devices and information.
34
35config CMD_LICENSE
36 bool "license"
37 help
38 Print GPL license text
39
40endmenu
41
42menu "Boot commands"
43
44config CMD_BOOTD
45 bool "bootd"
46 help
47 Run the command stored in the environment "bootcmd", i.e.
48 "bootd" does the same thing as "run bootcmd".
49
Masahiro Yamadadba16972014-09-16 16:33:00 +090050config CMD_BOOTM
Masahiro Yamada60296a82014-11-13 19:29:08 +090051 bool "bootm"
Masahiro Yamadadba16972014-09-16 16:33:00 +090052 default y
53 help
54 Boot an application image from the memory.
55
Masahiro Yamada60296a82014-11-13 19:29:08 +090056config CMD_GO
57 bool "go"
Masahiro Yamadaca05ee92014-09-16 16:33:01 +090058 default y
59 help
Masahiro Yamada60296a82014-11-13 19:29:08 +090060 Start an application at a given address.
61
62config CMD_RUN
63 bool "run"
64 help
65 Run the command in the given environment variable.
66
67config CMD_IMI
68 bool "iminfo"
69 help
70 Print header information for application image.
71
72config CMD_IMLS
73 bool "imls"
74 help
75 List all images found in flash
76
77config CMD_XIMG
78 bool "imxtract"
79 help
80 Extract a part of a multi-image.
81
82endmenu
83
84menu "Environment commands"
Masahiro Yamadaca05ee92014-09-16 16:33:01 +090085
Masahiro Yamadacccee182014-09-16 16:33:02 +090086config CMD_EXPORTENV
Masahiro Yamada60296a82014-11-13 19:29:08 +090087 bool "env export"
Masahiro Yamadacccee182014-09-16 16:33:02 +090088 default y
89 help
90 Export environments.
91
Masahiro Yamada1d5c2012014-09-16 16:33:04 +090092config CMD_IMPORTENV
Masahiro Yamada60296a82014-11-13 19:29:08 +090093 bool "env import"
Masahiro Yamada1d5c2012014-09-16 16:33:04 +090094 default y
95 help
96 Import environments.
97
Masahiro Yamada60296a82014-11-13 19:29:08 +090098config CMD_EDITENV
99 bool "editenv"
100 help
101 Edit environment variable.
102
103config CMD_SAVEENV
104 bool "saveenv"
105 help
106 Run the command in the given environment variable.
107
108endmenu
109
110menu "Memory commands"
111
112config CMD_MEMORY
113 bool "md, mm, nm, mw, cp, cmp, base, loop"
114 help
115 Memeory commands.
116 md - memory display
117 mm - memory modify (auto-incrementing address)
118 nm - memory modify (constant address)
119 mw - memory write (fill)
120 cp - memory copy
121 cmp - memory compare
122 base - print or set address offset
123 loop - initinite loop on address range
124
125config CMD_CRC32
126 bool "crc32"
Masahiro Yamada726ac8e2014-09-16 16:33:03 +0900127 default y
128 help
Masahiro Yamada60296a82014-11-13 19:29:08 +0900129 Compute CRC32.
130
131config LOOPW
132 bool "loopw"
133 help
134 Infinite write loop on address range
135
136config CMD_MEMTEST
137 bool "crc32"
138 help
139 Simple RAM read/write test.
140
141config CMD_MX_CYCLIC
142 bool "mdc, mwc"
143 help
144 mdc - memory display cyclic
145 mwc - memory write cyclic
146
147config CMD_MEMINFO
148 bool "meminfo"
149 help
150 Display memory information.
151
152endmenu
153
154menu "Device access commands"
155
156config CMD_LOADB
157 bool "loadb"
158 help
159 Load a binary file over serial line.
160
161config CMD_LOADS
162 bool "loads"
163 help
164 Load an S-Record file over serial line
165
166config CMD_FLASH
167 bool "flinfo, erase, protect"
168 help
169 NOR flash support.
170 flinfo - print FLASH memory information
171 erase - FLASH memory
172 protect - enable or disable FLASH write protection
173
174config CMD_NAND
175 bool "nand"
176 help
177 NAND support.
178
179config CMD_SPI
180 bool "sspi"
181 help
182 SPI utility command.
183
184config CMD_I2C
185 bool "i2c"
186 help
187 I2C support.
188
189config CMD_USB
190 bool "usb"
191 help
192 USB support.
193
194config CMD_FPGA
195 bool "fpga"
196 help
197 FPGA support.
198
199endmenu
200
201
202menu "Shell scripting commands"
203
204config CMD_ECHO
205 bool "echo"
206 help
207 Echo args to console
208
209config CMD_ITEST
210 bool "itest"
211 help
212 Return true/false on integer compare.
213
214config CMD_SOURCE
215 bool "source"
216 help
217 Run script from memory
218
219endmenu
220
221menu "Network commands"
222
223config CMD_NET
224 bool "bootp, tftpboot"
225 help
226 Network commands.
227 bootp - boot image via network using BOOTP/TFTP protocol
228 tftpboot - boot image via network using TFTP protocol
229
230config CMD_TFTPPUT
231 bool "tftp put"
232 help
233 TFTP put command, for uploading files to a server
234
235config CMD_TFTPSRV
236 bool "tftpsrv"
237 help
238 Act as a TFTP server and boot the first received file
239
240config CMD_RARP
241 bool "rarpboot"
242 help
243 Boot image via network using RARP/TFTP protocol
244
245config CMD_DHCP
246 bool "dhcp"
247 help
248 Boot image via network using DHCP/TFTP protocol
249
250config CMD_NFS
251 bool "nfs"
252 help
253 Boot image via network using NFS protocol.
254
255config CMD_PING
256 bool "ping"
257 help
258 Send ICMP ECHO_REQUEST to network host
259
260config CMD_CDP
261 bool "cdp"
262 help
263 Perform CDP network configuration
264
265config CMD_SNTP
266 bool "sntp"
267 help
268 Synchronize RTC via network
269
270config CMD_DNS
271 bool "dns"
272 help
273 Lookup the IP of a hostname
274
275config CMD_DNS
276 bool "dns"
277 help
278 Lookup the IP of a hostname
279
280config CMD_LINK_LOCAL
281 bool "linklocal"
282 help
283 Acquire a network IP address using the link-local protocol
284
285endmenu
286
287menu "Misc commands"
288
289config CMD_TIME
290 bool "time"
291 help
292 Run commands and summarize execution time.
293
294# TODO: rename to CMD_SLEEP
295config CMD_MISC
296 bool "sleep"
297 help
298 Delay execution for some time
299
300config CMD_TIMER
301 bool "timer"
302 help
303 Access the system timer.
304
305config CMD_SETGETDCR
306 bool "getdcr, setdcr, getidcr, setidcr"
307 depends on 4xx
308 help
309 getdcr - Get an AMCC PPC 4xx DCR's value
310 setdcr - Set an AMCC PPC 4xx DCR's value
311 getidcr - Get a register value via indirect DCR addressing
312 setidcr - Set a register value via indirect DCR addressing
313
314endmenu
Masahiro Yamada726ac8e2014-09-16 16:33:03 +0900315
Masahiro Yamadaed363232014-09-16 16:32:58 +0900316endmenu