Commit 60296a835cb176695a3ce3a50a843d2f03b77d32
commands: add more command entries in Kconfig
This commit adds some of command entries (CONFIG_CMD_*) to cover include/config_cmd_default.h and a little extra. Because U-Boot supports lots of commands, they should be categorized according to their usage. Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Showing 1 changed file with 274 additions and 9 deletions Side-by-side Diff
... | ... | @@ -18,35 +18,300 @@ |
18 | 18 | help |
19 | 19 | Backward compatibility. |
20 | 20 | |
21 | +comment "Commands" | |
22 | + | |
23 | +menu "Info commands" | |
24 | + | |
25 | +config CMD_BDI | |
26 | + bool "bdinfo" | |
27 | + help | |
28 | + Print board info | |
29 | + | |
30 | +config CMD_CONSOLE | |
31 | + bool "coninfo" | |
32 | + help | |
33 | + Print console devices and information. | |
34 | + | |
35 | +config CMD_LICENSE | |
36 | + bool "license" | |
37 | + help | |
38 | + Print GPL license text | |
39 | + | |
40 | +endmenu | |
41 | + | |
42 | +menu "Boot commands" | |
43 | + | |
44 | +config 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 | + | |
21 | 50 | config CMD_BOOTM |
22 | - bool "Enable bootm command" | |
51 | + bool "bootm" | |
23 | 52 | default y |
24 | 53 | help |
25 | 54 | Boot an application image from the memory. |
26 | 55 | |
27 | -config CMD_CRC32 | |
28 | - bool "Enable crc32 command" | |
56 | +config CMD_GO | |
57 | + bool "go" | |
29 | 58 | default y |
30 | 59 | help |
31 | - Compute CRC32. | |
60 | + Start an application at a given address. | |
32 | 61 | |
62 | +config CMD_RUN | |
63 | + bool "run" | |
64 | + help | |
65 | + Run the command in the given environment variable. | |
66 | + | |
67 | +config CMD_IMI | |
68 | + bool "iminfo" | |
69 | + help | |
70 | + Print header information for application image. | |
71 | + | |
72 | +config CMD_IMLS | |
73 | + bool "imls" | |
74 | + help | |
75 | + List all images found in flash | |
76 | + | |
77 | +config CMD_XIMG | |
78 | + bool "imxtract" | |
79 | + help | |
80 | + Extract a part of a multi-image. | |
81 | + | |
82 | +endmenu | |
83 | + | |
84 | +menu "Environment commands" | |
85 | + | |
33 | 86 | config CMD_EXPORTENV |
34 | - bool "Enable env export command" | |
87 | + bool "env export" | |
35 | 88 | default y |
36 | 89 | help |
37 | 90 | Export environments. |
38 | 91 | |
39 | 92 | config CMD_IMPORTENV |
40 | - bool "Enable env import command" | |
93 | + bool "env import" | |
41 | 94 | default y |
42 | 95 | help |
43 | 96 | Import environments. |
44 | 97 | |
45 | -config CMD_GO | |
46 | - bool "Enable go command" | |
98 | +config CMD_EDITENV | |
99 | + bool "editenv" | |
100 | + help | |
101 | + Edit environment variable. | |
102 | + | |
103 | +config CMD_SAVEENV | |
104 | + bool "saveenv" | |
105 | + help | |
106 | + Run the command in the given environment variable. | |
107 | + | |
108 | +endmenu | |
109 | + | |
110 | +menu "Memory commands" | |
111 | + | |
112 | +config 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 | + | |
125 | +config CMD_CRC32 | |
126 | + bool "crc32" | |
47 | 127 | default y |
48 | 128 | help |
49 | - Start an application at a given address. | |
129 | + Compute CRC32. | |
130 | + | |
131 | +config LOOPW | |
132 | + bool "loopw" | |
133 | + help | |
134 | + Infinite write loop on address range | |
135 | + | |
136 | +config CMD_MEMTEST | |
137 | + bool "crc32" | |
138 | + help | |
139 | + Simple RAM read/write test. | |
140 | + | |
141 | +config CMD_MX_CYCLIC | |
142 | + bool "mdc, mwc" | |
143 | + help | |
144 | + mdc - memory display cyclic | |
145 | + mwc - memory write cyclic | |
146 | + | |
147 | +config CMD_MEMINFO | |
148 | + bool "meminfo" | |
149 | + help | |
150 | + Display memory information. | |
151 | + | |
152 | +endmenu | |
153 | + | |
154 | +menu "Device access commands" | |
155 | + | |
156 | +config CMD_LOADB | |
157 | + bool "loadb" | |
158 | + help | |
159 | + Load a binary file over serial line. | |
160 | + | |
161 | +config CMD_LOADS | |
162 | + bool "loads" | |
163 | + help | |
164 | + Load an S-Record file over serial line | |
165 | + | |
166 | +config 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 | + | |
174 | +config CMD_NAND | |
175 | + bool "nand" | |
176 | + help | |
177 | + NAND support. | |
178 | + | |
179 | +config CMD_SPI | |
180 | + bool "sspi" | |
181 | + help | |
182 | + SPI utility command. | |
183 | + | |
184 | +config CMD_I2C | |
185 | + bool "i2c" | |
186 | + help | |
187 | + I2C support. | |
188 | + | |
189 | +config CMD_USB | |
190 | + bool "usb" | |
191 | + help | |
192 | + USB support. | |
193 | + | |
194 | +config CMD_FPGA | |
195 | + bool "fpga" | |
196 | + help | |
197 | + FPGA support. | |
198 | + | |
199 | +endmenu | |
200 | + | |
201 | + | |
202 | +menu "Shell scripting commands" | |
203 | + | |
204 | +config CMD_ECHO | |
205 | + bool "echo" | |
206 | + help | |
207 | + Echo args to console | |
208 | + | |
209 | +config CMD_ITEST | |
210 | + bool "itest" | |
211 | + help | |
212 | + Return true/false on integer compare. | |
213 | + | |
214 | +config CMD_SOURCE | |
215 | + bool "source" | |
216 | + help | |
217 | + Run script from memory | |
218 | + | |
219 | +endmenu | |
220 | + | |
221 | +menu "Network commands" | |
222 | + | |
223 | +config 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 | + | |
230 | +config CMD_TFTPPUT | |
231 | + bool "tftp put" | |
232 | + help | |
233 | + TFTP put command, for uploading files to a server | |
234 | + | |
235 | +config CMD_TFTPSRV | |
236 | + bool "tftpsrv" | |
237 | + help | |
238 | + Act as a TFTP server and boot the first received file | |
239 | + | |
240 | +config CMD_RARP | |
241 | + bool "rarpboot" | |
242 | + help | |
243 | + Boot image via network using RARP/TFTP protocol | |
244 | + | |
245 | +config CMD_DHCP | |
246 | + bool "dhcp" | |
247 | + help | |
248 | + Boot image via network using DHCP/TFTP protocol | |
249 | + | |
250 | +config CMD_NFS | |
251 | + bool "nfs" | |
252 | + help | |
253 | + Boot image via network using NFS protocol. | |
254 | + | |
255 | +config CMD_PING | |
256 | + bool "ping" | |
257 | + help | |
258 | + Send ICMP ECHO_REQUEST to network host | |
259 | + | |
260 | +config CMD_CDP | |
261 | + bool "cdp" | |
262 | + help | |
263 | + Perform CDP network configuration | |
264 | + | |
265 | +config CMD_SNTP | |
266 | + bool "sntp" | |
267 | + help | |
268 | + Synchronize RTC via network | |
269 | + | |
270 | +config CMD_DNS | |
271 | + bool "dns" | |
272 | + help | |
273 | + Lookup the IP of a hostname | |
274 | + | |
275 | +config CMD_DNS | |
276 | + bool "dns" | |
277 | + help | |
278 | + Lookup the IP of a hostname | |
279 | + | |
280 | +config CMD_LINK_LOCAL | |
281 | + bool "linklocal" | |
282 | + help | |
283 | + Acquire a network IP address using the link-local protocol | |
284 | + | |
285 | +endmenu | |
286 | + | |
287 | +menu "Misc commands" | |
288 | + | |
289 | +config CMD_TIME | |
290 | + bool "time" | |
291 | + help | |
292 | + Run commands and summarize execution time. | |
293 | + | |
294 | +# TODO: rename to CMD_SLEEP | |
295 | +config CMD_MISC | |
296 | + bool "sleep" | |
297 | + help | |
298 | + Delay execution for some time | |
299 | + | |
300 | +config CMD_TIMER | |
301 | + bool "timer" | |
302 | + help | |
303 | + Access the system timer. | |
304 | + | |
305 | +config 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 | + | |
314 | +endmenu | |
50 | 315 | |
51 | 316 | endmenu |
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37
-
mentioned in commit a436d6
-
mentioned in commit 6eed37