Commit 8f2fe0c86c56175dd7d5d0e3bc26bef41f224f03
Committed by
Tom Rini
1 parent
37cc644600
Exists in
v2017.01-smarct4x
and in
25 other branches
kconfig: introduce kconfig for UBI
move the UBI config options into Kconfig. Signed-off-by: Heiko Schocher <hs@denx.de> Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andrew F. Davis <afd@ti.com> Reviewed by: Evgeni Dobrev <evgeni at studio-punkt.com>
Showing 174 changed files with 251 additions and 76 deletions Side-by-side Diff
- cmd/Kconfig
- configs/PLU405_defconfig
- configs/VCMA9_defconfig
- configs/a3m071_defconfig
- configs/a4m2k_defconfig
- configs/am335x_baltos_defconfig
- configs/am3517_evm_defconfig
- configs/apf27_defconfig
- configs/apx4devkit_defconfig
- configs/aristainetos2_defconfig
- configs/aristainetos2b_defconfig
- configs/aristainetos_defconfig
- configs/at91sam9x5ek_dataflash_defconfig
- configs/at91sam9x5ek_mmc_defconfig
- configs/at91sam9x5ek_nandflash_defconfig
- configs/at91sam9x5ek_spiflash_defconfig
- configs/colibri_imx7_defconfig
- configs/colibri_t20_defconfig
- configs/colibri_vf_defconfig
- configs/dns325_defconfig
- configs/dockstar_defconfig
- configs/draco_defconfig
- configs/ds414_defconfig
- configs/ea20_defconfig
- configs/eco5pk_defconfig
- configs/etamin_defconfig
- configs/ethernut5_defconfig
- configs/goflexhome_defconfig
- configs/guruplug_defconfig
- configs/gwventana_defconfig
- configs/ib62x0_defconfig
- configs/iconnect_defconfig
- configs/ids8313_defconfig
- configs/igep0020_defconfig
- configs/igep0030_defconfig
- configs/igep0030_nand_defconfig
- configs/igep0032_defconfig
- configs/ipam390_defconfig
- configs/k2e_evm_defconfig
- configs/k2g_evm_defconfig
- configs/k2hk_evm_defconfig
- configs/k2l_evm_defconfig
- configs/km_kirkwood_128m16_defconfig
- configs/km_kirkwood_defconfig
- configs/km_kirkwood_pci_defconfig
- configs/kmcoge4_defconfig
- configs/kmcoge5ne_defconfig
- configs/kmcoge5un_defconfig
- configs/kmeter1_defconfig
- configs/kmlion1_defconfig
- configs/kmnusa_defconfig
- configs/kmopti2_defconfig
- configs/kmsugp1_defconfig
- configs/kmsupx5_defconfig
- configs/kmsuv31_defconfig
- configs/kmtegr1_defconfig
- configs/kmtepr2_defconfig
- configs/kmvect1_defconfig
- configs/m28evk_defconfig
- configs/m53evk_defconfig
- configs/mcx_defconfig
- configs/mgcoge3ne_defconfig
- configs/mgcoge3un_defconfig
- configs/mgcoge_defconfig
- configs/microblaze-generic_defconfig
- configs/mt_ventoux_defconfig
- configs/mx28evk_auart_console_defconfig
- configs/mx28evk_defconfig
- configs/mx28evk_nand_defconfig
- configs/mx28evk_spi_defconfig
- configs/nas220_defconfig
- configs/nsa310s_defconfig
- configs/omap3_logic_defconfig
- configs/omap3_overo_defconfig
- configs/omap3_pandora_defconfig
- configs/omapl138_lcdk_defconfig
- configs/openrd_base_defconfig
- configs/openrd_client_defconfig
- configs/openrd_ultimate_defconfig
- configs/pcm052_defconfig
- configs/pcm058_defconfig
- configs/platinum_picon_defconfig
- configs/platinum_titanium_defconfig
- configs/pogo_e02_defconfig
- configs/portl2_defconfig
- configs/pxm2_defconfig
- configs/rastaban_defconfig
- configs/rut_defconfig
- configs/sama5d3_xplained_mmc_defconfig
- configs/sama5d3_xplained_nandflash_defconfig
- configs/sheevaplug_defconfig
- configs/smdk2410_defconfig
- configs/socfpga_arria5_defconfig
- configs/socfpga_cyclone5_defconfig
- configs/socfpga_de0_nano_soc_defconfig
- configs/socfpga_is1_defconfig
- configs/socfpga_mcvevk_defconfig
- configs/socfpga_sockit_defconfig
- configs/socfpga_socrates_defconfig
- configs/socfpga_sr1500_defconfig
- configs/socfpga_vining_fpga_defconfig
- configs/suvd3_defconfig
- configs/thuban_defconfig
- configs/titanium_defconfig
- configs/tricorder_defconfig
- configs/tricorder_flash_defconfig
- configs/tuge1_defconfig
- configs/tuxx1_defconfig
- configs/twister_defconfig
- configs/vct_platinum_onenand_defconfig
- configs/vct_platinum_onenand_small_defconfig
- configs/vct_platinumavc_onenand_defconfig
- configs/vct_platinumavc_onenand_small_defconfig
- configs/vct_premium_onenand_defconfig
- configs/vct_premium_onenand_small_defconfig
- configs/vf610twr_defconfig
- configs/vf610twr_nand_defconfig
- configs/x600_defconfig
- drivers/mtd/Kconfig
- drivers/mtd/ubi/Kconfig
- include/config_cmd_all.h
- include/configs/M54418TWR.h
- include/configs/PLU405.h
- include/configs/VCMA9.h
- include/configs/a3m071.h
- include/configs/am3517_evm.h
- include/configs/apf27.h
- include/configs/apx4devkit.h
- include/configs/aristainetos-common.h
- include/configs/at91sam9x5ek.h
- include/configs/baltos.h
- include/configs/colibri_imx7.h
- include/configs/colibri_t20.h
- include/configs/colibri_vf.h
- include/configs/da850evm.h
- include/configs/dockstar.h
- include/configs/ea20.h
- include/configs/ethernut5.h
- include/configs/gw_ventana.h
- include/configs/iconnect.h
- include/configs/ids8313.h
- include/configs/ipam390.h
- include/configs/km/keymile-common.h
- include/configs/m28evk.h
- include/configs/m53evk.h
- include/configs/mcx.h
- include/configs/microblaze-generic.h
- include/configs/mv-common.h
- include/configs/mx28evk.h
- include/configs/nas220.h
- include/configs/nokia_rx51.h
- include/configs/omap3_igep00x0.h
- include/configs/omap3_logic.h
- include/configs/omap3_overo.h
- include/configs/omap3_pandora.h
- include/configs/omapl138_lcdk.h
- include/configs/pcm052.h
- include/configs/pcm058.h
- include/configs/platinum.h
- include/configs/pogo_e02.h
- include/configs/sama5d3_xplained.h
- include/configs/siemens-am33x-common.h
- include/configs/smdk2410.h
- include/configs/socfpga_common.h
- include/configs/socfpga_vining_fpga.h
- include/configs/tam3517-common.h
- include/configs/ti_armv7_keystone2.h
- include/configs/titanium.h
- include/configs/tricorder.h
- include/configs/vct.h
- include/configs/vf610twr.h
- include/configs/x600.h
- include/ubi_uboot.h
- scripts/config_whitelist.txt
cmd/Kconfig
... | ... | @@ -705,5 +705,17 @@ |
705 | 705 | fs types. |
706 | 706 | endmenu |
707 | 707 | |
708 | +config CMD_UBI | |
709 | + tristate "Enable UBI - Unsorted block images commands" | |
710 | + select CRC32 | |
711 | + select MTD_UBI | |
712 | + help | |
713 | + UBI is a software layer above MTD layer which admits use of LVM-like | |
714 | + logical volumes on top of MTD devices, hides some complexities of | |
715 | + flash chips like wear and bad blocks and provides some other useful | |
716 | + capabilities. Please, consult the MTD web site for more details | |
717 | + (www.linux-mtd.infradead.org). Activate this option if you want | |
718 | + to use U-Boot UBI commands. | |
719 | + | |
708 | 720 | endmenu |
configs/PLU405_defconfig
configs/VCMA9_defconfig
configs/a3m071_defconfig
configs/a4m2k_defconfig
configs/am335x_baltos_defconfig
configs/am3517_evm_defconfig
configs/apf27_defconfig
configs/apx4devkit_defconfig
configs/aristainetos2_defconfig
... | ... | @@ -22,8 +22,11 @@ |
22 | 22 | CONFIG_CMD_EXT4_WRITE=y |
23 | 23 | CONFIG_CMD_FAT=y |
24 | 24 | CONFIG_CMD_FS_GENERIC=y |
25 | +CONFIG_CMD_UBI=y | |
25 | 26 | CONFIG_SPI_FLASH=y |
26 | 27 | CONFIG_SPI_FLASH_STMICRO=y |
28 | +CONFIG_MTD_UBI_FASTMAP=y | |
29 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
27 | 30 | CONFIG_USB=y |
28 | 31 | CONFIG_USB_STORAGE=y |
29 | 32 | CONFIG_OF_LIBFDT=y |
configs/aristainetos2b_defconfig
... | ... | @@ -22,8 +22,11 @@ |
22 | 22 | CONFIG_CMD_EXT4_WRITE=y |
23 | 23 | CONFIG_CMD_FAT=y |
24 | 24 | CONFIG_CMD_FS_GENERIC=y |
25 | +CONFIG_CMD_UBI=y | |
25 | 26 | CONFIG_SPI_FLASH=y |
26 | 27 | CONFIG_SPI_FLASH_STMICRO=y |
28 | +CONFIG_MTD_UBI_FASTMAP=y | |
29 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
27 | 30 | CONFIG_USB=y |
28 | 31 | CONFIG_USB_STORAGE=y |
29 | 32 | CONFIG_OF_LIBFDT=y |
configs/aristainetos_defconfig
... | ... | @@ -22,8 +22,11 @@ |
22 | 22 | CONFIG_CMD_EXT4_WRITE=y |
23 | 23 | CONFIG_CMD_FAT=y |
24 | 24 | CONFIG_CMD_FS_GENERIC=y |
25 | +CONFIG_CMD_UBI=y | |
25 | 26 | CONFIG_SPI_FLASH=y |
26 | 27 | CONFIG_SPI_FLASH_STMICRO=y |
28 | +CONFIG_MTD_UBI_FASTMAP=y | |
29 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
27 | 30 | CONFIG_USB=y |
28 | 31 | CONFIG_USB_STORAGE=y |
29 | 32 | CONFIG_OF_LIBFDT=y |
configs/at91sam9x5ek_dataflash_defconfig
configs/at91sam9x5ek_mmc_defconfig
configs/at91sam9x5ek_nandflash_defconfig
configs/at91sam9x5ek_spiflash_defconfig
configs/colibri_imx7_defconfig
configs/colibri_t20_defconfig
configs/colibri_vf_defconfig
... | ... | @@ -23,12 +23,14 @@ |
23 | 23 | CONFIG_CMD_EXT4=y |
24 | 24 | CONFIG_CMD_FAT=y |
25 | 25 | CONFIG_CMD_FS_GENERIC=y |
26 | +CONFIG_CMD_UBI=y | |
26 | 27 | CONFIG_OF_CONTROL=y |
27 | 28 | CONFIG_DM=y |
28 | 29 | CONFIG_DM_GPIO=y |
29 | 30 | CONFIG_VYBRID_GPIO=y |
30 | 31 | CONFIG_NAND_VF610_NFC=y |
31 | 32 | CONFIG_SYS_NAND_VF610_NFC_60_ECC_BYTES=y |
33 | +CONFIG_MTD_UBI_FASTMAP=y | |
32 | 34 | CONFIG_DM_SERIAL=y |
33 | 35 | CONFIG_FSL_LPUART=y |
34 | 36 | CONFIG_DM_SPI=y |
configs/dns325_defconfig
configs/dockstar_defconfig
configs/draco_defconfig
... | ... | @@ -38,10 +38,13 @@ |
38 | 38 | CONFIG_CMD_CACHE=y |
39 | 39 | CONFIG_CMD_TIME=y |
40 | 40 | CONFIG_CMD_EXT2=y |
41 | +CONFIG_CMD_UBI=y | |
41 | 42 | CONFIG_OF_CONTROL=y |
42 | 43 | CONFIG_OF_EMBED=y |
43 | 44 | CONFIG_SPI_FLASH=y |
44 | 45 | CONFIG_SPI_FLASH_WINBOND=y |
46 | +CONFIG_MTD_UBI_FASTMAP=y | |
47 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
45 | 48 | CONFIG_SYS_NS16550=y |
46 | 49 | CONFIG_USB=y |
47 | 50 | CONFIG_USB_MUSB_HOST=y |
configs/ds414_defconfig
configs/ea20_defconfig
configs/eco5pk_defconfig
configs/etamin_defconfig
... | ... | @@ -38,10 +38,13 @@ |
38 | 38 | CONFIG_CMD_CACHE=y |
39 | 39 | CONFIG_CMD_TIME=y |
40 | 40 | CONFIG_CMD_EXT2=y |
41 | +CONFIG_CMD_UBI=y | |
41 | 42 | CONFIG_OF_CONTROL=y |
42 | 43 | CONFIG_OF_EMBED=y |
43 | 44 | CONFIG_SPI_FLASH=y |
44 | 45 | CONFIG_SPI_FLASH_WINBOND=y |
46 | +CONFIG_MTD_UBI_FASTMAP=y | |
47 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
45 | 48 | CONFIG_SYS_NS16550=y |
46 | 49 | CONFIG_USB=y |
47 | 50 | CONFIG_USB_MUSB_HOST=y |
configs/ethernut5_defconfig
configs/goflexhome_defconfig
configs/guruplug_defconfig
configs/gwventana_defconfig
configs/ib62x0_defconfig
configs/iconnect_defconfig
configs/ids8313_defconfig
configs/igep0020_defconfig
configs/igep0030_defconfig
configs/igep0030_nand_defconfig
configs/igep0032_defconfig
configs/ipam390_defconfig
configs/k2e_evm_defconfig
configs/k2g_evm_defconfig
configs/k2hk_evm_defconfig
configs/k2l_evm_defconfig
configs/km_kirkwood_128m16_defconfig
configs/km_kirkwood_defconfig
configs/km_kirkwood_pci_defconfig
configs/kmcoge4_defconfig
configs/kmcoge5ne_defconfig
configs/kmcoge5un_defconfig
configs/kmeter1_defconfig
configs/kmlion1_defconfig
configs/kmnusa_defconfig
configs/kmopti2_defconfig
configs/kmsugp1_defconfig
configs/kmsupx5_defconfig
configs/kmsuv31_defconfig
configs/kmtegr1_defconfig
configs/kmtepr2_defconfig
configs/kmvect1_defconfig
configs/m28evk_defconfig
configs/m53evk_defconfig
configs/mcx_defconfig
configs/mgcoge3ne_defconfig
configs/mgcoge3un_defconfig
configs/mgcoge_defconfig
configs/microblaze-generic_defconfig
configs/mt_ventoux_defconfig
configs/mx28evk_auart_console_defconfig
configs/mx28evk_defconfig
configs/mx28evk_nand_defconfig
configs/mx28evk_spi_defconfig
configs/nas220_defconfig
configs/nsa310s_defconfig
configs/omap3_logic_defconfig
configs/omap3_overo_defconfig
configs/omap3_pandora_defconfig
configs/omapl138_lcdk_defconfig
configs/openrd_base_defconfig
configs/openrd_client_defconfig
configs/openrd_ultimate_defconfig
configs/pcm052_defconfig
configs/pcm058_defconfig
configs/platinum_picon_defconfig
configs/platinum_titanium_defconfig
configs/pogo_e02_defconfig
configs/portl2_defconfig
configs/pxm2_defconfig
... | ... | @@ -40,10 +40,13 @@ |
40 | 40 | CONFIG_CMD_TIME=y |
41 | 41 | CONFIG_CMD_EXT2=y |
42 | 42 | CONFIG_CMD_FAT=y |
43 | +CONFIG_CMD_UBI=y | |
43 | 44 | CONFIG_OF_CONTROL=y |
44 | 45 | CONFIG_OF_EMBED=y |
45 | 46 | CONFIG_SPI_FLASH=y |
46 | 47 | CONFIG_SPI_FLASH_WINBOND=y |
48 | +CONFIG_MTD_UBI_FASTMAP=y | |
49 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
47 | 50 | CONFIG_SYS_NS16550=y |
48 | 51 | CONFIG_USB=y |
49 | 52 | CONFIG_USB_MUSB_HOST=y |
configs/rastaban_defconfig
... | ... | @@ -38,10 +38,13 @@ |
38 | 38 | CONFIG_CMD_CACHE=y |
39 | 39 | CONFIG_CMD_TIME=y |
40 | 40 | CONFIG_CMD_EXT2=y |
41 | +CONFIG_CMD_UBI=y | |
41 | 42 | CONFIG_OF_CONTROL=y |
42 | 43 | CONFIG_OF_EMBED=y |
43 | 44 | CONFIG_SPI_FLASH=y |
44 | 45 | CONFIG_SPI_FLASH_WINBOND=y |
46 | +CONFIG_MTD_UBI_FASTMAP=y | |
47 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
45 | 48 | CONFIG_SYS_NS16550=y |
46 | 49 | CONFIG_USB=y |
47 | 50 | CONFIG_USB_MUSB_HOST=y |
configs/rut_defconfig
... | ... | @@ -40,10 +40,13 @@ |
40 | 40 | CONFIG_CMD_TIME=y |
41 | 41 | CONFIG_CMD_EXT2=y |
42 | 42 | CONFIG_CMD_FAT=y |
43 | +CONFIG_CMD_UBI=y | |
43 | 44 | CONFIG_OF_CONTROL=y |
44 | 45 | CONFIG_OF_EMBED=y |
45 | 46 | CONFIG_SPI_FLASH=y |
46 | 47 | CONFIG_SPI_FLASH_WINBOND=y |
48 | +CONFIG_MTD_UBI_FASTMAP=y | |
49 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
47 | 50 | CONFIG_SYS_NS16550=y |
48 | 51 | CONFIG_USB=y |
49 | 52 | CONFIG_USB_MUSB_HOST=y |
configs/sama5d3_xplained_mmc_defconfig
configs/sama5d3_xplained_nandflash_defconfig
configs/sheevaplug_defconfig
configs/smdk2410_defconfig
configs/socfpga_arria5_defconfig
configs/socfpga_cyclone5_defconfig
configs/socfpga_de0_nano_soc_defconfig
configs/socfpga_is1_defconfig
configs/socfpga_mcvevk_defconfig
configs/socfpga_sockit_defconfig
configs/socfpga_socrates_defconfig
configs/socfpga_sr1500_defconfig
configs/socfpga_vining_fpga_defconfig
... | ... | @@ -33,6 +33,7 @@ |
33 | 33 | CONFIG_CMD_EXT4_WRITE=y |
34 | 34 | CONFIG_CMD_FAT=y |
35 | 35 | CONFIG_CMD_FS_GENERIC=y |
36 | +CONFIG_CMD_UBI=y | |
36 | 37 | CONFIG_NET_RANDOM_ETHADDR=y |
37 | 38 | CONFIG_SPL_DM=y |
38 | 39 | CONFIG_SPL_DM_SEQ_ALIAS=y |
... | ... | @@ -43,6 +44,7 @@ |
43 | 44 | CONFIG_SPI_FLASH_SPANSION=y |
44 | 45 | CONFIG_SPI_FLASH_STMICRO=y |
45 | 46 | # CONFIG_SPI_FLASH_USE_4K_SECTORS is not set |
47 | +CONFIG_MTD_UBI_FASTMAP=y | |
46 | 48 | CONFIG_DM_ETH=y |
47 | 49 | CONFIG_ETH_DESIGNWARE=y |
48 | 50 | CONFIG_SYS_NS16550=y |
configs/suvd3_defconfig
configs/thuban_defconfig
... | ... | @@ -38,10 +38,13 @@ |
38 | 38 | CONFIG_CMD_CACHE=y |
39 | 39 | CONFIG_CMD_TIME=y |
40 | 40 | CONFIG_CMD_EXT2=y |
41 | +CONFIG_CMD_UBI=y | |
41 | 42 | CONFIG_OF_CONTROL=y |
42 | 43 | CONFIG_OF_EMBED=y |
43 | 44 | CONFIG_SPI_FLASH=y |
44 | 45 | CONFIG_SPI_FLASH_WINBOND=y |
46 | +CONFIG_MTD_UBI_FASTMAP=y | |
47 | +CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT=1 | |
45 | 48 | CONFIG_SYS_NS16550=y |
46 | 49 | CONFIG_USB=y |
47 | 50 | CONFIG_USB_MUSB_HOST=y |
configs/titanium_defconfig
configs/tricorder_defconfig
configs/tricorder_flash_defconfig
configs/tuge1_defconfig
configs/tuxx1_defconfig
configs/twister_defconfig
configs/vct_platinum_onenand_defconfig
configs/vct_platinum_onenand_small_defconfig
configs/vct_platinumavc_onenand_defconfig
configs/vct_platinumavc_onenand_small_defconfig
configs/vct_premium_onenand_defconfig
configs/vct_premium_onenand_small_defconfig
configs/vf610twr_defconfig
configs/vf610twr_nand_defconfig
configs/x600_defconfig
drivers/mtd/Kconfig
drivers/mtd/ubi/Kconfig
1 | +menu "UBI support" | |
2 | + | |
3 | +config MTD_UBI | |
4 | + bool "Enable UBI - Unsorted block images" | |
5 | + select CRC32 | |
6 | + help | |
7 | + UBI is a software layer above MTD layer which admits of LVM-like | |
8 | + logical volumes on top of MTD devices, hides some complexities of | |
9 | + flash chips like wear and bad blocks and provides some other useful | |
10 | + capabilities. Please, consult the MTD web site for more details | |
11 | + (www.linux-mtd.infradead.org). | |
12 | + | |
13 | +if MTD_UBI | |
14 | + | |
15 | +config MTD_UBI_WL_THRESHOLD | |
16 | + int "UBI wear-leveling threshold" | |
17 | + default 4096 | |
18 | + range 2 65536 | |
19 | + help | |
20 | + This parameter defines the maximum difference between the highest | |
21 | + erase counter value and the lowest erase counter value of eraseblocks | |
22 | + of UBI devices. When this threshold is exceeded, UBI starts performing | |
23 | + wear leveling by means of moving data from eraseblock with low erase | |
24 | + counter to eraseblocks with high erase counter. | |
25 | + | |
26 | + The default value should be OK for SLC NAND flashes, NOR flashes and | |
27 | + other flashes which have eraseblock life-cycle 100000 or more. | |
28 | + However, in case of MLC NAND flashes which typically have eraseblock | |
29 | + life-cycle less than 10000, the threshold should be lessened (e.g., | |
30 | + to 128 or 256, although it does not have to be power of 2). | |
31 | + | |
32 | +config MTD_UBI_BEB_LIMIT | |
33 | + int "Maximum expected bad eraseblock count per 1024 eraseblocks" | |
34 | + default 20 | |
35 | + range 0 768 | |
36 | + help | |
37 | + This option specifies the maximum bad physical eraseblocks UBI | |
38 | + expects on the MTD device (per 1024 eraseblocks). If the underlying | |
39 | + flash does not admit of bad eraseblocks (e.g. NOR flash), this value | |
40 | + is ignored. | |
41 | + | |
42 | + NAND datasheets often specify the minimum and maximum NVM (Number of | |
43 | + Valid Blocks) for the flashes' endurance lifetime. The maximum | |
44 | + expected bad eraseblocks per 1024 eraseblocks then can be calculated | |
45 | + as "1024 * (1 - MinNVB / MaxNVB)", which gives 20 for most NANDs | |
46 | + (MaxNVB is basically the total count of eraseblocks on the chip). | |
47 | + | |
48 | + To put it differently, if this value is 20, UBI will try to reserve | |
49 | + about 1.9% of physical eraseblocks for bad blocks handling. And that | |
50 | + will be 1.9% of eraseblocks on the entire NAND chip, not just the MTD | |
51 | + partition UBI attaches. This means that if you have, say, a NAND | |
52 | + flash chip admits maximum 40 bad eraseblocks, and it is split on two | |
53 | + MTD partitions of the same size, UBI will reserve 40 eraseblocks when | |
54 | + attaching a partition. | |
55 | + | |
56 | + This option can be overridden by the "mtd=" UBI module parameter or | |
57 | + by the "attach" ioctl. | |
58 | + | |
59 | + Leave the default value if unsure. | |
60 | + | |
61 | +config MTD_UBI_FASTMAP | |
62 | + bool "UBI Fastmap (Experimental feature)" | |
63 | + default n | |
64 | + help | |
65 | + Important: this feature is experimental so far and the on-flash | |
66 | + format for fastmap may change in the next kernel versions | |
67 | + | |
68 | + Fastmap is a mechanism which allows attaching an UBI device | |
69 | + in nearly constant time. Instead of scanning the whole MTD device it | |
70 | + only has to locate a checkpoint (called fastmap) on the device. | |
71 | + The on-flash fastmap contains all information needed to attach | |
72 | + the device. Using fastmap makes only sense on large devices where | |
73 | + attaching by scanning takes long. UBI will not automatically install | |
74 | + a fastmap on old images, but you can set the UBI module parameter | |
75 | + fm_autoconvert to 1 if you want so. Please note that fastmap-enabled | |
76 | + images are still usable with UBI implementations without | |
77 | + fastmap support. On typical flash devices the whole fastmap fits | |
78 | + into one PEB. UBI will reserve PEBs to hold two fastmaps. | |
79 | + | |
80 | + If in doubt, say "N". | |
81 | + | |
82 | +config MTD_UBI_FASTMAP_AUTOCONVERT | |
83 | + int "enable UBI Fastmap autoconvert" | |
84 | + depends on MTD_UBI_FASTMAP | |
85 | + default 0 | |
86 | + help | |
87 | + Set this parameter to enable fastmap automatically on images | |
88 | + without a fastmap. | |
89 | + | |
90 | +config MTD_UBI_FM_DEBUG | |
91 | + int "Enable UBI fastmap debug" | |
92 | + depends on MTD_UBI_FASTMAP | |
93 | + default 0 | |
94 | + help | |
95 | + Enable UBI fastmap debug | |
96 | + | |
97 | +endif # MTD_UBI | |
98 | +endmenu # "Enable UBI - Unsorted block images" |
include/config_cmd_all.h
... | ... | @@ -48,7 +48,6 @@ |
48 | 48 | #define CONFIG_SCSI /* SCSI Support */ |
49 | 49 | #define CONFIG_CMD_SDRAM /* SDRAM DIMM SPD info printout */ |
50 | 50 | #define CONFIG_CMD_TERMINAL /* built-in Serial Terminal */ |
51 | -#define CONFIG_CMD_UBI /* UBI Support */ | |
52 | 51 | #define CONFIG_CMD_UBIFS /* UBIFS Support */ |
53 | 52 | #define CONFIG_CMD_UNIVERSE /* Tundra Universe Support */ |
54 | 53 | #define CONFIG_CMD_UNZIP /* unzip from memory to memory */ |
include/configs/M54418TWR.h
include/configs/PLU405.h
include/configs/VCMA9.h
include/configs/a3m071.h
include/configs/am3517_evm.h
... | ... | @@ -140,7 +140,6 @@ |
140 | 140 | #define CONFIG_NAND_OMAP_GPMC |
141 | 141 | #define CONFIG_NAND_OMAP_GPMC_PREFETCH |
142 | 142 | #define CONFIG_BCH |
143 | -#define CONFIG_CMD_UBI /* UBI-formated MTD partition support */ | |
144 | 143 | #define CONFIG_CMD_UBIFS /* Read-only UBI volume operations */ |
145 | 144 | #define CONFIG_RBTREE /* required by CONFIG_CMD_UBI */ |
146 | 145 | #define CONFIG_LZO /* required by CONFIG_CMD_UBIFS */ |
include/configs/apf27.h
include/configs/apx4devkit.h
include/configs/aristainetos-common.h
... | ... | @@ -223,11 +223,7 @@ |
223 | 223 | #define CONFIG_MTD_PARTITIONS |
224 | 224 | #define CONFIG_MTD_DEVICE |
225 | 225 | #define CONFIG_RBTREE |
226 | -#define CONFIG_CMD_UBI | |
227 | 226 | #define CONFIG_CMD_UBIFS |
228 | - | |
229 | -#define CONFIG_MTD_UBI_FASTMAP | |
230 | -#define CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT 1 | |
231 | 227 | |
232 | 228 | #define CONFIG_HW_WATCHDOG |
233 | 229 | #define CONFIG_IMX_WATCHDOG |
include/configs/at91sam9x5ek.h
include/configs/baltos.h
include/configs/colibri_imx7.h
include/configs/colibri_t20.h
... | ... | @@ -74,10 +74,8 @@ |
74 | 74 | #define CONFIG_ENV_SIZE (SZ_64K) |
75 | 75 | |
76 | 76 | /* UBI */ |
77 | -#define CONFIG_CMD_UBI | |
78 | 77 | #define CONFIG_CMD_UBIFS /* increases size by almost 60 KB */ |
79 | 78 | #define CONFIG_LZO |
80 | -#define CONFIG_MTD_UBI_FASTMAP | |
81 | 79 | #define CONFIG_RBTREE |
82 | 80 | |
83 | 81 | /* Debug commands */ |
include/configs/colibri_vf.h
include/configs/da850evm.h
include/configs/dockstar.h
include/configs/ea20.h
include/configs/ethernut5.h
include/configs/gw_ventana.h
include/configs/iconnect.h
include/configs/ids8313.h
include/configs/ipam390.h
include/configs/km/keymile-common.h
include/configs/m28evk.h
include/configs/m53evk.h
include/configs/mcx.h
include/configs/microblaze-generic.h
... | ... | @@ -177,7 +177,6 @@ |
177 | 177 | |
178 | 178 | #if defined(FLASH) |
179 | 179 | # define CONFIG_CMD_JFFS2 |
180 | -# define CONFIG_CMD_UBI | |
181 | 180 | # undef CONFIG_CMD_UBIFS |
182 | 181 | |
183 | 182 | # if !defined(RAMENV) |
... | ... | @@ -192,7 +191,6 @@ |
192 | 191 | # endif |
193 | 192 | #else |
194 | 193 | # undef CONFIG_CMD_JFFS2 |
195 | -# undef CONFIG_CMD_UBI | |
196 | 194 | # undef CONFIG_CMD_UBIFS |
197 | 195 | #endif |
198 | 196 | #endif |
... | ... | @@ -202,7 +200,6 @@ |
202 | 200 | #endif |
203 | 201 | |
204 | 202 | #if defined(CONFIG_CMD_UBIFS) |
205 | -# define CONFIG_CMD_UBI | |
206 | 203 | # define CONFIG_LZO |
207 | 204 | #endif |
208 | 205 |
include/configs/mv-common.h
include/configs/mx28evk.h
include/configs/nas220.h
include/configs/nokia_rx51.h
include/configs/omap3_igep00x0.h
include/configs/omap3_logic.h
... | ... | @@ -93,7 +93,6 @@ |
93 | 93 | #ifdef CONFIG_NAND |
94 | 94 | #define CONFIG_NAND_OMAP_GPMC |
95 | 95 | |
96 | -#define CONFIG_CMD_UBI /* UBI-formated MTD partition support */ | |
97 | 96 | #define CONFIG_CMD_UBIFS /* Read-only UBI volume operations */ |
98 | 97 | #define CONFIG_RBTREE /* required by CONFIG_CMD_UBI */ |
99 | 98 | #define CONFIG_LZO /* required by CONFIG_CMD_UBIFS */ |
include/configs/omap3_overo.h
include/configs/omap3_pandora.h
... | ... | @@ -69,7 +69,6 @@ |
69 | 69 | #define CONFIG_SYS_NAND_OOBSIZE 64 |
70 | 70 | |
71 | 71 | #ifdef CONFIG_NAND |
72 | -#define CONFIG_CMD_UBI /* UBI-formated MTD partition support */ | |
73 | 72 | #define CONFIG_CMD_UBIFS /* Read-only UBI volume operations */ |
74 | 73 | |
75 | 74 | #define CONFIG_RBTREE /* required by CONFIG_CMD_UBI */ |
include/configs/omapl138_lcdk.h
include/configs/pcm052.h
include/configs/pcm058.h
include/configs/platinum.h
include/configs/pogo_e02.h
include/configs/sama5d3_xplained.h
include/configs/siemens-am33x-common.h
... | ... | @@ -270,10 +270,7 @@ |
270 | 270 | #define CONFIG_MTD_DEVICE |
271 | 271 | #define CONFIG_RBTREE |
272 | 272 | #define CONFIG_LZO |
273 | -#define CONFIG_CMD_UBI | |
274 | 273 | #define CONFIG_CMD_UBIFS |
275 | -#define CONFIG_MTD_UBI_FASTMAP | |
276 | -#define CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT 1 | |
277 | 274 | #endif |
278 | 275 | |
279 | 276 | /* Commen environment */ |
include/configs/smdk2410.h
include/configs/socfpga_common.h
include/configs/socfpga_vining_fpga.h
... | ... | @@ -192,9 +192,7 @@ |
192 | 192 | "else echo \"Unsupported boot mode: \"${bootmode} ; " \ |
193 | 193 | "fi\0" \ |
194 | 194 | |
195 | -#define CONFIG_CMD_UBI | |
196 | 195 | #define CONFIG_CMD_UBIFS |
197 | -#define CONFIG_MTD_UBI_FASTMAP | |
198 | 196 | #define CONFIG_RBTREE |
199 | 197 | #define CONFIG_LZO |
200 | 198 | #define MTDPARTS_DEFAULT \ |
include/configs/tam3517-common.h
include/configs/ti_armv7_keystone2.h
include/configs/titanium.h
include/configs/tricorder.h
... | ... | @@ -146,7 +146,6 @@ |
146 | 146 | #define CONFIG_CMD_MTDPARTS /* Enable MTD parts commands */ |
147 | 147 | #define CONFIG_CMD_NAND /* NAND support */ |
148 | 148 | #define CONFIG_CMD_NAND_LOCK_UNLOCK /* nand (un)lock commands */ |
149 | -#define CONFIG_CMD_UBI /* UBI commands */ | |
150 | 149 | #define CONFIG_CMD_UBIFS /* UBIFS commands */ |
151 | 150 | #define CONFIG_LZO /* LZO is needed for UBIFS */ |
152 | 151 |
include/configs/vct.h
... | ... | @@ -246,7 +246,6 @@ |
246 | 246 | #if defined(CONFIG_VCT_ONENAND) |
247 | 247 | #define CONFIG_SYS_USE_UBI |
248 | 248 | #define CONFIG_CMD_JFFS2 |
249 | -#define CONFIG_CMD_UBI | |
250 | 249 | #define CONFIG_RBTREE |
251 | 250 | #define CONFIG_MTD_DEVICE /* needed for mtdparts commands */ |
252 | 251 | #define CONFIG_MTD_PARTITIONS |
include/configs/vf610twr.h
include/configs/x600.h
include/ubi_uboot.h
... | ... | @@ -35,9 +35,6 @@ |
35 | 35 | #include <linux/errno.h> |
36 | 36 | |
37 | 37 | /* configurable */ |
38 | -#if !defined(CONFIG_MTD_UBI_WL_THRESHOLD) | |
39 | -#define CONFIG_MTD_UBI_WL_THRESHOLD 4096 | |
40 | -#endif | |
41 | 38 | #define CONFIG_MTD_UBI_BEB_RESERVE 1 |
42 | 39 | |
43 | 40 | /* debug options (Linux: drivers/mtd/ubi/Kconfig.debug) */ |
... | ... | @@ -58,10 +55,6 @@ |
58 | 55 | * (which only enables the additional error reporting). |
59 | 56 | */ |
60 | 57 | #define CONFIG_MTD_UBI_MODULE |
61 | - | |
62 | -#if !defined(CONFIG_MTD_UBI_BEB_LIMIT) | |
63 | -#define CONFIG_MTD_UBI_BEB_LIMIT 20 | |
64 | -#endif | |
65 | 58 | |
66 | 59 | /* build.c */ |
67 | 60 | #define get_device(...) |
scripts/config_whitelist.txt
... | ... | @@ -647,7 +647,6 @@ |
647 | 647 | CONFIG_CMD_THOR_DOWNLOAD |
648 | 648 | CONFIG_CMD_TRACE |
649 | 649 | CONFIG_CMD_TSI148 |
650 | -CONFIG_CMD_UBI | |
651 | 650 | CONFIG_CMD_UBIFS |
652 | 651 | CONFIG_CMD_UNIVERSE |
653 | 652 | CONFIG_CMD_UNZIP |
... | ... | @@ -3226,7 +3225,6 @@ |
3226 | 3225 | CONFIG_MTD_ONENAND_VERIFY_WRITE |
3227 | 3226 | CONFIG_MTD_PARTITION |
3228 | 3227 | CONFIG_MTD_PARTITIONS |
3229 | -CONFIG_MTD_UBI_BEB_LIMIT | |
3230 | 3228 | CONFIG_MTD_UBI_BEB_RESERVE |
3231 | 3229 | CONFIG_MTD_UBI_BLOCK |
3232 | 3230 | CONFIG_MTD_UBI_DEBUG |
3233 | 3231 | |
... | ... | @@ -3236,12 +3234,8 @@ |
3236 | 3234 | CONFIG_MTD_UBI_DEBUG_MSG_IO |
3237 | 3235 | CONFIG_MTD_UBI_DEBUG_MSG_WL |
3238 | 3236 | CONFIG_MTD_UBI_DEBUG_PARANOID |
3239 | -CONFIG_MTD_UBI_FASTMAP | |
3240 | -CONFIG_MTD_UBI_FASTMAP_AUTOCONVERT | |
3241 | -CONFIG_MTD_UBI_FM_DEBUG | |
3242 | 3237 | CONFIG_MTD_UBI_GLUEBI |
3243 | 3238 | CONFIG_MTD_UBI_MODULE |
3244 | -CONFIG_MTD_UBI_WL_THRESHOLD | |
3245 | 3239 | CONFIG_MULTI_CS |
3246 | 3240 | CONFIG_MUNICES |
3247 | 3241 | CONFIG_MUSB_HOST |