1*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI 2*4882a593Smuzhiyun bool "ubi image containing an ubifs/squashfs root filesystem" 3*4882a593Smuzhiyun help 4*4882a593Smuzhiyun Build an ubi image from the ubifs/squashfs one (with ubinize). 5*4882a593Smuzhiyun 6*4882a593Smuzhiyunif BR2_TARGET_ROOTFS_UBI 7*4882a593Smuzhiyun 8*4882a593Smuzhiyunchoice 9*4882a593Smuzhiyun prompt "UBI root filesystem" 10*4882a593Smuzhiyun help 11*4882a593Smuzhiyun Select UBI root filesystem. 12*4882a593Smuzhiyun 13*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_UBIFS 14*4882a593Smuzhiyun bool "ubifs" 15*4882a593Smuzhiyun select BR2_TARGET_ROOTFS_UBIFS 16*4882a593Smuzhiyun help 17*4882a593Smuzhiyun Use ubifs. 18*4882a593Smuzhiyun 19*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_SQUASHFS 20*4882a593Smuzhiyun bool "squashfs" 21*4882a593Smuzhiyun select BR2_TARGET_ROOTFS_SQUASHFS 22*4882a593Smuzhiyun help 23*4882a593Smuzhiyun Use squashfs. 24*4882a593Smuzhiyun 25*4882a593Smuzhiyunendchoice 26*4882a593Smuzhiyun 27*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_MINIOSIZE 28*4882a593Smuzhiyun hex "minimum I/O unit size" 29*4882a593Smuzhiyun default BR2_TARGET_ROOTFS_UBIFS_MINIOSIZE if BR2_TARGET_ROOTFS_UBI_UBIFS 30*4882a593Smuzhiyun default 0x800 31*4882a593Smuzhiyun help 32*4882a593Smuzhiyun Minimum I/O unit size. The value provided here is passed 33*4882a593Smuzhiyun to the -m/--min-io-size option of ubinize. 34*4882a593Smuzhiyun 35*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_PEBSIZE 36*4882a593Smuzhiyun hex "physical eraseblock size" 37*4882a593Smuzhiyun default 0x20000 38*4882a593Smuzhiyun help 39*4882a593Smuzhiyun Tells ubinize the physical eraseblock (PEB) size of the 40*4882a593Smuzhiyun flash chip the ubi image is created for. The value provided 41*4882a593Smuzhiyun here is passed to the -p/--peb-size option of ubinize. 42*4882a593Smuzhiyun 43*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_SUBSIZE 44*4882a593Smuzhiyun int "sub-page size" 45*4882a593Smuzhiyun default 512 46*4882a593Smuzhiyun help 47*4882a593Smuzhiyun Tells ubinize that the flash supports sub-pages and the 48*4882a593Smuzhiyun sub-page size. Use 0 if sub-pages are not supported on flash 49*4882a593Smuzhiyun chip. 50*4882a593Smuzhiyun The value provided here is passed to the -s/--sub-page-size 51*4882a593Smuzhiyun option of ubinize. 52*4882a593Smuzhiyun 53*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG 54*4882a593Smuzhiyun bool "Use custom config file" 55*4882a593Smuzhiyun help 56*4882a593Smuzhiyun Select this option to use a custom ubinize configuration file, 57*4882a593Smuzhiyun rather than the default configuration used by Buildroot (which 58*4882a593Smuzhiyun defines a single dynamic volume marked as auto-resize). 59*4882a593Smuzhiyun Passing a custom ubinize configuration file allows you to 60*4882a593Smuzhiyun create several volumes, specify volume types, etc. 61*4882a593Smuzhiyun 62*4882a593Smuzhiyun As a convenience, buildroot replaces the string 63*4882a593Smuzhiyun "BR2_ROOTFS_UBI_PATH" with the path to the built ubi file. 64*4882a593Smuzhiyun So the volume defined for the root filesystem can specify the 65*4882a593Smuzhiyun image path as: image=BR2_ROOTFS_UBI_PATH 66*4882a593Smuzhiyun 67*4882a593Smuzhiyun Buildroot also replaces the string "BINARIES_DIR" with the 68*4882a593Smuzhiyun value of $(BINARIES_DIR), so that it is possible to reference 69*4882a593Smuzhiyun other build artefacts (e.g. to include the kernel in a UBI 70*4882a593Smuzhiyun volume). 71*4882a593Smuzhiyun 72*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_CUSTOM_CONFIG_FILE 73*4882a593Smuzhiyun string "Configuration file path" 74*4882a593Smuzhiyun depends on BR2_TARGET_ROOTFS_UBI_USE_CUSTOM_CONFIG 75*4882a593Smuzhiyun help 76*4882a593Smuzhiyun Path to the ubinize configuration file. 77*4882a593Smuzhiyun 78*4882a593Smuzhiyunconfig BR2_TARGET_ROOTFS_UBI_OPTS 79*4882a593Smuzhiyun string "Additional ubinize options" 80*4882a593Smuzhiyun help 81*4882a593Smuzhiyun Any additional ubinize options you may want to include. 82*4882a593Smuzhiyun 83*4882a593Smuzhiyunendif # BR2_TARGET_ROOTFS_UBI 84