[U-Boot] [PATCH v2 8/9] ubispl: add support for loading volumes by name
Heiko Schocher
hs at denx.de
Thu Jun 13 03:33:10 UTC 2019
Hello Markus,
Am 15.05.2019 um 15:15 schrieb Markus Klotzbuecher:
> From: Hamish Guthrie <hamish.guthrie at kistler.com>
>
> The motivation is to use the UBI atomic volume rename functionality to
> allow double copy software updates on UBI. To that end the SPL is
> configured to always load the same volume name (e.g. "u-boot"),
> whereas a software updater always installs into the secondary volume
> "u-boot_r". After successful installation, these two volume names are
> switched.
>
> This extension is protected by #ifdefs as it will somewhat slow down
> loading of volumes by id. This is because the code needs to disable
> the optimization of ignoring all volume ids which are not
> to-be-loaded, since these can only be resolved after attaching.
>
> This adds two vtbl related functions from Linux, which are taken from
> the same kernel version as the current main U-Boot UBI code (Linux 4.2
> 64291f7db5bd8).
>
> Signed-off-by: Hamish Guthrie <hamish.guthrie at kistler.com>
> Signed-off-by: Markus Klotzbuecher <markus.klotzbuecher at kistler.com>
> Reviewed-by: Heiko Schocher <hs at denx.de>
> Cc: Kyungmin Park <kmpark at infradead.org>
> ---
> Changes for v2:
> - indicate version of Kernel from which code was copied
>
> common/spl/Kconfig | 13 +++
> common/spl/spl_ubi.c | 7 ++
> drivers/mtd/ubispl/ubispl.c | 215 +++++++++++++++++++++++++++++++++++-
> drivers/mtd/ubispl/ubispl.h | 7 ++
> include/ubispl.h | 6 +
> 5 files changed, 246 insertions(+), 2 deletions(-)
Thanks!
Travis buils is fine, pushed to u-boot-ubi.git next
bye,
Heiko
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52 Fax: +49-8142-66989-80 Email: hs at denx.de
More information about the U-Boot
mailing list