[OE-core] [yocto] Support UBI u-boot
quentin.schulz at streamunlimited.com
Mon Feb 17 10:51:15 CET 2020
On Sun, Feb 09, 2020 at 08:01:15PM +1100, JH wrote:
> Changed to https://source.codeaurora.org/external/imx/uboot-imx.git
> branch imx_v2018.03_4.14.98_2.0.0_ga, it can now support
> CONFIG_CMD_MTDPARTS ind defconfg, all MTDPARTS error gone, but then
> 2018.03-r0/git/cmd/ubi.c missed dependencies of del_mtd_partitions,
> add_mtd_partitions, mtd_get_device_size all in mtdpart.c which can
> only be enabled by CONFIG_MTD_PARTITIONS:
> obj-$(CONFIG_MTD_PARTITIONS) += mtdpart.o
> But that CONFIG_MTD_PARTITIONS is not supported in defconfig.
> Could anyone advise which branch works for UBI?
FYI, U-boot was still slowly migrating to Kconfig only back then (maybe
still is). There was for a long time a mix between Kconfig options and
options in what I call board header files (include/configs/<board>.h).
Most likely CONFIG_MTD_PARTITIONS had to be defined there.
Biased recommendation: https://www.youtube.com/watch?v=5E0sdYkvq-Q
More information about the U-Boot