Where NAND UBI partitions are created

Hi,

I would like to know where all the NAND partitions are created in OpenWRT build ?
Is there any file which defines the partition size and volume names for creating partitions ?

Thanks,
Sathish

Generally in the DTS for the board.

Which board? (They're in different places in the OpenWrt source tree for different platforms)

This board is based on IPQ4019.

openwrt/target/linux/ipq40xx/files-4.14/arch/arm/boot/dts/qcom-ipq40*

The often-referenced qcom-ipq4019.dtsi is downloaded with the Linux tarball and patched by OpenWrt. make target/linux/{clean,prepare} will do that without a full build. Select "any" ipq40xx target in your config prior, so that the ipq40xx config and patches are used. With a build I have lying around from some time ago

build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/linux-ipq40xx/linux-4.14.120/arch/arm/boot/dts/qcom-ipq4019.dtsi

uBoot defines the NOR/NAND space as MTD devices...

With Device Tree devices, DTS comes into play on kernel boot to inform the kernel on where things need to land and then UBI takes over and defines the UBIFS partitions.

I'm summarizing, and things in bootloader/early kernel boot are a bit more complicated...