summaryrefslogtreecommitdiffstats
path: root/commands/Kconfig
blob: ae2dc4b0947bd5cd2ea0b96d75946c406a6fb0f0 (plain) (blame)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
config REGINFO
	bool

config COMMAND_SUPPORT
	bool
	depends on !SHELL_NONE
	default y

if COMMAND_SUPPORT

config COMPILE_HASH
	tristate
	select CMD_DIGEST
	help
	  Turns on compilation of digest.c

config COMPILE_MEMORY
	bool
	help
	  Turns on compilation of mem.c

menu "Commands"




menu "Information"

config CMD_AT91CLK
	bool "at91clk"
	default y
	depends on ARCH_AT91
	help
	  List clock configuration.

config CMD_AT91MUX
	bool "at91mux"
	default y
	depends on ARCH_AT91
	help
	  List MUX configuration

	  Usage: at91mux [-pb]

	  Dump current MUX configuration. If a BANK or PIN has been
	  specified dump pin details.

	  Options:
	  -p PIN   pin number
	  -b BANK  bank number

config CMD_ARM_CPUINFO
	bool "cpuinfo command"
	default y
	depends on ARM
	help
	  Show info about ARM CPU

	  Example:

	  implementer: ARM
	  architecture: v7
	  core: Cortex-A9 r2p10
	  I-cache: 512 bytes (linelen = 64)
	  D-cache: 8192 bytes (linelen = 8)
	  Control register: M C W P D L I V RR DT IT U XP

config CMD_DEVINFO
	tristate
	default y
	prompt "devinfo"
	help
	  Show information about devices and drivers.

	  devinfo [DEVICE]

	  If called without arguments, devinfo shows a summary of the known
	  devices.

	  If called with a device path being the argument, devinfo shows more
	  default information about this device and its parameters.

config CMD_DMESG
	tristate
	prompt "dmesg"
	select LOGBUF
	depends on !CONSOLE_NONE
	help
	  Print or control the log message buffer.

config CMD_DRVINFO
	tristate
	default y
	prompt "drvinfo"
	help
	  List compiled-in device drivers and the devices they support.

config CMD_HELP
	tristate
	default y
	prompt "help"
	help
	  Without arguments, lists all all commands. With an argument, print help
	  about the specified command. If the argument is 'all', then output help
	  for all commands.

	  Options:
		-a	output help on all commands
		-v	verbose

config LONGHELP
	bool
	depends on !SHELL_NONE && CMD_HELP
	prompt "Long help texts"
	help
	  This make the "help" command of barebox spit out much more information,
	  but (obviously) also makes barebox bigger.

	  Example with CONFIG_LONGHELP:

	  -----------------------------
	  barebox:/ help ls

	  ls - list a file or directory

	  Usage: ls [-lCR] [FILEDIR...]

	  List information about the specified files or directories.

	  Options:
	          -l      long format
	          -C      column format (opposite of long format)
	          -R      list subdirectories recursively
	  -----------------------------

	  And now without CONFIG_LONGHELP:

	  -----------------------------
	  barebox:/ help ls

	  ls - list a file or directory

	  Usage: ls [-lCR] [FILEDIR...]
	  -----------------------------

	  With my specific .config, the binary size increased from 461500 to 481980.

config CMD_IOMEM
	tristate
	prompt "iomem and ioport"
	help
	  Show information about iomem/ioport usage. Pendant to
	  'cat /proc/iomem' and 'cat /proc/ioports' under Linux.

config CMD_IMD
	tristate
	prompt "imd"
	select IMD
	help
	  barebox images can have metadata in them which contains information
	  like the barebox version and the build time. Say yes here to get the
	  imd command which can extract that information from images.

config CMD_MEMINFO
	tristate
	prompt "meminfo"
	help
	  Print info about barebox' memory allocation. Example:

	  max system bytes =     282616
	  system bytes     =     282616
	  in use bytes     =     274752

config CMD_ARM_MMUINFO
	bool "mmuinfo command"
	depends on CPU_V7
	help
	  Say yes here to get a mmuinfo command to show some
	  MMU and cache information using the cp15 registers.

	  Example:

	  PAR result for 0x00110000:
	  privileged read: 0x00110090
	  Physical Address [31:12]: 0x00110000
	  Reserved [11]:            0x0
	  Not Outer Shareable [10]: 0x0
	  Non-Secure [9]:           0x0
	  Impl. def. [8]:           0x0
	  Shareable [7]:            0x1
	  Inner mem. attr. [6:4]:   0x1 (0b001 Strongly-ordered)
	  Outer mem. attr. [3:2]:   0x0 (0b00 Non-cacheable)
	  SuperSection [1]:         0x0
	  Failure [0]:              0x0
	  privileged write: 0x00110090
	  Physical Address [31:12]: 0x00110000
	  Reserved [11]:            0x0
	  Not Outer Shareable [10]: 0x0
	  Non-Secure [9]:           0x0
	  Impl. def. [8]:           0x0
	  Shareable [7]:            0x1
	  Inner mem. attr. [6:4]:   0x1 (0b001 Strongly-ordered)
	  Outer mem. attr. [3:2]:   0x0 (0b00 Non-cacheable)
	  SuperSection [1]:         0x0
	  Failure [0]:              0x0

config CMD_REGINFO
	depends on HAS_REGINFO
	select REGINFO
	tristate
	prompt "reginfo"
	help
	  Print register information.

config CMD_REGULATOR
	bool
	depends on REGULATOR
	prompt "regulator command"
	help
	  the regulator command lists the currently registered regulators and
	  their current state.

config CMD_LSPCI
	bool
	depends on PCI
	prompt "lspci command"
	default y
	help
	  The lspci command allows to list all PCI devices.

config CMD_VERSION
	tristate
	default y
	depends on BANNER
	prompt "version"
	help
	  Pring barebox version. Example:

	  barebox 2014.05.0-00142-gb289373 #177 Mon May 12 20:35:55 CEST 2014

config CMD_MMC_EXTCSD
	tristate
	prompt "read/write eMMC ext. CSD register"
	depends on MCI
	help
	  Read or write the extended CSD register of a MMC device.

	  Usage: mmc_extcsd dev [-r | -i index [-r | -v value -y]]

	  Options:
		  -i      field index of the register
		  -r      print the register as raw data
		  -v      value which will be written
		  -y      don't request when writing to one time programmable fields
		  __CAUTION__: this could damage the device!

# end Information commands
endmenu




menu "Boot"

config CMD_AT91_BOOT_TEST
	bool "at91_boot_test"
	depends on ARCH_AT91
	help
	  allow to upload a boot binary to SRAM and execute it.
	  Useful to test bootstrap or barebox lowlevel init.

	  Usage: at91_boot_test [-js] FILE

	  Options:
	  -j ADDR  jump address
	  -s SRAM  SRAM device (default /dev/sram0)

config CMD_BOOT_ORDER
	tristate
	depends on ARCH_OMAP4
	prompt "boot_order"
	help
	  Set warm boot order (the next boot device on a warm reset).

	  Usage: boot_order DEVICE...

	  Each device can be one of:
	  xip xipwait nand onenand mmc1 mmc2_1 mmc2_2 uart usb_1 usb_ulpi usb_2

config CMD_BOOT
	tristate
	depends on BOOTM
	select BOOT
	prompt "boot"
	help
	  Select this for booting based on scripts. Unlike the bootm command which
	  can boot a single image this command offers the possibility to boot with
	  scripts (by default placed under /env/boot/). This command iterates over
	  multiple scripts until one succeeds.

	  Usage: boot [-vdlmt] [BOOTSRC...]

	  BOOTSRC can be:
	  - a filename under /env/boot/
	  - a full path to a boot script
	  - a device name
	  - a partition name under /dev/
	  - a full path to a directory which
	  -- contains boot scripts, or
	  -- contains a loader/entries/ directory containing bootspec entries

	  Multiple bootsources may be given which are probed in order until
	  one succeeds.

	  Options:
	      -c         crc check uImage data
	      -d         dryrun: check data, but do not run
	      -f         load images even if type is undetectable
	      -r INITRD  specify an initrd image
	      -L ADDR    specify initrd load address
	      -a ADDR    specify os load address
	      -e OFFS    entry point to the image relative to start (0)
	      -o DTS     specify open firmware device tree
	      -v         verbose

config CMD_BOOTM
	tristate
	default y
	depends on BOOTM
	select CRC32
	select UIMAGE
	select UNCOMPRESS
	select FILETYPE
	depends on GLOBALVAR
	prompt "bootm"
	help
	  Boot an application image

	  Usage: bootm [-cdaeo] IMAGE

	  Options:
		  -c	crc check uImage data
		  -d	dryrun. Check data, but do not run
		  -a ADDR	specify os load address
		  -e OFFS	entry point to the image relative to start (0)
		  -o DTS	specify device tree

config CMD_BOOTU
	tristate
	default y
	depends on ARM
	prompt "bootu"
	help
	  Boot into already loaded Linux kernel, which must be raw (uncompressed).

	  Usage: bootu ADDRESS

config CMD_BOOTZ
	tristate
	depends on ARM
	prompt "bootz"
	help
	  Boot Linux zImage

	  Usage: bootz FILE

config CMD_LINUX16
	tristate
	depends on X86 && !X86_EFI
	default y if X86
	prompt "linux16"
	help
	  Usage: linux16 [-v VESAMODE] FILE

	  Load kernel from FILE and boot on x86 in real-mode.

	  Only kernel images in bzImage format are supported by now.

	  For the video mode refer the Linux kernel documentation
	  'Documentation/fb/vesafb.txt' for correct VESA mode numbers. Use 'ask'
	  instead of a number to make Linux prompt for options.

	  Options:
	  -v VESAMODE   set VESAMODE


config CMD_GO
	tristate
	prompt "go"
	help
	  Start application at address or file

	  Usage: go ADDR [ARG...]

	  Start application at ADDR passing ARG as arguments.

	  If addr does not start with a digit it is interpreted as a filename
	  in which case the file is memmapped and executed

config CMD_LOADB
	depends on CONSOLE_FULL
	select CRC16
	tristate
	prompt "loadb"
	help
	  Load binary file over serial line (Kermit)

	  Usage: loadb  FILE

	  Options:
		  -f FILE	download to FILE (default image.bin)
		  -o OFFS	destination file OFFSet (default 0)
		  -b BAUD	baudrate for download (default: console baudrate
		  -c	create file if not present

config CMD_LOADS
	depends on CONSOLE_FULL
	tristate
	prompt "loads"
	help
	  Loads - load binary file over serial line (S-Records)

	  Usage: loads OFFS

	  Load S-Record file over serial line with offset OFFS.

config CMD_LOADY
	select XYMODEM
	depends on CONSOLE_FULL
	tristate
	prompt "loady"
	help
	  Adds the loadx and loady commands:

	  loadx - load binary file over serial line (X-Modem)

	  Usage: loadx [-fptbc]

	  Options:
		  -f FILE	download to FILE (default image.bin)
		  -o OFFS	destination file OFFSet (default 0)
		  -b BAUD	baudrate for download (default: console baudrate
		  -t NAME	console name to use (default: current)
		  -c	create file if not present


	  loady - load binary file over serial line (Y-Modem)

	  Usage: loady [-gtb]

	  Options:
		  -g	use Y-Modem/G (use on lossless tty such as USB)
		  -b BAUD	baudrate for download (default: console baudrate
		  -t NAME	console name to use (default: current)


config CMD_RESET
	tristate
	prompt "reset"
	help
	  Perform RESET of the CPU

	  Usage: reset [-f]

	  Options:
		  -f	force RESET, don't call shutdown

config CMD_SAVES
	tristate
	depends on CMD_LOADS
	prompt "saves"
	help
	  Save file over serial line (S-Records)

	  Usage: saves OFFS LEN

	  Save S-Record file to serial line with offset OFFS and length LEN.

config CMD_UIMAGE
	select UIMAGE
	tristate
	prompt "uimage"
	help
	  Show information about uImage and also extract and verify uImages.

	  Usage: uimage [-vien] FILE

	  Options:
		  -i		show information about image
		  -v		verify image
		  -e OUTFILE	extract image to OUTFILE
		  -n NO		use image number NO in multifile image

# end Boot commands
endmenu




menu "Partition"

config CMD_PARTITION
	tristate
	prompt "addpart and delpart"
	help
	  addpart - add a partition description to a device

	  Usage: addpart [-n] DEVICE PART

	  The size and the offset can be given in decimal (without any prefix) and
	  in hex (prefixed with 0x). Both can have an optional suffix K, M or G.
	  The size of the last partition can be specified as '-' for the remaining
	  space on the device.  This format is the same as used by the Linux
	  kernel or cmdline mtd partitions.

	  Options:
		  -n	do not use the device name as prefix of the partition name
		  DEVICE	device being worked on
		  PART	SIZE1[@OFFSET1](NAME1)[RO],SIZE2[@OFFSET2](NAME2)[RO],...


	  delpart - delete partition(s)

	  Usage: delpart PART...

	  Delete partitions previously added to a device with addpart.

config CMD_AUTOMOUNT
	tristate
	select FS_AUTOMOUNT
	prompt "automount"
	help
	  Automount allows o automatically execute a script when a certain
	  directory is accessed for the first time. The script should then make
	  this directory available (discover USB devices, bring network interface
	  up and finally mount the filesystem).

	  Usage: automount [-ldr] PATH [COMMAND]

	  Options:
		  -l	list registered automount-points
		  -d	create the mount directory
		  -r	remove an automountpoint

config CMD_MOUNT
	tristate
	default y
	prompt "mount"
	help
	  Mount a filesystem or list mounted filesystems

	  Usage: mount [[-atov] [DEVICE] [MOUNTPOINT]]

	  If no argument is given, list mounted filesystems.
	  If no FSTYPE is specified, try to detect it automatically.
	  With -a the mount command mounts all block devices whose filesystem
	  can be detected automatically to /mnt/PARTNAME
	  If mountpoint is not given, a standard mountpoint of /mnt/DEVICE
	  is used. This directoy is created automatically if necessary.

	  Options:
		  -a		mount all blockdevices
		  -t FSTYPE	specify filesystem type
		  -o OPTIONS	set file system OPTIONS
		  -v		verbose

config CMD_UBI
	tristate
	default y if MTD_UBI
	depends on MTD_UBI
	prompt "ubiattach, ubimkvol and ubirmvol"
	help
	  ubiattach - attach mtd device to UBI

	  Usage: ubiattach [-O] MTDDEV

	  Options:
		  -O OFFS	VID header offset


	  ubimkvol - create an UBI volume

	  Usage: ubimkvol UBIDEV NAME SIZE

	  Create an UBI volume on UBIDEV with NAME and SIZE.
	  If SIZE is 0 all available space is used for the volume.


	  ubirmvol - delete an UBI volume

	  Usage: ubirmvol UBIDEV NAME

	  Delete UBI volume NAME from UBIDEV


config CMD_UBIFORMAT
	tristate
	depends on UBIFORMAT
	prompt "ubiformat"

config CMD_UMOUNT
	tristate
	default y
	prompt "umount"
	help
	  Usage: umount MOUNTPOINT

	  Unmount a filesystem mounted on a specific MOINTPOINT

# end Partition commands
endmenu



menu "Environment"

config CMD_NV
	depends on NVVAR
	tristate
	prompt "nv"
	help
	  create, set or remove non volatile variables.

	  Usage: nv [-r] VAR[=VALUE]

	  Add a new config non volatile named VAR, optionally set to VALUE.

	  Options:
		-r	remove a non volatile variable

config CMD_EXPORT
	depends on ENVIRONMENT_VARIABLES
	tristate
	prompt "export"
	help
	  Export environment variables

	  Usage: export VAR[=VALUE]

	  Export an environment variable to subsequently executed scripts.

config CMD_DEFAULTENV
	tristate
	prompt "defaultenv"
	help
	  restore environment from default environment

config CMD_GLOBAL
	depends on GLOBALVAR
	tristate
	prompt "global"
	help
	  Create or set global variables

	  Usage: global [-r] VAR[=VALUE]

	  Add a new global variable named VAR, optionally set to VALUE.

	  Options:
		-r	set value of all global variables beginning with 'match'

config CMD_LOADENV
	tristate
	depends on ENV_HANDLING
	prompt "loadenv"
	help
	  Load environment from ENVFS

	  Usage: loadenv {-nsd] [ENVFS] [DIRECTORY]

	  Load environment from files in ENVFS (default /dev/env0) in
	  DIRECTORY (default /env

	  Options:
		-n	do not overwrite existing files
		-s	scrub old environment
		-d	load default environment

config CMD_PRINTENV
	tristate
	depends on ENVIRONMENT_VARIABLES
	prompt "printenv"
	help
	  Print value of environment variables

	  Usage: printenv [VARIABLE]

	  If an argument is given, printenv prints the content of an environment
	  variable to the terminal. If no argument is specified, all variables are
	  printed.

config CMD_MAGICVAR
	tristate
	prompt "magicvar"
	help
	  Barebox has some shell variables with special meanings. This
	  command shows the available magic variables.

config CMD_MAGICVAR_HELP
	bool
	prompt "display description"
	depends on CMD_MAGICVAR
	help
	  Also display a description to the magic variables

config CMD_SAVEENV
	tristate
	depends on ENV_HANDLING
	prompt "saveenv"
	help
	  Save environment to persistent storage

	  Usage: saveenv [ENVFS] [DIRECTORY]

	  Save the files in DIRECTORY to the persistent storage device ENVFS.

	  ENVFS is usually a block in flash but can be any other file. If
	  omitted, DIRECTORY defaults to /env and ENVFS defaults to
	  /dev/env0. Note that envfs can only handle files, directories are being
	  skipped silently.

# end Environment commands
endmenu




menu "File"

config CMD_BASENAME
	tristate
	prompt "basename"
	help
	  Usage: basename PATH VAR

	  Remove directory and suffix from the PATH and store result into variable VAR.

config CMD_CAT
	tristate
	default y
	prompt "cat"
	help
	  Concatenate file(s) to stdout

	  Usage: cat FILE...

	  Currently only printable characters and NL, TAB are printed.

config CMD_CD
	tristate
	default y
	prompt "cd"
	help
	  Change working directory

	  Usage: cd DIRECTORY

	  If called without an argument, change to the root directory '/'.

config CMD_CP
	tristate
	default y
	prompt "cp"
	help
	  Copy files

	  Usage: cp [-v] SRC DEST

	  Copy file from SRC to DEST.

	  Options:
		  -v	verbose

config CMD_CMP
	tristate
	prompt "cmp"
	help
	  compare two files

	  Usage: cmp FILE1 FILE2

	  Returns successfully if the two files are the same, return with an error if not

config CMD_DIGEST
	tristate
	select DIGEST
	prompt "digest"
	help
	  Usage: digest -a <algo> [-k <key> | -K <file>] [-s <sig> | -S <file>] FILE|AREA

	  Calculate a digest over a FILE or a memory area with the possibility
	  to checkit.

config CMD_DIRNAME
	tristate
	prompt "dirname"
	help
	  Strip last component of file name and store the result in a
	  environment variable

config CMD_FILETYPE
	tristate
	select FILETYPE
	prompt "filetype"
	help
Detect file type

	  Usage: filetype [-vsl] FILE

	  Detect type of a file and export result to a variable.

	  Options:
		  -v	verbose
		  -s VAR	set variable VAR to shortname
		  -l	list known filetypes

	  Detected file types are registered at runtime, depending on
	  what you have compiled into barebox. Example of "filetype -l":

	  known filetypes:
	  arm-zimage      : ARM Linux zImage
	  lzo             : LZO compressed
	  lz4             : LZ4 compressed
	  arm-barebox     : ARM barebox image
	  u-boot          : U-Boot uImage
	  ubi             : UBI image
	  jffs2           : JFFS2 image
	  gzip            : GZIP compressed
	  bzip2           : BZIP2 compressed
	  dtb             : open firmware Device Tree flattened Binary
	  android         : android boot image
	  sh              : bourne SHell
	  mips-barebox    : MIPS barebox image
	  fat             : FAT filesytem
	  mbr             : MBR sector
	  bmp             : BMP image
	  png             : PNG image
	  ext             : EXT filesystem
	  gpt             : GUID Partition Table
	  bpk             : Binary PacKage
	  bbenv           : barebox environment file

config CMD_LN
	tristate
	prompt "ln"
	help
	  Create symlink (make a new name for a file)

	  Usage: ln SRC DEST

config CMD_LS
	tristate
	default y
	prompt "ls"
	help
	  List a file or directory

	  Usage: ls [-lCR] [FILEDIR...]

	  List information about the specified files or directories.

	  Options:
		  -l	long format
		  -C	column format (opposite of long format)
		  -R	list subdirectories recursively

config CMD_MD5SUM
	tristate
	select COMPILE_HASH
	select DIGEST_MD5_GENERIC
	prompt "md5sum"
	help
	  Usage: md5sum FILE|AREA...

	  Calculate a MD5 digest over a FILE or a memory area.

config CMD_MKDIR
	tristate
	default y
	prompt "mkdir"
	help
	  Usage: mkdir [DIRECTORY ...]

	  Create new directories

	  Options:
		  -p	make parent directories as needed

config CMD_PWD
	tristate
	default y
	prompt "pwd"
	help
	  Print working directory.

config CMD_READLINK
	tristate
	prompt "readlink"
	help
	  Read value of a symbolic link

	  Usage: readlink [-f] FILE VARIABLE

	  Read value of a symbolic link and store it into VARIABLE.

	  Options:
		  -f	canonicalize by following first symlink

config CMD_RM
	tristate
	default y
	prompt "rm"
	help
	  Remove files

	  Usage: rm [-r] FILES...

	  Options:
		  -r	remove directories and their contents recursively

config CMD_RMDIR
	tristate
	default y
	prompt "rmdir"
	help
	  Remove empty directory(s)

	  Usage: rmdir DIRECTORY...

	  Remove directories. The directories have to be empty.

config CMD_SHA1SUM
	tristate
	select COMPILE_HASH
	select DIGEST_SHA1_GENERIC
	prompt "sha1sum"
	help
	  Calculate SHA1 digest

	  Usage: sha1sum FILE|AREA

	  Calculate a SHA1 digest over a FILE or a memory area.

config CMD_SHA224SUM
	tristate
	select COMPILE_HASH
	select DIGEST_SHA224_GENERIC
	prompt "sha224sum"
	help
	  Calculate SHA224 digest

	  Usage: sha224sum FILE|AREA

	  Calculate a SHA224 digest over a FILE or a memory area.

config CMD_SHA256SUM
	tristate
	select COMPILE_HASH
	select DIGEST_SHA256_GENERIC
	prompt "sha256sum"
	help
	  sha256sum - calculate SHA256 digest

	  Usage: sha256sum FILE|AREA

	  Calculate a SHA256 digest over a FILE or a memory area.

config CMD_SHA384SUM
	tristate
	select COMPILE_HASH
	select DIGEST_SHA384_GENERIC
	prompt "sha384sum"
	help
	  Calculate SHA384 digest

	  Usage: sha384sum FILE|AREA

	  Calculate a SHA384 digest over a FILE or a memory area.

config CMD_SHA512SUM
	tristate
	select COMPILE_HASH
	select DIGEST_SHA512_GENERIC
	prompt "sha512sum"
	help
	  sha512sum - calculate SHA512 digest

	  Usage: sha512sum FILE|AREA

	  Calculate a SHA512 digest over a FILE or a memory area.

config CMD_UNCOMPRESS
	bool
	select UNCOMPRESS
	prompt "uncompress"
	help
	  Uncompress handles lzo, gzip and bzip2 compressed files
	  depending on the compiled in compression libraries.

	  Usage: uncompress INFILE OUTFILE

# end File commands
endmenu




menu "Shell scripting"

config CMD_EXEC
	depends on !SHELL_HUSH
	tristate
	prompt "exec"

config CMD_FALSE
	tristate
	default y
	prompt "false"
	help
	  Do nothing, unsuccessfully

config CMD_GETOPT
	bool
	depends on SHELL_HUSH
	prompt "getopt"
	help
	  Parse option arguments

	  Usage: getopt OPTSTRING VAR

	  OPTSTRING contains the option letters. Add a colon to an
	  options if this Option has a required argument or two colons
	  for an optional argument. The Current option is saved in
	  VAR, arguments are saved in $OPTARG. Any n-option arguments
	  can be accessed starting from $1.

config CMD_LET
	tristate
	prompt "let"
	help
	  Evaluate arithmetic expressions

	  Usage: let EXPR [EXPR ...]

	  Supported operations are in order of decreasing precedence:
		  X++, X--
		  ++X, --X
		  +X, -X
		  !X, ~X
		  X**Y
		  X*Y, X/Y, X%Y
		  X+Y, X-Y
		  X<<Y, X>>Y
		  X<Y, X<=Y, X>=Y, X>Y
		  X==Y, X!=Y
		  X&Y
		  X^Y
		  X|Y
		  X&&Y
		  X||Y
		  X?Y:Z
		  X*=Y, X/=Y, X%=Y
		  X=Y, X&=Y, X|=Y, X^=Y, X+=Y, X-=Y, X<<=Y, X>>=Y

config CMD_MSLEEP
	tristate
	prompt "msleep"
	help
	  Delay execution for n milli-seconds

	  Usage: msleep MILLISECONDS

config CMD_READF
	tristate
	prompt "readf"
	help
	  Read file into variable

	  Usage: readf FILE VAR

	  Read a single line from FILE into a VARiable. Leading and trailing
	  whitespaces are removed, nonvisible characters are stripped. Input is
	  limited to 1024 characters.

config CMD_SLEEP
	tristate
	prompt "sleep"
	help
	  Delay execution for n seconds

	  Usage: sleep SECONDS

config CMD_TEST
	tristate
	depends on SHELL_HUSH
	default y
	prompt "test"
	help
	  Minimal test command like in /bin/sh

	  Usage: test [EXPR]

	  Options:
		  !, =, !=, -eq, -ne, -ge, -gt, -le, -lt, -o, -a, -z, -n, -d, -e,
		  -f, -L; see 'man test' on your PC for more information.

config CMD_TRUE
	tristate
	default y
	prompt "true"
	help
	  Do nothing, successfully.

# end Scripting commands
endmenu



if NET

menu "Network"

config CMD_DHCP
	bool
	select NET_DHCP
	prompt "dhcp"
	help
	  DHCP client to obtain IP or boot params

	  Usage: dhcp [-HvcuUr]

	  Options:
	          -H HOSTNAME     hostname to send to the DHCP server
	          -v ID           DHCP Vendor ID (code 60) submitted in DHCP requests
	          -c ID           DHCP Client ID (code 61) submitted in DHCP requests
	          -u UUID         DHCP Client UUID (code 97) submitted in DHCP requests
	          -U CLASS        DHCP User class (code 77) submitted in DHCP requests
	          -r RETRY        retry limit (default 20)#

config CMD_HOST
	tristate
	select NET_RESOLV
	prompt "host"
	help
	  Resolv a hostname.

	  Usage: host DESTINATION

config NET_CMD_IFUP
	bool
	prompt "ifup"
	help
	  Bring up network interfaces based on config files.

	  Usage: ifup [-af] [INTF]

	  Each INTF must have a script /env/network/INTF that set the variables
	  ip (to 'static' or 'dynamic'), ipaddr, netmask, gateway, serverip
	  and/or ethaddr. A script /env/network/INTF-discover can contains for
	  discovering the ethernet device, e.g. 'usb'.

	  Options:
	          -a      bring up all interfaces
	          -f      Force. Configure even if ip already set

config CMD_MIITOOL
	tristate
	depends on PHYLIB
	prompt "miitool"
	help
	  The miitool command allows to view media-independent interface status.
	  The default short output reports the negotiated link speed and
	  link status for selected MII. The '-v' option displays more
	  detailed MII status information, such as MII capabilities,
	  current advertising mode, and link partner capabilities.

config CMD_PING
	tristate
	prompt "ping"
	help
	  Send ICMP echo requests.

	  Usage: ping DESTINATION

config CMD_TFTP
	depends on FS_TFTP
	tristate
	prompt "tftp"
	help
	  Load (or save) a file using TFTP

	  Note that barebox can mount tftp as a filesystem. Therefore
	  this 'tftp' command is only needed to preserve backward
	  compatibility.

	  Usage: tftp [-p] SOURCE [DEST]

	  Load (or save) a file via TFTP.

	  Options:
		  -p	push to TFTP server

# end Network commands
endmenu

# end if NET
endif




menu "Console and Framebuffer interaction"

config CMD_CLEAR
	tristate
	default y
	prompt "clear"
	help
	  Clear screen

	  Send ANSI ESC sequence to clear the screen.

config CMD_ECHO
	tristate
	default y
	prompt "echo"
	help
	  Echo args to console

	  Usage: echo [-neao] STRING

	  Display a line of TEXT on the console.

	  Options:
		  -n	do not output the trailing newline
		  -a FILE	append to FILE instead of using stdout
		  -o FILE	overwrite FILE instead of using stdout

config CMD_ECHO_E
	bool
	depends on CMD_ECHO
	select PROCESS_ESCAPE_SEQUENCE
	prompt "support -e option to echo"
	help
	  Adds this command line option:
	  -e	recognize escape sequences

config CMD_EDIT
	tristate
	prompt "edit"
	help
	  A  small fill-screen editor.

	  Usage: edit FILE

	  Use cursor keys, Ctrl-C to exit and Ctrl-D to exit-with-save.

config CMD_LOGIN
	tristate
	select PASSWORD
	depends on !CONSOLE_NONE
	prompt "login"
	help
	  Ask for a password

	  Usage: login [-t TIMEOUT] COMMAND

	  Asks for a password from the console before script execution continues.
	  The password can be set with the 'passwd' command. Instead of specifying
	  a TIMEOUT the magic variable 'global.login.timeout' could be set.

	  Options:
		  -t TIMEOUT	Execute COMMAND if no login withing TIMEOUT seconds

config CMD_MENU
	tristate
	depends on MENU
	prompt "menu"
	help
	  Create and display menus

	  Manage Menu:
	  -m  menu
	  -l  list
	  -s  show

	  Show menu:
	  (-A auto select delay)
	  (-d auto select description)
	  menu -s -m MENU [-A delay] [-d auto_display]

	  List menu:
	  menu -l

	  Menu example:
	  menu -s -m boot

config CMD_MENU_MANAGEMENT
	bool
	depends on CMD_MENU
	prompt "menu scripts management"
	help
	  Adds this options:
	  -e  menu entry
	  -a  add
	  -r  remove
	  -S  select

	  Add a menu:
	  menu -a -m NAME -d DESC

	  Remove a menu:
	  menu -r -m NAME

	  Add an entry:
	  (-R for do no exit the menu after executing the command)
	  (-b for box style 1 for selected)
	  (and optional -c for the command to run when we change the state)
	  menu -e -a -m MENU -c COMMAND [-R] [-b 0|1] -d DESC

	  Add a submenu entry:
	  (-R is not needed)
	  (-b for box style 1 for selected)
	  (and -c is not needed)
	  menu -e -a -m MENU -u submenu -d [-b 0|1] DESC

	  Remove an entry:
	  menu -e -r -m NAME -n ENTRY

	  Select an entry:
	  menu -m <menu> -S -n ENTRY

	  List menu:
	  menu -e -l [menu]

	  Menu examples:
	  menu -a -m boot -d "Boot Menu"
	  menu -e -a -m boot -c boot -d "Boot"
	  menu -e -a -m boot -c reset -d "Reset"


config CMD_MENUTREE
	bool
	depends on MENU
	select MENUTREE
	prompt "menutree"
	help
	  Create menu from directory structure

	  Usage: menutree [-m] DIR

	  Each menu entry is described by a subdirectory. Each subdirectory
	  can contain the following files which further describe the entry:

	  title  A file containing the title of the entry as shown in the menu
	  box    If present, the entry is a 'bool' entry. The file contains a
	  name from which the current state of the bool is taken from and saved
	  to.
	  action if present this file contains a shell script which is executed when
	  when the entry is selected.

	  If neither 'box' or 'action' are present, this entry is considered a submenu
	  containing more entries.

	  Options:
		  -m DIR	directory where the menu starts (Default: /env/menu)

config CMD_PASSWD
	tristate
	depends on CMD_LOGIN
	prompt "passwd"
	help
	  Set password

	  'Interactively asks for a password. The digest of this password will be
	  stored in /env/etc//passwd. This is then used by the 'login' command.

	  Entering an empty string will disable the password function.

if CMD_LOGIN || CMD_PASSWD

choice
	prompt "passwd mode"

config PASSWD_MODE_HIDE
	bool "Hide"

config PASSWD_MODE_STAR
	bool "Star"

config PASSWD_MODE_CLEAR
	bool "Clear"

endchoice

endif
config CMD_SPLASH
	bool
	select IMAGE_RENDERER
	depends on VIDEO
	prompt "splash"
	help
	  Display a BMP image on a framebuffer device

	  Usage: splash [-fxyno] FILE

	  This command displays a graphics in the bitmap (.bmp) format on the
	  framebuffer. Currently images with 8 and 24 bit color depth are supported.

	  Options:
		  -f FB		framebuffer device (default /dev/fb0)
		  -x XOFFS	x offset (default center)
		  -y YOFFS	y offset (default center)
		  -b COLOR	background color in 0xttrrggbb
		  -o		render offscreen

config CMD_FBTEST
	bool
	depends on VIDEO
	select 2D_PRIMITIVES
	select IMAGE_RENDERER
	prompt "FB test"
	help
	  Framebuffer test command that allows to produce a number of
	  test patterns on a screen.

config CMD_READLINE
	tristate
	prompt "readline"
	help
	  Prompt for user input

	  Usage: readline PROMPT VAR

	  First it displays the PROMPT, then it reads a line of user input into
	  variable VAR.

config CMD_TIMEOUT
	tristate
	prompt "timeout"
	help
	  Usage: timeout [-acrs] SECONDS

	  Wait SECONDS for a timeout. Return 1 if the user intervented.

	  Options:
		  -a	interrupt on any key
		  -c	interrupt on Ctrl-C
		  -r	interrupt on RETURN
		  -s	silent mode

# end Console interaction commands
endmenu




menu "Memory"

config CMD_CRC
	tristate
	select CRC32
	prompt "crc32"
	help
	  Usage: crc32 [-fFvV] AREA

	  Calculate a CRC32 checksum of a memory area.
	  Options:
		  -f FILE	Use file instead of memory.
		  -F FILE	Use file to compare.
		  -v CRC	Verify

config CMD_CRC_CMP
	tristate
	depends on CMD_CRC
	prompt "compare 2 files using crc32"
	help
	Adds this option:

	-V FILE	Verify with CRC read from FILE

config CMD_MD
	tristate
	default y
	select COMPILE_MEMORY
	prompt "md"
	help
	  Memory display

	  Usage: md [-bwlsx] REGION

	  Display (hex dump) a memory region.

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -s FILE	display file (default /dev/mem)
		  -x	swap bytes at output

	  Memory regions can be specified in two different forms: START+SIZE
	  or START-END, If START is omitted it defaults to 0x100
	  Sizes can be specified as decimal, or if prefixed with 0x as hexadecimal.
	  An optional suffix of k, M or G is for kbytes, Megabytes or Gigabytes.

config CMD_MEMCMP
	tristate
	default y
	select COMPILE_MEMORY
	prompt "memcmp"
	help
	  Memory compare

	  Usage: memcmp [-bwlsd] ADDR1 ADDR2 COUNT

	  Compare memory regions specified with ADDR and ADDR2
	  of size COUNT bytes. If source is a file COUNT can
	  be left unspecified, in which case the whole file is
	  compared.

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -s FILE	source file (default /dev/mem)
		  -d FILE	destination file (default /dev/mem)

config CMD_MEMCPY
	tristate
	default y
	select COMPILE_MEMORY
	prompt "memcpy"
	help
	  Memory copy

	  Usage: memcpy [-bwlsd] SRC DEST COUNT

	  Copy memory at SRC of COUNT bytes to DEST

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -s FILE	source file (default /dev/mem)
		  -d FILE	write file (default /dev/mem)

config CMD_MEMSET
	tristate
	default y
	select COMPILE_MEMORY
	prompt "memset"
	help
	  Memory fill

	  Usage: memset [-bwld] ADDR COUNT DATA

	  Fills the first COUNT bytes at offset ADDR with byte DATA,

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -d FILE	write file (default /dev/mem)

config CMD_MEMTEST
	tristate
	prompt "memtest"
	help
	  The memtest command can test the registered barebox memory.
	  During this test barebox memory regions like heap, stack, ...
	  will be skipped. If the tested architecture has MMU with PTE
	  flags support, the memtest is running twice with cache enabled
	  and with cache disabled

	  Usage: memtest [-ib]

	  Options:
		  -i ITERATIONS	perform number of iterations (default 1, 0 is endless)
		  -b	perform only a test on bus lines

config CMD_MM
	tristate
	select COMPILE_MEMORY
	prompt "memory modify (mm)"
	help
	  Memory modify with mask

	  Usage: mm [-bwld] ADDR VAL MASK

	  Set/clear bits specified with MASK in ADDR to VALUE

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -d FILE	write file (default /dev/mem)

config CMD_MW
	tristate
	default y
	select COMPILE_MEMORY
	prompt "mw"
	help
	  Memory write

	  Usage: mw [-bwld] REGION DATA...

	  Write DATA value(s) to the specified REGION.

	  Options:
		  -b	byte access
		  -w	word access (16 bit)
		  -l	long access (32 bit)
		  -d FILE  destination file (default /dev/mem)

#end Memory commands
endmenu




menu "Hardware manipulation"

config CMD_CLK
	tristate
	depends on COMMON_CLK
	prompt "clk_dump, clk_set_parent, clk_set_rate"
	help
	  clk_dump - show information about registered clocks

	  Usage: clk_dump [-v]

	  Options:
	  -v  verbose


	  clk_set_parent - set parent of a clock

	  Usage: clk_set_parent CLK PARENT


	  clk_set_rate - set a clocks rate

	  Usage: clk_set_rate CLK HZ

	  Set clock CLK to RATE Hz.

config CMD_DETECT
	tristate
	prompt "detect"
	help
	  Some devices take longer time to probe, like slow disks or
	  SD/MMC cards. These can defer the actual probe of the client
	  devices until they are needed. Use the 'detect' command on
	  the physical device to trigger probing.

	  Usage: detect [-lea] [devices]

	  Options:
		  -l	list detectable devices
		  -e	bail out if one device fails to detect
		  -a	detect all devices

config CMD_FLASH
	tristate
	prompt "erase, protect and unprotect"
	help
	  erase - erase flash memory

	  Usage: erase DEVICE [AREA]

	  Erase the flash memory handled by DEVICE. Which AREA will be erased
	  depends on the device: If the device represents the whole flash
	  memory, the whole memory will be erased. If the device represents a
	  partition on a main flash memory, only this partition part will be
	  erased.

	  Use 'addpart' and 'delpart' to manage partitions

	  protect - enable flash write protection

	  Usage: protect DEVICE [AREA]

	  Protect the flash memory behind the device. It depends on the device
	  given, what area will be protected. If the device represents the whole
	  flash memory, the whole memory will be protected. If the device
	  represents a partition on a main flash memory, only this partition part
	  will be protected.

	  Use 'addpart' and 'delpart' to manage partitions.


	  unprotect - disable flash write protection

	  Usage: unprotect DEVICE [AREA]

	  Unprotect the flash memory behind the device. It depends on the device
	  given, what area will be unprotected. If the device represents the whole
	  flash memory, the whole memory will be unprotected. If the device
	  represents a partition on a main flash memory, only this partition part
	  will be unprotected.

config CMD_GPIO
	bool
	depends on GENERIC_GPIO
	prompt "gpio_direction_input, gpio_direction_output, gpio_get_value and gpio_set_value"
	help
	  gpio_direction_input - set direction of a GPIO pin to input

	  Usage: gpio_direction_input GPIO


	  gpio_direction_output - set direction of a GPIO pin to output

	  Usage: gpio_direction_output GPIO


	  gpio_get_value - return value of a GPIO pin

	  Usage: gpio_get_value GPIO


	  gpio_set_value - set a GPIO's output value

	  Usage: gpio_set_value GPIO VALUE

config CMD_HWCLOCK
	bool
	depends on RTC_CLASS
	prompt "hwclock command"
	default y
	help
	  The hwclock command allows to query or set the hardware clock (RTC).

config CMD_HWMON
	bool
	depends on AIODEV
	prompt "hwmon command"
	default y
	help
	  The hwmon command allows to query hardware sensors.

config CMD_I2C
	bool
	depends on I2C
	prompt "i2c_probe, i2c_read and i2c_write"
	help
	  i2c_probe - probe for an i2c device

	  Usage: i2c_probe BUS START END

	  Probe the i2c bus BUS, address range from START to END for devices.


	  i2c_read - read from an i2c device

	  Usage: i2c_read [-bacrwv] DATA...

	  Options:
		  -b BUS		i2c bus number (default 0)
		  -a ADDR		i2c device address
		  -r START	start register
		  -w		use word (16 bit) wide access
		  -c COUNT	byte count
		  -v		verbose


	  i2c_write - write to an i2c device

	  Usage: i2c_write [-barwv] DATA...

	  Options:
		  -b BUS		i2c bus number (default 0)
		  -a ADDR		i2c device address
		  -r START	start register
		  -w		use word (16 bit) wide access
		  -v		verbose

config CMD_LED
	bool
	depends on LED
	prompt "led command"
	help
	  Control LEDs

	  Usage: led LED VALUE

	  Control the value of a LED. The exact meaning of VALUE is unspecified,
	  it can be a brightness, or a color. Most often a value of '1' means on
	  and '0' means off.

	  Without arguments the available LEDs are listed.

config CMD_NAND
	tristate
	default y
	depends on NAND
	prompt "nand"
	help
	  NAND flash handling

	  Usage: nand [-adb] NANDDEV

	  Options:
		  -a		register a bad block aware device ontop of a normal NAND device
		  -d		deregister a bad block aware device
		  -b OFFS	mark block at OFFSet as bad

config CMD_NANDTEST
	tristate
	depends on NAND
	depends on PARTITION
	depends on NAND_ECC_HW || NAND_ECC_SOFT
	prompt "nandtest"
	help
	  NAND flash memory test

	  Usage: nandtest [-tmsiol] NANDDEVICE

	  Options:
		  -t	Really do a nandtest on device
		  -m	Mark blocks bad if they appear so
		  -s SEED	supply random seed
		  -i ITERATIONS	nNumber of iterations
		  -o OFFS	start offset on flash
		  -l LEN	length of flash to test

config CMD_NAND_BITFLIP
	tristate
	depends on NAND
	prompt "nand_bitflip"
	help
	  nand_bitflip - Create bitflips on Nand pages. This command is useful for testing
	  purposes.

	  Usage: nand_bitflip NANDDEV

	  This command creates bitflips on Nand pages.
	  Options:
	          -b <block>      block to work on
	          -o <offset>     offset in Nand
	          -r      flip random bits
	          -n <numbitflips>        Specify maximum number of bitflips to generate

config CMD_POWEROFF
	tristate
	prompt "poweroff"
	help
	  Turn the power off.

config CMD_SPI
	bool
	depends on SPI
	prompt "spi command"
	help
	  Write/read from SPI device

	  Usage: spi [-brcmfwv] DATA...

	  Options:
		  -b BUS	SPI bus number (default 0)
		  -r COUNT	bytes to read
		  -c		chip select (default 0)
		  -m MODE	SPI mode (default 0)
		  -f HZ		max speed frequency, in Hz (default 1 MHz)
		  -w BIT	bits per word (default 8)
		  -v		verbose

config CMD_LED_TRIGGER
	bool
	depends on LED_TRIGGERS
	prompt "trigger command"
	help
	  Handle LED triggers

	  Usage: trigger [-td] TRIGGER [LED]

	  Control a LED trigger. Without options assigned triggers are shown.

	  Options:
	  -t  set a trigger (needs LED argument)
	  -d  disable a trigger

config CMD_USB
	bool
	depends on USB_HOST
	prompt "usb command"
	default y
	help
	  (re-)detect USB devices

	  Usage: usb [-f]

	  Scan for USB devices.

	  Options:
		  -f	force rescan

config CMD_USBGADGET
	bool
	depends on USB_GADGET
	select FILE_LIST
	prompt "usbgadget"

config CMD_WD
	bool
	depends on WATCHDOG
	prompt "wd command"
	help
	  Enable/disable/trigger the watchdog

	  Usage: wd [TIME]

	  Enable the watchdog to bark in TIME seconds.
	  When TIME is 0, the watchdog gets disabled,
	  Without a parameter the watchdog will be re-triggered.

config CMD_WD_DEFAULT_TIMOUT
	int
	default 0
	depends on CMD_WD
	prompt "default timeout"
	help
	  Define the default timeout value in [seconds] if the first call of
	  'wd' is done without a timeout value (which means the watchdog gets
	  enabled and re-triggered with the default timeout value).

config CMD_HAB
	bool
	depends on HAB
	prompt "High Assurance boot (hab)"

# end Hardware manipulation commands
endmenu



menu "Miscellaneous"

config CMD_2048
	tristate
	prompt "2048"
	help
	  Console version of the game "2048" for GNU/Linux

config CMD_BAREBOX_UPDATE
	tristate
	select BAREBOX_UPDATE
	prompt "barebox-update"
	help
	  Update barebox to persistent media.

	  Usage: barebox_update [-ltdyf] [IMAGE]

	  Options:
		  -l		list registered targets
		  -t TARGET	specify data target handler name
		  -d DEVICE	write image to DEVICE
		  -y		autom. use 'yes' when asking confirmations
		  -f LEVEL	set force level

config CMD_FIRMWARELOAD
	bool
	select FIRMWARE
	prompt "firmwareload"
	help
	  Provides the "firmwareload" command which deals with devices which need
	  firmware to work. It is also used to upload firmware to FPGA devices.

config CMD_KEYSTORE
	depends on CRYPTO_KEYSTORE
	bool
	prompt "keystore"
	help
	  keystore provides access to the barebox keystore.

config CMD_LINUX_EXEC
	bool "linux exec"
	depends on LINUX
	help
	  Execute a command on the host

	  Usage: linux_exec COMMAND

config CMD_INSMOD
	bool
	depends on MODULES
	default y
	prompt "insmod"
	help
	  Load a barebox module.

config CMD_LSMOD
	bool
	depends on MODULES
	prompt "lsmod"
	help
	  List loaded barebox modules.

config CMD_OF_DUMP
	tristate
	select OFTREE
	prompt "of_dump"
	default y if CMD_OFTREE
	help
	  dump devicetree nodes to the console

	  Usage: of_dump [-f] [NODE]

	  Options:
		-f <dtb>	work on <dtb> instead of internal devicetree

config CMD_OF_NODE
	tristate
	select OFTREE
	prompt "of_node"
	help
	  Create/delete nodes in the device tree

	  Usage: of_node [-cd] NODE NAME

	  Options:
		  -c	create a new node
		  -d	delete a node

config CMD_OF_PROPERTY
	tristate
	select OFTREE
	prompt "of_property"
	help
	  Handle device tree properties

	  Usage: of_property [-sd] NODE [PROPERTY] [VALUES]

	  Options:
		  -s	set property to value
		  -d	delete property

	  Valid formats for values:
	  <0x00112233 4 05> - an array of cells. cells not beginning with a digit are
                    interpreted as node paths and converted to phandles
	  [00 11 22 .. nn]  - byte stream
	  If the value does not start with '<' or '[' it is interpreted as string

config CMD_OF_DISPLAY_TIMINGS
	tristate
	select OFTREE
	prompt "of_display_timings"
	help
	  List and select display timings

	  Usage: of_display_timings [-lS] [-s path] [-f dtb]

	  Options:
		  -l		list path of all available display-timings
		  -S		list path of all selected display-timings
		  -s path	select display-timings and register oftree fixup
		  -f dtb	work on dtb. Has no effect on -s option

config CMD_OF_FIXUP_STATUS
	tristate
	select OFTREE
	prompt "of_fixup_status"
	help
	  Register a fixup to enable or disable node

	  Usage: of_fixup_status [-d] path

	  Options:
		  -d		disable node
		  path		Node path or alias

	  Register a fixup to enable or disable a device tree node.
	  Nodes are enabled on default. Disabled with -d.

config CMD_OFTREE
	tristate
	select OFTREE
	prompt "oftree"
	help
	  oftree - handle device trees

	  Usage: oftree [-lspf] [DTB]

	  Options:
		  -l		Load DTB to internal device tree
		  -s		save internal device tree to DTB
		  -p		probe devices from stored device tree
		  -f		free stored device tree

config CMD_TIME
	bool "time"
	help
	  time - measure execution duration of a command

	  Usage: time COMMAND

	  Note: This command depends on COMMAND being interruptible,
	  otherwise the timer may overrun resulting in incorrect results

config CMD_STATE
	tristate
	depends on STATE
	prompt "state"

config CMD_BOOTCHOOSER
	tristate
	depends on BOOTCHOOSER
	prompt "bootchooser"

config CMD_DHRYSTONE
	bool
	prompt "dhrystone"
	help
	  CPU benchmark tool

config CMD_SPD_DECODE
	tristate
	prompt "spd_decode"
	select DDR_SPD
	help
	  decode spd eeprom

config CMD_SEED
	tristate
	prompt "seed"
	help
	  Seed the pseudo random number generator (PRNG)

# end Miscellaneous commands
endmenu




# end Commands
endmenu

endif